@import "https://fonts.googleapis.com/css2?family=Anton&family=Boldonse&family=Archivo:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap";

/* =========================
   ROOT VARIABLES
========================= */

:root {
  --ink: #0a0908;
  --ink-2: #131110;
  --cream: #f2ead9;
  --cream-dim: #b9b1a0;
  --red: #0af;
  --red-dim: #006c9e;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* =========================
   RESET / BASE
========================= */

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

html,
body {
  background: var(--ink);
  color: var(--cream);
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  font-family: Archivo, sans-serif;
}

::selection {
  background: var(--red);
  color: var(--cream);
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   GRAIN OVERLAY
========================= */

.grain {
  z-index: 500;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  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");
  animation: grain-shift .4s steps(2, end) infinite;
  position: fixed;
  inset: 0;
}

@keyframes grain-shift {
  0% {
    transform: translate(0);
  }

  50% {
    transform: translate(-2%, 1%);
  }

  100% {
    transform: translate(1%, -2%);
  }
}

/* =========================
   LOADER
========================= */

#loader {
  z-index: 1000;
  background: var(--ink);
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  display: flex;
  position: fixed;
  inset: 0;
}

#loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-name {
  letter-spacing: .05em;
  color: var(--cream);
  font-family: Anton, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.loader-bar {
  background: #f2ead926;
  width: min(320px, 60vw);
  height: 2px;
  overflow: hidden;
}

.loader-fill {
  background: var(--red);
  width: 0%;
  height: 100%;
  transition: width .15s linear;
}

.loader-pct {
  letter-spacing: .15em;
  color: var(--cream-dim);
  font-size: .75rem;
}

/* =========================
   NAVIGATION
========================= */

.nav {
  z-index: 200;
  mix-blend-mode: difference;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--cream);
  text-decoration: none;
}

.nav-logo {
  height: 3em;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-mark {
  letter-spacing: .02em;
  color: var(--cream);
  font-family: Boldonse, sans-serif;
  font-size: .85rem;
  line-height: 1;
}

.nav-links {
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream);
  gap: 2rem;
  font-size: .8rem;
  display: flex;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  background: var(--cream);
  width: 0%;
  height: 1px;
  transition: width .3s var(--ease);
  position: absolute;
  bottom: -3px;
  left: 0;
}

.nav-links a:hover::after {
  width: 100%;
}

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

.hero {
  background: var(--ink);
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}

.hero-overlay {
  pointer-events: none;
  background: linear-gradient(
    #0a090859 0%,
    #0a090826 40%,
    #0a0908bf 100%
  );
  position: absolute;
  inset: 0;
}

.hero-content {
  z-index: 2;
  text-align: right;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
  display: flex;
  position: relative;
}

.hero-title {
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: .01em;
  font-family: Anton, sans-serif;
  font-size: clamp(2.5rem, 10vw, 8.5rem);
  font-weight: 400;
  line-height: .85;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .char {
  will-change: transform;
  display: inline-block;
}

.line-2 {
  color: var(--red);
}

.hero-subtitle {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0;
  margin-top: 1.25rem;
  font-size: clamp(.8rem, 1.4vw, 1.15rem);
}

.hero-subtitle .dot {
  color: var(--red);
  margin: 0 .35em;
}

/* =========================
   SCROLL CUE
========================= */

.scroll-cue {
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .65rem;
  display: flex;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%);
}

.scroll-cue-line {
  background: linear-gradient(180deg, var(--cream-dim), transparent);
  width: 1px;
  height: 40px;
  animation: scroll-cue-move 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-move {
  0% {
    transform-origin: top;
    opacity: 0;
    transform: scaleY(0);
  }

  50% {
    transform-origin: top;
    opacity: 1;
    transform: scaleY(1);
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform-origin: bottom;
    opacity: 0;
    transform: scaleY(0);
  }
}

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

.stats {
  z-index: 2;
  background: var(--ink);
  border-top: 1px solid #f2ead91a;
  border-bottom: 1px solid #f2ead91a;
  grid-template-columns: repeat(5, 1fr);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem);
  display: grid;
  position: relative;
}

.stat {
  text-align: center;
  border-left: 1px solid #f2ead914;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 0 .5rem;
  display: flex;
}

.stat:first-child {
  border-left: none;
}

.stat-number {
  color: var(--cream);
  font-family: Anton, sans-serif;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  line-height: 1;
}

.stat-text {
  color: var(--red);
}

.stat-label {
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-size: .65rem;
  line-height: 1.4;
}

/* =========================
   PILLARS SECTION
========================= */

.pillars {
  background: var(--ink);
  height: 350vh;
  position: relative;
}

.bg-video {
  object-fit: cover;
  width: 100%;
  height: 100vh;
  display: block;
  position: sticky;
  top: 0;
}

.pillars-overlay {
  pointer-events: none;
  background: linear-gradient(
    #0a09088c 0%,
    #0a090859 50%,
    #0a0908d9 100%
  );
  height: 100vh;
  margin-top: -100vh;
  position: sticky;
  top: 0;
}

.pillars-inner {
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  margin-top: -100vh;
  padding: clamp(1.5rem, 5vw, 5rem);
  display: flex;
  position: sticky;
  top: 0;
}

.section-kicker {
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
  font-size: .75rem;
  display: inline-block;
}

.pillar-list {
  height: clamp(220px, 40vh, 340px);
  margin-top: clamp(2rem, 8vh, 5rem);
  position: relative;
}

.pillar {
  opacity: 0;
  flex-direction: column;
  gap: .5rem;
  display: flex;
  position: absolute;
  inset: 0;
  transform: translateY(40px);
}

.pillar-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  display: flex;
}

.pillar-num {
  color: var(--red-dim);
  font-family: Anton, sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
}

.pillar h3 {
  text-transform: uppercase;
  color: var(--cream);
  font-family: Anton, sans-serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 400;
  line-height: .95;
}

.pillar p {
  max-width: 420px;
  color: var(--cream-dim);
  margin-top: 0;
  font-size: clamp(.85rem, 1.1vw, 1.05rem);
}

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

.work {
  min-height: 100vh;
  position: relative;
}

.work-overlay {
  pointer-events: none;
  background: linear-gradient(
    #0a090859 0%,
    #0a09088c 55%,
    #0a0908f2 100%
  );
  height: 100vh;
  margin-top: -100vh;
  position: sticky;
  top: 0;
}

.work-inner {
  z-index: 2;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.5rem;
  min-height: 100vh;
  padding: clamp(1.5rem, 5vw, 5rem);
  display: flex;
  position: relative;
}

.work-heading {
  text-transform: uppercase;
  color: var(--cream);
  font-family: Anton, sans-serif;
  font-size: clamp(2.5rem, 9vw, 7rem);
  font-weight: 400;
  line-height: .9;
}

.work-grid {
  background: #f2ead926;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 1rem;
  display: grid;
}

.work-card {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: inherit;
  cursor: pointer;
  transition: background .4s var(--ease);
  background: #0a09088c;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.work-card::before {
  content: "";
  background: var(--red);
  transition: transform .5s var(--ease);
  z-index: 0;
  position: absolute;
  inset: 0;
  transform: translateY(101%);
}

.work-card:hover::before {
  transform: translateY(0);
}

.work-card > * {
  z-index: 1;
  transition: transform .5s var(--ease), color .4s var(--ease);
  position: relative;
}

.work-card:hover h3,
.work-card:hover p,
.work-card:hover .work-card-num {
  color: var(--ink);
}

.work-card:hover h3 {
  transform: translate(6px);
}

.work-card-num {
  color: var(--red);
  margin-bottom: .75rem;
  font-family: Anton, sans-serif;
  font-size: .9rem;
  display: block;
}

.work-card h3 {
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: .5rem;
  font-family: Anton, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
}

.work-card p {
  color: var(--cream-dim);
  font-size: .85rem;
  line-height: 1.4;
}

/* =========================
   FINALE / CTA
========================= */

.finale {
  text-align: center;
  background: var(--ink);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  min-height: 100vh;
  padding: clamp(2rem, 8vw, 6rem);
  display: flex;
}

.finale-text {
  text-transform: uppercase;
  max-width: 1100px;
  color: var(--cream);
  font-family: Anton, sans-serif;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
}

.finale-text .accent {
  color: var(--red);
}

.finale-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  display: flex;
}

.btn {
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--cream);
  transition:
    background .35s var(--ease),
    color .35s var(--ease),
    border-color .35s var(--ease);
  padding: 1rem 2.25rem;
  font-size: .8rem;
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}

.btn-primary:hover {
  color: var(--cream);
  border-color: var(--cream);
  background: transparent;
}

.btn-outline:hover {
  background: var(--cream);
  color: var(--ink);
}

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

.footer {
  background: var(--ink);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border-top: 1px solid #f2ead91a;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  font-size: .75rem;
  display: flex;
}

.footer-name {
  color: var(--cream);
  letter-spacing: .08em;
  font-family: Anton, sans-serif;
}

.footer-links {
  flex-wrap: wrap;
  gap: 1.5rem;
  display: flex;
}

.footer-links a {
  color: var(--cream-dim);
  transition: color .3s var(--ease);
  position: relative;
}

.footer-links a:hover {
  color: var(--red);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat:nth-child(4) {
    border-left: none;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: center;
    justify-content: flex-end;
    align-items: center;
    padding: 0 clamp(1.25rem, 6vw, 2rem) clamp(7rem, 16vh, 10rem);
  }

  .hero-subtitle {
    max-width: 90vw;
    line-height: 1.5;
  }
}