:root {
  --forest-deep: #1c2a1d;
  --moss: #4f6b35;
  --meadow: #7f9350;
  --bark: #5a4330;
  --mist: #a9bfd6;
  --gilded: #caa45a;
  --parchment: #efe6d2;
  --charcoal: #111612;
  --line: rgba(239, 230, 210, 0.12);
  --panel: rgba(15, 20, 16, 0.78);
  --panel-strong: rgba(10, 14, 11, 0.9);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --width: min(1220px, calc(100vw - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Source Sans 3", sans-serif;
  color: var(--parchment);
  background:
    radial-gradient(circle at top, rgba(169, 191, 214, 0.12), transparent 30%),
    linear-gradient(180deg, #253a25 0%, #171f18 32%, #101510 70%, #0b0f0b 100%);
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(202, 164, 90, 0.9);
  outline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--parchment);
  color: var(--charcoal);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  background: linear-gradient(180deg, rgba(8, 11, 9, 0.72), rgba(8, 11, 9, 0.34));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(239, 230, 210, 0.08);
}

.header-shell,
.section,
.footer-shell,
.hero-shell {
  width: var(--width);
  margin: 0 auto;
}

.header-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: clamp(4.7rem, 6.5vw, 6.8rem);
  gap: 1rem;
  padding-inline: clamp(0.1rem, 0.7vw, 0.6rem);
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(19rem, 29.5vw, 36rem);
  height: clamp(4.5rem, 5.9vw, 6.1rem);
  margin-left: 0;
  flex: 0 0 auto;
  overflow: visible;
  justify-self: center;
}

.brand-mark img,
.footer-game-logo,
.footer-studio img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.brand-mark img {
  height: 210%;
  max-width: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  align-items: center;
}

.site-nav a {
  padding: 0.28rem 0.56rem;
  border-radius: 999px;
  color: rgba(239, 230, 210, 0.84);
  transition: background-color 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(202, 164, 90, 0.12);
  color: var(--parchment);
}

.site-nav .nav-wishlist {
  color: #24180a;
  background: linear-gradient(180deg, #e8c87f 0%, #c98a3d 100%);
  box-shadow: 0 10px 24px rgba(201, 138, 61, 0.18);
}

.site-nav .nav-wishlist:hover,
.site-nav .nav-wishlist:focus-visible {
  background: linear-gradient(180deg, #f0d28a 0%, #d49443 100%);
  color: #1c1308;
}

.nav-toggle {
  display: none;
  padding: 0.45rem 0.82rem;
  border: 1px solid rgba(202, 164, 90, 0.36);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--parchment);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1rem 4.5rem;
  min-height: min(92svh, 900px);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-layer {
  position: absolute;
  inset: -6%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: translate3d(0, 0, 0) scale(1.06);
  will-change: transform;
}

.hero-base {
  background-image:
    linear-gradient(180deg, rgba(8, 11, 9, 0.06), rgba(8, 11, 9, 0.22)),
    url("assets/images/screens/scene-04.jpg");
}

.hero-glow {
  background-image:
    linear-gradient(180deg, rgba(169, 191, 214, 0.04), rgba(169, 191, 214, 0)),
    url("assets/images/screens/scene-07.jpg");
  opacity: 0.26;
  mix-blend-mode: screen;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(169, 191, 214, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(9, 11, 9, 0.36) 0%, rgba(9, 11, 9, 0.58) 55%, rgba(9, 11, 9, 0.88) 100%);
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.25rem;
  align-items: start;
}

.hero-copy-card,
.hero-video-card,
.media-tile,
.video-card,
.story-card,
.feature-card,
.wishlist-card {
  border: 1px solid rgba(239, 230, 210, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(18, 23, 19, 0.88), rgba(11, 15, 12, 0.84)),
    radial-gradient(circle at top, rgba(202, 164, 90, 0.1), transparent 48%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy-card {
  padding: clamp(1.3rem, 3.4vw, 2rem);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #d8c08e;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.98;
}

h1 {
  font-size: clamp(2.2rem, 4.1vw, 3.7rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2.3rem, 4.5vw, 4.1rem);
  max-width: 13ch;
}

h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  margin-bottom: 0.7rem;
}

p {
  margin: 0;
  line-height: 1.65;
  color: rgba(239, 230, 210, 0.9);
}

.hero-copy {
  max-width: 58ch;
  font-size: 1.08rem;
}

.hero-inline-shot,
.media-tile {
  position: relative;
}

.hero-inline-shot {
  margin: 1.35rem 0 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(239, 230, 210, 0.1);
}

.hero-inline-shot img,
.media-tile img,
.story-image img,
.feature-image,
.wishlist-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-inline-shot img {
  aspect-ratio: 16 / 9;
}

.hero-inline-shot figcaption,
.media-tile figcaption {
  padding: 0.8rem 1rem;
  background: rgba(9, 12, 10, 0.84);
  color: rgba(239, 230, 210, 0.86);
  font-size: 0.95rem;
}

.hero-actions,
.wishlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.82rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #1b1409;
  background: linear-gradient(180deg, #e4c983 0%, var(--gilded) 100%);
  box-shadow: 0 16px 34px rgba(202, 164, 90, 0.24);
}

.button-secondary {
  color: var(--parchment);
  background: rgba(239, 230, 210, 0.06);
  border-color: rgba(239, 230, 210, 0.16);
}

.hero-media-stack {
  display: grid;
  gap: 1rem;
}

.hero-video-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
}

.hero-video-copy {
  display: grid;
  gap: 0.55rem;
}

.hero-video-copy h2 {
  max-width: none;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.hero-shot-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
}

.media-tile img {
  aspect-ratio: 16 / 10;
}

.video-frame {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 8px);
  background: #0f130f;
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-frame-portrait {
  width: min(100%, 320px);
  justify-self: end;
}

.video-frame-portrait video {
  aspect-ratio: 4 / 5;
}

.section {
  padding: clamp(4.2rem, 8vw, 6.8rem) 0;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.video-grid,
.feature-grid,
.story-grid {
  display: grid;
  gap: 1.2rem;
}

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

.video-copy,
.story-copy,
.feature-body,
.wishlist-copy {
  padding: 1.3rem 1.4rem 1.5rem;
}

.gallery-shell {
  display: grid;
  gap: 1.1rem;
}

.gallery-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(239, 230, 210, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.gallery-stage-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-stage img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-copy {
  display: flex;
  justify-content: center;
}

.gallery-caption {
  max-width: 62ch;
  text-align: center;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(239, 230, 210, 0.2);
  border-radius: 999px;
  background: rgba(13, 17, 13, 0.7);
  color: var(--parchment);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-prev {
  left: 1rem;
}

.gallery-next {
  right: 1rem;
}

.gallery-nav span {
  font-size: 2rem;
  line-height: 1;
}

.gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(11rem, 16rem);
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.thumb {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(239, 230, 210, 0.1);
  border-radius: var(--radius-md);
  background: rgba(12, 17, 13, 0.82);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.thumb.is-active {
  border-color: rgba(202, 164, 90, 0.7);
  box-shadow: 0 0 0 2px rgba(202, 164, 90, 0.18);
}

.thumb:focus-visible,
.gallery-nav:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible,
.gallery-stage-button:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid rgba(202, 164, 90, 0.9);
  outline-offset: 3px;
}

.story-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.story-card-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.story-card-reverse .story-image {
  order: 2;
}

.story-card-reverse .story-copy {
  order: 1;
}

.story-image img {
  height: 100%;
  min-height: 320px;
}

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

.feature-card {
  display: grid;
}

.feature-image {
  aspect-ratio: 16 / 9;
}

.feature-index {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--gilded);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.wishlist-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.wishlist-image img {
  height: 100%;
  min-height: 100%;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(239, 230, 210, 0.08);
  background: linear-gradient(180deg, rgba(8, 11, 8, 0), rgba(8, 11, 8, 0.6));
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 2rem;
  align-items: end;
}

.footer-brand,
.footer-studio {
  display: grid;
  gap: 1rem;
}

.footer-game-logo {
  width: min(360px, 100%);
}

.footer-studio img {
  width: min(260px, 100%);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(5, 7, 5, 0.9);
  backdrop-filter: blur(12px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(239, 230, 210, 0.16);
  border-radius: 999px;
  background: rgba(14, 18, 15, 0.76);
  color: var(--parchment);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 2rem;
}

.lightbox-figure {
  margin: 0;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.lightbox-figure img {
  max-height: min(78vh, 980px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.lightbox-figure figcaption {
  max-width: 62ch;
  text-align: center;
  color: rgba(239, 230, 210, 0.88);
}

@media (max-width: 980px) {
  .hero-shell,
  .video-grid,
  .feature-grid,
  .story-card,
  .story-card-reverse,
  .wishlist-card,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .hero-video-card {
    grid-template-columns: 1fr;
  }

  .video-frame-portrait {
    justify-self: start;
    width: min(100%, 360px);
  }

  .story-card-reverse .story-image,
  .story-card-reverse .story-copy {
    order: initial;
  }

  .hero {
    min-height: auto;
    padding-top: 4.2rem;
  }

  .story-image img,
  .wishlist-image img {
    min-height: 260px;
  }
}

@media (max-width: 899px) {
  .header-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: clamp(3.3rem, 9.2vw, 4.7rem);
    padding-inline: 0.08rem;
  }

  .brand-mark {
    width: clamp(13rem, 45vw, 18rem);
    height: clamp(3.4rem, 9vw, 4.4rem);
    margin-left: 0;
    justify-self: center;
  }

  .brand-mark img {
    height: 185%;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    width: min(18rem, calc(100vw - 2rem));
    padding: 0.6rem;
    border: 1px solid rgba(239, 230, 210, 0.1);
    border-radius: 20px;
    background: rgba(12, 17, 13, 0.96);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }
}

@media (max-width: 720px) {
  :root {
    --width: min(100vw - 1.2rem, 100%);
  }

  .header-shell,
  .section,
  .footer-shell,
  .hero-shell {
    width: calc(100vw - 1.2rem);
  }

  .hero-shot-grid {
    grid-template-columns: 1fr;
  }

  .gallery-nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .gallery-prev {
    left: calc(50% - 3.6rem);
  }

  .gallery-next {
    right: calc(50% - 3.6rem);
  }

  .gallery-thumbs {
    grid-auto-columns: 80%;
  }

  .lightbox {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    position: absolute;
    bottom: 1rem;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .lightbox-figure figcaption {
    padding-bottom: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
