:root {
  --black: #040404;
  --ink: #0b0b0b;
  --panel: #12100d;
  --gold: #c99a35;
  --gold-soft: #f0d48a;
  --white: #f7f2e8;
  --muted: #b9aa8c;
  --line: rgba(240, 212, 138, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Inter", Arial, sans-serif;
  overflow-x: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transform: none;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(4, 4, 4, 0.9), rgba(10, 8, 5, 0.66), rgba(4, 4, 4, 0.9));
  backdrop-filter: blur(22px) saturate(1.2);
}

.brand,
.join-link,
.main-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 154px;
  font-family: "Cinzel", serif;
  font-weight: 900;
  color: var(--gold-soft);
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 0 14px rgba(201, 154, 53, 0.35));
}

.main-nav {
  gap: clamp(10px, 2vw, 28px);
  color: rgba(247, 242, 232, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--gold-soft);
  transition: transform 0.28s ease;
}

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

.main-nav a,
.join-link {
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.join-link:hover {
  color: var(--gold-soft);
}

.join-link {
  min-height: 44px;
  padding: 0 18px;
  justify-content: center;
  border: 1px solid rgba(240, 212, 138, 0.72);
  border-radius: 8px;
  background: transparent;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.join-link:hover {
  transform: translateY(-2px);
  border-color: var(--gold-soft);
  background: rgba(201, 154, 53, 0.08);
  box-shadow: 0 12px 36px rgba(201, 154, 53, 0.18);
}

.intro-sequence {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

#frame-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  background: #000;
}

.sequence-shade {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 0 35%, rgba(0, 0, 0, 0.35) 58%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.52), transparent 42%, rgba(0, 0, 0, 0.86));
}

.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 4;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.welcome-copy {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: min(760px, calc(100% - 34px));
  transform: translate(-50%, -38%);
  text-align: center;
  opacity: 0;
  visibility: hidden;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  line-height: 1;
}

h1 {
  font-size: clamp(3rem, 8vw, 7.2rem);
  color: var(--white);
  text-shadow: 0 0 34px rgba(201, 154, 53, 0.38);
}

h2 {
  max-width: 840px;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  color: var(--white);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.welcome-copy p:last-child {
  width: min(620px, 100%);
  margin: 20px auto 0;
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.section-pad {
  position: relative;
  z-index: 10;
  padding: clamp(86px, 12vw, 150px) max(22px, calc((100vw - 1180px) / 2));
  background:
    radial-gradient(circle at 20% 0%, rgba(201, 154, 53, 0.18), transparent 30%),
    linear-gradient(180deg, var(--black), var(--ink) 40%, var(--black));
}

.lore {
  padding-top: 170px;
}

.lore-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
}

.lore-copy p {
  max-width: 720px;
  font-size: 1.05rem;
}

.oath-card,
.burger-card,
.discover-card,
.register-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
}

.magnetic-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.oath-card {
  overflow: hidden;
}

.oath-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
}

.oath-card div {
  padding: 24px;
}

.oath-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.oath-card strong {
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.carousel-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.burgers {
  min-height: 100vh;
}

.burger-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 8px;
}

.burger-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: clamp(22px, 5vw, 70px);
  align-items: center;
  padding: clamp(22px, 5vw, 60px);
  opacity: 0;
  visibility: hidden;
  transform-origin: center;
  overflow: hidden;
}

.burger-card.is-active {
  opacity: 1;
  visibility: visible;
}

.burger-card img {
  width: 100%;
  height: min(520px, 66vw);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.burger-card::before,
.discover-card::before,
.register-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(240, 212, 138, 0.12), transparent);
  opacity: var(--shine-opacity, 0);
  transform: translateX(var(--shine-x, -40%));
}

.discover-card,
.register-panel {
  position: relative;
  overflow: hidden;
}

.sigil {
  margin: 0 0 16px;
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.82;
}

.burger-card h3,
.burger-card p:not(.sigil) {
  max-width: 430px;
}

.carousel-btn {
  z-index: 4;
  min-width: 96px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 4, 4, 0.72);
  color: var(--gold-soft);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.carousel-btn:hover {
  border-color: var(--gold-soft);
}

.cipher-map {
  position: relative;
  z-index: 10;
  min-height: 112vh;
  padding: clamp(110px, 14vw, 180px) clamp(22px, 6vw, 82px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
  --map-x: 50%;
  --map-y: 50%;
}

.cipher-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--map-x) var(--map-y), rgba(240, 212, 138, 0.18), transparent 0 16%, rgba(0, 0, 0, 0.88) 34%),
    radial-gradient(circle at 72% 52%, rgba(201, 154, 53, 0.12), transparent 0 18%),
    #000;
}

.map-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  pointer-events: none;
}

.map-content p:last-child {
  max-width: 500px;
}

.map-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 100%;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--map-x) var(--map-y), rgba(240, 212, 138, 0.34), rgba(240, 212, 138, 0.1) 9%, transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 34%),
    #020202;
  box-shadow: inset 0 0 130px rgba(0, 0, 0, 0.96);
  cursor: crosshair;
}

.map-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(32deg, transparent 0 19%, rgba(240, 212, 138, 0.16) 19.2% 19.6%, transparent 19.8% 100%),
    linear-gradient(122deg, transparent 0 39%, rgba(240, 212, 138, 0.11) 39.2% 39.6%, transparent 39.8% 100%),
    linear-gradient(88deg, transparent 0 60%, rgba(240, 212, 138, 0.12) 60.2% 60.5%, transparent 60.7% 100%),
    radial-gradient(circle at 22% 30%, rgba(240, 212, 138, 0.38) 0 2px, transparent 3px),
    radial-gradient(circle at 52% 64%, rgba(240, 212, 138, 0.32) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 38%, rgba(240, 212, 138, 0.46) 0 2px, transparent 3px),
    radial-gradient(circle at 66% 76%, rgba(240, 212, 138, 0.28) 0 2px, transparent 3px);
  opacity: 0.24;
  mask-image: radial-gradient(circle at var(--map-x) var(--map-y), #000 0 180px, transparent 260px);
}

.map-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--map-x) var(--map-y), transparent 0 120px, rgba(0, 0, 0, 0.9) 260px);
}

.map-lines {
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(240, 212, 138, 0.08);
  border-radius: 50%;
  opacity: 0.7;
  mask-image: radial-gradient(circle at var(--map-x) var(--map-y), #000 0 210px, transparent 290px);
}

.map-lines::before,
.map-lines::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(240, 212, 138, 0.12);
  border-radius: 50%;
}

.map-lines::after {
  inset: 30%;
}

.map-field img {
  position: absolute;
  left: 63%;
  top: 47%;
  width: clamp(92px, 14vw, 180px);
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0.14;
  filter: sepia(1) saturate(1.4) brightness(0.8) drop-shadow(0 0 18px rgba(240, 212, 138, 0.2));
  mask-image: radial-gradient(circle at var(--map-x) var(--map-y), #000 0 140px, transparent 220px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.map-field.is-found img {
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1);
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.discover-card {
  min-height: 320px;
  padding: 30px;
  transform-origin: center bottom;
}

.discover-card span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 70px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
  font-weight: 900;
}

.register-panel {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(26px, 6vw, 72px);
  background:
    linear-gradient(135deg, rgba(201, 154, 53, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

.register-panel p {
  max-width: 580px;
}

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

.socials a {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.socials a:hover {
  transform: translateY(-3px);
  border-color: var(--gold-soft);
  background: rgba(201, 154, 53, 0.12);
}

.order-form {
  display: grid;
  gap: 18px;
}

.order-form label {
  display: grid;
  gap: 8px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.order-form input,
.order-form select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: rgba(0, 0, 0, 0.54);
  color: var(--white);
}

.order-form input:focus,
.order-form select:focus {
  border-color: var(--gold-soft);
}

.order-form button {
  min-height: 56px;
  border: 1px solid var(--gold-soft);
  border-radius: 8px;
  background: var(--gold);
  color: #090704;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.order-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-message {
  min-height: 26px;
  margin: 0;
  color: var(--gold-soft);
  font-size: 0.9rem;
}

.form-message.is-error {
  color: #ff8f8f;
}

.site-footer {
  position: relative;
  z-index: 10;
  padding: 32px 22px 46px;
  border-top: 1px solid var(--line);
  background: var(--black);
  text-align: center;
}

.site-footer span {
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
  font-weight: 900;
}

.site-footer p {
  margin: 8px 0 0;
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .brand {
    flex: 1;
    min-width: 120px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding: 4px 0 0;
    gap: 18px;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .join-link {
    min-width: 176px;
  }

  .lore-grid,
  .register-panel,
  .burger-card {
    grid-template-columns: 1fr;
  }

  .burger-carousel {
    min-height: 760px;
  }

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

  .cipher-map {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .carousel-shell {
    grid-template-columns: 1fr 1fr;
  }

  .burger-carousel {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .carousel-btn {
    grid-row: 2;
  }

  .next {
    justify-self: end;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 0;
    width: 100%;
    min-height: auto;
    padding: 8px 12px 10px;
  }

  .brand span {
    display: inline;
    font-size: 0.86rem;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .join-link {
    min-width: auto;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.68rem;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 16px;
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.3rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .burger-carousel {
    min-height: 720px;
  }

  .burger-card {
    padding: 18px;
  }

  .burger-card img {
    height: 330px;
  }
}
