:root {
  color-scheme: dark;
}

body.last-temple-page {
  background: #070807 !important;
  color: #f4efe3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.last-temple-page main {
  max-width: none !important;
  width: 100%;
  padding: 0 !important;
}

body.last-temple-page footer {
  display: none;
}

body.last-temple-page .lang-switcher {
  background: rgba(7, 8, 7, 0.58);
  border-color: rgba(244, 239, 227, 0.18);
}

body.last-temple-page .lang-switcher__btn {
  color: #d8d0bf;
}

body.last-temple-page .lang-switcher__btn--active {
  background: #f4efe3;
  color: #0c0f0c;
}

.lt-nav {
  position: fixed;
  z-index: 50;
  top: calc(env(safe-area-inset-top) + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(244, 239, 227, 0.16);
  border-radius: 8px;
  background: rgba(7, 8, 7, 0.66);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.lt-brand,
.lt-nav-links a,
.lt-button {
  text-decoration: none;
}

.lt-brand {
  color: #f4efe3;
  font-size: 14px;
  font-weight: 800;
}

.lt-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 96px;
}

.lt-nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: #c4bda9;
  font-size: 13px;
  font-weight: 700;
}

.lt-nav-links a:hover {
  background: rgba(244, 239, 227, 0.08);
  color: #f4efe3;
}

.lt-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 8%, rgba(184, 215, 208, 0.16), transparent 30rem),
    radial-gradient(circle at 84% 18%, rgba(214, 166, 93, 0.12), transparent 32rem),
    linear-gradient(180deg, #111510 0%, #080907 46%, #050605 100%);
  overflow: hidden;
}

.lt-hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: end;
  padding: 140px max(24px, calc((100vw - 1180px) / 2)) 76px;
}

.lt-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.lt-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.08);
}

.lt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 5, 0.92) 0%, rgba(5, 6, 5, 0.66) 42%, rgba(5, 6, 5, 0.16) 100%),
    linear-gradient(180deg, rgba(5, 6, 5, 0.2) 0%, rgba(5, 6, 5, 0.88) 100%);
}

.lt-hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.lt-kicker {
  margin: 0;
  color: #b8d7d0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lt-hero h1,
.lt-section-heading h2,
.lt-closing h2 {
  letter-spacing: 0;
}

.lt-hero h1 {
  margin: 14px 0 0;
  color: #f4efe3;
  font-size: clamp(56px, 10vw, 132px);
  font-weight: 900;
  line-height: 0.9;
}

.lt-subtitle {
  margin: 16px 0 0;
  color: #d6a65d;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
}

.lt-logline {
  max-width: 690px;
  margin: 22px 0 0;
  color: #ded6c5;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.58;
}

.lt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.lt-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.lt-button:hover {
  transform: translateY(-1px);
}

.lt-button-primary {
  background: #f4efe3;
  color: #0c0f0c;
}

.lt-button-secondary {
  border: 1px solid rgba(244, 239, 227, 0.3);
  color: #f4efe3;
}

.lt-button-secondary:hover {
  background: rgba(244, 239, 227, 0.08);
  border-color: rgba(244, 239, 227, 0.52);
}

.lt-section,
.lt-closing {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0;
}

.lt-section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.lt-section-heading h2,
.lt-closing h2 {
  margin: 10px 0 0;
  color: #f4efe3;
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 900;
  line-height: 1.02;
}

.lt-premise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  color: #c4bda9;
  font-size: 18px;
  line-height: 1.72;
}

.lt-premise-grid p,
.lt-faction p,
.lt-beats p,
.lt-concept-copy p,
.lt-capsule p,
.lt-closing p {
  margin: 0;
}

.lt-factions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 10px;
}

.lt-faction,
.lt-beats article,
.lt-capsule {
  border: 1px solid rgba(244, 239, 227, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), transparent 48%),
    #111410;
}

.lt-faction {
  min-height: 330px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.lt-faction-mark {
  color: #d6a65d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.lt-faction h3,
.lt-beats h3,
.lt-concept h3,
.lt-capsule h3 {
  margin: 10px 0 12px;
  color: #f4efe3;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.lt-faction p:last-child,
.lt-beats p,
.lt-concept-copy p:last-child,
.lt-capsule p:last-child {
  color: #c4bda9;
  line-height: 1.65;
}

.lt-faction-krix {
  background:
    linear-gradient(180deg, rgba(8, 9, 7, 0.08), rgba(8, 9, 7, 0.78)),
    url("../img/concept-art/krix-bio-city-01.png") center/cover;
}

.lt-faction-mekan {
  background:
    linear-gradient(180deg, rgba(8, 9, 7, 0.08), rgba(8, 9, 7, 0.78)),
    url("../img/concept-art/lazarus-vault-01.png") center/cover;
}

.lt-faction-xeratos {
  background:
    linear-gradient(180deg, rgba(8, 9, 7, 0.08), rgba(8, 9, 7, 0.78)),
    url("../img/concept-art/xeratos-mind-ark-01.png") center/cover;
}

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

.lt-beats article {
  padding: 24px;
}

.lt-beats span {
  color: #d6a65d;
  font-size: 13px;
  font-weight: 900;
}

.lt-gallery {
  display: grid;
  gap: 70px;
}

.lt-wide-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lt-wide-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 227, 0.14);
  border-radius: 8px;
  background: #111410;
}

.lt-wide-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lt-wide-gallery figcaption {
  min-height: 72px;
  padding: 13px 14px 15px;
  color: #c4bda9;
  font-size: 14px;
  line-height: 1.45;
}

.lt-concept {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 28px;
  border-top: 1px solid rgba(244, 239, 227, 0.14);
}

.lt-concept h3 {
  font-size: clamp(28px, 4vw, 44px);
}

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

.lt-image-pair img,
.lt-capsule img {
  display: block;
  width: 100%;
  border: 1px solid rgba(244, 239, 227, 0.14);
  border-radius: 8px;
  background: #111410;
  object-fit: cover;
}

.lt-image-pair img {
  aspect-ratio: 3 / 2;
}

.lt-capsules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lt-capsule {
  overflow: hidden;
}

.lt-capsule img {
  aspect-ratio: 16 / 10;
  border-width: 0 0 1px;
  border-radius: 0;
}

.lt-capsule div {
  padding: 22px;
}

.lt-closing {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-top: 1px solid rgba(244, 239, 227, 0.14);
}

.lt-closing p {
  color: #d6a65d;
  font-size: 18px;
  font-weight: 900;
}

.lt-closing .lt-button {
  margin-top: 30px;
}

@media (max-width: 980px) {
  .lt-nav-links {
    margin-right: 0;
  }

  .lt-premise-grid,
  .lt-factions,
  .lt-beats,
  .lt-concept,
  .lt-wide-gallery,
  .lt-capsules {
    grid-template-columns: 1fr;
  }

  .lt-faction {
    min-height: 280px;
  }
}

@media (max-width: 680px) {
  .lt-nav {
    top: calc(env(safe-area-inset-top) + 8px);
    width: min(100% - 18px, 1180px);
  }

  .lt-brand {
    font-size: 13px;
  }

  .lt-nav-links a {
    padding: 0 7px;
    font-size: 12px;
  }

  .lt-hero {
    min-height: 92vh;
    padding: 112px 18px 56px;
  }

  .lt-hero::after {
    background:
      linear-gradient(180deg, rgba(5, 6, 5, 0.42) 0%, rgba(5, 6, 5, 0.88) 72%, rgba(5, 6, 5, 0.96) 100%);
  }

  .lt-section,
  .lt-closing {
    width: min(100% - 28px, 1180px);
    padding: 64px 0;
  }

  .lt-image-pair {
    grid-template-columns: 1fr;
  }

  .lt-actions,
  .lt-button {
    width: 100%;
  }
}
