:root {
  --ink: #0a0a0a;
  --ink-2: #101010;
  --cream: #f2ead9;
  --cream-dim: rgba(242, 234, 217, 0.55);
  --emerald: #10b981;
  --blue: #38bdf8;
  --gold: #f5b942;
  --font-display: 'Anton', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Film grain */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2.5rem;
  z-index: 100;
  mix-blend-mode: difference;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}
.nav__cta {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(242, 234, 217, 0.4);
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}
.nav__cta:hover { background: var(--cream); color: var(--ink); }

/* ---------- HERO ---------- */
.hero { height: 500vh; position: relative; }
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
#orbit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero__title-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 16vw, 15rem);
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--emerald); }
.hero__line .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(4deg);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__line .ch.in { opacity: 1; transform: translateY(0) rotate(0); }
.hero__subtitle {
  margin-top: 1.6rem;
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}
.hero__subtitle.in { opacity: 1; transform: none; }
.hero__scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero__scroll-bar {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--emerald), transparent);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ---------- STATS ---------- */
.stats {
  padding: 9rem 2.5rem 7rem;
  background: var(--ink);
  position: relative;
  z-index: 3;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--emerald);
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.stats__trust {
  text-align: center;
  margin-top: 5rem;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--cream-dim);
}
.stats__trust strong { color: var(--cream); font-weight: 600; letter-spacing: 0.06em; }

/* ---------- PILLARS ---------- */
.pillars { height: 400vh; position: relative; }
.pillars__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.pillars__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pillars__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.25) 100%);
}
.sound-toggle {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(242, 234, 217, 0.35);
  background: rgba(10, 10, 10, 0.55);
  color: var(--cream);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.sound-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: scale(1.08);
}

.pillars__content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 2.5rem;
  font-weight: 600;
}
.section-kicker--gold { color: var(--gold); }
.pillar {
  position: absolute;
  top: 50%;
  transform: translateY(-40%);
  max-width: 560px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.6s ease;
}
.pillar.active {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}
.pillar__index {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--blue);
  letter-spacing: 0.1em;
}
.pillar__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0.8rem 0 1.2rem;
}
.pillar__desc {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--cream-dim);
}

/* ---------- WORK ---------- */
.work {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 0;
}
.work__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10,10,10,0.88), rgba(10,10,10,0.72));
}
.work__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  width: 100%;
}
.work__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid rgba(242, 234, 217, 0.14);
  border-radius: 14px;
  padding: 2.2rem 2rem 2.6rem;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), opacity 0.6s ease, border-color 0.3s ease, background 0.3s ease;
}
.card.in { transform: none; opacity: 1; }
.card:hover {
  border-color: var(--gold);
  background: rgba(20, 17, 8, 0.75);
  transform: translateY(-6px);
}
.card__tag {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  text-transform: uppercase;
  margin: 1rem 0 0.8rem;
  line-height: 1.1;
}
.card__pitch {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.6;
}
.card__arrow {
  position: absolute;
  right: 1.8rem;
  bottom: 1.6rem;
  font-size: 1.4rem;
  color: var(--gold);
  transform: translateX(-6px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.card:hover .card__arrow { transform: none; opacity: 1; }

/* ---------- FINALE ---------- */
.finale {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2.5rem;
  background: radial-gradient(ellipse 70% 55% at 50% 60%, rgba(245, 185, 66, 0.09), transparent 70%), var(--ink);
}
.finale__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 11rem);
  line-height: 0.92;
  text-transform: uppercase;
}
.finale__line { display: block; }
.finale__line--accent { color: var(--gold); }
.finale__sub {
  margin-top: 2rem;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
}
.finale__buttons {
  margin-top: 3rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.1rem 2.6rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn--primary {
  background: var(--gold);
  color: var(--ink);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(245, 185, 66, 0.35);
}
.btn--ghost {
  color: var(--cream);
  border: 1px solid rgba(242, 234, 217, 0.35);
}
.btn--ghost:hover { background: rgba(242, 234, 217, 0.08); transform: translateY(-3px); }

/* ---------- FOOTER ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2.2rem 2.5rem;
  border-top: 1px solid rgba(242, 234, 217, 0.1);
  font-size: 0.8rem;
  color: var(--cream-dim);
}
.footer__socials { display: flex; gap: 1.4rem; }
.footer__socials a {
  color: var(--cream-dim);
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-flex;
}
.footer__socials a:hover { color: var(--gold); transform: translateY(-2px); }

@media (max-width: 640px) {
  .nav { padding: 1rem 1.4rem; }
  .stats { padding: 6rem 1.4rem 4rem; }
  .pillars__content, .work__content { padding: 0 1.4rem; }
  .pillar { max-width: 100%; }
}
