/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-card: #141414;
  --text: #f0ece2;
  --text-muted: #777777;
  --accent: #ffffff;
  --accent-dim: rgba(255, 255, 255, 0.12);
  --accent-glow: rgba(255, 255, 255, 0.3);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

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

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

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

/* =============================================
   CUSTOM CURSOR
   ============================================= */
.cursor {
  position: fixed;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), top 0.3s var(--ease), left 0.3s var(--ease), background 0.3s var(--ease);
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), top 0.3s var(--ease), left 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cursor.cursor-hover {
  width: 48px;
  height: 48px;
  top: -24px;
  left: -24px;
  background: rgba(255, 255, 255, 0.1);
}

.cursor-follower.cursor-hover {
  width: 64px;
  height: 64px;
  top: -32px;
  left: -32px;
  border-color: var(--accent);
}

/* =============================================
   SCROLL PROGRESS
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 9998;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 5%;
  z-index: 1000;
  transition: transform 0.5s var(--ease), background 0.4s ease, padding 0.4s ease;
}

.nav-scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 5%;
}

.nav-hidden {
  transform: translateY(-100%);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--text);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--text-muted);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 5%;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-title .letter {
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* =============================================
   CONTRAST — PE vs LONG-TERM
   ============================================= */
.contrast {
  position: relative;
  height: 900vh;
  background: var(--bg);
}

.contrast-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#contrast-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.contrast-divider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 5%, rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0.08) 80%, transparent 95%);
  z-index: 1;
  opacity: 0;
}

.contrast-labels {
  position: absolute;
  top: 12%;
  left: 0;
  width: 100%;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 0 10%;
  pointer-events: none;
}

.contrast-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.contrast-text {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
  width: 90%;
  max-width: 750px;
  pointer-events: none;
}

.contrast-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  opacity: 0;
  transform: translateY(30px);
  letter-spacing: 0.01em;
}

.contrast-line.ct-bold {
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.contrast-line.ct-final {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* =============================================
   INNOVATION — SIGNATURE ANIMATION
   ============================================= */
.innovation {
  position: relative;
  height: 300vh;
}

.innovation-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

#innovation-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.innovation-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  background: linear-gradient(to left, rgba(10, 10, 10, 0.92) 20%, rgba(10, 10, 10, 0.6) 60%, rgba(10, 10, 10, 0) 100%);
}

.innovation-phase {
  position: absolute;
  max-width: 420px;
  opacity: 0;
  transform: translateY(30px);
}

.phase-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.innovation-phase h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
}

.innovation-phase p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* =============================================
   SERVICES — PARTICLE FLOW
   ============================================= */
.services {
  position: relative;
  height: 1200vh;
  background: var(--bg);
}

.services-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#services-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.services-cards {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.service-card {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  max-width: 420px;
  width: 35%;
  opacity: 0;
  pointer-events: auto;
  background: none;
  border: none;
  padding: 0;
}

.service-card[data-side="left"] {
  right: 8%;
  text-align: left;
}

.service-card[data-side="right"] {
  left: 8%;
  text-align: right;
}

.service-card h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  color: var(--text-muted);
}

/* =============================================
   APPROACH
   ============================================= */
.approach {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.approach-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.approach-deco {
  position: absolute;
  border-radius: 50%;
}

.approach-deco-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -150px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  opacity: 0.4;
}

.approach-deco-2 {
  width: 250px;
  height: 250px;
  bottom: 50px;
  left: -80px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  opacity: 0.3;
}

.approach-deco-3 {
  width: 2px;
  height: 200px;
  top: 20%;
  left: 50%;
  border-radius: 0;
  background: linear-gradient(to bottom, transparent, var(--accent-dim), transparent);
}

.approach-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.approach-item {
  max-width: 600px;
}

.approach-left {
  align-self: flex-start;
}

.approach-right {
  align-self: flex-end;
  text-align: right;
}

.approach-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
}

.approach-item h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.approach-item p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: 160px 0;
  text-align: center;
}

.contact-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.contact-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

.magnetic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  border: 1px solid var(--text-muted);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}

.magnetic-btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  box-shadow: 0 0 40px var(--accent-glow);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 0 0 40px;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-dim), transparent);
  margin-bottom: 40px;
  transform-origin: center;
}

.footer-content {
  display: flex;
  justify-content: center;
}

.footer-content span {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .innovation-content {
    width: 55%;
  }

  .service-card {
    width: 40%;
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor, .cursor-follower {
    display: none !important;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-title {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
    letter-spacing: 0.12em;
  }

  .contrast-labels {
    padding: 0 6%;
    top: 10%;
  }

  .contrast-text {
    bottom: 14%;
    max-width: 90%;
  }

  .contrast-line.ct-bold {
    font-size: clamp(1.3rem, 5vw, 2rem);
  }

  .contrast-line.ct-final {
    font-size: clamp(1.5rem, 6vw, 2.4rem);
  }

  .innovation-content {
    width: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 30%, rgba(10, 10, 10, 0.4) 70%, rgba(10, 10, 10, 0) 100%);
    align-items: flex-end;
    padding-bottom: 15%;
  }

  .innovation-phase {
    text-align: center;
    max-width: 90%;
  }

  .service-card {
    top: auto;
    bottom: 10%;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    text-align: center !important;
    width: 85%;
    max-width: 360px;
  }

  .approach {
    padding: 100px 0;
  }

  .approach-content {
    gap: 80px;
  }

  .approach-right {
    align-self: flex-start;
    text-align: left;
  }

  .contact {
    padding: 100px 0;
  }

  .contact-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }

  .magnetic-btn {
    padding: 16px 36px;
    font-size: 0.8rem;
  }
}
