:root {
  --black: #08080a;
  --charcoal: #131316;
  --sand: #1c1a17;
  --cyan: #4dfff0;
  --magenta: #ff2e88;
  --gold: #c9a227;
  --fg: #f2f1ec;
  --fg-dim: #9a988f;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

h1, h2, .nav__logo, .service span {
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.02em;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 5vw;
  mix-blend-mode: difference;
}
.nav__logo {
  font-weight: 700;
  font-size: 1.1rem;
}
.nav__logo span { color: var(--cyan); }
.nav__links a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 32px;
  opacity: 0.75;
  transition: opacity 0.3s;
}
.nav__links a:hover { opacity: 1; }
.nav__right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.lang-switch {
  display: flex;
  gap: 2px;
}
.lang-switch__btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--fg);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}
.lang-switch__btn:first-child { border-radius: 3px 0 0 3px; border-right: none; }
.lang-switch__btn:last-child { border-radius: 0 3px 3px 0; }
.lang-switch__btn:hover { opacity: 0.85; }
.lang-switch__btn.is-active {
  opacity: 1;
  border-color: var(--cyan);
  color: var(--cyan);
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.35), transparent 60%),
    linear-gradient(180deg, rgba(5,5,6,0.55) 0%, rgba(5,5,6,0.25) 40%, rgba(5,5,6,0.65) 100%);
}
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; opacity: 0; }
.hero__title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 0 40px rgba(77,255,240,0.15);
}
.hero__sub {
  margin-top: 20px;
  color: var(--fg-dim);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.hero__scrollcue {
  position: absolute;
  bottom: 36px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  animation: pulse 2.2s ease-in-out infinite;
}
.hero__scrollcue span { display: inline-block; }
@keyframes pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* SAND / CRAB STAGE */
.sandstage { height: 400vh; position: relative; background: var(--sand); }
.sandstage__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.sandstage__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%),
    url("sand-texture.jpg");
  background-size: auto, 600px 600px;
  background-position: center;
  background-repeat: no-repeat, repeat;
}

.crab {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 300px;
  height: 169px;
  object-fit: contain;
  transform: translateY(-50%);
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.5));
}

.service {
  position: absolute;
  top: 68%;
  opacity: 0;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--fg);
  text-shadow: 0 0 24px rgba(255,46,136,0.35);
}
.service--1 { left: 14%; }
.service--2 { left: 36%; }
.service--3 { left: 58%; }
.service--4 { left: 78%; }


/* WAVE WIPE — full-viewport overlay, starts hidden below the frame, rises to cover it.
   Top edge feathers into the sand above so it reads as water arriving, not a video
   sliding into place; the video's own dark tone carries through into what's next. */
.wave-wipe {
  position: absolute;
  inset: 0;
  z-index: 5;
  transform: translateY(100%);
  pointer-events: none;
}
.wave-wipe__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  mask-image: linear-gradient(to top, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 75%, transparent 100%);
}

/* WORK */
.work {
  position: relative;
  padding: 10vw 6vw 8vw;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%),
    url("sand-texture.jpg");
  background-size: auto, 600px 600px;
  background-position: center;
  background-repeat: no-repeat, repeat;
  overflow: hidden;
  /* Establishes a containing block for .work__bg's position:fixed, so the
     "fixed" background is scoped to this section instead of the whole page. */
  transform: translateZ(0);
}
.work__bg {
  /* Fixed instead of absolute: this section's actual content height varies a
     lot and can be much taller than one viewport, which forced heavy zoom when
     a single video instance had to stretch to cover it. Fixed positioning
     always renders at one consistent, viewport-matched scale (matching the
     wave-wipe video) and stays visible as you scroll through the whole
     section — no zoom mismatch, no gap in the later cards. */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: bottom;
  transform: scaleY(-1);
  z-index: 0;
}
.work__title {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  background:
    linear-gradient(160deg, rgba(77,255,240,0.06), rgba(255,46,136,0.06)),
    rgba(5,5,6,0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 4vw;
}
.work__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(77,255,240,0.06), rgba(255,46,136,0.06)),
    rgba(5,5,6,0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(40px);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.card:hover,
.card:focus-visible {
  border-color: rgba(77,255,240,0.55);
  background:
    linear-gradient(160deg, rgba(77,255,240,0.1), rgba(255,46,136,0.07)),
    rgba(5,5,6,0.68);
  box-shadow:
    0 0 1px rgba(77,255,240,0.8),
    0 0 20px rgba(77,255,240,0.35),
    0 0 48px rgba(77,255,240,0.2);
}
.card__index {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
}
.card__category {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.card__name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--fg);
}
.card--a { grid-column: span 3; }
.card--b { grid-column: span 3; margin-top: 60px; }
.card--c { grid-column: span 4; grid-column-start: 2; }

.services {
  padding: 8vw 6vw;
  background: var(--charcoal);
}
.placeholder-note {
  color: var(--fg-dim);
  font-size: 0.85rem;
  margin-top: 12px;
}

.footer {
  padding: 40px 6vw;
  color: var(--fg-dim);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  .work__grid { grid-template-columns: 1fr; }
  .card--a, .card--b, .card--c { grid-column: auto; margin-top: 0; }
  .service { font-size: 1.1rem; }
}
