/* ═══════════════════════════════════════════
   SYSTEMSTRIDE — Core Design System
   Lead Generation · Cinematic Hero · Precision Motion
   ═══════════════════════════════════════════ */

:root {
  --bg-base: #FFFFFF;
  --surface-glass: #F8FAFC;
  --color-primary: #2563EB;
  --color-accent: #3B82F6;
  --color-bridge: #818CF8;
  --border-glass: #E2E8F0;
  --text-main: #0F172A;
  --text-muted: #64748B;

  /* Motion Tokens — LOCKED */
  --ease-signature: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth:    cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-float:     cubic-bezier(0.25, 0.8, 0.25, 1);

  --text-xs:   clamp(0.75rem,  1vw,   0.875rem);
  --text-sm:   clamp(0.875rem, 1.2vw, 1rem);
  --text-base: clamp(1rem,     1.5vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 2vw,   1.5rem);
  --text-xl:   clamp(1.5rem,   3vw,   2.25rem);
  --text-2xl:  clamp(2rem,     4vw,   3.5rem);
  --text-3xl:  clamp(3rem,     6vw,   5.5rem);
  --text-hero: clamp(4.5rem,   10vw,  10rem);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: initial;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text-main);
  background: var(--bg-base);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; font-family: inherit; cursor: none; }
* { cursor: none; }

/* ── Custom Cursor ── */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--text-main);
  pointer-events: none;
  /* Exception: cursor uses raw cubic-bezier as noted in preferences */
  transition:
    width .35s cubic-bezier(.22,1,.36,1),
    height .35s cubic-bezier(.22,1,.36,1),
    background .2s var(--ease-smooth);
  z-index: 9999;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}

/* ── Noise Overlay ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
}

/* ── Intro Scan Line ── */
.intro-line {
  position: fixed;
  top: 50%; left: 0;
  height: 1px; width: 0;
  background: var(--color-primary);
  z-index: 9997;
  pointer-events: none;
  opacity: 0;
}

/* ════════════════════════════════════════
   NAVBAR
   Fix: GSAP handles y only via gsap.set.
   CSS only does the horizontal centering.
   ════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  /* translateX(-50%) stays in CSS, GSAP adds yPercent via separate transform */
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  z-index: 1000;
  border: 1px solid transparent;
  transition:
    background 0.4s var(--ease-smooth),
    border-color 0.4s var(--ease-smooth),
    box-shadow 0.4s var(--ease-smooth);
  /* start invisible — JS does the entrance */
  opacity: 0;
  /* clip it offscreen via margin-top, not transform, so translateX(-50%) is preserved */
  margin-top: -120px;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border-glass);
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

/* On dark hero, flip the logo text white */
.navbar.hero-dark .navbar__logo svg text { fill: #fff; }
.navbar.hero-dark .navbar__links a { color: rgba(255,255,255,0.75); }
.navbar.hero-dark .navbar__links a:hover { color: #fff; }

.navbar__logo svg { height: 28px; width: auto; display: block; }
.navbar__logo svg text {
  fill: var(--text-main);
  transition: fill 0.4s var(--ease-smooth);
}

.navbar__links { display: flex; gap: 1.75rem; list-style: none; }
.navbar__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s var(--ease-smooth), transform 0.3s var(--ease-float);
  display: inline-block;
}
.navbar__links a:hover { color: var(--text-main); transform: translateY(-1px); }

.navbar__cta {
  padding: 0.6rem 1.4rem;
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: 100px;
  transition: transform 0.3s var(--ease-signature), box-shadow 0.3s var(--ease-smooth);
  white-space: nowrap;
}
.navbar__cta:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}

/* ════════════════════════════════════════
   HERO — Dark cinematic, image background
   ════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(7rem, 12vh, 10rem) clamp(2.5rem, 5.5vw, 7rem);
  padding-bottom: clamp(6rem, 12vh, 10rem);
  overflow: hidden;
  background: var(--text-main);
}

.hero__overlay-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(8, 12, 28, 0.72), transparent);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.15) 35%,
    transparent 65%
  );
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.15) 35%,
    transparent 65%
  );
}

.hero__meta {
  position: absolute;
  top: clamp(6.5rem, 11vh, 8.5rem);
  right: clamp(2.5rem, 5.5vw, 7rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  z-index: 5;
  opacity: 0;
  transform: translateX(24px);
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse-dot 2.4s var(--ease-float) infinite;
}

/* Thin diagonal separator between meta items */
.hero__meta-sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  align-self: flex-end;
  margin-right: 0.15rem;
  transform: rotate(20deg);
}

/* Background image container — GSAP scales the img inside */
.hero__bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 60%;
  transform-origin: center center;
  /* GSAP will scrub scale from 1 → 1.18 on scroll */
}

/* Main dark overlay — left heavy, fades right */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Left-heavy dark for legibility of content block */
    linear-gradient(
      105deg,
      rgba(8, 12, 28, 0.92) 0%,
      rgba(8, 12, 28, 0.70) 42%,
      rgba(8, 12, 28, 0.22) 75%,
      rgba(8, 12, 28, 0.08) 100%
    );
}

/* Bottom vignette — pulls hero into next section */
.hero__overlay-vignette {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  z-index: 2;
  background: linear-gradient(to bottom, transparent, rgba(10, 15, 30, 0.6));
}

/* Ripple circles — adapted for dark background, subtle blue-white */
.bg-ripple {
  position: absolute;
  bottom: 0; right: 0; /* anchor to bottom-right corner now for visual interest */
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0; /* GSAP reveals after intro */
}

.ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(37,99,235,0.1),
    rgba(129,140,248,0.04)
  );
  border: 1px solid rgba(129,140,248,0.12);
  animation: ripple-idle 16s var(--ease-float) infinite;
}

.ripple-circle:nth-child(2) { animation-delay: -3.2s; }
.ripple-circle:nth-child(3) { animation-delay: -6.4s; }
.ripple-circle:nth-child(4) { animation-delay: -9.6s; }
.ripple-circle:nth-child(5) { animation-delay: -12.8s; }

/* Bottom-right anchor positions */
.ripple-small   { width: 200px;  height: 200px;  right: -100px; bottom: -100px; }
.ripple-medium  { width: 400px;  height: 400px;  right: -200px; bottom: -200px; }
.ripple-large   { width: 600px;  height: 600px;  right: -300px; bottom: -300px; }
.ripple-xlarge  { width: 800px;  height: 800px;  right: -400px; bottom: -400px; }
.ripple-xxlarge { width: 1000px; height: 1000px; right: -500px; bottom: -500px; }

.ripple-shade1 { opacity: 0.7; }
.ripple-shade2 { opacity: 0.55; }
.ripple-shade3 { opacity: 0.4; }
.ripple-shade4 { opacity: 0.25; }
.ripple-shade5 { opacity: 0.15; }

@keyframes ripple-idle {
  0%   { transform: scale(0.85); }
  50%  { transform: scale(1.18); }
  100% { transform: scale(0.85); }
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 4;
  max-width: 800px;
  padding-left: 2.5rem;
}

.hero__content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(37, 99, 235, 0.6) 20%,
    rgba(59, 130, 246, 0.9) 50%,
    rgba(129, 140, 248, 0.4) 80%,
    transparent 100%
  );
  border-radius: 2px;
}

.hero__divider-rule {
  width: clamp(48px, 6vw, 96px);
  height: 1.5px;
  background: linear-gradient(
    to right,
    rgba(37, 99, 235, 0.7),
    rgba(59, 130, 246, 0.3),
    transparent
  );
  margin: 1.75rem 0 1.75rem 0;
  border-radius: 2px;
}

/* Eyebrow pill */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  background: rgba(37,99,235,0.2);
  border: 1px solid rgba(37,99,235,0.4);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero__eyebrow-pulse {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s infinite;
}

/* Headline */
.hero__headline { margin-bottom: 0.15em; }

.hero__line1 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: var(--text-3xl);
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.92);
  line-height: 1.08;
  display: block;
  opacity: 0;
  transform: translateY(70px);
}

.hero__line2 {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-hero);
  color: var(--color-accent);
  line-height: 0.95;
  letter-spacing: -0.02em;
  display: block;
  opacity: 0;
  transform: translateY(55px);
}

/* Subhead */
.hero__subhead {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.58);
  margin-top: 0;
  max-width: 52ch;
  line-height: 1.68;
  opacity: 0;
  transform: translateY(35px);
}

/* CTA row */
.hero__cta-wrap {
  margin-top: 2.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
}

/* Proof chips */
.hero__chips {
  position: absolute;
  bottom: clamp(3rem, 6vh, 5rem);
  right: clamp(2rem, 5vw, 6rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 4;
  opacity: 0;
  transform: translateX(30px);
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 4;
  opacity: 0;
}

.hero__scroll-line {
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scroll-pulse 2s var(--ease-float) infinite;
}

.hero__scroll-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.65); opacity: 1; }
}



/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.2rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: 100px;
  transition: transform 0.35s var(--ease-signature), box-shadow 0.35s var(--ease-smooth);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(37,99,235,0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.2rem;
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: 100px;
  border: 1.5px solid var(--border-glass);
  transition: transform 0.35s var(--ease-signature), border-color 0.35s var(--ease-smooth);
}
.btn-ghost:hover { transform: scale(1.03); border-color: var(--color-primary); }

/* ── Ghost light variant (for dark hero) ── */
.btn-ghost--light {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  transition: transform 0.35s var(--ease-signature), border-color 0.35s var(--ease-smooth), background 0.35s var(--ease-smooth);
}
.btn-ghost--light:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  background: rgba(37, 99, 235, 0.15);
  transform: scale(1.03);
}

/* ════════════════════════════════════════
   SECTIONS — Common
   ════════════════════════════════════════ */
.section {
  padding: clamp(5rem, 12vh, 10rem) clamp(2rem, 5vw, 6rem);
  position: relative;
}

.section__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  display: block;
}

.reveal-label { opacity: 0; transform: translateY(20px); }
.reveal-up    { opacity: 0; transform: translateY(40px); }

.section__title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.15;
}

.clip-reveal { overflow: hidden; display: inline-block; }
.clip-reveal span { display: inline-block; transform: translateY(110%); }
.clip-reveal--accent span { color: var(--color-primary); }

/* ════════════════════════════════════════
   SERVICES GRID
   ════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 2rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-signature),
    background 0.4s var(--ease-smooth),
    box-shadow 0.4s var(--ease-smooth);
  opacity: 0;
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--color-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease-signature);
  border-radius: 0 2px 2px 0;
}

.service-card:hover {
  transform: scale(1.02);
  background: #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}

.service-card:hover::before { transform: scaleY(1); }

.service-card__number {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.service-card__title {
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 3.5rem clamp(2rem, 5vw, 6rem);
  gap: 2rem;
  opacity: 0;
  transform: translateY(40px);
}

.stat-item { text-align: center; }

.stat-item__number {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.stat-item__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ════════════════════════════════════════
   IMAGE BREAK
   ════════════════════════════════════════ */
.image-break { overflow: hidden; position: relative; }

.image-break__container {
  position: relative;
  height: clamp(55vh, 75vh, 85vh);
  overflow: hidden;
}

.image-break__img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.image-break__img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center;
  transform: translateY(-15%);
  will-change: transform;
}

.image-break__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: clamp(3rem, 6vw, 6rem);
}

.image-break__quote { color: #fff; max-width: 480px; }

.image-break__quote-mark {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(6rem, 10vw, 10rem);
  line-height: 0.7;
  color: var(--color-accent);
  opacity: 0.55;
  display: block;
  margin-bottom: 0.5rem;
}

.image-break__quote p {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
}

.image-break__quote em { color: var(--color-accent); }

/* ════════════════════════════════════════
   PHILOSOPHY
   ════════════════════════════════════════ */
.philosophy {
  background: var(--text-main);
  padding: clamp(6rem, 15vh, 12rem) clamp(2rem, 5vw, 6rem);
  position: relative;
  overflow: hidden;
}

.philosophy__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
}

.philosophy__neutral {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 50ch;
  margin-bottom: 3rem;
  overflow: hidden;
}

.philosophy__power {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: var(--text-3xl);
  color: #fff;
  line-height: 1.2;
  overflow: hidden;
}

.philosophy__power .accent {
  color: var(--color-primary);
  display: inline-block;
}

/* ════════════════════════════════════════
   MANIFESTO
   ════════════════════════════════════════ */
.manifesto-section {
  background: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: clamp(4rem, 10vw, 8rem) clamp(2rem, 5vw, 6rem);
  position: relative;
  overflow: hidden;
}

.manifesto-inner { max-width: 1100px; width: 100%; }

.manifesto-text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 8rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  display: block;
  margin-bottom: 0.3em;
}

.manifesto-text--sub {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 6rem);
  letter-spacing: -0.02em;
}

.m-word {
  display: inline-block;
  opacity: 0.08;
  margin-right: 0.25em;
}

.m-word--accent { color: var(--color-accent); }
.m-word--muted  { color: rgba(255,255,255,0.7); }

/* ════════════════════════════════════════
   PROCESS PANELS
   ════════════════════════════════════════ */
.process-panel {
  height: 100dvh;
  display: flex;
  align-items: center;
  padding: 0 clamp(2rem, 5vw, 6rem);
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
}

.process-panel__bg-number {
  position: absolute;
  right: 5%; top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 25vw;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
}

.process-panel__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.process-panel__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.process-panel__title {
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.process-panel__desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 45ch;
  line-height: 1.7;
}

.process-panel__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-panel__visual svg { width: 100%; max-width: 400px; height: auto; }

/* Terminal */
.terminal-block {
  background: var(--text-main);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  max-width: 360px;
  line-height: 1.8;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
}

.terminal-block__dots { display: flex; gap: 6px; margin-bottom: 1rem; }
.terminal-block__dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.terminal-block__dots span:nth-child(1) { background: #ff5f57; }
.terminal-block__dots span:nth-child(2) { background: #ffbd2e; }
.terminal-block__dots span:nth-child(3) { background: #28c840; }

#termCursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--color-primary);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

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

/* ════════════════════════════════════════
   HORIZONTAL SCROLL CATALOG
   ════════════════════════════════════════ */
.catalog-section { position: relative; overflow: hidden; }
.catalog__track  { display: flex; width: fit-content; }

.catalog__panel {
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  padding: 0 clamp(3rem, 6vw, 8rem);
  flex-shrink: 0;
}

.catalog__panel:nth-child(even) { background: var(--surface-glass); }
.catalog__panel-inner { max-width: 800px; }

.catalog__panel-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: 1rem;
}

.catalog__panel-title {
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.catalog__panel-quote {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.catalog__panel-body {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 55ch;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.catalog__panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--text-base);
  transition: gap 0.3s var(--ease-signature);
}
.catalog__panel-link:hover { gap: 1rem; }

.catalog__progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--color-primary);
  width: 0%;
  z-index: 10;
}

/* ════════════════════════════════════════
   GALLERY
   ════════════════════════════════════════ */
.gallery-section {
  padding: clamp(5rem, 10vh, 9rem) clamp(2rem, 5vw, 6rem);
  background: var(--bg-base);
}

.gallery-section__header { margin-bottom: clamp(2.5rem, 5vh, 4rem); }

.gallery-section__title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 1rem;
}

.gallery-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gallery-cell__col { display: flex; flex-direction: column; gap: 1rem; }
.gallery-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.gallery-cell {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--surface-glass);
  opacity: 0;
  transform: scale(0.94);
}

.gallery-cell--tall  { min-height: 580px; }
.gallery-cell__col .gallery-cell { flex: 1; min-height: 0; }
.gallery-cell--wide  { min-height: 360px; }

.gallery-cell__img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.gallery-cell__img-wrap img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  transform: translateY(-15%);
  will-change: transform;
  transition: filter 0.5s var(--ease-smooth);
}

.gallery-cell:hover .gallery-cell__img-wrap img { filter: brightness(0.88); }

.gallery-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.55) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}

.gallery-cell__label {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-signature), transform 0.4s var(--ease-signature);
}

.gallery-cell:hover .gallery-cell__label { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════
   CTA SECTION
   ════════════════════════════════════════ */
.cta-section {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 4rem clamp(2rem, 5vw, 6rem);
}

.cta-section__glow {
  position: absolute;
  width: 80vw; height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-bridge), transparent 70%);
  opacity: 0.08;
  pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.cta-section__headline { position: relative; z-index: 2; }
.cta-section__line { display: block; overflow: hidden; }
.cta-section__line span { display: inline-block; transform: translateY(120%); }

.cta-section__line--sans {
  font-weight: 900;
  font-size: var(--text-3xl);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.cta-section__line--serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: var(--text-hero);
  color: var(--color-primary);
  line-height: 1;
}

.cta-section__sub {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 40ch;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
}

.cta-section__buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.footer {
  background: var(--text-main);
  border-radius: 3rem 3rem 0 0;
  padding: clamp(4rem, 8vh, 7rem) clamp(2rem, 5vw, 6rem) 2rem;
  color: #fff;
  opacity: 0;
  transform: translateY(60px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer__brand-name {
  font-weight: 800;
  font-size: var(--text-xl);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.footer__brand-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 30ch;
  line-height: 1.6;
}

.footer__col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer__col a {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
  transition: color 0.3s var(--ease-smooth), transform 0.3s var(--ease-float);
}
.footer__col a:hover { color: #fff; transform: translateX(4px); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer__status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.footer__copy { font-size: var(--text-xs); color: var(--text-muted); }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 768px) {
  .navbar__links { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .process-panel__content { grid-template-columns: 1fr; text-align: center; }
  .process-panel__visual { margin-top: 2rem; }
  .catalog__panel { width: 90vw; padding: 0 2rem; }
  .cta-section__buttons { flex-direction: column; align-items: center; }
  .gallery-bento { grid-template-columns: 1fr; }
  .gallery-duo   { grid-template-columns: 1fr; }
  .gallery-cell--tall { min-height: 380px; }
  .gallery-cell--wide { min-height: 260px; }
  .manifesto-text { font-size: clamp(2.5rem, 8vw, 4rem); }
  .image-break__container { height: 60vh; }
  .image-break__quote p { font-size: clamp(1.5rem, 5vw, 2.5rem); }
  .hero__chips { position: static; flex-direction: row; flex-wrap: wrap; margin-top: 2rem; }
  .hero__scroll-hint { display: none; }
  .hero__cta-wrap { flex-direction: column; }
  .hero__line2 { font-size: clamp(3.5rem, 12vw, 7rem); }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ripple-circle, .hero__scroll-line, .footer__status-dot, #termCursor { animation: none; }
}