:root {
  --bg: #faf6f1;
  --bg-band: #f1eae1;
  --surface: #fffdf9;
  --ink: #18171b;
  --ink-muted: #5a5660;
  --border: #e5dcd1;
  --accent: #c9185b;
  --accent-hover: #a9124b;
  --accent-soft: rgba(201, 24, 91, 0.1);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --max-w: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --shadow-card: 0 18px 44px -24px rgba(24, 23, 27, 0.22);
  --shadow-lift: 0 24px 52px -22px rgba(24, 23, 27, 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 241, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(12deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.nav-links a {
  position: relative;
  padding-block: 4px;
  transition: color 180ms var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding-inline: 22px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-1.5px);
}

.btn:active {
  transform: translateY(0.5px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 24px -12px rgba(201, 24, 91, 0.55);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-sm {
  height: 38px;
  padding-inline: 16px;
  font-size: 0.86rem;
}

/* Sections */
.section {
  min-height: calc(100svh - 72px);
  padding-block: clamp(56px, 7vh, 92px);
  display: flex;
  align-items: center;
}

.section-band {
  background: var(--bg-band);
  border-block: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 4vh, 44px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.06;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.6rem);
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.lead {
  margin: 18px 0 0;
  max-width: 48ch;
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.hero-meta strong {
  display: block;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 700;
}

/* Media Frames */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #141317;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
}

.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease);
}

.media-frame.is-interactive {
  cursor: pointer;
}

.media-frame.is-interactive:hover {
  box-shadow: var(--shadow-lift);
}

.media-frame.is-interactive:hover video,
.media-frame.is-interactive:hover img {
  transform: scale(1.025);
}

.media-trigger {
  position: absolute;
  right: 16px;
  bottom: 16px;
  height: 40px;
  padding-inline: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(24, 23, 27, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 180ms var(--ease), transform 180ms var(--ease);
}

.media-trigger:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Style Studio */
.studio-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.studio-tab {
  height: 38px;
  padding-inline: 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.studio-tab:hover {
  color: var(--ink);
}

.studio-tab[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
}

.studio-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.studio-main {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #141317;
  box-shadow: var(--shadow-card);
}

.studio-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-compact {
  min-height: auto;
  padding-block: clamp(56px, 7vh, 88px);
}

.studio-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 220ms var(--ease), transform 420ms var(--ease);
}

.studio-main:hover img {
  transform: scale(1.02);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.preset-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.preset-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.preset-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms var(--ease);
}

.preset-card:hover img {
  transform: scale(1.03);
}

/* Two-up Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Gameplay Bento */
.gameplay-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.gameplay-grid .span-7 {
  grid-column: span 7;
}

.gameplay-grid .span-5 {
  grid-column: span 5;
}

.gameplay-grid .span-12 {
  grid-column: span 12;
  aspect-ratio: 21 / 8;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 36px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 15, 19, 0.88);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-inner {
  position: relative;
  width: min(1120px, 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d0c10;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.lightbox-inner video {
  width: 100%;
  max-height: 82svh;
  object-fit: contain;
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(24, 23, 27, 0.78);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
}

.lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Hero entrance */
[data-enter] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}

[data-enter].is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-enter] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .studio-stage,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .section {
    min-height: auto;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .preset-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gameplay-grid .span-7,
  .gameplay-grid .span-5,
  .gameplay-grid .span-12 {
    grid-column: span 12;
  }

  .gameplay-grid .span-12 {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
