@font-face {
  font-family: "Cormorant";
  src: url("assets/fonts/cormorant-latin.woff") format("woff");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  /* Mizithra brand kit: gold #E4AD32, navy #20283E, cream #FFF9ED */
  --gold: #e4ad32;
  --gold-hi: #f0c35c;
  --navy: #20283e;
  --navy-deep: #141a2a;
  --navy-mid: #1a2134;
  --navy-line: #2f3a57;
  --cream: #fff9ed;
  --cream-muted: #c3c6d3;
  --paper: #fff9ed;
  --paper-edge: #f1e7d2;
  --ink: #20283e;
  --ink-muted: #4a5068;
  --display: "Cormorant", Georgia, "Times New Roman", serif;
  --body: ui-sans-serif, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--cream);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--gold); color: var(--navy-deep); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Eyebrow echoes the letter-spaced GAMES under the wordmark */
.eyebrow {
  font: 700 0.78rem/1 var(--body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow-ink { color: #9a6d0c; }
.eyebrow-navy { color: var(--navy); opacity: 0.8; }
.lede { font-size: 1.15rem; color: var(--ink-muted); margin-top: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: 700 1rem/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { border: 1.5px solid rgba(255, 249, 237, 0.4); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(255, 249, 237, 0.06); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 26, 42, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 249, 237, 0.07);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.studio-logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav a:not(.btn) {
  color: var(--cream-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav a:not(.btn):hover { color: var(--cream); }

/* Hero: the room, the game's own logo laid over the fade, the pitch beneath */
.hero { position: relative; margin-top: calc(-1 * var(--header-h)); padding-bottom: clamp(56px, 8vw, 96px); }
.hero-media { position: relative; height: clamp(380px, 68vh, 680px); overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  animation: settle 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 26, 42, 0.75) 0%, rgba(20, 26, 42, 0) 22%),
    linear-gradient(to bottom, rgba(20, 26, 42, 0) 38%, rgba(20, 26, 42, 0.72) 66%, var(--navy-deep) 95%);
}
@keyframes settle { from { transform: scale(1.07); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
.hero-body {
  position: relative; text-align: center;
  margin-top: clamp(-230px, -17vw, -130px);
  display: flex; flex-direction: column; align-items: center;
}
.hero-logo { width: min(640px, 92vw); margin: -6px 0 0; }
.hero-logo img { width: 100%; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.55)); }
.tagline {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; color: var(--cream);
  margin-top: 4px;
}
.hero-copy { text-wrap: balance; max-width: 600px; margin-top: 14px; color: var(--cream-muted); font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(228, 173, 50, 0.12); border: 1px solid rgba(228, 173, 50, 0.35);
  color: var(--gold-hi); font-weight: 600; font-size: 0.95rem;
}
.status-sale[hidden] { display: none; }
.status-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(228, 173, 50, 0.22); }
.facts {
  list-style: none; padding: 0; margin: 30px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0;
  color: var(--cream-muted); font-size: 0.92rem; font-weight: 600;
}
.facts li { padding: 0 14px; }
.facts li + li { border-left: 1px solid var(--navy-line); }

/* Bands */
.band { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.band-dark { background: var(--navy-deep); }
.band-dark + .band-dark { border-top: 1px solid rgba(255, 249, 237, 0.06); }
.band-dark h2 { color: var(--cream); }
.band-paper { background: var(--paper); color: var(--ink); }
.band-gold { background: var(--gold); color: var(--navy); }
.band-gold::before {
  /* the kit's controller-plus pattern, faint */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath fill='%2320283E' d='M57 50h6v7h7v6h-7v7h-6v-7h-7v-6h7z'/%3E%3C/svg%3E");
}

/* Trailer */
.trailer {
  margin: 44px auto 0; max-width: 1040px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(228, 173, 50, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(255, 249, 237, 0.03);
  background: #000;
}
.trailer video { width: 100%; aspect-ratio: 16 / 9; }

/* Features: zigzag rows on paper */
.features { display: grid; gap: clamp(56px, 8vw, 104px); margin-top: clamp(48px, 7vw, 80px); }
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature:nth-child(even) img { order: 2; }
.feature img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--paper-edge), 0 24px 50px -18px rgba(32, 40, 62, 0.45);
}
.feature-text { max-width: 440px; }
.feature .num {
  display: block; font: 700 0.8rem/1 var(--body); letter-spacing: 0.2em; color: #9a6d0c; margin-bottom: 14px;
}
.feature .num::after {
  content: ""; display: inline-block; width: 36px; height: 2px; background: var(--gold);
  vertical-align: middle; margin-left: 12px;
}
.feature h3 { color: var(--ink); }
.feature p { color: var(--ink-muted); margin-top: 14px; }

/* Gallery */
.gallery {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: none;
  border-radius: 10px; overflow: hidden; position: relative;
}
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s ease, filter 0.3s ease; filter: saturate(0.92) brightness(0.92); }
.gallery button:hover img { transform: scale(1.04); filter: none; }
.gallery button::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 249, 237, 0.1); pointer-events: none;
}
.more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* Lightbox */
.lightbox {
  width: min(1240px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0;
  background: transparent; color: var(--cream); overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 13, 22, 0.9); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 10px; }
.lightbox figcaption { text-align: center; color: var(--cream-muted); margin-top: 12px; font-size: 0.95rem; }
.lb-close, .lb-nav {
  position: absolute; border: 0; cursor: pointer; color: var(--cream);
  background: rgba(32, 40, 62, 0.85); border-radius: 50%; width: 44px; height: 44px;
  font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
}
.lb-close { top: -54px; right: 0; }
.lb-nav { top: calc(41vh - 22px); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: var(--navy-deep); }

/* Studio */
.studio { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.studio-mark { width: 100%; max-width: 380px; justify-self: center; }
.studio-text h2 { color: var(--navy); }
.studio-text p { margin-top: 16px; font-size: 1.08rem; max-width: 560px; }
.links { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--navy); color: var(--cream); text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.links a:hover { background: var(--navy-deep); transform: translateY(-1px); }
.band-gold :focus-visible { outline-color: var(--navy); }
.contact { margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.contact dt { font: 700 0.75rem/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; }
.contact dd { margin: 8px 0 0; font-weight: 600; }
.contact a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* Footer */
.site-footer { background: var(--navy-deep); border-top: 1px solid rgba(255, 249, 237, 0.07); padding: 44px 0 52px; }
.footer-row { display: flex; gap: 32px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.footer-logo { height: 48px; width: auto; }
.footer-fine { max-width: 640px; color: #8f94a8; font-size: 0.86rem; display: grid; gap: 6px; }
.footer-fine a { color: var(--cream-muted); }

/* Scroll reveal (only when JS has opted in and motion is welcome) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .feature, .studio { grid-template-columns: 1fr; }
  .feature:nth-child(even) img { order: 0; }
  .feature-text { max-width: none; }
  .studio-mark { max-width: 220px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .studio-logo img { height: 34px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .facts li { padding: 0 10px; }
  .status { border-radius: 16px; text-align: left; }
  .actions .btn, .more .btn { flex: 1 1 100%; }
  .lb-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .gallery img, .links a { transition: none; }
}
