:root {
  --brand: #15b8c7;
  --brand-dark: #0e97a4;
  --brand-light: #5dd4e0;
  --brand-soft: #e8f9fb;
  --ink: #0b1618;
  --ink-2: #41555a;
  --muted: #8a999c;
  --line: #e8edee;
  --bg: #f6f7f5;
  --white: #ffffff;
  --ease: cubic-bezier(.2,.85,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  margin: 0; padding: 0;
  overflow-x: clip;
  overflow-y: visible;
}
html { scroll-behavior: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-weight: 400;
  cursor: none;
}
img { max-width: 100%; display: block; }

/* ---------- GRAIN ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
  mix-blend-mode: multiply;
}

/* ---------- LOADER ---------- */
.loader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 10000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 40px;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-logo {
  width: min(420px, 60vw);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0;
  transform: translateY(20px);
  animation: loaderLogoIn .9s .1s var(--ease) forwards;
}
@keyframes loaderLogoIn {
  to { opacity: 1; transform: translateY(0); }
}
.loader-bar {
  width: 160px; height: 2px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
  position: relative;
}
.loader-bar span {
  position: absolute; inset: 0;
  background: var(--brand);
  transform-origin: left;
  animation: load 1.6s var(--ease) forwards;
}
@keyframes load {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* ---------- CURSOR ---------- */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1.5px solid var(--brand);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  z-index: 9995;
  mix-blend-mode: difference;
}
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 5px; height: 5px;
  background: var(--brand);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9996;
  transition: opacity .3s ease;
}
.cursor.hover { width: 70px; height: 70px; background: rgba(21,184,199,.12); }
@media (hover: none), (max-width: 860px) {
  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
}

/* ---------- PROGRESS ---------- */
.progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--brand);
  z-index: 9998;
  transition: width .1s linear;
}

/* ---------- TOPBAR ---------- */
.topbar {
  position: fixed; top: 22px; left: clamp(20px, 4vw, 50px);
  z-index: 100;
  pointer-events: none;
}
.topbar-tag {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 100px;
  color: var(--ink);
  box-shadow: 0 8px 28px -8px rgba(11,22,24,.12), 0 1px 2px rgba(11,22,24,.04);
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(21,184,199,.6);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21,184,199,.6); }
  50% { box-shadow: 0 0 0 10px rgba(21,184,199,0); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 100px clamp(20px, 4vw, 60px) 80px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

/* --- SPOTLIGHT (follows cursor) --- */
.hero-spotlight {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      circle 520px at var(--sx, 50%) var(--sy, 50%),
      rgba(21,184,199,.55) 0%,
      rgba(21,184,199,.28) 25%,
      rgba(21,184,199,.10) 45%,
      transparent 65%
    );
  filter: blur(40px);
  opacity: 0;
  transition: opacity .8s var(--ease);
  will-change: background;
}
.hero-spotlight.awake { opacity: 1; }

/* subtle ambient glow before mouse moves */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(21,184,199,.18), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(93,212,224,.14), transparent 55%);
  opacity: 1;
  transition: opacity .8s var(--ease);
}
.hero.spotlight-active::before { opacity: 0; }

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

/* decorative shapes */
.deco {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  animation: decoIn 1.6s var(--ease) forwards;
}
@keyframes decoIn { to { opacity: .7; } }
.deco-1 { top: 16%; left: 6%; width: 42px; height: 42px; border: 2px solid var(--brand); border-radius: 50%; animation-delay: 1.4s; }
.deco-2 { top: 22%; right: 8%; width: 64px; height: 64px; border: 2px solid var(--brand); animation-delay: 1.6s; }
.deco-3 { bottom: 20%; left: 10%; width: 50px; height: 2px; background: var(--brand); border-radius: 2px; animation-delay: 1.8s; }
.deco-4 { bottom: 24%; right: 12%; width: 0; height: 0;
  border-left: 18px solid transparent; border-right: 18px solid transparent;
  border-bottom: 32px solid var(--brand); animation-delay: 2s; }
.deco-1 { animation: decoIn 1.6s var(--ease) forwards, spin 20s linear infinite; }
.deco-2 { animation: decoIn 1.6s var(--ease) forwards, spin 30s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner {
  max-width: 1300px; width: 100%;
  position: relative; z-index: 3;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

.announce {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 600;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  margin-bottom: 50px;
}
.announce-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 2s ease infinite; }

.logo-wrap {
  width: 100%; max-width: 960px; margin-bottom: 50px; overflow: hidden;
}
.logo {
  width: 100%; height: auto;
  transform: translateY(110%);
  animation: logoRise 1.4s .4s var(--ease) forwards;
  filter: drop-shadow(0 20px 60px rgba(21,184,199,.2));
  will-change: transform;
}
@keyframes logoRise { to { transform: translateY(0); } }

.tagline {
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  font-size: clamp(56px, 11vw, 180px);
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 40px;
}
.tagline .line { display: block; overflow: hidden; }
.tagline .w {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.2s forwards var(--ease);
}
.tagline .line:nth-child(1) .w { animation-delay: 1s; }
.tagline .line:nth-child(2) .w { animation-delay: 1.12s; }
.tagline .line:nth-child(3) .w { animation-delay: 1.24s; }
.tagline .w.accent { font-weight: 500; color: var(--brand); }
@keyframes rise { to { transform: translateY(0); } }

/* --- MORPH WORD --- */
.morph-slot {
  display: inline-grid;
  justify-items: center;
  vertical-align: baseline;
  position: relative;
}
.morph-item {
  grid-column: 1; grid-row: 1;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(.1em);
  transition:
    opacity .7s var(--ease),
    filter .7s var(--ease),
    transform .7s var(--ease);
  white-space: nowrap;
  font-style: normal;
}
.morph-item i { font-style: normal; color: var(--brand); }
.morph-item.is-current {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.morph-item.is-leaving {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(-.1em);
}

.sub {
  max-width: 560px;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-2);
  margin-bottom: 36px;
}
.sub i { color: var(--brand); font-style: normal; font-weight: 600; }

.chips {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 500;
}
.chips i { width: 4px; height: 4px; border-radius: 50%; background: var(--brand); display: inline-block; }

.scroll-indicator {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 3;
}
.scroll-line { width: 1px; height: 36px; background: rgba(21,184,199,.2); position: relative; overflow: hidden; }
.scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--brand);
  animation: scrollLine 2.4s ease-in-out infinite; transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; transform: scaleY(1); }
  100% { transform-origin: bottom; transform: scaleY(0); }
}

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--ink);
  color: var(--white);
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.marquee-track {
  display: flex; gap: 50px; align-items: center;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: -.02em;
  will-change: transform;
}
.marquee-track i { color: var(--brand); font-size: .5em; font-style: normal; }
.marquee-track span:nth-child(6n+1) { font-weight: 300; color: var(--brand-light); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- CINEMA ---------- */
.cinema-intro {
  padding: clamp(80px, 12vh, 160px) clamp(20px, 4vw, 60px) clamp(40px, 6vh, 80px);
  background: var(--bg);
}
.cinema-intro-inner {
  max-width: 1400px; margin: 0 auto;
}
.kicker {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--brand); font-weight: 700;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.kicker span { width: 30px; height: 1px; background: var(--brand); display: inline-block; }
.cinema-intro-inner h2 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 1.02;
  letter-spacing: -.035em;
  max-width: 1000px;
}
.cinema-intro-inner h2 i { font-style: normal; font-weight: 500; color: var(--brand); }

/* Pinned cinema */
.cinema {
  position: relative;
  background: var(--bg);
  /* height set by JS on desktop */
}
.cinema-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; align-items: center;
}

/* Giant background word */
.cinema-word-layer {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
  padding: 0 clamp(20px, 4vw, 60px);
}
.cinema-word {
  grid-column: 1; grid-row: 1;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(80px, 18vw, 280px);
  letter-spacing: -.06em;
  line-height: 1;
  color: rgba(21,184,199,.15);
  white-space: nowrap;
  text-transform: lowercase;
  opacity: 0;
  filter: blur(22px);
  transform: translateY(14px);
  transition:
    opacity .75s var(--ease),
    filter .75s var(--ease),
    transform .75s var(--ease);
  will-change: transform, opacity, filter;
}
.cinema-word.is-current {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Track */
.cinema-track {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: 0 clamp(20px, 10vw, 200px);
  position: relative;
  z-index: 2;
  width: max-content;
  will-change: transform;
}

.cinema-card {
  flex-shrink: 0;
  width: clamp(240px, 40vh, 460px);
  aspect-ratio: 5 / 7;
  perspective: 1200px;
  position: relative;
}
.cinema-card-inner {
  width: 100%; height: 100%;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow:
    0 20px 60px -20px rgba(21,184,199,.35),
    0 4px 12px -4px rgba(11,22,24,.08);
  cursor: none;
}
.cinema-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
  transform: scale(1.02);
  user-select: none;
  pointer-events: none;
}
.cinema-card:hover .cinema-card-inner {
  box-shadow:
    0 35px 80px -15px rgba(21,184,199,.55),
    0 8px 20px -6px rgba(11,22,24,.12);
}
.cinema-card:hover img { transform: scale(1.08); }

.cinema-card-label { display: none !important; }

/* UI: progress + count */
.cinema-ui {
  position: absolute;
  bottom: clamp(20px, 4vh, 40px);
  left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 20px;
  z-index: 4;
  padding: 12px 20px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 100px;
  box-shadow: 0 8px 28px -8px rgba(11,22,24,.1);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); font-weight: 600;
}
.cinema-count { font-variant-numeric: tabular-nums; }
.cinema-count em { color: var(--muted); font-style: normal; }
.cinema-bar {
  width: clamp(120px, 18vw, 220px); height: 2px;
  background: rgba(11,22,24,.12);
  border-radius: 2px;
  overflow: hidden;
}
.cinema-bar-fill {
  width: 0%; height: 100%;
  background: var(--brand);
  transform-origin: left;
  transition: width .15s linear;
}
.cinema-hint {
  color: var(--muted);
  font-weight: 700;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 100px clamp(20px, 4vw, 60px) 40px;
  overflow: hidden;
  position: relative;
}
.footer-big {
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  font-size: clamp(56px, 14vw, 220px);
  line-height: .9;
  letter-spacing: -.04em;
  text-align: center;
  margin-bottom: 80px;
}
.footer-big i { font-style: normal; font-weight: 500; color: var(--brand); }
.footer-bottom {
  max-width: 1400px; margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  letter-spacing: .08em;
}
.footer-logo {
  height: 26px; filter: brightness(0) invert(1); opacity: .9;
}
.footer-copy {
  flex: 1;
}
.footer-credit {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .06em;
  transition: color .3s var(--ease);
  white-space: nowrap;
}
.footer-credit span {
  color: var(--brand);
  font-weight: 600;
  position: relative;
  transition: color .3s var(--ease);
}
.footer-credit span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.footer-credit:hover { color: #fff; }
.footer-credit:hover span::after { transform: scaleX(1); transform-origin: left; }

/* ---------- REVEAL UTILITIES ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  /* Topbar */
  .topbar { top: 14px; left: 14px; }
  .topbar-tag { font-size: 9px; padding: 7px 12px; letter-spacing: .18em; }

  /* Hero */
  .hero { padding: 80px 20px 70px; min-height: 100svh; }
  .announce { margin-bottom: 30px; padding: 7px 14px; font-size: 9.5px; letter-spacing: .16em; }
  .logo-wrap { margin-bottom: 32px; max-width: 100%; padding: 0 4px; }
  .tagline { font-size: clamp(48px, 15vw, 96px); margin-bottom: 26px; }
  .sub { font-size: 14px; margin-bottom: 28px; line-height: 1.55; }
  .chips { gap: 8px 12px; font-size: 10px; letter-spacing: .14em; }
  .deco { display: none; }
  .scroll-indicator { bottom: 20px; font-size: 9px; letter-spacing: .22em; }
  .scroll-line { height: 28px; }

  /* Marquee */
  .marquee { padding: 22px 0; }
  .marquee-track { animation-duration: 15s; font-size: clamp(30px, 8vw, 56px); gap: 36px; }

  /* Cinema intro */
  .cinema-intro { padding: 56px 20px 10px; }
  .kicker { margin-bottom: 14px; font-size: 10px; letter-spacing: .22em; }
  .kicker span { width: 22px; }
  .cinema-intro-inner h2 {
    font-size: clamp(30px, 7.2vw, 48px);
    line-height: 1.08;
    letter-spacing: -.025em;
  }

  /* Native cursor on mobile */
  body { cursor: auto; }
  .cinema-card-inner { cursor: auto; }

  /* Cinema — keep pinned horizontal scroll on mobile too */
  .cinema-sticky {
    height: 100vh; height: 100svh;
  }
  .cinema-track {
    gap: 18px;
    padding: 0 12.5vw;
  }
  .cinema-card {
    width: clamp(200px, 60vw, 320px);
    perspective: none;
  }
  .cinema-card-inner {
    border-radius: 18px;
    box-shadow:
      0 16px 40px -16px rgba(21,184,199,.35),
      0 2px 6px -2px rgba(11,22,24,.08);
  }
  .cinema-card img { transform: scale(1); }
  .cinema-word { font-size: clamp(56px, 22vw, 180px); }
  /* UI pill */
  .cinema-ui {
    bottom: 16px;
    padding: 9px 14px;
    gap: 12px;
    font-size: 9.5px;
    letter-spacing: .18em;
  }
  .cinema-bar { width: 32vw; max-width: 160px; }
  .cinema-hint { display: none; }

  /* Footer */
  .footer { padding: 70px 20px 30px; }
  .footer-big {
    margin-bottom: 48px;
    font-size: clamp(52px, 15vw, 100px);
    letter-spacing: -.035em;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 18px;
    text-align: center;
    padding-top: 26px;
    font-size: 11px;
  }
  .footer-logo { height: 22px; }
  .footer-copy { flex: none; }
  .footer-credit {
    font-size: 11px;
    letter-spacing: .04em;
    white-space: normal;
    line-height: 1.5;
  }

  /* Loader */
  .loader-logo { width: 72vw; }
  .loader-bar { width: 120px; }
}

@media (max-width: 480px) {
  .topbar-tag { font-size: 9px; padding: 6px 11px; }
  .announce { font-size: 9px; }
  .tagline { font-size: clamp(42px, 14vw, 72px); }
  .sub { font-size: 13.5px; }
  .cinema-intro { padding: 44px 20px 6px; }
  .cinema-intro-inner h2 { font-size: clamp(28px, 8.2vw, 40px); }
  .cinema-card { width: clamp(200px, 68vw, 280px); }
  .cinema-track { padding: 0 10vw; gap: 14px; }
  .cinema-word { font-size: clamp(52px, 26vw, 160px); }
  .marquee { padding: 18px 0; }
  .marquee-track { gap: 28px; font-size: clamp(26px, 8.4vw, 44px); animation-duration: 12s; }
  .footer-big { font-size: clamp(48px, 16vw, 88px); margin-bottom: 40px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .cinema { height: auto !important; }
  .cinema-sticky { position: static; height: auto; display: block; padding: 40px 20px; }
  .cinema-track { transform: none !important; flex-wrap: wrap; justify-content: center; width: 100%; padding: 0; }
  .cinema-word-layer { position: static; display: none; }
  .cinema-ui { display: none; }
}
