:root {
  --bg-overlay: linear-gradient(135deg, rgba(6, 8, 12, 0.82), rgba(6, 8, 12, 0.35));
  --accent: #f5d36b;
  --text-primary: #f5f5f5;
  --text-muted: rgba(245, 245, 245, 0.82);
  --shadow-soft: 0 22px 45px rgba(0, 0, 0, 0.35);
  --pad-lg: clamp(2rem, 4vw, 3rem);
  --pad-xl: clamp(3rem, 6vw, 4.5rem);
  --max-width: 62rem;
  --nav-gap: clamp(1.4rem, 4vw, 2.4rem);
}

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

html {
  /* smooth scrolling handled by JS lerp */
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: #0b0d10;
}

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

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

.lang-switcher {
  position: fixed;
  top: 0;
  left: clamp(1rem, 3vw, 2rem);
  z-index: 100;
  display: flex;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  background: rgba(38, 40, 46, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 0 0.5rem 0.5rem;
  transition: opacity 350ms ease, transform 350ms ease;
}

.lang-switcher.is-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.lang-switcher__btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.2rem;
  opacity: 0.45;
  transition: opacity 160ms ease, transform 160ms ease;
}

.lang-switcher__btn.is-active {
  opacity: 1;
}

.lang-switcher__btn:hover {
  opacity: 1;
  transform: scale(1.18);
}

/* ── Language popup ── */
.lang-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 400ms ease;
}

.lang-popup.is-visible {
  opacity: 1;
  visibility: visible;
}

.lang-popup.is-closing {
  opacity: 0;
}

.lang-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-popup__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 3rem;
  background: rgba(22, 24, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.85) translateY(20px);
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-popup.is-visible .lang-popup__card {
  transform: scale(1) translateY(0);
}

.lang-popup.is-closing .lang-popup__card {
  transform: scale(0.9) translateY(10px);
}

.lang-popup__title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(245, 245, 245, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-popup__flags {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lang-popup__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.9rem;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  opacity: 0;
  transform: translateY(16px);
  animation: langBtnIn 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lang-popup__btn:nth-child(1) { animation-delay: 150ms; }
.lang-popup__btn:nth-child(2) { animation-delay: 230ms; }
.lang-popup__btn:nth-child(3) { animation-delay: 310ms; }
.lang-popup__btn:nth-child(4) { animation-delay: 390ms; }

@keyframes langBtnIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-popup__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(245, 213, 107, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.lang-popup__btn:active {
  transform: scale(0.96);
}

.lang-popup__emoji {
  font-size: 3rem;
  line-height: 1;
}

.lang-popup__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(245, 245, 245, 0.7);
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .lang-popup__card {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  .lang-popup__flags {
    gap: 0.8rem;
  }

  .lang-popup__btn {
    padding: 1rem 1.1rem;
  }

  .lang-popup__emoji {
    font-size: 2.4rem;
  }
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}


.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.9);
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
  z-index: -1;
}

.hero__top {
  position: absolute;
  top: var(--pad-lg);
  right: var(--pad-lg);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.hero__auth {
  display: inline-block;
  padding: 0.2rem 0.25rem;
  font-weight: 500;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: color 160ms ease, transform 160ms ease;
}

.hero__auth:hover {
  color: #c1121f;
  transform: translateY(-1px);
}

.hero__bottom {
  position: absolute;
  left: var(--pad-xl);
  bottom: var(--pad-xl);
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-shadow: var(--shadow-soft);
}

.hero__branding {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
}

.hero__logo {
  width: clamp(60px, 10vw, 90px);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.hero__title {
  font-family: "Bebas Neue", "Inter", sans-serif;
  letter-spacing: 0.12em;
  font-size: clamp(2.8rem, 8vw, 4rem);
}

.hero__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.5;
}

.hero__divider {
  width: min(100%, 22rem);
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  margin: 0.25rem 0 0.15rem;
}

.hero__nav {
  display: flex;
  gap: var(--nav-gap);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__nav a {
  position: relative;
  padding-bottom: 0.35rem;
  transition: color 160ms ease, transform 160ms ease;
}

.hero__nav a:hover {
  color: #c1121f;
  transform: scale(1.05);
}

.scroll-btn {
  --scroll-base-x: 0%;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.35rem;
  display: grid;
  place-items: center;
  transition: transform 160ms ease, color 160ms ease;
  transform: translateX(var(--scroll-base-x));
}

.scroll-btn__icon {
  width: 40px;
  height: 40px;
}

.scroll-btn:hover {
  transform: translateX(var(--scroll-base-x)) translateY(-3px);
  color: #c1121f;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--pad-lg);
  --scroll-base-x: -50%;
  color: #ffffff;
}

.stats-content-wrap {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.stats-content-wrap .stats {
  flex-shrink: 0;
}

.content {
  flex: 1;
  min-height: 0;
  background: color-mix(in srgb, #ffffff calc((1 - var(--content-t, 0)) * 100%), #0b0d10);
  color: color-mix(in srgb, #0c0f14 calc((1 - var(--content-t, 0)) * 100%), #f3f0eb);
  display: grid;
  place-items: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  position: relative;
}

/* ═══ Content steps (left half) ═══ */
.content__steps-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding-left: clamp(2rem, 5vw, 4rem);
  padding-right: calc(50% + clamp(1.5rem, 3vw, 2.5rem));
  padding-bottom: calc(var(--pad-lg, 2rem) + 4rem);
}

.content__steps {
  pointer-events: auto;
  width: 100%;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step__box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #323232;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.55s ease, color 0.55s ease;
}

.step__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  margin-top: 0.4rem;
  max-width: 78px;
  color: color-mix(in srgb, rgba(0, 0, 0, 0.38) calc((1 - var(--content-t, 0)) * 100%), rgba(255, 255, 255, 0.45));
  transition: color 0.55s ease;
}

.step__sep {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  min-width: 6px;
  max-width: 28px;
  background: #323232;
  margin-top: 14px;
  transition: background 0.5s ease;
}

/* Active (green) state — applied individually by JS, left-to-right */
.step.is-active .step__box {
  background: #22c55e;
  color: #ffffff;
}

.step.is-active .step__label {
  color: color-mix(in srgb, #166534 calc((1 - var(--content-t, 0)) * 100%), #86efac);
}

.step__sep.is-active {
  background: #22c55e;
}

.steps__desc {
  margin: 1.2rem 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  line-height: 1.65;
  color: color-mix(in srgb, #000000 calc((1 - var(--content-t, 0)) * 100%), rgba(255, 255, 255, 0.55));
}

.steps__gdpr {
  display: block;
  margin-top: 0.9rem;
  height: 45px;
  width: auto;
  opacity: 1;
  border-radius: 5px;
}

/* ═══ Content portal preview ═══ */
.content__portal-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding-left: 50%;
  padding-right: clamp(2rem, 4vw, 4rem);
  padding-bottom: calc(var(--pad-lg, 2rem) + 4rem);
}

.content__portal {
  pointer-events: auto;
  width: 100%;
  max-width: 680px;
}

.content__portal-title {
  margin: 0 0 0.9rem;
  font-family: "Bebas Neue", "Inter", sans-serif;
  letter-spacing: 0.08em;
  font-size: clamp(2.3rem, 5vw, 3rem);
  color: inherit;
  line-height: 1.1;
  opacity: 0;
  transform-origin: bottom left;
  will-change: transform, opacity;
}

.content__portal-images {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  opacity: 0;
  will-change: opacity;
}

.content__portal-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: opacity 1.2s ease;
}

.content__portal-img--1 {
  background-image: url('../assets/portal_first.png');
  opacity: 1;
}

.content__portal-img--2 {
  background-image: url('../assets/portal_second.png');
  opacity: 0;
}

.content__inner {
  width: min(100%, 960px);
  display: grid;
  gap: 2.5rem;
}

.content__bottom {
  position: absolute;
  bottom: var(--pad-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: color-mix(in srgb, #0b0d10 calc((1 - var(--content-t, 0)) * 100%), #f4f2ef);
  text-align: center;
  margin: 0;
  opacity: 0.6;
  white-space: nowrap;
}

.section__scroll {
  margin: 0;
  position: static;
  color: #ffffff;
}

.section__scroll--dark {
  color: color-mix(in srgb, #0b0d10 calc((1 - var(--content-t, 0)) * 100%), #f4f2ef);
}

.content__block {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid color-mix(in srgb, rgba(12, 15, 20, 0.08) calc((1 - var(--content-t, 0)) * 100%), rgba(243, 240, 235, 0.08));
}

.content__block:last-of-type {
  border-bottom: none;
}

.content__block h2 {
  margin: 0 0 0.75rem;
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-size: clamp(2.2rem, 5vw, 2.9rem);
  letter-spacing: 0.08em;
}

.content__block p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: color-mix(in srgb, #222834 calc((1 - var(--content-t, 0)) * 100%), #ddd7cb);
}

.personas {
  background: #000000;
  color: #f6f7fb;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(4.5rem, 9vw, 6rem);
  min-height: 100vh;
}

.personas__inner {
  width: 100%;
  margin: 0;
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  padding: 0;
}

.personas__header {
  position: relative;
  z-index: 2;
  padding: 0 clamp(2rem, 4vw, 3.5rem);
}

.personas__title {
  margin: 0;
  font-family: "Bebas Neue", "Inter", sans-serif;
  letter-spacing: 0.08em;
  font-size: clamp(2.3rem, 5vw, 3rem);
  color: #ffffff;
}

.persona {
  overflow: hidden;
  position: relative;
  min-height: clamp(450px, 50vw, 720px);
  transition: transform 600ms ease-out, border-color 220ms ease;
  display: flex;
}

.persona__media {
  position: relative;
  width: 100%;
  min-height: 100%;
  display: grid;
}

.persona__overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  display: grid;
  align-content: end;
  gap: 0.45rem;
  text-align: center;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 300ms ease-in, transform 300ms ease-in;
}

.persona__overlay h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.persona__overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  font-size: 0.98rem;
}

.persona:hover {
  transform: translateY(-6px);
}

.persona:hover .persona__overlay {
  opacity: 1;
  transform: translateY(0);
}

.personas__grid {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  margin-top: clamp(9rem, 14vw, 220px);
  position: relative;
  z-index: 1;
}

.persona {
  flex: 0 0 calc(100% / 3);
  max-width: calc(100% / 3);
}

.personas__grid .persona {
  transition: transform 500ms ease, border-color 220ms ease;
}

.persona--light {
  background: #ffffff;
  color: #0f131a;
}

.persona--neutral {
  background: #d6d9de;
  color: #0f131a;
}

.persona--dark {
  background: #1a1c21;
  color: #f1f3f7;
}

.persona--light .persona__fill {
  background: #ffffff url("../assets/hero.png") center/cover no-repeat;
}

.persona--neutral .persona__fill {
  background: #1a1c21 url("../assets/civilian.png") center/cover no-repeat;
}

.persona--dark .persona__fill {
  background: #1a1c21 url("../assets/bandit.png") center/cover no-repeat;
}

.personas.is-visible .persona {
  transform: translateY(0);
}

.persona__fill {
  width: 100%;
  height: 100%;
  background: #ffffff;
}


/* ── Personas: wide screens ── */
@media (min-width: 1261px) {
  .personas__grid {
    padding: 0 clamp(2rem, 4vw, 6rem);
  }
}

/* ── Personas: mobile ── */
@media (max-width: 750px) {
  .personas {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    min-height: auto;
  }

  .personas__grid {
    margin-top: clamp(2rem, 6vw, 3rem);
  }

  .persona {
    flex: 0 0 calc(100% / 3);
    max-width: calc(100% / 3);
    min-height: 280px;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  .persona__overlay {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
  }

  .persona__overlay h3 {
    font-size: clamp(0.7rem, 2.5vw, 1rem);
  }

  .persona__overlay p {
    font-size: clamp(0.65rem, 2.2vw, 0.88rem);
  }
}

/* ═══ Realm ═══ */
.realm {
  background: #000000;
  min-height: 100vh;
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.realm__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(2rem, 6vw, 4rem);
}

.realm__title {
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
  font-family: "Bebas Neue", "Inter", sans-serif;
  letter-spacing: 0.08em;
  font-size: clamp(2.3rem, 5vw, 3rem);
  color: #ffffff;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ── Film strips ── */
.realm__strips {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.realm__row {
  width: 100%;
  overflow: hidden;
}

.realm__track {
  display: flex;
  gap: 0.6rem;
  width: max-content;
  will-change: transform;
}

.realm__track img {
  height: clamp(120px, 18vw, 220px);
  width: auto;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

/* Starting positions — driven by JS scroll */
.realm__row--left .realm__track {
  transform: translateX(-40%);
}

.realm__row--right .realm__track {
  transform: translateX(-10%);
}

/* ── Realm card (overlay) ── */
.realm__card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.realm__card.is-revealed {
  opacity: 1;
  pointer-events: auto;
}

.realm__card.is-dismissed {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.4s ease;
}

.realm__card-inner {
  position: relative;
  width: min(560px, 88vw);
  border-radius: 20px;
  overflow: hidden;
  background: url('../assets/realm_bg.png') center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 80px rgba(193, 18, 31, 0.18),
    0 0 160px rgba(193, 18, 31, 0.06),
    0 32px 80px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  gap: 0.75rem;
  transform: scale(0.7) translateY(30px);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.realm__card.is-revealed .realm__card-inner {
  transform: scale(1) translateY(0);
}

.realm__card.is-dismissed .realm__card-inner {
  transform: scale(0.9) translateY(10px);
}

/* Ambient glow pulse */
.realm__card-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(193, 18, 31, 0.25) 0%,
    transparent 40%,
    transparent 60%,
    rgba(193, 18, 31, 0.15) 100%
  );
  opacity: 0;
  animation: realmGlow 3s ease-in-out infinite alternate;
  pointer-events: none;
}

.realm__card.is-revealed .realm__card-glow {
  opacity: 1;
}

@keyframes realmGlow {
  0%   { opacity: 0.4; filter: blur(0px); }
  100% { opacity: 1;   filter: blur(2px); }
}

/* Dark overlay so text is legible */
.realm__card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
}

/* Close button */
.realm__card-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 5;
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 200ms ease;
}

.realm__card-close:hover {
  color: #fff;
}

/* Flag image */
.realm__card-flag {
  position: relative;
  z-index: 2;
  width: clamp(56px, 10vw, 80px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.realm__card.is-revealed .realm__card-flag {
  opacity: 1;
  transform: translateY(0);
}

/* Chernarus patch image */
.realm__card-patch {
  position: relative;
  z-index: 2;
  width: clamp(32px, 5vw, 44px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.realm__card.is-revealed .realm__card-patch {
  opacity: 1;
  transform: translateY(0);
}

/* Label */
.realm__card-label {
  position: relative;
  z-index: 2;
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  user-select: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.45s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.45s;
}

.realm__card.is-revealed .realm__card-label {
  opacity: 1;
  transform: translateY(0);
}

/* Status badge */
.realm__card-status {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.55s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.55s;
}

.realm__card-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.realm__card.is-revealed .realm__card-status {
  opacity: 1;
  transform: translateY(0);
}

/* Divider */
.realm__card-divider {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  opacity: 0;
  transition: opacity 0.5s ease 0.6s, width 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.realm__card.is-revealed .realm__card-divider {
  opacity: 1;
  width: 48px;
}

/* Description */
.realm__card-desc {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 380px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.78rem, 1.6vw, 0.88rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.65s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.65s;
}

.realm__card.is-revealed .realm__card-desc {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ Join / CTA ═══ */
.join {
  position: relative;
  overflow: hidden;
  background: #000000;
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 6vw, 4rem);
}

@media (min-width: 521px) {
  .join::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: var(--join-slide) center / cover no-repeat;
    filter: sepia() brightness(.25) hue-rotate(-50deg) saturate(10);
    opacity: var(--join-slide-opacity, 1);
    transition: opacity 1.5s ease;
    z-index: 0;
  }

  .join::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(to right, #000, transparent);
    z-index: 1;
  }
}

.join__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.join__title {
  margin: 0 0 clamp(1.8rem, 4vw, 2.8rem);
  font-family: "Bebas Neue", "Inter", sans-serif;
  letter-spacing: 0.08em;
  font-size: clamp(2.3rem, 5vw, 3rem);
  color: #ffffff;
}

.join__boxes {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.join__box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  text-decoration: none;
  color: #f5f5f5;
  transition: border-color 0.25s ease, background 0.25s ease;
  flex: 1;
  max-width: 340px;
}

.join__box:hover {
  border-color: #c1121f;
  background: rgba(193, 18, 31, 0.08);
}

.join__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
  object-fit: contain;
}

.join__text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.join__label {
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.join__sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 520px) {
  .join__boxes {
    flex-direction: column;
    align-items: center;
  }

  .join__box {
    max-width: 100%;
    width: 100%;
  }
}

.stats {
  background: #0b0d10;
  color: #f7f7f7;
  padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 6vw, 4rem);
}

.stats__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(2rem, 6vw, 3rem);
  text-align: center;
}

.stat__number {
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-size: clamp(3.2rem, 7vw, 4.6rem);
  letter-spacing: 0.06em;
  line-height: 1;
}

.stat__label {
  margin-top: 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: rgba(247, 247, 247, 0.75);
}

.features {
  background: color-mix(in srgb, #0b0d10 calc((1 - var(--features-t, 0)) * 100%), #030405);
  color: #f6f7fb;
  position: relative;
}

.features__layout {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 50% 50%;
  scroll-snap-align: start;
}

.features__visual {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}

.features__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.35), rgba(8, 10, 14, 0.7));
  pointer-events: none;
  z-index: 2;
}

.features__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.82);
  transform: translateY(110%);
}

.features__image.is-active {
  transform: translateY(0);
}

.features__image--0 {
  background-image: linear-gradient(180deg, rgba(6, 8, 12, 0.2), rgba(6, 8, 12, 0.55)), url("../assets/first.png");
}

.features__image--1 {
  background-image: linear-gradient(180deg, rgba(6, 8, 12, 0.2), rgba(6, 8, 12, 0.55)), url("../assets/second.png");
}

.features__image--2 {
  background-image: linear-gradient(180deg, rgba(6, 8, 12, 0.2), rgba(6, 8, 12, 0.55)), url("../assets/third.png");
}

.features__image--3 {
  background-image: linear-gradient(180deg, rgba(6, 8, 12, 0.2), rgba(6, 8, 12, 0.55)), url("../assets/fourth.png");
}

.features__nav {
  position: relative;
  z-index: 3;
  padding: clamp(2.4rem, 5vw, 3.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.features__nav-btn {
  background: none;
  border: none;
  color: rgba(247, 247, 247, 0.72);
  font-size: 1.05rem;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.features__nav-btn .features__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(247, 247, 247, 0.6);
  display: inline-block;
}

.features__nav-btn.is-active {
  color: #ffffff;
  opacity: 1;
}

.features__nav-btn.is-active .features__dot {
  border-color: #ffffff;
  background: #ffffff;
}

.features__nav-btn:hover {
  color: #ffffff;
  opacity: 1;
}

.features__content {
  grid-column: 2;
  display: grid;
  align-items: center;
  padding: clamp(2.4rem, 6vw, 4.5rem) clamp(2.4rem, 6vw, 4.6rem);
  position: relative;
  overflow: hidden;
}

.feature {
  position: absolute;
  inset: 0;
  opacity: 1;
  pointer-events: none;
  display: grid;
  align-content: center;
  padding: clamp(2rem, 4vw, 3rem) clamp(2.4rem, 5vw, 4rem);
  transform: translateY(110%);
}

.feature.is-active {
  pointer-events: auto;
  z-index: 2;
  transform: translateY(0);
}

.feature__tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(247, 247, 247, 0.6);
  margin-bottom: 0.4rem;
}

.feature__title {
  margin: 0 0 0.85rem;
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-size: clamp(2.2rem, 5vw, 2.9rem);
  letter-spacing: 0.07em;
  color: #ffffff;
}

.feature__desc {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(247, 247, 247, 0.85);
}

/* ═══ Memorial strip ═══ */
.memorial {
  background: #000;
  text-align: center;
  padding: 1.6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.memorial__cross {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
}

.memorial__text {
  font-family: 'Georgia', serif;
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* ═══ Footer ═══ */
.footer {
  background: #000000;
  color: var(--text-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--pad-xl) clamp(2rem, 4vw, 3rem);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
}

.footer__brand {
  max-width: 280px;
  flex-shrink: 0;
}

.footer__logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.footer__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.footer__wordmark {
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.footer__tagline {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(245, 245, 245, 0.45);
}

.footer__nav {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__heading {
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.35);
  margin-bottom: 0.4rem;
}

.footer__col a {
  font-size: 0.88rem;
  color: rgba(245, 245, 245, 0.6);
  text-decoration: none;
  transition: color 180ms ease;
}

.footer__col a:hover {
  color: #c1121f;
}

.footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(245, 245, 245, 0.45);
}

.footer__disclaimer {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(245, 245, 245, 0.25);
}

@media (min-width: 1430px) {
  .steps__desc {
    text-align: center;
  }

  .steps__gdpr {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 930px) {
  /* ── Stats + Content wrapper ── */
  .stats-content-wrap {
    height: auto;
  }

  .stats {
    padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  }

  .stats__inner {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: clamp(1rem, 4vw, 2rem);
  }

  .stat__number {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .stat__label {
    font-size: 0.78rem;
    margin-top: 0.3rem;
  }

  /* ── Features: full-bleed image, stacked nav + content ── */
  .features__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    /* keep 100vh so the lock mechanism works */
  }

  /* ── Content: two-column → stacked ── */
  .content {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: calc(var(--pad-lg, 2rem) + 5rem);
  }

  .content__inner {
    display: none;
  }

  .content__steps-wrap {
    position: static;
    display: block;
    padding: 0;
    width: 100%;
    max-width: 440px;
    pointer-events: auto;
  }

  .content__portal-wrap {
    position: static;
    display: block;
    padding: 0;
    width: 100%;
    max-width: 440px;
    pointer-events: auto;
  }

  .content__portal-title {
    text-align: center;
  }

  .step__sep {
    max-width: 22px;
  }

  .steps__desc {
    text-align: center;
  }

  .steps__gdpr {
    margin-left: auto;
    margin-right: auto;
  }

  .features__visual {
    width: 100%;
  }

  .features__visual::after {
    background: linear-gradient(180deg, rgba(8, 10, 14, 0.5), rgba(8, 10, 14, 0.85));
  }

  .features__nav {
    position: relative;
    z-index: 4;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem) 0;
    gap: 0.7rem;
  }

  .features__nav-btn {
    font-size: 0.95rem;
    gap: 0.6rem;
  }

  .features__content {
    grid-column: 1;
    position: relative;
    z-index: 3;
    padding: 0;
  }

  .feature {
    padding: 0 clamp(1.5rem, 4vw, 2.5rem) clamp(2rem, 4vw, 3rem);
  }

  /* ── Hero ── */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__bottom {
    position: static;
    text-align: center;
    align-items: center;
    padding: 0 var(--pad-lg);
    margin-top: auto;
    margin-bottom: 1rem;
  }

  .hero__branding {
    justify-content: center;
  }

  .hero__divider {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem 1.6rem;
  }

  .hero__scroll {
    position: static;
    margin-top: auto;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    --scroll-base-x: 0%;
  }

  .hero__logo {
    width: clamp(64px, 22vw, 86px);
  }

  /* ── Footer ── */
  .footer__top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer__brand {
    max-width: 100%;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: 2rem;
  }

}

@media (max-width: 720px) {
  :root {
    --nav-gap: 1.15rem;
  }

  /* ── Stats ── */
  .stats {
    padding: 1.5rem 1.2rem;
  }

  .stats__inner {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }

  .stat__number {
    font-size: 1.6rem;
  }

  .stat__label {
    font-size: 0.65rem;
    margin-top: 0.15rem;
  }

  /* ── Features ── */
  .features__nav {
    padding: 1.4rem 1.2rem 0;
    gap: 0.5rem;
  }

  .features__nav-btn {
    font-size: 0.85rem;
    padding: 0.25rem 0.3rem;
    gap: 0.5rem;
  }

  .features__dot {
    width: 8px;
    height: 8px;
  }

  .features__content {
    padding: 0;
  }

  .feature {
    padding: 0 1.2rem 2rem;
  }

  .feature__title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 0.5rem;
  }

  .feature__desc {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .feature__tag {
    font-size: 0.7rem;
  }

  /* ── Content ── */
  .content {
    gap: 2rem;
  }

  .content__steps-wrap,
  .content__portal-wrap {
    max-width: 340px;
  }

  .step__box {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 0.72rem;
  }

  .step__sep {
    margin-top: 13px;
    max-width: 16px;
    height: 2px;
  }

  .step__label {
    font-size: 0.55rem;
    max-width: 60px;
    margin-top: 0.3rem;
  }

  .steps__desc {
    font-size: 0.72rem;
  }

  .steps__gdpr {
    height: 22px;
  }

  .content__portal-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

}
