/* JD Media foundation: tokens, reset, type, buttons, wordmarks, lightbox, reveal.
   Palette is strictly the logo palette: black, white, and the JD Media gold gradient. */
:root {
  --bg: #000;
  --bg-tint: #0a0a0a;
  --bg-raise: #121212;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.18);
  --fg: #fff;
  --fg-soft: rgba(255,255,255,.78);
  --muted: rgba(255,255,255,.52);
  --gold: #e1b724;
  --gold-mid: #e6c14c;
  --gold-light: #eed387;
  --gold-grad: linear-gradient(180deg, #eed387 0%, #e6c14c 50%, #e1b724 100%);
  --gold-grad-x: linear-gradient(90deg, #eed387 0%, #e6c14c 50%, #e1b724 100%);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --ease: cubic-bezier(.2,.7,.1,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(225,183,36,.35); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--fg-soft); max-width: 58ch; font-weight: 400; }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s ease, color .2s, border-color .2s, background-color .2s, filter .2s;
}
.btn:active { transform: scale(.98); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-gold { background: var(--gold-grad); color: #000; box-shadow: 0 14px 40px -14px rgba(225,183,36,.6); }
.btn-gold:hover { box-shadow: 0 18px 50px -12px rgba(225,183,36,.85); filter: brightness(1.05); }
.btn-ghost { color: var(--fg); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.play-btn { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.play-btn .ring {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.25); backdrop-filter: blur(6px);
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.play-btn .ring::after { content: ""; margin-left: 4px; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.play-btn:hover .ring { background: var(--gold); border-color: var(--gold); transform: scale(1.06); }
.play-btn:hover .ring::after { border-left-color: #000; }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; }
.brand .word { font-weight: 800; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; line-height: 1.1; }
.brand .word small { display: block; font-weight: 500; font-size: 8.5px; letter-spacing: .3em; color: var(--gold-mid); margin-top: 3px; }

/* ---------- Placeholder wordmarks ----------
   Stand-ins until official logo files arrive. Drop a file in media/logos/ and set `logo` in shared/data.js. */
.wm { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1; white-space: nowrap; color: var(--fg); font-weight: 700; }
.wm small { display: block; margin-top: 6px; font-size: .38em; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-mid); }
.wm img { height: 1.6em; width: auto; }
.wm-heavy { font-weight: 900; font-style: italic; letter-spacing: -.02em; text-transform: uppercase; }
.wm-wide { font-weight: 300; letter-spacing: .36em; text-transform: uppercase; }
.wm-caps { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wm-lower { font-weight: 800; letter-spacing: -.03em; text-transform: lowercase; }
.wm-light { font-weight: 400; letter-spacing: .02em; }
.wm-script { font-weight: 600; font-style: italic; letter-spacing: .01em; }

/* ---------- Logo marquee ---------- */
.marquee {
  display: flex; overflow: hidden; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  flex-shrink: 0; display: flex; align-items: center; gap: var(--gap, 72px); padding-right: var(--gap, 72px);
  list-style: none; animation: marquee var(--speed, 55s) linear infinite;
}
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .brand-item { font-size: var(--size, 28px); opacity: .82; transition: opacity .3s, color .3s; }
.marquee .brand-item:hover { opacity: 1; }
.marquee .brand-item:hover .wm { color: var(--gold-light); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="fade"] { transform: none; }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Media tiles ---------- */
.tile { position: relative; overflow: hidden; background: var(--bg-raise); cursor: pointer; isolation: isolate; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .5s; }
.tile video { opacity: 0; }
.tile.playing video { opacity: 1; }
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile .meta {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 22px 20px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  display: flex; flex-direction: column; gap: 4px;
}
.tile .meta b { font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.tile .meta span { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.tile .tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); border: 1px solid var(--line);
}

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(0,0,0,.94); opacity: 0; pointer-events: none; transition: opacity .35s ease; padding: 5vh 4vw; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb .stage { max-width: min(1400px, 92vw); max-height: 88vh; display: grid; place-items: center; }
.lb video, .lb img { max-width: 100%; max-height: 82vh; border-radius: 6px; box-shadow: 0 40px 120px -30px rgba(0,0,0,.9); }
.lb .cap { margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-align: center; }
.lb .cap b { color: var(--gold-light); font-weight: 700; }
.lb .x { position: absolute; top: 22px; right: 26px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 22px; line-height: 1; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.lb .x:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- HoneyBook embed ---------- */
.embed { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(225,183,36,.35); background: #fff; box-shadow: 0 40px 100px -40px rgba(225,183,36,.3), 0 30px 80px -30px rgba(0,0,0,.8); }
.embed iframe { display: block; width: 100%; height: 900px; border: 0; background: #fff; }
.embed .loading { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; color: rgba(0,0,0,.6); font-size: 14px; transition: opacity .4s; }
.embed.ready .loading { opacity: 0; pointer-events: none; }

.embed-shield { position: absolute; inset: 0; z-index: 2; display: grid; place-items: end center; padding-bottom: 28px; cursor: pointer; background: transparent; }
.embed-shield span { padding: 10px 18px; border-radius: 999px; background: rgba(0,0,0,.78); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.embed:hover .embed-shield span { opacity: 1; transform: none; }
.embed.active .embed-shield { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
