/* =================================================================
   FIFTY LEADS — Landing
   Deep black photolab. Purple radial glow. Heavy grain. Liquid glass.
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Surface */
  --bg-base: #000000;
  --bg-elevated: #0a0a0a;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-tertiary: rgba(255, 255, 255, 0.38);
  --text-quaternary: rgba(255, 255, 255, 0.18);
  --text-on-glow: #000000;

  /* Brand */
  --brand-purple: #8368CF;
  --brand-purple-soft: #A892E5;
  --brand-purple-deep: #5A47A8;
  --brand-pink: #C7A7E8;
  --brand-green: #153E33;

  /* Glow gradients */
  --glow-hero: radial-gradient(
    ellipse 58% 52% at 50% 50%,
    rgba(232, 215, 250, 1) 0%,
    rgba(220, 195, 245, 0.92) 8%,
    rgba(199, 167, 232, 0.74) 22%,
    rgba(168, 146, 229, 0.5) 38%,
    rgba(131, 104, 207, 0.26) 55%,
    rgba(90, 71, 168, 0.10) 72%,
    transparent 86%
  );
  --glow-section: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    rgba(131, 104, 207, 0.22) 0%,
    rgba(131, 104, 207, 0.10) 35%,
    transparent 70%
  );
  --glow-small: radial-gradient(
    circle at 50% 50%,
    rgba(168, 146, 229, 0.32) 0%,
    rgba(131, 104, 207, 0.14) 40%,
    transparent 72%
  );

  /* Glass — liquid darkroom */
  --glass-fill: rgba(255, 255, 255, 0.028);
  --glass-fill-hover: rgba(255, 255, 255, 0.055);
  --glass-stroke: rgba(255, 255, 255, 0.07);
  --glass-stroke-hot: rgba(168, 146, 229, 0.42);
  --glass-highlight: rgba(255, 255, 255, 0.12);

  /* Easing */
  --ease-out-quart: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, body {
  background: #000;
  color: var(--text-primary);
  font-family: 'Inter Tight', 'Helvetica Neue', system-ui, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
button {
  background: none; border: none; color: inherit;
  font-family: inherit;
  cursor: pointer;
}

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

/* =================================================================
   TYPOGRAPHY
   ================================================================= */

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  line-height: 1;
}

.eyebrow-light {
  color: rgba(255,255,255,0.55);
}

.h1 {
  font-size: clamp(40px, 6.4vw, 104px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(40px, 5.5vw, 88px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(22px, 1.9vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.body-l {
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text-secondary);
}

.body-m {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-feature-settings: 'ss01';
}

/* =================================================================
   GRAIN OVERLAY (full-site)
   ================================================================= */

.grain {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 200;
  opacity: 0.13;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain-shift 9s steps(8) infinite;
}

.grain-soft {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -3%); }
  20% { transform: translate(-4%, 2%); }
  30% { transform: translate(3%, -4%); }
  40% { transform: translate(-3%, 3%); }
  50% { transform: translate(2%, 4%); }
  60% { transform: translate(-1%, -2%); }
  70% { transform: translate(4%, 1%); }
  80% { transform: translate(-3%, -1%); }
  90% { transform: translate(2%, -3%); }
}

/* =================================================================
   GLOW BLOBS
   ================================================================= */

.glow-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.glow-hero {
  width: 95vmin;
  height: 95vmin;
  background: var(--glow-hero);
  filter: blur(50px);
}

.glow-section {
  width: 70vmax;
  height: 60vmax;
  background: var(--glow-section);
  filter: blur(80px);
}

.glow-drift {
  animation: drift 38s ease-in-out infinite;
}
.glow-drift-2 {
  animation: drift2 52s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, -4%) scale(1.05); }
  66% { transform: translate(-2%, 3%) scale(0.97); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4%, 2%) scale(1.08); }
}

/* =================================================================
   LIQUID GLASS — darkroom panes
   Not macOS-style. Subtle, deep, with top highlight + inner gradient.
   ================================================================= */

.glass {
  position: relative;
  background: var(--glass-fill);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 20px;
  transition: all 0.5s var(--ease-out-quart);
  isolation: isolate;
}

.glass::before {
  /* top highlight — the "edge" of a glass pane catching light */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.04) 18%,
    rgba(255,255,255,0) 50%,
    rgba(255,255,255,0) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass::after {
  /* inner ambient — soft purple haze rising from below */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 100% 80% at 50% 120%,
    rgba(131, 104, 207, 0.10) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
  transition: opacity 0.6s var(--ease-out-quart);
}

.glass:hover {
  background: var(--glass-fill-hover);
  border-color: var(--glass-stroke-hot);
  transform: translateY(-3px);
  box-shadow:
    0 30px 80px -30px rgba(131, 104, 207, 0.45),
    0 0 0 1px rgba(168, 146, 229, 0.08);
}

.glass:hover::after { opacity: 1; }

.glass-flat {
  /* simpler glass, no hover lift */
  background: var(--glass-fill);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-radius: 16px;
}

/* =================================================================
   BUTTONS
   ================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: all 0.4s var(--ease-out-quart);
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-purple);
  color: #fff;
  box-shadow:
    0 12px 40px -8px rgba(131, 104, 207, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  background: var(--brand-purple-soft);
  transform: translateY(-2px);
  box-shadow:
    0 20px 60px -10px rgba(168, 146, 229, 0.75),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  border-color: var(--brand-purple-soft);
  background: rgba(168, 146, 229, 0.06);
  transform: translateY(-2px);
}

.btn-massive {
  padding: 26px 40px;
  font-size: 18px;
  font-weight: 600;
}
.btn-massive.btn-primary {
  box-shadow:
    0 0 0 1px rgba(168, 146, 229, 0.3),
    0 20px 60px -10px rgba(131, 104, 207, 0.7),
    0 0 80px rgba(131, 104, 207, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out-quart);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* =================================================================
   LAYOUT
   ================================================================= */

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

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

.section-pad {
  padding: 140px 0;
}

.section-pad-lg {
  padding: 180px 0;
}

@media (max-width: 900px) {
  .section-pad { padding: 90px 0; }
  .section-pad-lg { padding: 110px 0; }
}

/* =================================================================
   (CUSTOM CURSOR block removed — using native cursor)
   ================================================================= */

/* =================================================================
   NAV
   ================================================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.5s var(--ease-out-quart);
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  height: 28px;
}
.nav-logo img {
  height: 100%;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.nav-links a {
  position: relative;
  transition: color 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--brand-purple-soft);
  transition: width 0.4s var(--ease-out-quart);
}
.nav-links a:hover::after { width: 100%; }

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* =================================================================
   HERO
   ================================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 88px 24px 64px;
  isolation: isolate;
}

.hero-orb {
  position: absolute;
  top: 50%; left: 50%;
  width: min(120vmin, 1400px);
  height: min(120vmin, 1400px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.hero-orb-glow {
  position: absolute;
  inset: 0;
  background: var(--glow-hero);
  filter: blur(60px);
  border-radius: 50%;
  animation: hero-breathe 9s ease-in-out infinite;
}

.hero-orb-inner {
  position: absolute;
  inset: 18%;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(220, 195, 245, 0.85) 0%,
    rgba(199, 167, 232, 0.5) 25%,
    rgba(131, 104, 207, 0.22) 55%,
    transparent 78%
  );
  border-radius: 50%;
  filter: blur(40px);
  animation: hero-breathe 7s ease-in-out infinite reverse;
}

.hero-orb-core {
  position: absolute;
  inset: 32%;
  background: radial-gradient(
    circle,
    rgba(252, 245, 255, 0.85) 0%,
    rgba(230, 210, 250, 0.6) 25%,
    rgba(199, 167, 232, 0.35) 50%,
    rgba(168, 146, 229, 0.12) 75%,
    transparent 92%
  );
  border-radius: 50%;
  filter: blur(22px);
  animation: hero-rotate 60s linear infinite;
}

.hero-mark {
  position: relative;
  width: clamp(80px, 9.5vw, 132px);
  aspect-ratio: 1 / 1;
  margin-bottom: 26px;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(0);
}

@media (max-width: 720px) {
  .hero-mark { margin-bottom: 20px; }
}

@keyframes hero-breathe {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes hero-rotate {
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-eyebrow {
  margin-bottom: 16px;
  color: rgba(255,255,255,0.42);
  font-size: 10.5px;
  letter-spacing: 0.22em;
}

.hero-h1 {
  margin-bottom: 20px;
  position: relative;
  z-index: 3;
  text-shadow:
    0 0 24px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.04);
}
.hero-h1 .accent {
  color: var(--brand-purple-soft);
  font-style: italic;
  font-weight: 600;
}
.hero-h1 .hero-dot {
  font-style: italic;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
}
.hero-h1 .black-on-glow {
  color: #000;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: clamp(14px, 1.05vw, 16.5px);
  color: var(--text-secondary);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 5;
}
.hero-scroll-chevron {
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5), transparent);
  animation: chev 2.6s ease-in-out infinite;
}
@keyframes chev {
  0%, 100% { transform: translateY(-8px); opacity: 0.3; }
  50% { transform: translateY(8px); opacity: 1; }
}

.hero-meta {
  position: absolute;
  z-index: 5;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  line-height: 1.5;
  white-space: nowrap;
}
.hero-meta-tl { top: 88px; left: 48px; }
.hero-meta-tr { top: 88px; right: 48px; text-align: right; }
.hero-meta-bl { bottom: 24px; left: 48px; }
.hero-meta-br { bottom: 24px; right: 48px; text-align: right; }

@media (max-width: 1100px) {
  .hero-meta { display: none; }
}

/* =================================================================
   SECTIONS — shared
   ================================================================= */

.section-head {
  margin-bottom: 80px;
}

.section-eyebrow {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::before {
  content: '';
  width: 36px; height: 1px;
  background: var(--brand-purple-soft);
}

.section-sub {
  margin-top: 22px;
  max-width: 640px;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
}

/* =================================================================
   NUMBERS STRIP
   ================================================================= */

.numbers {
  position: relative;
  padding: 100px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

@media (max-width: 900px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (max-width: 520px) {
  .numbers-grid { grid-template-columns: 1fr; }
}

.num-item {
  position: relative;
}
.num-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px; top: 18px;
  width: 1px;
  height: calc(100% - 36px);
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.08), transparent);
}
@media (max-width: 900px) {
  .num-item::after { display: none; }
}

.num-value {
  font-size: clamp(44px, 5.4vw, 88px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.num-value .unit {
  font-size: 0.42em;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  font-weight: 500;
}
.num-label {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  line-height: 1.4;
  max-width: 220px;
}

/* =================================================================
   PRINCIPLES
   ================================================================= */

.principles {
  position: relative;
}
.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 900px) {
  .principles-grid { grid-template-columns: 1fr; gap: 50px; }
}

.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  padding: 40px 0;
}

.principle-num {
  font-size: clamp(80px, 11vw, 180px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--brand-purple-soft);
  opacity: 0.35;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.principle-body { padding-top: 18px; }
.principle-title {
  font-size: clamp(24px, 2.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.principle-text {
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 480px;
}

/* =================================================================
   SERVICES
   ================================================================= */

.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.service-row {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 36px 0;
  transition: background 0.6s var(--ease-out-quart);
  position: relative;
  cursor: pointer;
}

.service-row:hover {
  background: linear-gradient(90deg, transparent 0%, rgba(131, 104, 207, 0.04) 50%, transparent 100%);
}

.service-head {
  display: grid;
  grid-template-columns: 60px 140px 1fr auto auto;
  align-items: center;
  gap: 24px;
}
@media (max-width: 900px) {
  .service-head {
    grid-template-columns: 40px 1fr auto;
    gap: 16px;
  }
  /* .service-tag, .service-price hidden in mobile media block below (cascade order fix) */
}

.service-idx {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.service-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-purple-soft);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.service-tag-dot {
  margin: 0 4px;
  color: rgba(168, 146, 229, 0.45);
}

.service-title {
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.service-price {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.service-toggle {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  transition: all 0.4s var(--ease-out-quart);
  position: relative;
}
.service-toggle::before,
.service-toggle::after {
  content: '';
  position: absolute;
  background: #fff;
  transition: transform 0.4s var(--ease-out-quart);
}
.service-toggle::before { width: 12px; height: 1px; }
.service-toggle::after { width: 1px; height: 12px; }

.service-row.open .service-toggle {
  border-color: var(--brand-purple-soft);
  background: rgba(168, 146, 229, 0.08);
}
.service-row.open .service-toggle::after { transform: rotate(90deg); }

.service-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out-quart);
}
.service-detail-inner { overflow: hidden; }

.service-row.open .service-detail { grid-template-rows: 1fr; }

.service-body {
  padding: 32px 0 12px;
  padding-left: 224px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) {
  .service-body { padding-left: 56px; grid-template-columns: 1fr; gap: 24px; }
}

.service-desc {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.55;
}

.service-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-checklist li {
  font-size: 15px;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
}
.service-checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--brand-purple-soft);
}

.service-mobile-meta {
  display: none;
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-left: 56px;
  margin-top: 6px;
}
.service-mobile-meta span { color: var(--brand-purple-soft); }
@media (max-width: 900px) {
  .service-mobile-meta { display: block; }
}

/* =================================================================
   CASES — new card structure (cover top, content bottom, button)
   ================================================================= */

.cases-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .cases-grid-v2 { grid-template-columns: 1fr; gap: 16px; }
}

.case-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #060507 0%, #0b0810 100%);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.6s var(--ease-out-quart);
  display: flex;
  flex-direction: column;
  min-height: 540px;
  isolation: isolate;
}

.case-card:hover {
  border-color: rgba(168, 146, 229, 0.34);
  transform: translateY(-3px);
  box-shadow: 0 30px 80px -30px rgba(131, 104, 207, 0.5);
}

.case-photo {
  position: relative;
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
}
.case-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* unified brand photo style: heavy grayscale + purple cool tint via filter */
  filter:
    grayscale(0.78)
    contrast(1.18)
    brightness(0.82)
    saturate(0.85);
  transition: transform 1.2s var(--ease-out-quart), filter 0.6s var(--ease-out-quart);
}
.case-card:hover .case-photo img {
  transform: scale(1.05);
  filter:
    grayscale(0.55)
    contrast(1.18)
    brightness(0.92)
    saturate(1.0);
}

/* Duotone purple wash on top of every cover */
.case-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(131, 104, 207, 0.18) 0%,
      rgba(0,0,0,0.05) 40%,
      rgba(0,0,0,0.55) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.case-photo-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(131, 104, 207, 0.22) 0%, transparent 55%),
    linear-gradient(180deg, transparent 50%, rgba(6, 5, 7, 1) 100%);
}

.case-body {
  position: relative;
  z-index: 2;
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.case-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.case-idx {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.case-tag-chip {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-purple-soft);
  padding: 5px 11px;
  border: 1px solid rgba(168, 146, 229, 0.28);
  border-radius: 999px;
  background: rgba(168, 146, 229, 0.05);
  white-space: nowrap;
}

.case-niche {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 500;
}

.case-name {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1;
  margin-top: -2px;
}

.case-result {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 520px;
}

.case-foot {
  margin-top: auto;
  padding-top: 14px;
}
.case-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-out-quart);
  cursor: pointer;
}
.case-more:hover {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  box-shadow: 0 12px 40px -10px rgba(131, 104, 207, 0.6);
}
.case-more .btn-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out-quart);
}
.case-more:hover .btn-arrow { transform: translateX(4px); }

/* =================================================================
   CASE DASHBOARD MODAL
   ================================================================= */

.dash-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-quart);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 24px;
  overflow-y: auto;
}
.dash-modal-backdrop.open { opacity: 1; pointer-events: auto; }

.dash-modal {
  position: relative;
  max-width: 1180px;
  width: 100%;
  background: linear-gradient(180deg, #050407 0%, #0a0710 100%);
  border: 1px solid rgba(168, 146, 229, 0.16);
  border-radius: 22px;
  padding: 44px;
  transform: translateY(40px);
  transition: transform 0.5s var(--ease-out-quart);
  box-shadow:
    0 60px 120px -40px rgba(131, 104, 207, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.dash-modal-backdrop.open .dash-modal { transform: translateY(0); }

@media (max-width: 720px) {
  .dash-modal-backdrop { padding: 30px 14px; }
  .dash-modal { padding: 28px 22px; border-radius: 18px; }
}

.dash-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}
.dash-modal-title {
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 14px;
  text-wrap: balance;
}
.dash-client { color: #fff; }
.dash-niche { color: var(--text-secondary); font-weight: 500; }

.dash-section {
  margin-bottom: 38px;
}
.dash-section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-section-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--brand-purple-soft);
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) {
  .dash-metrics { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  .dash-metrics { grid-template-columns: 1fr; }
}

.dash-metric {
  padding: 22px 22px 24px;
  position: relative;
  overflow: hidden;
}
.dash-metric::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 110%, rgba(131, 104, 207, 0.10) 0%, transparent 65%);
  pointer-events: none;
}
.dash-metric-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.dash-metric-value {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.dash-sub {
  display: flex;
  gap: 28px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.dash-sub b { color: #fff; font-weight: 600; }

/* Breakdown — horizontal bar chart */
.dash-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-bar-row {
  display: grid;
  grid-template-columns: 160px 1fr 80px;
  gap: 18px;
  align-items: center;
}
@media (max-width: 600px) {
  .dash-bar-row { grid-template-columns: 100px 1fr 70px; gap: 12px; }
}
.dash-bar-label {
  font-size: 13px;
  color: var(--text-secondary);
}
.dash-bar-wrap {
  height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.dash-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-purple-deep) 0%, var(--brand-purple) 60%, var(--brand-purple-soft) 100%);
  box-shadow: 0 0 30px rgba(131, 104, 207, 0.4);
  transition: width 1s var(--ease-out-quart);
}
.dash-bar-value {
  font-size: 14px;
  color: #fff;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Screens grid */
.dash-screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dash-screens > .dash-screen:first-child {
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .dash-screens { grid-template-columns: 1fr; }
  .dash-screens > .dash-screen:first-child { grid-column: 1; }
}
.dash-screen {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #050507;
}
.dash-screen img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.95);
}
.dash-screen figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 6px 12px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
}

.dash-note {
  margin-top: 8px;
  padding: 18px 22px;
  background: rgba(168, 146, 229, 0.06);
  border: 1px solid rgba(168, 146, 229, 0.18);
  border-radius: 14px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
.dash-note a {
  color: var(--brand-purple-soft);
  border-bottom: 1px solid currentColor;
}
/* -- legacy .cases-grid + old modal styles removed; superseded by .cases-grid-v2 above -- */

.modal-close {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  transition: all 0.3s;
  background: transparent;
  flex-shrink: 0;
  cursor: pointer;
}
.modal-close:hover {
  border-color: var(--brand-purple-soft);
  background: rgba(168, 146, 229, 0.06);
}

/* =================================================================
   TEAM
   ================================================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 1280px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .team-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin: 0 -20px;
    padding: 0 20px;
    scrollbar-width: none;
  }
  .team-grid::-webkit-scrollbar { display: none; }
  .team-grid > * {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}

.team-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #060606;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.6s var(--ease-out-quart);
}

.team-card:hover {
  border-color: rgba(168, 146, 229, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 30px 80px -30px rgba(131, 104, 207, 0.45);
}

.team-photo {
  position: absolute; inset: 0;
  overflow: hidden;
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  filter:
    grayscale(0.85)
    contrast(1.15)
    brightness(0.86)
    saturate(0.6);
  transition: transform 1.4s var(--ease-out-quart), filter 0.8s var(--ease-out-quart);
}
.team-card:hover .team-photo img {
  transform: scale(1.06);
  filter:
    grayscale(0.55)
    contrast(1.18)
    brightness(0.96)
    saturate(0.85);
}

/* Brand-color purple wash on top of every portrait */
.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(131, 104, 207, 0.20) 0%,
      rgba(60, 40, 110, 0.05) 50%,
      rgba(0, 0, 0, 0.55) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.team-photo-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.team-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(0,0,0,0.95) 100%);
  z-index: 1;
  pointer-events: none;
}

.team-glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  width: 80%;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(131, 104, 207, 0.4) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-quart);
}
.team-card:hover .team-glow { opacity: 1; }

.team-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 22px;
  z-index: 2;
}
.team-name {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 8px;
}
.team-role {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-purple-soft);
}

/* =================================================================
   PROCESS
   ================================================================= */

.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .process-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin: 0 -20px;
    padding: 0 20px;
    scrollbar-width: none;
  }
  .process-track::-webkit-scrollbar { display: none; }
  .process-track > * {
    flex: 0 0 60%;
    scroll-snap-align: start;
  }
}
@media (max-width: 700px) {
  .process-track > * { flex: 0 0 80%; }
}

.process-card {
  padding: 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.process-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--brand-purple-soft);
  font-variant-numeric: tabular-nums;
}

.process-title {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-transform: uppercase;
}

.process-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: auto;
}

/* =================================================================
   CTA BLOCK
   ================================================================= */

.cta-block {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130vmin;
  height: 130vmin;
  background: var(--glow-hero);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cta-h2 {
  font-size: clamp(48px, 7vw, 124px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-bottom: 32px;
  color: #000;
  text-wrap: balance;
}

.cta-sub {
  font-size: clamp(15px, 1.2vw, 19px);
  color: rgba(0,0,0,0.78);
  line-height: 1.5;
  max-width: 540px;
  margin: 0 auto 56px;
  text-wrap: pretty;
  font-weight: 500;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
}

.cta-input {
  width: 100%;
  padding: 22px 24px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s;
}
.cta-input::placeholder { color: rgba(255,255,255,0.4); }
.cta-input:focus {
  border-color: var(--brand-purple-soft);
  box-shadow: 0 0 0 4px rgba(168, 146, 229, 0.12);
}
.cta-input.err {
  border-color: #FF6B6B;
}

.cta-submit {
  width: 100%;
  padding: 26px;
  font-size: 17px;
  font-weight: 600;
  background: var(--brand-purple);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-quart);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow:
    0 0 0 1px rgba(168, 146, 229, 0.4),
    0 20px 70px -10px rgba(131, 104, 207, 0.7),
    0 0 100px rgba(131, 104, 207, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
}
.cta-submit:hover {
  background: var(--brand-purple-soft);
  transform: translateY(-2px);
}

.cta-note {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  letter-spacing: 0.04em;
}

.cta-err-msg {
  font-size: 12px;
  color: #FF6B6B;
  margin-top: -8px;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

/* =================================================================
   FAQ
   ================================================================= */

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.faq-head {
  width: 100%;
  padding: 32px 0;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
  text-align: left;
  transition: color 0.3s;
}

.faq-q {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.faq-num {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.faq-toggle {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.6);
  transition: transform 0.4s var(--ease-out-quart), background 0.3s;
}
.faq-toggle::before { width: 14px; height: 1px; }
.faq-toggle::after { width: 1px; height: 14px; }

.faq-item.open .faq-toggle::before,
.faq-item.open .faq-toggle::after { background: var(--brand-purple-soft); }
.faq-item.open .faq-toggle::after { transform: rotate(90deg); }

.faq-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out-quart);
}
.faq-detail-inner { overflow: hidden; }
.faq-item.open .faq-detail { grid-template-rows: 1fr; }

.faq-a {
  padding: 0 0 36px 84px;
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 720px;
}
@media (max-width: 700px) {
  .faq-head { grid-template-columns: 28px 1fr auto; gap: 12px; }
  .faq-a { padding-left: 40px; }
}

/* =================================================================
   FOOTER
   ================================================================= */

.footer {
  position: relative;
  padding: 120px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vmax;
  height: 60vmax;
  background: var(--glow-section);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.footer-wordmark {
  position: relative;
  font-size: clamp(80px, 16vw, 280px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.8;
  margin-bottom: 80px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.15) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
  z-index: 1;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 24px;
  font-weight: 500;
}

.footer-col p, .footer-col a {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  display: block;
  transition: color 0.3s;
}

.footer-col a:hover { color: #fff; }

.footer-contact {
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.02em;
  color: #fff !important;
  font-weight: 500;
  margin-top: 4px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  gap: 20px;
  flex-wrap: wrap;
}

.scroll-top {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  transition: all 0.3s;
}
.scroll-top:hover {
  border-color: var(--brand-purple-soft);
  background: rgba(168, 146, 229, 0.06);
  transform: translateY(-2px);
}

/* =================================================================
   AMBIENT FX — Smoke, Sparks, ScanLines, GridFloor, Beam, MouseHalo
   ================================================================= */

.fx-smoke {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.fx-smoke-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  background: radial-gradient(circle, rgba(168, 146, 229, 0.55) 0%, rgba(131, 104, 207, 0.18) 45%, transparent 75%);
  transform: translate(-50%, -50%) scale(var(--s, 1));
  animation: fx-smoke-drift var(--dur, 30s) ease-in-out infinite alternate;
  will-change: transform;
}
.fx-smoke[data-hue="cool"] .fx-smoke-blob {
  background: radial-gradient(circle, rgba(110, 143, 207, 0.55) 0%, rgba(80, 95, 200, 0.18) 45%, transparent 75%);
}
.fx-smoke[data-hue="magenta"] .fx-smoke-blob {
  background: radial-gradient(circle, rgba(199, 167, 232, 0.55) 0%, rgba(168, 100, 200, 0.18) 45%, transparent 75%);
}
.fx-smoke[data-hue="deep"] .fx-smoke-blob {
  background: radial-gradient(circle, rgba(90, 71, 168, 0.55) 0%, rgba(50, 35, 110, 0.20) 45%, transparent 75%);
  filter: blur(90px);
}

@keyframes fx-smoke-drift {
  from { transform: translate(-50%, -50%) translate(0, 0) scale(var(--s, 1)); }
  to   { transform: translate(-50%, -50%) translate(var(--dx, 0), var(--dy, 0)) scale(calc(var(--s, 1) * 1.08)); }
}

/* ---------- Sparks ---------- */
.fx-sparks {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.fx-spark {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 14px rgba(220, 200, 245, 0.7),
    0 0 26px rgba(168, 146, 229, 0.45);
  animation:
    fx-spark-drift var(--dur, 14s) ease-in-out infinite alternate,
    fx-spark-twinkle calc(var(--dur, 14s) * 0.27) ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes fx-spark-drift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(calc(var(--drift, 60px) * 0.6), calc(var(--drift, 60px) * -0.7)); }
  100% { transform: translate(calc(var(--drift, 60px) * -0.4), calc(var(--drift, 60px) * 0.5)); }
}
@keyframes fx-spark-twinkle {
  0%, 100% { opacity: var(--max-opacity, 0.6); }
  50%      { opacity: calc(var(--max-opacity, 0.6) * 0.25); }
}

/* ---------- Scan lines ---------- */
.fx-scan {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 2px,
      rgba(255, 255, 255, 0.018) 3px,
      transparent 4px
    );
  mix-blend-mode: overlay;
  opacity: 0.6;
}

/* ---------- Perspective grid floor (photolab) ---------- */
.fx-gridfloor {
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 200%;
  height: 60%;
  transform: translateX(-50%) perspective(800px) rotateX(70deg);
  transform-origin: 50% 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
  mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000 0%, transparent 75%);
}
.fx-gridfloor-inner {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(168, 146, 229, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 146, 229, 0.35) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: fx-grid-move 18s linear infinite;
}
@keyframes fx-grid-move {
  from { background-position: 0 0; }
  to   { background-position: 0 80px; }
}

/* ---------- Beam (rotating shaft) ---------- */
.fx-beam {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 120%;
  height: 140%;
  transform: translateX(-50%) rotate(var(--beam-angle, 28deg));
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(168, 146, 229, 0.0) 30%,
    rgba(199, 167, 232, 0.08) 48%,
    rgba(220, 200, 245, 0.12) 50%,
    rgba(199, 167, 232, 0.08) 52%,
    rgba(168, 146, 229, 0.0) 70%,
    transparent 100%
  );
  filter: blur(2px);
  mix-blend-mode: screen;
  animation: fx-beam-sweep linear infinite;
  animation-duration: var(--beam-dur, 16s);
}
@keyframes fx-beam-sweep {
  0%   { opacity: 0; transform: translate(-80%, 0) rotate(var(--beam-angle, 28deg)); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translate(20%, 0) rotate(var(--beam-angle, 28deg)); }
}

/* ---------- Mouse halo (per-section soft cursor light) ---------- */
.fx-mousehalo {
  position: absolute;
  left: 0; top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 167, 232, 0.85) 0%, rgba(131, 104, 207, 0.35) 35%, transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: screen;
  will-change: transform;
}

@media (max-width: 720px) {
  /* drop heavy fx on mobile */
  .fx-mousehalo, .fx-beam { display: none; }
  .fx-smoke-blob { filter: blur(40px); }
  .fx-gridfloor { opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-smoke-blob, .fx-spark, .fx-gridfloor-inner, .fx-beam { animation: none !important; }
}


.production {
  position: relative;
  padding: 140px 0 120px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .production { padding: 90px 0 80px; }
}

.production-head .section-head { margin-bottom: 60px; }

.production-marquee {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 56px 0;
  z-index: 2;
  /* fade edges */
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.marquee-row {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee-l 60s linear infinite;
  will-change: transform;
}

.marquee-row-b .marquee-track {
  animation: marquee-r 75s linear infinite;
}

@keyframes marquee-l {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-r {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

.prod-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(220px, 22vw, 320px);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.6s var(--ease-out-quart);
}

.prod-card:hover {
  transform: scale(1.025);
}

.prod-card-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.prod-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease-out-quart), filter 0.6s ease;
  filter:
    grayscale(0.75)
    contrast(1.15)
    brightness(0.84)
    saturate(0.75);
}

.prod-card:hover .prod-card-img img {
  transform: scale(1.08);
  filter:
    grayscale(0.5)
    contrast(1.18)
    brightness(0.95)
    saturate(0.95);
}

.prod-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(131, 104, 207, 0.16) 0%, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.prod-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 55%, rgba(0,0,0,0.75) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(131, 104, 207, 0.22) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.prod-card-tag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.production-foot {
  margin-top: 60px;
}

.production-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 800px) {
  .production-stats { grid-template-columns: 1fr; gap: 24px; }
}

.prod-stat {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.prod-stat-v {
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.prod-stat-l {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* =================================================================
   WORD-BY-WORD REVEAL — used on H2s where we want extra punch
   ================================================================= */

.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) skewY(2deg);
  filter: blur(8px);
  transition:
    opacity 0.9s var(--ease-out-quart),
    transform 0.9s var(--ease-out-quart),
    filter 0.9s var(--ease-out-quart);
}
[data-stagger].in .word-reveal,
.fade-in.in .word-reveal,
.in .word-reveal {
  opacity: 1;
  transform: translateY(0) skewY(0);
  filter: blur(0);
}
.in .word-reveal:nth-child(2) { transition-delay: 0.10s; }
.in .word-reveal:nth-child(3) { transition-delay: 0.20s; }
.in .word-reveal:nth-child(4) { transition-delay: 0.30s; }
.in .word-reveal:nth-child(5) { transition-delay: 0.40s; }

.word-reveal.accent-soft {
  color: var(--brand-purple-soft);
  font-style: italic;
  font-weight: 600;
}

/* =================================================================
   MOBILE POLISH — 390-768 px
   ================================================================= */

@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .section-pad { padding: 72px 0; }
  .section-pad-lg { padding: 84px 0; }

  .section-head { margin-bottom: 48px; }
  .h2 { font-size: clamp(34px, 9vw, 52px); line-height: 0.98; }

  /* NAV */
  .nav { padding: 12px 0; }
  .nav.scrolled { padding: 8px 0; }
  .nav-inner { gap: 12px; }
  .nav-logo { height: 22px; }
  .nav .btn-ghost { padding: 9px 14px !important; font-size: 12px !important; }
  .nav .btn-ghost .btn-arrow { display: none; }

  /* HERO */
  .hero { padding: 80px 18px 60px; }
  .hero-orb { width: min(140vmin, 700px); height: min(140vmin, 700px); }
  .hero-mark { width: clamp(72px, 18vw, 110px); margin-bottom: 20px; }
  .hero-eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
    padding: 0 12px;
    line-height: 1.4;
  }
  .hero-h1 { margin-bottom: 18px; font-size: clamp(36px, 11vw, 60px) !important; }
  .hero-h1 br { display: none; }
  .hero-sub { font-size: 14px; margin-bottom: 22px; padding: 0 8px; }
  .hero-ctas { gap: 10px; flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
  .hero-ctas .btn { width: 100%; justify-content: center; padding: 16px 22px; }
  .hero-scroll { bottom: 12px; font-size: 9px; }
  .hero-scroll-chevron { height: 18px; }

  /* NUMBERS */
  .numbers { padding: 64px 0; }
  .numbers-grid { gap: 36px; }
  .num-value { font-size: clamp(42px, 11vw, 56px); }
  .num-label { font-size: 12px; }

  /* PRINCIPLES */
  .principles-grid { gap: 36px; }
  .principle { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .principle-num { font-size: 64px; line-height: 1; }
  .principle-title { font-size: 26px; line-height: 1.12; margin-bottom: 12px; }
  .principle-text { font-size: 15px; }

  /* SERVICES */
  .service-row { padding: 24px 0; }
  .service-head {
    grid-template-columns: 32px 1fr 32px;
    gap: 14px;
  }
  .service-tag, .service-price { display: none; }
  .service-title { font-size: 18px; line-height: 1.15; min-width: 0; overflow-wrap: break-word; }
  .service-idx { font-size: 10px; }
  .service-toggle { width: 32px; height: 32px; }
  .service-toggle::before { width: 10px; }
  .service-toggle::after { height: 10px; }
  .service-mobile-meta { font-size: 10.5px; padding-left: 46px; margin-top: 10px; }
  .service-body { padding: 20px 0 4px; padding-left: 46px; }
  .service-checklist li { font-size: 14px; }
  .service-desc { font-size: 14px; }

  /* CASES */
  .cases-grid-v2 { gap: 14px; }
  .case-card { min-height: auto; }
  .case-photo { height: 200px; }
  .case-body { padding: 22px; gap: 12px; }
  .case-name { font-size: 26px !important; }
  .case-result { font-size: 14px; }
  .case-more { padding: 11px 18px; font-size: 12.5px; }
  .case-tag-chip { font-size: 9.5px; padding: 4px 9px; }
  .case-niche { font-size: 11.5px; }
  .dash-modal-head { flex-wrap: wrap; }
  .dash-modal-title { font-size: 22px !important; }
  .dash-section { margin-bottom: 28px; }
  .dash-section-label { margin-bottom: 12px; }
  .dash-metric { padding: 16px 18px; }
  .dash-metric-value { font-size: 22px !important; }

  /* PRODUCTION */
  .production { padding: 70px 0 56px; }
  .production-head .section-head { margin-bottom: 36px !important; }
  .production-marquee { gap: 12px; margin: 36px 0; }
  .marquee-track { gap: 12px; }
  .prod-card { width: 64vw; }
  .prod-card-tag { font-size: 9px; left: 12px; bottom: 10px; }
  .production-stats { padding-top: 28px; gap: 18px; }
  .prod-stat { gap: 14px; }
  .prod-stat-v { font-size: 36px; }
  .prod-stat-l { font-size: 12px; }

  /* TEAM */
  .team-name { font-size: 20px; }
  .team-role { font-size: 10px; }
  .team-info { padding: 18px 16px; }

  /* PROCESS */
  .process-track > * { flex: 0 0 74% !important; }
  .process-card { padding: 24px; min-height: 240px; }
  .process-num { font-size: 12px; }
  .process-title { font-size: 16px; }
  .process-body { font-size: 13px; }

  /* CTA */
  .cta-block { min-height: auto; padding: 90px 0; }
  .cta-glow { width: 180vmin; height: 180vmin; }
  .cta-h2 { font-size: clamp(36px, 11vw, 52px); margin-bottom: 22px; }
  .cta-sub { font-size: 14px; margin-bottom: 32px; padding: 0 8px; }
  .cta-input { padding: 18px 18px; font-size: 15px; }
  .cta-submit { padding: 20px; font-size: 15px; }
  .cta-note { font-size: 11px; padding: 0 8px; }

  /* FAQ */
  .faq-head { padding: 22px 0; grid-template-columns: 28px 1fr 28px; gap: 12px; }
  .faq-q { font-size: 16px; line-height: 1.25; }
  .faq-num { font-size: 10px; }
  .faq-toggle { width: 28px; height: 28px; }
  .faq-toggle::before { width: 11px; }
  .faq-toggle::after { height: 11px; }
  .faq-a { padding: 0 0 26px 40px; font-size: 14px; }

  /* FOOTER */
  .footer { padding: 70px 0 32px; }
  .footer-wordmark { font-size: 24vw; margin-bottom: 56px; line-height: 0.78; }
  .footer-grid { gap: 32px; margin-bottom: 56px; }
  .footer-col h4 { margin-bottom: 16px; }
  .footer-col p, .footer-col a { font-size: 14px; }
  .footer-contact { font-size: 18px !important; }
  .footer-bottom { font-size: 10.5px; padding-top: 24px; }
  .footer-bottom > div:last-child { gap: 14px; }
  .scroll-top { width: 38px; height: 38px; }

  /* ambient fx — soften on mobile */
  .fx-smoke-blob { filter: blur(35px) !important; opacity: 0.45 !important; }
  .fx-sparks .fx-spark { opacity: 0.35 !important; }
}

@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .nav { padding: 10px 0; }
  .nav-logo { height: 20px; }
  .nav .btn-ghost { padding: 8px 12px !important; font-size: 11.5px !important; }
  .hero { padding: 70px 14px 56px; }
  .h2 { font-size: clamp(30px, 9vw, 44px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s var(--ease-out-quart),
    transform 1s var(--ease-out-quart);
}
.fade-in.in { opacity: 1; transform: translateY(0); }

[data-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out-quart), transform 0.9s var(--ease-out-quart);
}
[data-stagger].in > * {
  opacity: 1; transform: translateY(0);
}
[data-stagger].in > *:nth-child(1) { transition-delay: 0.00s; }
[data-stagger].in > *:nth-child(2) { transition-delay: 0.08s; }
[data-stagger].in > *:nth-child(3) { transition-delay: 0.16s; }
[data-stagger].in > *:nth-child(4) { transition-delay: 0.24s; }
[data-stagger].in > *:nth-child(5) { transition-delay: 0.32s; }
[data-stagger].in > *:nth-child(6) { transition-delay: 0.40s; }
[data-stagger].in > *:nth-child(7) { transition-delay: 0.48s; }
[data-stagger].in > *:nth-child(8) { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
}
