/* ============================================
   MARGIN CLUB — tokens
   ============================================ */
:root{
  --bg: #0a0a0a;
  --bg-alt: #111110;
  --fg: #f2f0ea;
  --muted: #8f8c85;
  --gold: #c9a227;
  --line: rgba(242,240,234,0.14);
  --line-soft: rgba(242,240,234,0.07);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1360px;
  --pad: clamp(20px, 5vw, 64px);
}

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

html{ background: var(--bg); }

body{
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: default;
}

img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
.mono{ font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.03em; }

::selection{ background: var(--gold); color: #0a0a0a; }

/* hide native cursor once custom cursor is active (desktop only, set via JS class on body) */
body.has-cursor, body.has-cursor a, body.has-cursor button{ cursor: none; }

/* ============================================
   PRELOADER
   ============================================ */
.preloader{
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
}
.preloader__count{
  font-family: var(--font-mono);
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 500;
  color: var(--fg);
  line-height: 1;
}
.preloader__count::after{ content: "%"; font-size: 0.4em; color: var(--muted); margin-left: 4px; }
.preloader__label{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--muted);
}
.preloader__bar{
  width: min(240px, 60vw);
  height: 1px;
  background: var(--line);
  position: relative;
}
.preloader__bar span{
  position: absolute; left:0; top:0; bottom:0;
  width: 0%;
  background: var(--gold);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor{
  position: fixed;
  top: 0; left: 0;
  width: 22px; height: 22px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, background-color .25s ease, border-color .25s ease, opacity .25s ease;
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor.is-active{ opacity: 1; }
.cursor.is-hover{
  width: 56px; height: 56px;
  background: var(--fg);
}
.cursor.is-hidden{ opacity: 0; }

/* ============================================
   NAV
   ============================================ */
.nav{
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--pad);
  mix-blend-mode: difference;
}
.nav__mark{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav__mark .dot{ color: var(--gold); }
.nav__links{ display:flex; gap: clamp(18px, 3vw, 40px); }
.nav__link{
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s ease;
}
.nav__link:hover::after{ transform: scaleX(1); transform-origin: left; }

/* ============================================
   HERO
   ============================================ */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px var(--pad) 0;
  overflow: hidden;
}
.hero__inner{ max-width: var(--container); margin: 0 auto; width: 100%; }
.hero__title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 11vw, 148px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero__title .line{ display:block; overflow: hidden; }
.hero__title .line__inner{ display:block; will-change: transform; }

.hero__sub{
  margin-top: 28px;
  max-width: 420px;
  font-size: 17px;
  color: var(--muted);
}

.ticker{
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
}
.ticker__track{
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.ticker__track span{ display:flex; align-items:center; gap: 48px; }
.ticker__track b.up{ color: var(--gold); font-weight: 500; }

.hero__scroll{
  position: absolute;
  right: var(--pad); bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line{ width: 1px; height: 40px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line i{
  position:absolute; top:-100%; left:0; right:0; height: 100%;
  background: var(--gold);
  animation: scrollline 1.8s ease-in-out infinite;
}
@keyframes scrollline{
  0%{ top:-100%; }
  50%{ top: 0%; }
  100%{ top: 100%; }
}

/* ============================================
   INTRO
   ============================================ */
.intro{
  padding: clamp(120px, 16vw, 220px) var(--pad);
  border-bottom: 1px solid var(--line-soft);
}
.intro__text{
  max-width: 920px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.reveal-word{ display: inline-block; opacity: 0.16; }

/* ============================================
   COLLECTION / PRODUCTS
   ============================================ */
.collection{ padding: 0 var(--pad); }

.product{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(80px, 12vw, 160px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.product--reverse{ grid-template-columns: 0.9fr 1.1fr; }
.product--reverse .product__visual{ order: 2; }
.product--reverse .product__info{ order: 1; }

.product__visual{
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  align-items: end;
}
.product__img-wrap{
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-alt);
}
.product__img-wrap--sm{ transform: translateY(14%); }
.product__img{
  width: 100%; height: 130%;
  object-fit: cover;
  will-change: transform;
}

.product__index{ font-size: 12px; color: var(--gold); display:block; margin-bottom: 18px; }
.product__title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.product__desc{
  max-width: 380px;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 24px;
}
.product__meta{
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; color: var(--muted);
  margin-bottom: 36px;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

/* ============================================
   BUTTONS / MAGNETIC
   ============================================ */
.btn{
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 34px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
}
.btn span{ position: relative; z-index: 2; transition: color .35s ease; }
.btn::before{
  content:"";
  position: absolute; inset: 0;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform .4s cubic-bezier(.65,0,.35,1);
  z-index: 1;
}
.btn:hover::before{ transform: translateY(0); }
.btn:hover span{ color: var(--bg); }
.btn--light{ border-color: var(--fg); }

/* ============================================
   BANNER
   ============================================ */
.banner{
  position: relative;
  height: 90vh;
  min-height: 480px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.banner__img-wrap{ position:absolute; inset: -10% 0; }
.banner__img{ width: 100%; height: 120%; object-fit: cover; filter: brightness(0.45) saturate(0.9); }
.banner__title{
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(32px, 7vw, 84px);
  line-height: 1.02;
  text-align: center;
  letter-spacing: -0.01em;
}
.banner__title .line{ overflow: hidden; }
.banner__title .line__inner{ display:block; will-change: transform; }

/* ============================================
   CONTACT
   ============================================ */
.contact{
  padding: clamp(120px, 16vw, 220px) var(--pad);
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.contact__title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 8vw, 96px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.contact__sub{ margin-top: 20px; color: var(--muted); }
.contact__form{
  margin: 48px auto 0;
  display: flex; gap: 12px;
  max-width: 420px;
}
.contact__form input{
  flex: 1;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 22px;
  height: 56px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
}
.contact__form input::placeholder{ color: var(--muted); }
.contact__form input:focus{ outline: none; border-color: var(--gold); }
.contact__socials{
  margin-top: 40px;
  display: flex; gap: 28px; justify-content: center;
  font-size: 12px; color: var(--muted);
}
.contact__socials a:hover{ color: var(--fg); }

/* ============================================
   FOOTER
   ============================================ */
.footer{
  display: flex; justify-content: space-between;
  padding: 28px var(--pad);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--muted);
}

/* focus visibility (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px){
  .nav__links{ gap: 16px; }
  .nav__link:not(.magnetic){ display: none; }

  .product{ grid-template-columns: 1fr; }
  .product--reverse .product__visual{ order: 1; }
  .product--reverse .product__info{ order: 2; }
  .product__visual{ grid-template-columns: 1.2fr 1fr; }

  .contact__form{ flex-direction: column; }
  .footer{ flex-direction: column; gap: 6px; }
}

@media (max-width: 560px){
  .hero{ padding-top: 120px; }
  .ticker__track{ font-size: 11px; }
}

/* Reduced motion / mobile-lightened animation is applied via JS (adds .no-parallax / .reduced-motion to body) */
body.reduced-motion .parallax-img{ transform: none !important; }
body.reduced-motion .cursor{ display: none; }

@media (prefers-reduced-motion: reduce){
  .hero__scroll-line i{ animation: none; }
  .ticker__track{ animation: none !important; }
}
