:root {
  --ink: #0b0907;
  --ink-2: #15110c;
  --cream: #efe1ba;
  --cream-dim: #b9ab88;
  --gold: #e3a62a;
  --gold-hot: #ffbf3f;
  --ember: #ff5a1f;
  --line: rgba(239, 225, 186, 0.14);
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
  --gutter: clamp(16px, 4vw, 56px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.script {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  color: var(--gold-hot);
  letter-spacing: 0;
}

/* ---------- stage + overlays ---------- */
#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-3%, 2%);
  }
  40% {
    transform: translate(2%, -4%);
  }
  60% {
    transform: translate(-4%, -1%);
  }
  80% {
    transform: translate(3%, 3%);
  }
  100% {
    transform: translate(0, 0);
  }
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(255, 175, 50, 0.16), transparent 65%);
  mix-blend-mode: screen;
  transition: opacity 0.4s;
  opacity: 0;
}
@media (hover: hover) {
  .cursor-glow.on {
    opacity: 1;
  }
}

main,
.nav,
.footer {
  position: relative;
  z-index: 2;
}

/* fallback when WebGL is unavailable */
.no-webgl #stage {
  display: none;
}
.no-webgl {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 166, 43, 0.35), transparent 40%),
    radial-gradient(circle at 75% 35%, rgba(255, 61, 31, 0.25), transparent 55%), var(--ink);
  background-attachment: fixed;
}

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  gap: 22px;
  justify-items: center;
  background: var(--ink);
  transition:
    opacity 0.8s ease,
    visibility 0.8s;
}
.loader img {
  width: 120px;
  animation: pulse 1.4s ease-in-out infinite;
}
.loader-bar {
  width: 140px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.loader-bar i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gold);
  animation: load 1s ease-in-out infinite;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
    transform: scale(0.96);
  }
}
@keyframes load {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(260%);
  }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
  transition:
    background 0.3s,
    backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(11, 9, 7, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  width: 52px;
}
.nav-logo span {
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 18px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.8;
  transition:
    opacity 0.2s,
    color 0.2s;
}
.nav-links a:hover {
  opacity: 1;
  color: var(--gold-hot);
}
.nav-cta {
  border: 1px solid var(--gold);
  padding: 9px 16px;
  color: var(--gold-hot);
  opacity: 1 !important;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s,
    color 0.25s;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 rgba(255, 175, 50, 0);
}
.btn-gold:hover {
  background: var(--gold-hot);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255, 175, 50, 0.45);
}
.btn-ghost {
  border-color: var(--cream);
  color: var(--cream);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn-wide {
  width: 100%;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin: 0 0 16px;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 80px;
  position: relative;
}
.hero-copy {
  max-width: 640px;
}
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(54px, 9vw, 132px);
  line-height: 0.9;
  margin: 0 0 28px;
  letter-spacing: 0.01em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.hero-title .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}
.hero-title .line:nth-child(2) > span {
  transition-delay: 0.1s;
}
.hero-title .line:nth-child(3) > span {
  transition-delay: 0.2s;
}
.loaded .hero-title .line > span {
  transform: none;
}
.hero-title .script {
  font-size: 1.15em;
  line-height: 0.6;
  text-shadow: 0 0 40px rgba(255, 170, 40, 0.6);
}

.hero-sub {
  max-width: 440px;
  color: var(--cream-dim);
  margin: 0 0 36px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.scroll-hint span {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drip {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--gold);
  color: var(--ink);
  transform: rotate(-2deg) scale(1.05);
  margin: 40px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 36px;
  padding: 16px 0;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(24px, 3.4vw, 44px);
  animation: marquee 22s linear infinite;
}
.marquee-track b {
  font-weight: 400;
  color: var(--ember);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- section scaffolding ---------- */
section {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.section-head {
  margin-bottom: 56px;
}
.section-head h2,
.look-copy h2,
.join h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 1s ease,
    transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- drop ---------- */
.drop {
  background: linear-gradient(180deg, transparent, rgba(11, 9, 7, 0.85) 25%, rgba(11, 9, 7, 0.85) 75%, transparent);
}
.drop-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: 1200px;
}
.tilt-wrap {
  perspective: 1200px;
}
.tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
  will-change: transform;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(227, 166, 42, 0.2);
}
.tilt img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 230, 170, 0.35), transparent 50%);
  mix-blend-mode: overlay;
}
.tilt-badge {
  position: absolute;
  top: 20px;
  left: -14px;
  transform: translateZ(60px) rotate(-6deg);
  background: var(--ember);
  color: var(--ink);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  font-size: 18px;
}

.drop-color {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  margin: 0 0 20px;
}
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 3px var(--ink),
    0 0 0 4px var(--gold);
}
.drop-desc {
  color: var(--cream-dim);
  margin: 0 0 28px;
}
.drop-desc .script {
  font-size: 1.6em;
}
.drop-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  border-top: 1px solid var(--line);
}
.drop-specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.drop-specs span {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.sizes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.sizes button {
  min-width: 54px;
  height: 46px;
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
  font-family: var(--body);
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.sizes button:hover {
  border-color: var(--gold);
}
.sizes button.active {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* ---------- manifesto ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1000px;
}
.pillar {
  position: relative;
  padding: 40px 32px 44px;
  background: linear-gradient(160deg, rgba(40, 30, 16, 0.7), rgba(11, 9, 7, 0.7));
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform-style: preserve-3d;
  transition:
    transform 1s cubic-bezier(0.19, 1, 0.22, 1),
    border-color 0.3s,
    opacity 1s ease;
  overflow: hidden;
}
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 175, 50, 0.18), transparent 60%);
  pointer-events: none;
}
.pillar:hover {
  border-color: rgba(227, 166, 42, 0.6);
}
.pillar-num {
  font-family: var(--display);
  font-size: 64px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  display: block;
  margin-bottom: 26px;
}
.pillar h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 30px;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.pillar p {
  margin: 0;
  color: var(--cream-dim);
}

/* ---------- lookbook ---------- */
.lookbook {
  background: linear-gradient(180deg, transparent, rgba(11, 9, 7, 0.88) 20%, rgba(11, 9, 7, 0.88) 80%, transparent);
}
.look-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: 1200px;
  perspective: 1200px;
}
.look-photo {
  margin: 0;
  position: relative;
  transform-style: preserve-3d;
  transition:
    transform 1s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 1s ease;
}
.look-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.look-photo figcaption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  transform: translateZ(40px);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(11, 9, 7, 0.75);
  padding: 10px 14px;
  border-left: 3px solid var(--gold);
}
.look-copy p:not(.eyebrow) {
  color: var(--cream-dim);
  margin: 26px 0 34px;
  max-width: 460px;
}

/* ---------- join ---------- */
.join {
  display: grid;
  place-items: center;
}
.join-card {
  width: 100%;
  max-width: 720px;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 0%, rgba(227, 166, 42, 0.18), transparent 60%), rgba(11, 9, 7, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.join-logo {
  width: 130px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 0 24px rgba(255, 175, 50, 0.45));
}
.join-card > p {
  color: var(--cream-dim);
  max-width: 440px;
  margin: 18px auto 32px;
}
.join-form {
  display: flex;
  gap: 10px;
}
.join-form input {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  background: rgba(239, 225, 186, 0.05);
  border: 1px solid var(--line);
  color: var(--cream);
  font: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.join-form input:focus {
  border-color: var(--gold);
}
.join-form input[aria-invalid="true"] {
  border-color: var(--ember);
}
.join-msg {
  min-height: 1.6em;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--gold-hot);
}

/* ---------- footer ---------- */
.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 40px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-brand img {
  width: 56px;
}
.footer-brand strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.12em;
  font-size: 18px;
}
.footer-brand span {
  font-size: 13px;
  color: var(--cream-dim);
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
}
.footer-links a:hover {
  opacity: 1;
  color: var(--gold-hot);
}
.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: var(--cream-dim);
  opacity: 0.7;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .drop-grid,
  .look-grid {
    grid-template-columns: 1fr;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .hero {
    align-items: flex-end;
  }
  .hero-copy {
    max-width: none;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .nav-logo span {
    display: none;
  }
  .nav-logo img {
    width: 44px;
  }
  .join-form {
    flex-direction: column;
  }
  .footer {
    grid-template-columns: 1fr;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
  .tilt-badge {
    left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .grain {
    animation: none;
  }
}
