/* ============================================================
   MUZM X-METAL JULIET — release page styles
   Emulates oakley.com: AvenirNext, near-black #222 on white,
   pill CTAs, extra-bold uppercase display type, gray utility bar.
   ============================================================ */

:root {
  --ink: #222222;            /* oakley body text */
  --ink-soft: #5c5c5c;
  --paper: #ffffff;
  --paper-dim: #f6f6f6;      /* utility bar gray */
  --line: #e4e4e4;
  --carbon: #101012;         /* hero / footer dark (never pure black) */
  --carbon-2: #1b1b1f;
  --ruby: #cb2e27;           /* Prizm Ruby — sampled from the campaign lens photo */
  --ruby-bright: #e7311c;    /* hotter ruby for accents on dark sections */
  --font: "Avenir Next", "AvenirNext", "Mulish", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .wrap { padding: 0 48px; } }

/* ---------- utility bar ---------- */
.utility-bar {
  background: var(--paper-dim);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(16, 16, 18, 0.35);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
@media (min-width: 768px) { .header-inner { padding: 0 48px; } }

.logo { color: var(--ink); display: flex; align-items: center; }
.logo-mark { width: 64px; height: auto; }

.site-nav { display: none; gap: 28px; margin-left: 8px; }
@media (min-width: 900px) { .site-nav { display: flex; } }
.site-nav a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.site-nav a:hover { border-bottom-color: var(--ink); }

.header-cta {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border-radius: 100px;
  padding: 10px 22px;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease);
}
.header-cta:hover { background: var(--carbon-2); }
.header-cta:active { transform: scale(0.98); }

/* ---------- pill buttons ---------- */
.pill {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 100px;
  padding: 15px 34px;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.pill:active { transform: scale(0.98); }
.pill.light { background: var(--paper); color: var(--ink); }
.pill.light:hover { background: #e9e9e9; }
.pill.ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}
.pill.ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.95); }
.pill.dark { background: var(--ink); color: var(--paper); }
.pill.dark:hover { background: var(--carbon-2); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--header-h) - 40px);
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 46%),
    radial-gradient(90% 70% at 12% 100%, rgba(203, 46, 39, 0.14) 0%, rgba(203, 46, 39, 0) 55%),
    linear-gradient(160deg, #26262c 0%, var(--carbon) 58%, #08080a 100%);
  color: var(--paper);
  overflow: hidden;
}
/* brushed-metal sheen */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 5px
  );
  pointer-events: none;
}
/* oversized ghost ellipse — nods to the X-Metal O */
.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: 8%;
  width: 56vw;
  height: 24vw;
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  transform: rotate(-14deg);
  pointer-events: none;
}
/* photographic hero */
.hero.has-image {
  background-image: none; /* overridden inline */
  background-size: cover;
  background-position: 72% center;
  background-color: var(--carbon);
}
.hero.has-image::before,
.hero.has-image::after { display: none; }
.hero-scrim { display: none; }
.hero.has-image .hero-scrim {
  display: block;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.88) 0%, rgba(8, 8, 10, 0.55) 38%, rgba(8, 8, 10, 0.08) 70%),
    linear-gradient(0deg, rgba(8, 8, 10, 0.72) 0%, rgba(8, 8, 10, 0) 34%);
  pointer-events: none;
}
@media (max-width: 767px) {
  .hero.has-image { background-position: 68% 24%; }
  .hero.has-image .hero-scrim {
    background:
      linear-gradient(180deg, rgba(8, 8, 10, 0.35) 0%, rgba(8, 8, 10, 0.82) 62%, rgba(8, 8, 10, 0.94) 100%);
  }
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px 24px 72px;
}
@media (min-width: 768px) { .hero-inner { padding: 120px 48px 88px; } }

.hero .eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 20px;
}
.hero h1 {
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.015em;
  font-size: clamp(3.2rem, 11vw, 9.5rem);
}
.hero h1 .thin {
  display: block;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  -webkit-text-stroke: 0;
}
.hero .hero-sub {
  margin-top: 28px;
  max-width: 46ch;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
}
.hero .hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- facts strip ---------- */
.facts {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 900px) {
  .facts-grid { grid-template-columns: repeat(5, 1fr); padding: 0 48px; }
}
.fact {
  padding: 28px 20px 26px 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .fact { border-top: 0; border-left: 1px solid var(--line); padding-left: 24px; }
  .fact:first-child { border-left: 0; padding-left: 0; }
}
.fact .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.fact .value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.fact .value.countdown { font-variant-numeric: tabular-nums; }

/* ---------- section scaffolding ---------- */
.section { padding: 96px 0; }
@media (min-width: 768px) { .section { padding: 128px 0; } }

.kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--ruby);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

/* ---------- notice (no lines) ---------- */
.notice { background: var(--carbon); color: var(--paper); }
.notice .kicker { color: rgba(255, 255, 255, 0.55); }
.notice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) { .notice-grid { grid-template-columns: 5fr 4fr; gap: 80px; } }
.notice .section-title { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.notice .section-title em {
  font-style: normal;
  color: var(--ruby-bright);
}
.notice-body p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 58ch;
}
.notice-body p + p { margin-top: 18px; }
.notice-body p strong { color: var(--paper); font-weight: 700; }

/* ---------- lottery steps ---------- */
.steps-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 56px;
}
@media (min-width: 900px) { .steps-head { grid-template-columns: 2fr 1fr; align-items: end; } }

.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .step { grid-template-columns: 120px 340px 1fr; gap: 40px; align-items: baseline; }
}
.step-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #cfcfcf;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s var(--ease);
}
.step:hover .step-num { color: var(--ruby); }
.step-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.step-body {
  grid-column: 2;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 62ch;
}
@media (min-width: 900px) { .step-body { grid-column: auto; } }

/* ---------- heritage gallery ---------- */
.heritage { background: var(--carbon); color: var(--paper); }
.heritage .kicker { color: rgba(255, 255, 255, 0.55); }
.heritage-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
@media (min-width: 900px) { .heritage-head { grid-template-columns: 5fr 4fr; gap: 80px; align-items: end; } }
.heritage-body { font-size: 17px; color: rgba(255, 255, 255, 0.72); max-width: 56ch; }

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { margin: 0; display: flex; flex-direction: column; }
.gallery-item.wide { grid-column: 1 / -1; }
@media (min-width: 1100px) { .gallery-item.wide { grid-column: span 2; grid-row: span 2; } }
.gallery-item img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: var(--carbon-2);
}
.gallery-item.wide img { aspect-ratio: auto; flex: 1; min-height: 0; }
.gallery-item figcaption {
  flex-shrink: 0;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- locations ---------- */
.locations { background: var(--paper-dim); }
.loc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 56px;
}
@media (min-width: 900px) { .loc-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.loc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.loc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -28px rgba(16, 16, 18, 0.28);
}
.loc-units {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: var(--ink);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 14px;
}
.loc-name { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.loc-address { font-size: 16px; color: var(--ink-soft); }
.loc-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- terms ---------- */
.terms-head { max-width: 720px; margin-bottom: 56px; }
.terms-list { list-style: none; counter-reset: term; border-top: 1px solid var(--line); }
.terms-list li {
  counter-increment: term;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 900px;
}
.terms-list li::before {
  content: counter(term, decimal-leading-zero);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.terms-list li.highlight { color: var(--ink); font-weight: 600; }
.terms-list li.highlight::before { color: var(--ruby); }

/* ---------- closing ---------- */
.closing { background: var(--carbon); color: var(--paper); text-align: left; position: relative; overflow: hidden; }
.closing.has-image {
  background-size: cover;
  background-position: center 30%;
}
.closing-scrim { display: none; }
.closing.has-image .closing-scrim {
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 10, 0.9) 0%, rgba(8, 8, 10, 0.62) 55%, rgba(8, 8, 10, 0.3) 100%);
  pointer-events: none;
}
.closing .wrap { position: relative; z-index: 1; }
.closing .kicker { color: rgba(255, 255, 255, 0.55); }
.closing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) { .closing-grid { grid-template-columns: 2fr 1fr; } }
.closing .section-title { font-size: clamp(2.4rem, 6vw, 5rem); }
.closing-body { margin-top: 18px; font-size: 17px; color: rgba(255, 255, 255, 0.72); max-width: 46ch; }
.closing-cta { justify-self: start; }
@media (min-width: 900px) { .closing-cta { justify-self: end; } }

/* ---------- footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .footer-inner { padding: 0 48px; flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-logo { color: var(--ink); }
.footer-logo svg { width: 52px; height: auto; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }
.footer-legal { font-size: 12px; color: #9a9a9a; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
