:root {
  --bg: #0a0a0c;
  --fg: #f2f0ed;
  --fg-dim: #8a8680;
  --accent: #c9a962;
  --accent-soft: rgba(201, 169, 98, 0.22);
  --safe: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--fg);
  padding: var(--safe);
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  min-height: 100dvh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(201, 169, 98, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(80, 70, 120, 0.07), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1.25rem, 4vw, 1.75rem);
  min-height: min(100dvh, 100%);
  justify-content: flex-start;
}

header {
  text-align: center;
  padding: 0 clamp(0.5rem, 2vw, 0);
}

.eyebrow {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.85rem, 7.5vw, 2.5rem);
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin-bottom: 0.75rem;
}

.tagline {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.92;
  margin-bottom: 0.85rem;
}

.desc {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--fg-dim);
  max-width: 22rem;
  margin: 0 auto;
}

.stage {
  position: relative;
  width: 100%;
  max-width: min(100%, 22rem);
  margin: 0 auto;
  flex: 0 0 auto;
  border-radius: 0.65rem;
  overflow: hidden;
  background: #111;
  aspect-ratio: 9 / 16;
  max-height: 72dvh;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 28px 56px -20px rgba(0, 0, 0, 0.8);
}

.stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(10, 10, 12, 0.25) 0%, rgba(10, 10, 12, 0.55) 100%);
  cursor: pointer;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.overlay-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  pointer-events: none;
}

.overlay-stack > * {
  pointer-events: auto;
}

.play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(4.75rem, 22vmin, 7rem);
  height: clamp(4.75rem, 22vmin, 7rem);
  border: none;
  border-radius: 50%;
  padding: 0;
  padding-left: 0.4rem;
  cursor: pointer;
  background: var(--accent-soft);
  color: var(--accent);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(201, 169, 98, 0.45),
    0 0 52px rgba(201, 169, 98, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.play:hover {
  transform: scale(1.06);
  background: rgba(201, 169, 98, 0.32);
  box-shadow:
    0 0 0 1px rgba(201, 169, 98, 0.65),
    0 0 72px rgba(201, 169, 98, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.play:active {
  transform: scale(0.98);
}

.play svg {
  width: 42%;
  height: 42%;
  flex-shrink: 0;
}

.play:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.end-gallery {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: linear-gradient(180deg, #e8d5a0 0%, var(--accent) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 12px 32px -8px rgba(201, 169, 98, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.end-gallery:hover {
  transform: scale(1.03);
  filter: brightness(1.06);
}

.overlay.overlay--ended .end-gallery {
  display: inline-flex;
}

.meta {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-bottom: 0.25rem;
}

.nav-top {
  text-align: center;
  margin-bottom: 0.5rem;
}

.nav-top a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 98, 0.35);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-top a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.page--gallery {
  width: 100%;
  max-width: min(42rem, 100%);
  box-sizing: border-box;
}

.page--gallery h1 {
  font-style: normal;
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 0.35rem;
}

.gallery-sub {
  font-size: 0.8125rem;
  color: var(--fg-dim);
  margin-bottom: 1.5rem;
  text-align: center;
}

.grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.85rem;
  min-width: 0;
}

.card {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 0.6rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 169, 98, 0.35);
  box-shadow: 0 20px 40px -16px rgba(201, 169, 98, 0.15);
}

.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #111;
  overflow: hidden;
  min-height: 0;
}

.card-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.card-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.card-thumb-skel {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #141418 0%, #222228 45%, #141418 100%);
  background-size: 180% 100%;
  animation: thumb-skel 1.1s ease-in-out infinite;
}

.card-thumb--fail .card-thumb-skel {
  animation: none;
  background: #18181c;
}

@keyframes thumb-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.card-body {
  padding: 0.65rem 0.7rem 0.75rem;
}

.card-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
}

.card-meta {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .overlay { transition: opacity 0.2s ease; }
  .play:hover,
  .play:active,
  .end-gallery:hover,
  .card:hover { transform: none; }
  .card-thumb-skel { animation: none; }
}
