/* ============ FONTS ============ */
@font-face {
  font-family: 'Anton';
  src: url('../fonts/anton.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ============ TOKENS ============ */
:root {
  --ink: #060607;
  --ink-2: #0b0c0d;
  --emerald: #17e68c;
  --emerald-dim: rgba(23, 230, 140, 0.14);
  --cream: #efe7d6;
  --cream-dim: rgba(239, 231, 214, 0.55);
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Inter', -apple-system, 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(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--emerald); color: var(--ink); }

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__name {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.35em;
  color: var(--cream);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }
.preloader__bar {
  width: min(320px, 60vw); height: 2px;
  background: rgba(239, 231, 214, 0.15);
  overflow: hidden;
}
.preloader__fill {
  width: 0%; height: 100%;
  background: var(--emerald);
  transition: width 0.2s ease;
}
.preloader__pct {
  font-size: 12px; letter-spacing: 0.3em;
  color: var(--emerald);
}

/* ============ GRAIN ============ */
.grain {
  position: fixed; inset: -100%; z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  mix-blend-mode: difference;
}
.nav__logo {
  font-family: var(--display);
  font-size: 26px; color: var(--cream); text-decoration: none;
  letter-spacing: 0.05em;
}
.nav__logo span { color: var(--emerald); }
.nav__links { display: flex; gap: 32px; align-items: center; }
.nav__links a {
  color: var(--cream); text-decoration: none;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.75; transition: opacity 0.25s;
}
.nav__links a:hover { opacity: 1; }
.nav__cta {
  border: 1px solid var(--cream);
  padding: 9px 18px; border-radius: 999px;
  opacity: 1 !important;
}

.eyebrow {
  font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--emerald);
}

/* ============ HERO ============ */
.hero { height: 520vh; position: relative; }
.hero__sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
}
#heroCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}
.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(6, 6, 7, 0.75) 100%),
    linear-gradient(to top, rgba(6, 6, 7, 0.85), transparent 30%);
  pointer-events: none;
}
.hero__title {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: clamp(4rem, 16.5vw, 19rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--cream);
  white-space: nowrap;
  display: flex;
  pointer-events: none;
  text-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
}
.hero__title .ltr {
  display: inline-block;
  will-change: transform, opacity;
}
.hero__sub {
  position: absolute; left: 50%; bottom: 16vh;
  transform: translateX(-50%);
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  text-align: center;
  width: min(600px, 86vw);
  opacity: 0;
  pointer-events: none;
}
.hero__sub em { color: var(--emerald); font-style: normal; }
.hero__hint {
  position: absolute; left: 50%; bottom: 4vh;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--cream-dim);
}
.hero__hint-line {
  width: 1px; height: 44px;
  background: linear-gradient(var(--emerald), transparent);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============ STATS ============ */
.stats {
  position: relative; z-index: 2;
  background: var(--ink);
  padding: clamp(80px, 12vh, 160px) clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(239, 231, 214, 0.07);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  max-width: 1400px; margin: 0 auto;
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--display);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  color: var(--cream);
  line-height: 1;
}
.stat__num .sfx { color: var(--emerald); }
.stat__label {
  margin-top: 14px;
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cream-dim);
}

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  background: var(--ink);
  border-top: 1px solid rgba(239, 231, 214, 0.07);
  border-bottom: 1px solid rgba(239, 231, 214, 0.07);
  padding: 18px 0;
}
.marquee__track {
  display: flex; white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 231, 214, 0.35);
  animation: scroll-x 24s linear infinite;
}
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============ PILLARS ============ */
.pillars { height: 460vh; 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;
  filter: brightness(0.65) saturate(1.05);
}
.pillars__shade {
  position: absolute; inset: 0;
  background: linear-gradient(280deg, rgba(6, 6, 7, 0.9) 0%, rgba(6, 6, 7, 0.5) 55%, rgba(6, 6, 7, 0.25) 100%);
}
.pillars__head {
  position: absolute; top: 14vh; left: clamp(24px, 7vw, 110px);
}
/* persistent list on the right — active item expands as you scroll */
.plist {
  position: absolute;
  right: clamp(24px, 7vw, 110px);
  top: 50%;
  transform: translateY(-50%);
  width: min(460px, 82vw);
  list-style: none;
  margin: 0; padding: 0;
}
.plist__item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(239, 231, 214, 0.12);
  opacity: 0.4;
  transition: opacity 0.45s ease;
}
.plist__item:last-child { border-bottom: 1px solid rgba(239, 231, 214, 0.12); }
.plist__num {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--cream-dim);
  letter-spacing: 0.15em;
  padding-top: 6px;
  transition: color 0.45s ease;
}
.plist__title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.plist__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--cream-dim);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.45s ease, margin-top 0.5s ease;
}
.plist__desc a {
  color: var(--emerald); text-decoration: none;
  border-bottom: 1px solid rgba(23, 230, 140, 0.4);
}
.plist__item.active {
  opacity: 1;
}
.plist__item.active .plist__num { color: var(--emerald); }
.plist__item.active .plist__desc {
  max-height: 90px;
  opacity: 1;
  margin-top: 8px;
}

/* ============ ABOUT ============ */
.about {
  position: relative;
  background: var(--ink);
  padding: clamp(90px, 14vh, 180px) clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(239, 231, 214, 0.07);
}
.about__inner { max-width: 980px; margin: 0 auto; }
.about__title {
  font-family: var(--display);
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--cream);
  margin: 20px 0 clamp(36px, 5vw, 60px);
}
.about__body { max-width: 720px; }
.about__body p {
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.75;
  color: var(--cream-dim);
  margin-bottom: 22px;
}
.about__closer {
  color: var(--cream) !important;
  font-size: clamp(17px, 1.6vw, 21px) !important;
  border-left: 3px solid var(--emerald);
  padding-left: 22px;
  margin-top: 34px;
}

/* ============ WORK ============ */
.work {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex; align-items: center;
  padding: clamp(100px, 14vh, 180px) 0;
}
.work__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.5);
}
.work__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--ink) 0%, rgba(6, 6, 7, 0.55) 30%, rgba(6, 6, 7, 0.55) 70%, var(--ink) 100%);
}
.work__inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1500px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
}
.work__heading {
  font-family: var(--display);
  font-size: clamp(3.5rem, 11vw, 11rem);
  line-height: 0.95;
  margin: 16px 0 56px;
  color: var(--cream);
}
.work__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(239, 231, 214, 0.14);
  border-radius: 14px;
  background: rgba(6, 6, 7, 0.55);
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: var(--cream);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  will-change: transform;
  overflow: hidden;
}
.card__shot {
  display: block;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #0b0d0c;
  border-bottom: 1px solid rgba(239, 231, 214, 0.1);
}
.card__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(0.35) brightness(0.82) contrast(1.02);
  transition: filter 0.4s ease, transform 0.5s ease;
}
.card:hover .card__shot img {
  filter: grayscale(0) brightness(1) contrast(1.03);
  transform: scale(1.05);
}
.card__body {
  display: block;
  position: relative;
  padding: 24px 28px 40px;
}
.card__body::after {
  content: '→';
  position: absolute; right: 22px; bottom: 20px;
  font-size: 22px; color: var(--emerald);
  opacity: 0; transform: translateX(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.card:hover {
  border-color: var(--emerald);
  background: rgba(9, 14, 11, 0.72);
  box-shadow: 0 24px 80px -20px rgba(23, 230, 140, 0.25);
}
.card:hover .card__body::after { opacity: 1; transform: translateX(0); }
.card__index {
  font-size: 12px; letter-spacing: 0.3em; color: var(--emerald);
}
.card__title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  margin: 12px 0 12px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.card__pitch {
  font-size: 14.5px; line-height: 1.6;
  color: var(--cream-dim);
  margin-bottom: 22px;
}
.card__tag {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(239, 231, 214, 0.4);
}

/* ============ FINALE ============ */
.finale {
  position: relative;
  background: var(--ink);
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px clamp(20px, 5vw, 72px) 0;
}
.finale__title {
  font-family: var(--display);
  font-size: clamp(3rem, 9.5vw, 9.5rem);
  line-height: 0.98;
  text-transform: uppercase;
  max-width: 1300px;
}
.finale__title .word { display: inline-block; margin-right: 0.25em; }
.finale__title .accent { color: var(--emerald); }
.finale__actions {
  display: flex; gap: 18px; margin-top: 56px; flex-wrap: wrap; justify-content: center;
}
.btn {
  font-family: var(--body);
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  padding: 18px 42px;
  border-radius: 999px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.btn--solid {
  background: var(--emerald); color: var(--ink);
  font-weight: 600;
}
.btn--solid:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px -12px rgba(23, 230, 140, 0.5);
}
.btn--ghost {
  border: 1px solid rgba(239, 231, 214, 0.35);
  color: var(--cream);
}
.btn--ghost:hover { border-color: var(--emerald); color: var(--emerald); }

.footer {
  width: 100%;
  margin-top: auto;
  padding: 80px 0 36px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.footer__socials { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer__socials a {
  color: var(--cream-dim); text-decoration: none;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.25s;
}
.footer__socials a:hover { color: var(--emerald); }
.footer__note { font-size: 12px; color: rgba(239, 231, 214, 0.3); letter-spacing: 0.08em; }

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .hero__title { font-size: 17vw; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .marquee__track, .hero__hint-line { animation: none; }
}
