/* ===========================================================
   Thomas Warberg — video landing page
   Brand values pulled from thomaswarberg.dk
   =========================================================== */

:root {
  --bg:         #252526; /* dark charcoal */
  --bg-deep:    #1c1c1d; /* slightly darker, behind the video / sticky bar */
  --text:       #eeece8; /* warm off-white */
  --muted:      #63676a; /* muted text / dividers */
  --gold-head:  #d7ad32; /* display headline gold */
  --gold-cta:   #cfa84e; /* accent / CTA / stars */
  --on-gold:    #252526; /* button text on gold */

  --maxw: 1040px;
  --gap: clamp(1.5rem, 4vw, 2.75rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle vignette for cinematic depth */
  background-image: radial-gradient(130% 100% at 50% 0%, #2b2b2c 0%, var(--bg) 42%, var(--bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* subtle film grain — CSS-only, no network request */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.5rem) clamp(1.1rem, 5vw, 2rem) clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ---------- 1. Badge ---------- */
.badge {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
  color: var(--gold-cta);
  font-weight: 600;
  font-size: clamp(0.82rem, 2.6vw, 0.95rem);
  line-height: 1.3;
  padding: 0.5rem 1.05rem;
  border: 1px solid rgba(207, 168, 78, 0.5);
  border-radius: 999px;
  background: rgba(207, 168, 78, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.badge:hover {
  background: rgba(207, 168, 78, 0.12);
  border-color: var(--gold-cta);
}
.badge__arrow { transition: transform 0.18s ease; }
.badge:hover .badge__arrow { transform: translateX(3px); }
.badge:focus-visible { outline: 2px solid var(--gold-cta); outline-offset: 3px; }

/* ---------- 2. Headline block ---------- */
.hero { text-align: center; }

.kicker {
  margin: 0 0 0.6rem;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(0.74rem, 2.4vw, 0.95rem);
  color: var(--gold-cta);
}

.headline {
  margin: 0;
  font-family: "Permanent Marker", "Brush Up", cursive;
  font-weight: 400; /* Permanent Marker ships as a single weight; reads bold by design */
  color: var(--gold-head);
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0;
  font-size: clamp(2rem, 7.5vw, 4.25rem);
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero__sub {
  margin: 0.8rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: clamp(0.9rem, 2.6vw, 1.05rem);
}
.hero__source { color: var(--text); font-weight: 600; }

.stars {
  color: var(--gold-cta);
  letter-spacing: 0.12em;
  line-height: 1;
}

/* ---------- 3. Video ---------- */
.video { width: 100%; }

.video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;      /* reserves the box — zero layout shift */
  background: var(--bg-deep);
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 70px -24px rgba(0, 0, 0, 0.85);
}

.video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background-color: var(--bg-deep);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: grid;
  place-items: center;
  transition: filter 0.2s ease;
}
.video__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%);
}
.video__poster:hover,
.video__poster:focus-visible { filter: brightness(1.06); }
.video__poster:focus-visible { outline: 2px solid var(--gold-cta); outline-offset: 3px; }

.video__play {
  position: relative;
  z-index: 1;
  display: block;
  transition: transform 0.18s ease;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}
.video__poster:hover .video__play { transform: scale(1.08); }
.video__play svg { display: block; }
.video__play-bg { fill: #cc0000; transition: fill 0.18s ease; }
.video__poster:hover .video__play-bg { fill: #ff0000; }

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__note {
  margin: 0.7rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Rotating press cards ---------- */
.press {
  position: relative;
  max-width: 720px;
  margin: 1.4rem auto 0;
  height: 160px;          /* fixed — reserved for the tallest quote, no layout shift */
}

.press__card {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.press__card.is-active {
  opacity: 1;
  pointer-events: auto;
}

.press__quote {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 34ch;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
}

.press__rating {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 4px;                /* matches the requested 4px letter-spacing */
  color: var(--gold-cta);
  font-size: 18px;         /* drives icon size via em */
}
.press__rating .icon { width: 1em; height: 1em; display: block; }
.icon--star { fill: currentColor; }
.icon--line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.press__source {
  position: relative;
  z-index: 1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8A8E91;
  font-size: 12px;
}

/* faint crown behind card 5 */
.press__crown {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -54%);
  color: var(--gold-cta);
  opacity: 0.06;
  pointer-events: none;
}
.press__crown .icon--line { stroke-width: 1.1; }

/* ---------- 4. New show block ---------- */
.newshow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.25rem);
  text-align: center;
}

.newshow__poster { flex: none; }
.newshow__poster img {
  display: block;
  width: 100%;
  max-width: 60vw;          /* mobile: never more than 60% viewport width */
  height: auto;             /* width/height attrs reserve the 728x1024 ratio */
  border: 1px solid rgba(207, 168, 78, 0.35);
  box-shadow: 0 24px 55px -22px rgba(0, 0, 0, 0.85);
}

.newshow__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.eyebrow {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(0.74rem, 2.4vw, 0.9rem);
  color: var(--gold-cta);
}

.newshow__title {
  margin: 0;
  font-family: "Permanent Marker", "Brush Up", cursive;
  font-weight: 400;
  color: var(--gold-head);
  text-transform: uppercase;
  line-height: 1.1;
  font-size: clamp(1.7rem, 6vw, 3rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.newshow__text {
  margin: 0;
  max-width: 42ch;
  color: var(--text);
  font-weight: 500;
}

/* shared gold button */
.btn {
  display: inline-block;
  margin-top: 0.4rem;
  background: var(--gold-cta);
  color: var(--on-gold);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1rem, 3vw, 1.15rem);
  line-height: 1.15;
  padding: 1.05rem 2.1rem;
  border-radius: 2px;
  box-shadow: 0 12px 30px -10px rgba(207, 168, 78, 0.55);
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover {
  background: #dcb662;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(207, 168, 78, 0.7);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* two-column from 768px up: poster left, text right */
@media (min-width: 768px) {
  .newshow {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 4vw, 3.25rem);
    text-align: left;
  }
  .newshow__poster img { width: 280px; max-width: 280px; }
  .newshow__body { align-items: flex-start; }
  .newshow__text { max-width: 40ch; }
}

/* ---------- Footer ---------- */
.foot { text-align: center; margin-top: 0.5rem; }
.wordmark {
  margin: 0;
  font-family: "Permanent Marker", cursive;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  opacity: 0.7;
}

/* ---------- Sticky mobile CTA ---------- */
.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: none;                 /* desktop: never */
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  padding-bottom: calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--bg-deep);
  border-top: 1px solid rgba(99, 103, 106, 0.3);
  transform: translateY(110%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.stickybar__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stickybar__btn {
  flex: none;
  background: var(--gold-cta);
  color: var(--on-gold);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  padding: 0.65rem 1.05rem;
  border-radius: 2px;
}
.stickybar__btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

@media (max-width: 767px) {
  .stickybar { display: flex; }
  /* reveal once playing; reserve space so the bar never covers the content below */
  body.is-playing .stickybar { transform: translateY(0); }
  body.is-playing { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  /* press cards: smaller type, taller box so the longest quote never clips at 375px */
  .press { height: 184px; }
  .press__quote { font-size: 16px; }
  .press__rating { font-size: 16px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
