/* ============================================================
   Henna by Minahil Noor — Design tokens
   ============================================================ */
:root {
  --black: #050505;
  --black-soft: #0c0c0c;
  --ivory: #f4efe4;
  --gold: #c9a227;
  --gold-bright: #e0c158;
  --rose-gold: #b76e79;
  --line: rgba(244, 239, 228, 0.14);

  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 90rem;
  --gutter: clamp(1.5rem, 4vw, 4rem);

  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--black);
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

@media (pointer: coarse) {
  body { cursor: auto; }
}

img, video { max-width: 100%; display: block; }

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

::selection { background: var(--gold); color: var(--black); }

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--gold);
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  transition: width 0.25s var(--ease-soft), height 0.25s var(--ease-soft), opacity 0.25s;
}
.cursor-ring.is-active { width: 68px; height: 68px; }

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   Film grain
   ============================================================ */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: overlay;
}

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.preloader-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.preloader-count {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.preloader-bar {
  width: min(240px, 60vw);
  height: 1px;
  background: var(--line);
}
.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.1s linear;
}
.preloader.is-done {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease-soft);
  pointer-events: none;
}

/* ============================================================
   Shared section scaffolding
   ============================================================ */
.section-head {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) var(--gutter) 2.5rem;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin: 0 0 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  margin: 0;
  max-width: 20ch;
}

/* ============================================================
   ACT 2 — HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  background: var(--black);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(201,162,39,0.05) 0%, rgba(0,0,0,0) 60%);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-wordmark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17vw;
  line-height: 0.95;
  color: var(--ivory);
  opacity: 0.38;
  z-index: 3;
  white-space: nowrap;
  will-change: transform, opacity;
}

.hero-frame-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  mix-blend-mode: screen;
}

.hero-mobile-video,
.hero-static-poster {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 70%;
  object-fit: cover;
  z-index: 4;
}

.hero-watermark {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: black;
  z-index: 5;
  bottom: 104px;
  right: 104px;
}

.hero-content {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(3rem, 8vh, 6rem);
  z-index: 5;
  text-align: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.hero-content .eyebrow { justify-content: center; }
.hero-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}
.hero-sub {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: rgba(244,239,228,0.7);
  margin: 0;
}

.hero-annotation {
  position: absolute;
  z-index: 5;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(244,239,228,0.55);
  opacity: 0;
  pointer-events: none;
}
.hero-annotation-1 { top: 18%; left: 8%; }
.hero-annotation-2 { top: 24%; right: 8%; text-align: right; }
.hero-annotation-3 { bottom: 30%; left: 8%; }

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 1px;
  height: 40px;
  background: rgba(244,239,228,0.2);
  overflow: hidden;
}
.scroll-cue span {
  display: block;
  width: 100%;
  height: 40%;
  background: var(--gold);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ============================================================
   ACT 3 — MACRO
   ============================================================ */
.macro {
  position: relative;
  height: 220vh;
}
.macro-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.macro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.macro-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.65), rgba(5,5,5,0.85));
}
.macro-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
}
.macro-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 24ch;
  line-height: 1.25;
  margin: 0 0 2rem;
}
.macro-copy {
  position: relative;
  height: 2.5rem;
  width: 12.5rem;
}
.macro-copy-item {
  position: absolute;
  inset: 0;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--gold-bright);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft);
}
.macro-copy-item.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ACT 4 — COLLECTION
   ============================================================ */
.collection { background: var(--black); }
.collection-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(4rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.collection-card {
  grid-column: span 4;
  position: relative;
  border: 1px solid var(--line);
  background: var(--black-soft);
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  transform-style: preserve-3d;
  perspective: 900px;
  transition: border-color 0.3s;
}
.collection-card:hover { border-color: var(--gold); }
.collection-card-feature { grid-column: span 4; }
.collection-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}
.collection-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s var(--ease-soft);
}
.collection-card:hover .collection-card-img img { transform: scale(1.05); }
.collection-card-body { padding: 1.25rem 1.5rem 1.75rem; }
.collection-card-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}
.collection-note {
  font-size: 0.75rem;
  color: rgba(244,239,228,0.55);
  margin: 0 0 0.75rem;
}
.collection-price {
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin: 0;
}

@media (max-width: 900px) {
  .collection-card, .collection-card-feature { grid-column: span 12; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .collection-card { grid-column: span 6; }
  .collection-card-feature { grid-column: span 12; }
}

/* ============================================================
   ACT 5 — STYLES STRIP
   ============================================================ */
.styles-section { background: var(--black); padding-bottom: clamp(3rem, 6vw, 5rem); }
.styles-strip {
  overflow: hidden;
  width: 100%;
}
.styles-track {
  display: flex;
  gap: 1.5rem;
  padding: 0 var(--gutter);
  will-change: transform;
}
.style-slide {
  position: relative;
  flex: 0 0 clamp(240px, 48vw, 630px);
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}
.style-slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.style-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, rgba(5,5,5,0), rgba(5,5,5,0.85));
}

@media (max-width: 720px) {
  .styles-strip { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .styles-track { will-change: auto; }
  .style-slide { scroll-snap-align: start; flex-basis: 78vw; }
}

/* ============================================================
   ACT 6 — CTA
   ============================================================ */
.cta {
  background: var(--black);
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
  border-top: 1px solid var(--line);
}
.cta-inner {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}
.cta-sub {
  color: rgba(244,239,228,0.65);
  font-size: 0.95rem;
  max-width: 32ch;
  margin: 1rem auto 2.5rem;
}
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,239,228,0.6);
}
.form-row input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0.1rem;
  outline: none;
  transition: border-color 0.3s;
}
.form-row input:focus {
  border-color: var(--gold);
}
.form-row input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.magnetic-btn {
  margin-top: 1rem;
  padding: 1rem 2rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s, background 0.3s;
}
.magnetic-btn:hover { background: var(--gold); color: var(--black); }
.magnetic-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.magnetic-btn-inner { display: inline-block; will-change: transform; }

.cta-confirmation {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-style: italic;
  min-height: 1.5em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--gutter);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.footer-mark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}
.footer-address, .footer-social {
  font-size: 0.8rem;
  color: rgba(244,239,228,0.55);
  margin: 0.2rem 0;
}
.footer-social a { color: var(--gold); }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .preloader { display: none; }
  .hero-particles, .hero-wordmark, .hero-frame-canvas { display: none; }
  .hero-static-poster { display: block; }
  .hero-annotation { display: none; }
  .macro { height: auto; }
  .macro-pin { position: relative; height: 90vh; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   Mobile / responsive branch (< 1024px): disable heavy effects
   ============================================================ */
@media (max-width: 1023px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .hero-particles, .hero-wordmark, .hero-frame-canvas { display: none; }
  .hero-mobile-video { display: block; }
  .macro { height: auto; }
  .macro-pin { position: relative; height: 80vh; }
}
