/* ============================================================
   azmar — coming-soon teaser
   Dark luxe / moody. Scroll-scrub hero. Tokens → base → components.
   ============================================================ */

:root {
  /* --- color tokens --- */
  --espresso:    #14100e;
  --espresso-2:  #1b1512;
  --surface:     #221b16;
  --line:        #3a2e26;

  --cream:   #ece3d8;
  --taupe:   #c9bbac;
  --muted:   #8a7d6f;

  --copper:    #c1804f;
  --copper-hi: #d99a6a;

  /* --- type --- */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- spacing --- */
  --pad-x: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1280px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-weight: 300;
  background: var(--espresso); color: var(--cream); line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- helpers ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--copper); color: var(--espresso); padding: .6rem 1rem; }
.skip-link:focus { left: .5rem; top: .5rem; }
.eyebrow { font-size: .72rem; letter-spacing: .42em; text-transform: uppercase; color: var(--copper); font-weight: 400; }

/* ============================================================ HEADER */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  opacity: 0; transform: translateY(-100%);
  transition: opacity .5s var(--ease), transform .5s var(--ease), background .5s var(--ease);
  pointer-events: none;
}
.site-header.is-visible {
  opacity: 1; transform: none; pointer-events: auto;
  background: rgba(20,16,14,.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.site-header__brand { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .12em; }
.site-header__cta { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--taupe); padding-bottom: 3px; border-bottom: 1px solid var(--copper); transition: color .3s var(--ease); }
.site-header__cta:hover { color: var(--copper-hi); }

/* ============================================================ SCROLL-SCRUB HERO (contained stage) */
.scrolly { position: relative; }
.scrolly__inner {
  position: relative; height: 100svh; width: 100%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(58% 55% at 50% 47%, rgba(193,128,79,.16), transparent 72%),
    var(--espresso);
}
/* centered square stage matches the 1:1 source → whole frame shows, never upscaled = crisp */
.scrolly__stage {
  position: relative;
  height: min(88svh, 94vw);
  width:  min(88svh, 94vw);
  overflow: hidden; border-radius: 2px;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
}
.scrolly__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.scrolly__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 45%, transparent 32%, rgba(20,16,14,.5) 100%),
    linear-gradient(to top, rgba(20,16,14,.6), transparent 46%);
}

/* beats overlaid on the scrub */
.beats { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.beat {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--pad-x);
  opacity: 0;
}
.beat.is-first { opacity: 1; }            /* visible without JS */
.beat__logo { width: clamp(160px, 28vw, 250px); margin-top: 1.2rem; }
.beat__title {
  font-family: var(--serif); font-weight: 500; line-height: 1.04;
  font-size: clamp(2.6rem, 8vw, 5.2rem); color: var(--cream);
  text-shadow: 0 2px 40px rgba(0,0,0,.5);
}
.beat__line { font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2.4rem); color: var(--cream); margin-top: .8rem; }

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue__line { width: 1px; height: 46px; background: linear-gradient(to bottom, var(--copper), transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%{transform:scaleY(.2);transform-origin:top;opacity:.4} 50%{transform:scaleY(1);opacity:1} 100%{transform:scaleY(.2);transform-origin:bottom;opacity:.4} }

/* ============================================================ INVITE */
.invite {
  position: relative; z-index: 5;
  text-align: center; padding: clamp(5rem, 14vh, 9rem) var(--pad-x);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(193,128,79,.10), transparent 70%),
    var(--espresso);
  display: flex; flex-direction: column; align-items: center;
}
.invite__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.06; margin-top: 1rem; }
.invite__sub { color: var(--taupe); max-width: 42ch; margin: 1.1rem auto 0; }

/* countdown */
.countdown { display: flex; gap: clamp(1rem, 4vw, 2.6rem); margin: 2.6rem 0 2.4rem; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 3.2rem; }
.countdown__num { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__lab { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: .55rem; }

/* signup */
.signup { width: 100%; max-width: 440px; }
.signup__row { display: flex; align-items: stretch; gap: .5rem; border-bottom: 1px solid var(--line); transition: border-color .3s var(--ease); }
.signup__row:focus-within { border-color: var(--copper); }
.signup__input { flex: 1; background: transparent; border: none; color: var(--cream); font-size: 1rem; padding: .85rem .2rem; letter-spacing: .02em; }
.signup__input::placeholder { color: var(--muted); }
.signup__input:focus { outline: none; }
.signup__btn { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--copper-hi); padding: 0 .6rem; white-space: nowrap; transition: color .3s var(--ease); }
.signup__btn:hover { color: var(--cream); }
.signup__status { min-height: 1.3em; margin-top: .8rem; font-size: .82rem; color: var(--taupe); }
.signup__status.is-error { color: #d98a7a; }
.signup__status.is-ok { color: var(--copper-hi); }
.signup.is-done .signup__row { opacity: .4; pointer-events: none; }

/* ============================================================ GALLERY */
.gallery { padding: clamp(4rem, 10vh, 7rem) var(--pad-x) clamp(5rem, 12vh, 9rem); max-width: var(--maxw); margin: 0 auto; }
.section-head { text-align: center; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.section-head__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin-top: 1rem; }
.section-head__sub { color: var(--taupe); max-width: 46ch; margin: 1rem auto 0; }

.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 1.6vw, 1.5rem); grid-auto-flow: dense; }
.gallery__item { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.gallery__item--tall { grid-row: span 2; aspect-ratio: 4 / 8.2; }   /* staggered masonry */
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  padding: 2.4rem 1rem 1rem; text-align: center;
  font-family: var(--serif); font-size: 1.2rem; letter-spacing: .04em; color: var(--cream);
  background: linear-gradient(to top, rgba(20,16,14,.92), rgba(20,16,14,.45) 55%, transparent);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 1.1s var(--ease); filter: saturate(.9); }
.gallery__item:hover img { transform: scale(1.05); filter: saturate(1); }

/* ============================================================ FOOTER */
.site-footer { text-align: center; padding: clamp(3.5rem, 8vh, 6rem) var(--pad-x) 3rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.site-footer__mark { width: 110px; opacity: .9; }
.site-footer__social { display: inline-flex; align-items: center; gap: .55rem; color: var(--taupe); font-size: .8rem; letter-spacing: .12em; transition: color .3s var(--ease); }
.site-footer__social:hover { color: var(--copper-hi); }
.site-footer__fine { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); }
.site-footer__copy { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ============================================================ REVEAL */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ============================================================ RESPONSIVE */
@media (max-width: 760px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--tall { grid-row: span 1; aspect-ratio: 4 / 5; }
}
@media (max-width: 440px) {
  .countdown { gap: 1rem; }
  .signup__row { flex-wrap: wrap; }
  .signup__btn { width: 100%; text-align: center; padding: .7rem 0 0; }
}

/* ============================================================ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
