:root {
  --bg: #0a0b0d;
  --bg-2: #141821;
  --panel: #171a20;
  --text: #f4f5f7;
  --muted: #a3adba;
  --accent: #f0a524;
  --accent-2: #ffdb6e;
  --radius: 20px;
  --slideshow-pad: 24px;
  --slideshow-gap: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: "Special Gothic", "Space Grotesk", "Montserrat", "Avenir Next", sans-serif;
  background:
    radial-gradient(circle at top, var(--bg-2) 0%, var(--bg) 55%, #050607 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 8px);
  color: var(--text);
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

.start-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 12, 0.92);
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 24px;
}

.start-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  max-width: 360px;
}

.start-card h2 {
  font-family: "Special Gothic Expanded One", "Special Gothic", sans-serif;
  margin: 0 0 8px;
  color: var(--accent);
}

.start-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.start-card button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #141414;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: rgba(10, 11, 13, 0.88);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 42px;
  width: auto;
  display: none;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

.title-wrap h1 {
  font-family: "Special Gothic Expanded One", "Special Gothic", sans-serif;
  margin: 0 0 4px;
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.title-wrap p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.controls button {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.controls button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(240, 165, 36, 0.25);
}

.slideshow {
  padding: var(--slideshow-pad);
  display: grid;
  gap: var(--slideshow-gap);
  min-height: 0;
  height: calc(100vh - var(--header-height, 0px) - (var(--slideshow-pad) * 2));
  overflow: hidden;
}

.slide {
  display: none;
  gap: 16px;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  height: 100%;
  width: 100%;
}

.slide.active {
  display: grid;
}

.slide.full-viewport {
  height: 100%;
}

.slide.full-viewport .assets {
  height: 100%;
}

.slide-header h2 {
  font-family: "Special Gothic Expanded One", "Special Gothic", sans-serif;
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.slide-header p {
  margin: 0;
  color: var(--muted);
}

.assets {
  display: grid;
  gap: 16px;
  justify-content: center;
  align-content: center;
}

.assets.grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.assets.single {
  grid-template-columns: 1fr;
}

.assets.fixed-rows {
  height: 100%;
  grid-auto-rows: 1fr;
}

.asset-card {
  background: transparent;
  aspect-ratio: var(--ratio);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.asset-frame {
  width: 100%;
  height: 100%;
  background: transparent;
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
}

.asset-card video,
.asset-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: var(--ratio);
}

.asset-card video {
  cursor: pointer;
}

.assets.fit-viewport .asset-card {
  width: var(--tile-width);
  height: var(--tile-height);
}

.assets.fit-viewport .asset-card video,
.assets.fit-viewport .asset-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.asset-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  color: #fff;
  font-size: 0.85rem;
}

.asset-link {
  position: absolute;
  inset: 0;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(6, 7, 9, 0.82);
  z-index: 30;
  padding: 24px;
}

.video-modal.active {
  display: grid;
}

.video-modal__content {
  position: relative;
  width: auto;
  max-height: 90vh;
}

.video-modal__body {
  display: inline-block;
  width: fit-content;
  max-width: 92vw;
  padding: 16px;
  background: #0f1217;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.video-modal__body video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 640px;
  border-radius: 16px;
}

.video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(10, 10, 12, 0.7);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .slideshow {
    padding: 16px;
  }
}
