/* ============================================
   VibeSurfDev — Premium Tech Agency
   ============================================ */

:root {
  --navy: #0D1B2A;
  --navy-2: #0a1421;
  --navy-3: #14273d;
  --yellow: #F5C518;
  --yellow-soft: #ffd84a;
  --white: #f4f6fa;
  --muted: #8a99b3;
  --line: rgba(245, 197, 24, 0.14);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background:
    linear-gradient(180deg,
      #0D1B2A 0%,
      #0c1826 18%,
      #0b1522 38%,
      #0a1320 58%,
      #091220 78%,
      #08111e 100%);
  background-attachment: fixed;
  color: var(--white);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "ss01", "ss02";
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (hover: none) and (pointer: coarse) {
  body { background-attachment: scroll; }
}

section + section {
  box-shadow: inset 0 1px 0 rgba(245, 197, 24, 0.05);
}

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

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

h1, h2, h3, h4 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--yellow);
}

/* ============ SCROLL PROGRESS ============ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow) 0%, var(--yellow-soft) 100%);
  z-index: 1000;
  box-shadow: 0 0 12px var(--yellow);
  transition: width 0.05s linear;
}

/* (custom cursor removed) */

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

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(13, 27, 42, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px 48px;
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.nav-brand:hover { opacity: 0.85; transform: translateX(-1px); }
.nav-brand-mark {
  width: 32px; height: 32px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.45));
  transition: transform 0.5s var(--ease-out);
}
.nav-brand:hover .nav-brand-mark { transform: translateX(-2px) rotate(-4deg); }
.nav-brand-text { display: inline-flex; align-items: baseline; gap: 1px; }
.nav-brand-text .accent {
  color: var(--yellow);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  transition: color 0.3s, background 0.3s;
}
.lang-toggle button.active {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 600;
}

.nav-cta {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--yellow);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.4);
}

/* Hamburger toggle button */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 9px;
  cursor: pointer;
  z-index: 101;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.32s var(--ease-out), opacity 0.2s;
}
.nav-toggle:hover { border-color: rgba(245, 197, 24, 0.5); }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav { padding: 14px 18px; }
  .nav.scrolled { padding: 10px 18px; }
  .nav-toggle { display: flex; }
  .nav-brand { font-size: 19px; gap: 10px; }
  .nav-brand-mark { width: 28px; height: 28px; }

  /* Drawer for nav links + nav-right */
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 88px 28px 200px;
    gap: 4px;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
  }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    padding: 18px 0;
    transform: translateX(20px);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
  }
  .nav-links a::after { display: none; }

  .nav-right {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: column-reverse;
    gap: 14px;
    align-items: stretch;
    padding: 24px 28px 32px;
    background: linear-gradient(180deg, transparent, rgba(13, 27, 42, 0.96) 30%);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out) 0.05s;
  }
  .nav-right .nav-cta {
    text-align: center;
    padding: 16px 22px;
    font-size: 13px;
  }
  .nav-right .lang-toggle {
    align-self: center;
  }

  .nav.open .nav-links,
  .nav.open .nav-right {
    opacity: 1;
    pointer-events: auto;
  }
  .nav.open .nav-links a {
    transform: translateX(0);
    opacity: 1;
  }
  .nav.open .nav-links li:nth-child(1) a { transition-delay: 0.06s; }
  .nav.open .nav-links li:nth-child(2) a { transition-delay: 0.12s; }
  .nav.open .nav-links li:nth-child(3) a { transition-delay: 0.18s; }
  .nav.open .nav-links li:nth-child(4) a { transition-delay: 0.24s; }

  body.menu-open { overflow: hidden; }
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 48px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg .grid-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(245, 197, 24, 0.08), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(245, 197, 24, 0.04), transparent 70%);
}
.hero-bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 197, 24, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 197, 24, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
}

.wave-layer {
  position: absolute;
  left: -5%;
  width: 110%;
  pointer-events: none;
}
.wave-layer.w1 { bottom: 0; opacity: 0.6; }
.wave-layer.w2 { bottom: 0; opacity: 0.45; }
.wave-layer.w3 { bottom: 0; opacity: 0.3; }
.wave-layer.w4 { bottom: 0; opacity: 0.18; }

.hero-content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-logo-img,
.hero-logo-frame {
  position: relative;
  width: 600px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  animation: logoFloat 6s ease-in-out infinite;
}
.hero-logo-frame::before {
  content: "";
  position: absolute;
  inset: -2%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%,
    rgba(245, 197, 24, 0.42) 0%,
    rgba(245, 197, 24, 0.24) 28%,
    rgba(245, 197, 24, 0.10) 52%,
    rgba(245, 197, 24, 0.04) 70%,
    transparent 85%);
  filter: blur(40px);
  z-index: 0;
}
.hero-logo-anim {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: transparent;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.hero-logo-anim.is-ready {
  opacity: 1;
}
.hero.animate .hero-logo-img,
.hero.animate .hero-logo-frame {
  opacity: 0;
  transform: scale(0.8) rotate(-8deg);
  animation: none;
}
.hero.animate .hero-logo-img.in,
.hero.animate .hero-logo-frame.in {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  animation: logoFloat 6s ease-in-out 0.6s infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.footer-logo-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: block;
}

.logo-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--muted);
  opacity: 1;
}
.hero.animate .logo-tag { opacity: 0; animation: fadeIn 0.6s ease 0.5s forwards; }

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-text .eyebrow { opacity: 1; }
.hero.animate .hero-text .eyebrow {
  opacity: 0;
  animation: slideUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero h1 {
  font-size: clamp(28px, 3.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.hero h1 .word { margin-right: 0.18em; }
.hero h1 .word { display: inline-block; opacity: 1; transform: none; }
.hero.animate h1 .word {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 0.9s var(--ease-out) forwards;
}
.hero h1 .accent {
  color: var(--yellow);
  font-style: italic;
  font-family: "Fraunces", serif;
  font-weight: 400;
}

.hero p.sub {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--muted);
  max-width: 480px;
  line-height: 1.6;
  margin-top: 4px;
  opacity: 1;
}
.hero.animate p.sub { opacity: 0; animation: slideUp 0.8s var(--ease-out) 0.9s forwards; }

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
  opacity: 1;
}
.hero.animate .hero-cta-row { opacity: 0; animation: slideUp 0.8s var(--ease-out) 1.1s forwards; }

.btn-primary {
  position: relative;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--navy);
  background: var(--yellow);
  padding: 16px 28px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--yellow-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.3),
              0 12px 40px rgba(245, 197, 24, 0.45),
              0 0 60px rgba(245, 197, 24, 0.3);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary svg {
  transition: transform 0.3s var(--ease-out);
}
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover {
  border-bottom-color: var(--yellow);
  color: var(--yellow);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 1;
}
.hero.animate .scroll-hint { opacity: 0; animation: fadeIn 0.6s ease 1.5s forwards; }
.scroll-hint .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.4); transform-origin: top; }
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

@media (max-width: 1080px) {
  .hero { padding: 110px 28px 70px; }
  .hero-content { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-text { align-items: center; }
  .hero-text p.sub { max-width: 540px; }
  .hero-cta-row { justify-content: center; }
  .hero-logo-img,
  .hero-logo-frame { width: min(480px, 82vw); height: min(480px, 82vw); }
}

@media (max-width: 600px) {
  .hero { padding: 96px 18px 56px; }
  .hero h1 { font-size: clamp(26px, 8vw, 40px); }
  .hero h1 .word { margin-right: 0.14em; }
  .hero p.sub { font-size: 15px; }
  .hero-cta-row { flex-direction: column; gap: 14px; width: 100%; }
  .hero-cta-row .btn-primary { width: 100%; justify-content: center; }
  .hero-cta-row .btn-ghost { justify-content: center; }
  .hero-logo-img,
  .hero-logo-frame { width: min(360px, 88vw); height: min(360px, 88vw); }
  .scroll-hint { font-size: 10px; bottom: 18px; }
  .scroll-hint .line { height: 24px; }
}

/* ============ SECTION BASE ============ */

section {
  position: relative;
  z-index: 1;
  padding: 96px 48px;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.025em;
}
.section-head h2 .accent {
  color: var(--yellow);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
}

@media (max-width: 700px) {
  section { padding: 64px 20px; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(28px, 7.5vw, 40px); }
  .section-head p { font-size: 15px; }
}
@media (max-width: 480px) {
  section { padding: 48px 16px; }
}

/* ============ SCROLLYTELLING ============ */

.story {
  background: transparent;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.story-text {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.chapter {
  opacity: 0.25;
  transition: opacity 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.chapter.active { opacity: 1; }
.chapter-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--yellow);
}
.chapter h3 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.chapter h3 .accent {
  color: var(--yellow);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
}
.chapter p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 440px;
}
.chapter-meta {
  display: flex;
  gap: 24px;
  margin-top: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}
.chapter-meta span::before {
  content: "▸ ";
  color: var(--yellow);
}

.story-stage {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iso-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px) scale(0.92);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}
.iso-scene.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.iso-scene svg {
  width: 100%;
  max-width: 460px;
  height: auto;
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-stage { position: relative; top: auto; transform: none; height: 320px; order: -1; }
  .story-text { gap: 60px; }
}
@media (max-width: 600px) {
  .story-stage { height: 240px; }
  .iso-scene svg { max-width: 280px; }
  .chapter h3 { font-size: clamp(32px, 9vw, 44px); }
  .chapter p { font-size: 15px; }
  .chapter-meta { flex-wrap: wrap; gap: 14px; font-size: 10px; }
  .story-text { gap: 48px; }
}

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

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

.service-card {
  position: relative;
  background: linear-gradient(180deg, var(--navy-3) 0%, var(--navy-2) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 340px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out), border-color 0.4s, box-shadow 0.5s;
  animation: floatCard 6s ease-in-out infinite;
}
.service-card:nth-child(2) { animation-delay: -1.5s; }
.service-card:nth-child(3) { animation-delay: -3s; }
.service-card:nth-child(4) { animation-delay: -4.5s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, transparent 60%, var(--yellow) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover {
  animation-play-state: paused;
  transform: translateY(-12px);
  border-color: rgba(245, 197, 24, 0.5);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6),
              0 0 0 1px rgba(245, 197, 24, 0.2);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-icon { transform: rotateY(360deg); }
.service-card:hover .service-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.service-iso {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.service-icon {
  width: 100%; height: 100%;
  transition: transform 0.8s var(--ease-out);
  transform-style: preserve-3d;
}

.service-num {
  position: absolute;
  top: 24px; right: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.service-card h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: -16px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.service-tags span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.service-arrow {
  position: absolute;
  bottom: 28px; right: 28px;
  width: 36px; height: 36px;
  border: 1px solid var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}

@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; gap: 18px; }
  .service-card { min-height: auto; padding: 28px 24px 32px; gap: 22px; }
  .service-card h3 { font-size: 20px; }
  .service-num { top: 20px; right: 20px; }
  .service-arrow { bottom: 20px; right: 20px; opacity: 1; transform: none; }
  .service-iso { width: 64px; height: 64px; }
}

/* ============ STATS ============ */

.stats {
  background: transparent;
  overflow: hidden;
}
.stats-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
.stat {
  border-left: 1px solid var(--line);
  padding: 16px 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat:first-child { border-left-color: var(--yellow); }

.stat-value {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-family: "Space Grotesk", sans-serif;
  display: flex;
  align-items: baseline;
}
.stat-value .num { color: var(--white); }
.stat-value .suffix { color: var(--yellow); margin-left: 2px; }

.stat-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 800px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .stat { padding: 0 0 0 20px; }
  .stat-value { font-size: clamp(40px, 14vw, 64px); }
  .stat-label { font-size: 11px; letter-spacing: 0.16em; }
}

/* ============ AR/VR ============ */

.reality {
  position: relative;
}
.reality-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.reality-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.reality h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.reality h2 .accent {
  color: var(--yellow);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
}
.reality p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 480px;
}

.reality-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.reality-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--white);
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.reality-list li:last-child { border-bottom: 1px solid var(--line); }
.reality-list .dot {
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--yellow);
}
.reality-list .label {
  flex: 1;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
}
.reality-list .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.reality-stage {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}
.device-iso {
  position: absolute;
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out), filter 0.7s;
  opacity: 0;
  transform: translateY(20px) rotateX(20deg) rotateY(-25deg) scale(0.85);
  filter: blur(8px);
  transform-style: preserve-3d;
}
.device-iso.active {
  opacity: 1;
  transform: translateY(0) rotateX(20deg) rotateY(-25deg) scale(1);
  filter: blur(0);
}
.device-iso svg { width: 380px; height: auto; filter: drop-shadow(0 30px 80px rgba(245, 197, 24, 0.15)); }

.device-tabs {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(13, 27, 42, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding: 6px;
  border-radius: 999px;
}
.device-tabs button {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s, background 0.3s;
}
.device-tabs button.active {
  color: var(--navy);
  background: var(--yellow);
}

@media (max-width: 900px) {
  .reality-grid { grid-template-columns: 1fr; gap: 40px; }
  .reality-stage { height: 380px; }
  .device-iso { transform: translateY(20px) rotateX(12deg) rotateY(-12deg) scale(0.85); }
  .device-iso.active { transform: translateY(0) rotateX(12deg) rotateY(-12deg) scale(1); }
  .device-iso svg { width: 280px; }
}
@media (max-width: 600px) {
  .reality-stage { height: 320px; }
  .device-iso { transform: translateY(20px) rotateX(8deg) rotateY(-6deg) scale(0.85); }
  .device-iso.active { transform: translateY(0) rotateX(8deg) rotateY(-6deg) scale(1); }
  .device-iso svg { width: 240px; }
  .reality h2 { font-size: clamp(34px, 9vw, 50px); }
  .reality-list li { font-size: 13px; }
  .device-tabs { padding: 5px; }
  .device-tabs button { padding: 7px 12px; font-size: 10px; letter-spacing: 0.12em; }
}

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

.footer {
  background: transparent;
  position: relative;
  padding: 80px 48px 32px;
  overflow: hidden;
}
.footer-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0.5;
}
.footer .container {
  position: relative;
  z-index: 2;
}

.footer-cta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
}
.footer-cta h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.footer-cta h2 .accent {
  color: var(--yellow);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
}
.footer-cta-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.footer-cta-side p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-logo { width: 56px; height: 56px; }
.footer-brand .name {
  font-size: 18px;
  font-weight: 600;
}
.footer-brand .name .accent { color: var(--yellow); }
.footer-brand .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--yellow); }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: right;
}
.footer-meta .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-end;
}
.footer-meta .live::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.footer-legal {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

@media (max-width: 900px) {
  .footer { padding: 80px 20px 30px; }
  .footer-cta { grid-template-columns: 1fr; gap: 32px; padding-bottom: 56px; }
  .footer-cta h2 { font-size: clamp(30px, 7.5vw, 44px); }
  .footer-bottom { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-meta { text-align: left; }
  .footer-meta .live { align-self: flex-start; }
  .footer-legal { flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
  .footer { padding: 60px 16px 28px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-cta-side .btn-primary { width: 100%; justify-content: center; }
  .footer-meta { gap: 10px; font-size: 10px; }
}

/* ============ WORK ============ */

.work {
  background: transparent;
  overflow: clip;
  padding-top: 100px;
  padding-bottom: 56px;
  margin-top: -60px;
  position: relative;
  z-index: 1;
}
.work .section-head { margin-bottom: 40px; }

.work-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin: 0 -8px;
}
.work-track::-webkit-scrollbar { display: none; }

.work-slide {
  flex: 0 0 calc(100% - 16px);
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 0 8px;
}

.browser-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, var(--navy-3) 0%, var(--navy) 100%);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(8px) scale(0.985);
  transition: transform 0.7s var(--ease-out), box-shadow 0.5s, border-color 0.4s;
}
.work-slide.in .browser-frame {
  transform: translateY(0) scale(1);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(245, 197, 24, 0.12);
  border-color: rgba(245, 197, 24, 0.18);
}

.browser-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.browser-dots .dot-r { background: #ff5f57; }
.browser-dots .dot-y { background: #febc2e; }
.browser-dots .dot-g { background: #28c840; }

.browser-url {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 6px;
  padding: 7px 14px;
  text-align: center;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  letter-spacing: 0.02em;
  max-width: 340px;
  margin: 0 auto;
  width: fit-content;
  min-width: 200px;
}
.url-protocol {
  color: var(--yellow);
  opacity: 0.75;
}
.url-host {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  width: 0;
  transition: width 1.1s steps(28, end);
  color: var(--white);
}
.work-slide.in .url-host {
  width: var(--url-width, 16ch);
}
.url-caret {
  display: inline-block;
  color: var(--yellow);
  margin-left: 1px;
  animation: urlCaret 0.85s steps(2) infinite;
  font-family: inherit;
}

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

.browser-actions {
  display: flex;
  align-items: center;
  color: var(--muted);
  opacity: 0.5;
  width: 28px;
  justify-content: flex-end;
}

.browser-viewport {
  background: transparent;
  position: relative;
  font-size: 0;
  line-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.browser-viewport img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  vertical-align: bottom;
  transition: opacity 0.25s ease;
}

.work-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.work-meta-head {
  display: flex;
  gap: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--yellow);
  text-transform: uppercase;
}
.work-meta-head .work-year { color: var(--muted); }

.work-title {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.work-tagline {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 420px;
}

.work-outcomes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.work-outcomes li {
  font-size: 14px;
  color: var(--white);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}
.work-outcomes li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-size: 12px;
  top: 1px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.work-tags span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.work-cta {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 8px;
}
.work-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--yellow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s, gap 0.3s var(--ease-out);
}
.work-link:hover {
  border-bottom-color: var(--yellow);
  gap: 12px;
}
.work-link-ghost {
  color: var(--muted);
  cursor: default;
}
.work-link-ghost:hover {
  border-bottom-color: transparent;
  gap: 8px;
}

.work-info {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
}
.work-info-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: baseline;
  margin: 0;
}
.work-info-item + .work-info-item {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.work-info-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0;
}
.work-info-value {
  font-size: 13px;
  line-height: 1.55;
  color: var(--white);
  margin: 0;
}
@media (max-width: 480px) {
  .work-info-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.work-screens {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.work-screens .work-screen {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy-2);
  aspect-ratio: 16 / 10;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.3s, transform 0.35s var(--ease-out), box-shadow 0.4s;
  position: relative;
}
.work-screens .work-screen:hover,
.work-screens .work-screen:focus-visible {
  border-color: rgba(245, 197, 24, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px -16px rgba(0, 0, 0, 0.7);
  outline: none;
}
.work-screens .work-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-screens .work-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13, 27, 42, 0.45) 100%);
  pointer-events: none;
}

.work-controls {
  position: sticky;
  bottom: 24px;
  z-index: 5;
  margin-top: 24px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 20px;

  background: linear-gradient(180deg,
    rgba(13, 27, 42, 0.55) 0%,
    rgba(13, 27, 42, 0.88) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.work-prev,
.work-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.work-prev:hover,
.work-next:hover {
  border-color: var(--yellow);
  background: rgba(245, 197, 24, 0.06);
  color: var(--yellow);
}
.work-prev:hover { transform: translateX(-2px); }
.work-next:hover { transform: translateX(2px); }

.work-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.work-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: width 0.35s var(--ease-out), background 0.3s, border-radius 0.35s;
}
.work-dots button.active {
  width: 24px;
  border-radius: 4px;
  background: var(--yellow);
}

.work-counter {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  min-width: 72px;
  text-align: center;
}

@media (max-width: 1080px) {
  .work-slide {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
    align-content: start;
    /* Netflix-style peek — slide narrower than viewport so adjacent cards show */
    flex-basis: 88%;
    max-width: 600px;
  }
  .work-track { gap: 22px; }
  .work-meta { max-width: 600px; }
}

@media (max-width: 800px) {
  .work-prev,
  .work-next { display: none; }
  .work-controls {
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 14px;
    margin-top: 36px;
  }
  .browser-url { font-size: 11px; min-width: 160px; padding: 6px 10px; }
}

@media (max-width: 600px) {
  .browser-frame {
    border-radius: 10px;
    box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.55);
  }
  .work-slide.in .browser-frame {
    box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(245, 197, 24, 0.12);
  }
  .browser-chrome { padding: 9px 10px; gap: 10px; }
  .browser-dots .dot { width: 9px; height: 9px; }
  .browser-actions { display: none; }
  .browser-url { font-size: 10px; max-width: 100%; }
  .work-title { font-size: clamp(24px, 6.5vw, 32px); }
  .work-tagline { font-size: 14px; }
  .work-outcomes li { font-size: 13px; }
  /* More aggressive peek on phones — clearer "there's more" signal */
  .work-slide { flex-basis: 86%; }
  .work-track { gap: 14px; }
}

/* Subtle "swipe" hint — only visible on stacked layouts where peek lives */
.work-swipe-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px auto 0;
  padding: 8px 16px;
  width: fit-content;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.5s var(--ease-out);
}
.work-swipe-hint .arrows {
  display: inline-flex;
  gap: 2px;
  color: var(--yellow);
}
.work-swipe-hint .arrows span {
  display: inline-block;
  animation: swipeHintPulse 1.6s ease-in-out infinite;
}
.work-swipe-hint .arrows span:nth-child(2) { animation-delay: 0.18s; }
.work-swipe-hint .arrows span:nth-child(3) { animation-delay: 0.36s; }
.work-swipe-hint.is-faded { opacity: 0; pointer-events: none; }

@keyframes swipeHintPulse {
  0%, 100% { transform: translateX(0); opacity: 0.4; }
  50%      { transform: translateX(4px); opacity: 1; }
}

@media (max-width: 1080px) {
  .work-swipe-hint { display: flex; }
}

/* ============ REVEAL UTILITIES ============ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.clip-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease-in-out);
}
.clip-reveal.in {
  clip-path: inset(0 0 0 0);
}

/* ============ AMBIENT WAVES (continuity) ============ */

.ambient-waves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-wave {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 220px;
  will-change: transform;
}
.ambient-wave-a {
  bottom: 30%;
  animation: ambientDriftA 24s ease-in-out infinite;
}
.ambient-wave-b {
  bottom: 55%;
  animation: ambientDriftB 32s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes ambientDriftA {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-3%, 8px, 0); }
}
@keyframes ambientDriftB {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(2.5%, -10px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-wave { animation: none; }
}
@media (max-width: 700px) {
  .ambient-waves { display: none; }
}
