:root {
  --bg: #090c12;
  --bg-2: #0d121a;
  --panel: rgba(18, 24, 34, 0.72);
  --panel-strong: rgba(19, 24, 31, 0.88);
  --paper: rgba(25, 19, 12, 0.75);
  --paper-strong: rgba(30, 23, 15, 0.92);
  --text: #f6edd9;
  --muted: #c9b78d;
  --line: rgba(226, 192, 117, 0.15);
  --gold: #e2c075;
  --gold-2: #b88a44;
  --gold-3: #7e5b2d;
  --fire: #ffb560;
  --wine: #7e1d2c;
  --stone: #97a1af;
  --shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1220px;
  --transition: 240ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(226, 192, 117, 0.12), transparent 24%),
    radial-gradient(circle at 82% 0%, rgba(76, 103, 143, 0.2), transparent 28%),
    linear-gradient(180deg, #07090d 0%, #0b1017 46%, #090d13 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255, 192, 98, 0.08), transparent 22%),
    linear-gradient(to top, rgba(121, 145, 180, 0.08), transparent 26%);
  pointer-events: none;
  z-index: -4;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.embers,
.backdrop-noise,
.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.embers { z-index: -3; width: 100%; height: 100%; }
.backdrop-noise {
  z-index: -2;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 24% 30%, rgba(255,255,255,.55) 0 0.7px, transparent .9px),
    radial-gradient(circle at 73% 66%, rgba(255,255,255,.45) 0 0.6px, transparent .8px),
    radial-gradient(circle at 48% 82%, rgba(255,255,255,.35) 0 0.5px, transparent .7px);
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
}
.spotlight {
  z-index: 4;
  width: 280px;
  height: 280px;
  opacity: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 192, 117, 0.16), rgba(226, 192, 117, 0) 66%);
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease;
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}
.narrow { width: min(calc(100% - 32px), 980px); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.95), rgba(6, 8, 12, 0.72));
  border-bottom: 1px solid rgba(226, 192, 117, 0.12);
}
.topbar__inner {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  position: relative;
  font-family: "Cinzel", serif;
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(226, 192, 117, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.brand::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(226, 192, 117, 0.42), transparent 42%, rgba(226, 192, 117, 0.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.nav a {
  color: rgba(246, 237, 217, 0.9);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.nav a:hover,
.nav a:focus-visible {
  background: rgba(226, 192, 117, 0.12);
  color: #fff6e6;
  transform: translateY(-2px);
}

.hero,
.subhero {
  position: relative;
  overflow: clip;
}
.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  padding: 74px 0 88px;
}
.subhero {
  padding: 120px 0 60px;
}
.subhero__inner {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}
.subhero h1,
.hero__title,
.section-heading h2,
.citadel-panel h3,
.feature-card h3,
.detail-card h3,
.social strong,
.leader-card__meta h3,
.resident-card h3 {
  font-family: "Cinzel", serif;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}
.hero__content,
.hero__visual { position: relative; z-index: 2; }
.hero__veil {
  position: absolute;
  inset: auto auto 6% -12%;
  width: 38vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(48px);
  background: radial-gradient(circle, rgba(226, 192, 117, 0.16), transparent 70%);
  opacity: 0.8;
}
.hero__veil--right {
  left: auto;
  right: -12%;
  top: 6%;
  bottom: auto;
  background: radial-gradient(circle, rgba(95, 125, 173, 0.2), transparent 70%);
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 700;
}
.hero__title {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
}
.hero__title span {
  display: block;
  margin-top: 18px;
  max-width: 11ch;
  font-size: clamp(1rem, 1.7vw, 1.5rem);
  line-height: 1.2;
  color: #e8d8b2;
}
.hero__text,
.subhero p,
.section-heading + p,
.story-card p,
.citadel-panel p,
.feature-card p,
.detail-card p,
.social small,
.leader-card__meta p,
.resident-card p,
.loader-card {
  color: rgba(246, 237, 217, 0.82);
  font-size: 1.05rem;
  line-height: 1.78;
}
.hero__text { max-width: 62ch; margin: 22px 0 0; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.button:hover,
.button:focus-visible { transform: translateY(-3px); }
.button--gold {
  color: #1c1409;
  background: linear-gradient(135deg, #f3d592, #c79243);
  box-shadow: 0 16px 40px rgba(198, 151, 76, 0.22);
}
.button--ghost {
  border: 1px solid rgba(226, 192, 117, 0.24);
  background: rgba(255,255,255,.04);
}
.hero__metrics {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.metric {
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(226, 192, 117, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.metric strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #fff3d2;
  line-height: 1;
}
.metric span { display: block; margin-top: 10px; color: var(--muted); line-height: 1.35; }

.castle-stage {
  position: relative;
  isolation: isolate;
  padding: 18px;
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid rgba(226, 192, 117, 0.13);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
}
.castle-stage__glow {
  position: absolute;
  inset: auto 8% -5% 8%;
  height: 120px;
  filter: blur(30px);
  background: radial-gradient(circle, rgba(226, 192, 117, 0.16), transparent 72%);
  z-index: -1;
}
.castle-stage__skyline,
.castle-stage__mist {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}
.castle-stage__skyline {
  top: 10%;
  height: 16%;
  background: linear-gradient(90deg, transparent, rgba(255, 230, 177, 0.08), transparent);
  filter: blur(14px);
}
.castle-stage__mist {
  bottom: 10%;
  height: 90px;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.4;
}
.castle-stage__mist--one {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  animation: drift 10s linear infinite;
}
.castle-stage__mist--two {
  background: linear-gradient(90deg, transparent, rgba(255,196,109,.16), transparent);
  bottom: 5%;
  animation: drift 14s linear infinite reverse;
}
.castle-illustration {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  border-radius: 28px;
  overflow: hidden;
}
.castle-stage__label {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(226, 192, 117, 0.14);
  background: linear-gradient(180deg, rgba(12,15,20,.8), rgba(12,15,20,.55));
  color: rgba(246, 237, 217, 0.9);
  font-size: .96rem;
  backdrop-filter: blur(10px);
}
.castle-parallax { transform-origin: center; }
.castle-parallax--rear { animation: sway 15s ease-in-out infinite; }
.castle-parallax--front { animation: sway 10s ease-in-out infinite reverse; }

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 48px;
  height: 74px;
  border-radius: 999px;
  border: 1px solid rgba(226, 192, 117, 0.2);
  display: grid;
  place-items: center;
}
.scroll-indicator span {
  width: 8px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f5d590, #9f6c2d);
  animation: scroll 1.8s ease-in-out infinite;
}

.section { position: relative; padding: 120px 0; }
.section::before {
  content: "";
  position: absolute;
  inset: 24px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 192, 117, 0.16), transparent);
}
.section--paper {
  background:
    linear-gradient(180deg, rgba(21, 17, 12, 0.92), rgba(15, 12, 8, 0.76)),
    radial-gradient(circle at 10% 20%, rgba(226, 192, 117, 0.08), transparent 28%);
}
.section--dark {
  background:
    linear-gradient(180deg, rgba(7, 10, 14, 0.9), rgba(7, 8, 12, 0.96)),
    radial-gradient(circle at 85% 0%, rgba(72, 92, 132, 0.2), transparent 26%);
}
.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}
.section-heading h2,
.subhero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
}
.section-heading h2 { max-width: 16ch; }

.story-card,
.citadel-panel,
.detail-card,
.feature-card,
.social,
.leader-card,
.resident-card,
.loader-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 192, 117, 0.12);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.03);
  overflow: hidden;
}
.story-card {
  padding: 34px 30px 30px;
  background: linear-gradient(180deg, rgba(35, 27, 17, 0.94), rgba(26, 21, 14, 0.82));
}
.story-card__line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #f2d08d, #8d6430);
}
.story-card p { margin: 0 0 16px; }
.story-card p:last-child { margin-bottom: 0; }

.card-grid,
.detail-grid,
.socials,
.residents-grid {
  display: grid;
  gap: 20px;
}
.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card {
  min-height: 100%;
  padding: 26px;
  background: linear-gradient(180deg, rgba(22, 28, 39, 0.92), rgba(12, 15, 20, 0.95));
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(226, 192, 117, 0.22);
}
.feature-card__index {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-family: "Cinzel", serif;
  font-weight: 800;
  color: #251707;
  background: linear-gradient(135deg, #f4d493, #b67f38);
  box-shadow: 0 12px 28px rgba(198, 151, 76, 0.24);
}
.feature-card h3 { margin: 18px 0 12px; font-size: 1.36rem; }
.feature-card p { margin: 0; }

.citadel-layout { display: grid; gap: 22px; }
.citadel-panel {
  padding: 28px;
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 22px;
  background: linear-gradient(180deg, rgba(17, 22, 29, 0.95), rgba(12, 15, 20, 0.86));
}
.citadel-panel__crest {
  width: 98px;
  height: 98px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  font-family: "Cinzel", serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #27180a;
  background: linear-gradient(135deg, #f1cf8d, #a87531);
}
.citadel-panel h3 { margin: 0 0 10px; font-size: 1.72rem; }
.citadel-panel p { margin: 0 0 14px; }
.citadel-panel p:last-child { margin-bottom: 0; }
.detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(18, 22, 29, 0.88), rgba(10, 12, 18, 0.95));
}
.detail-card h3 { margin: 0 0 10px; font-size: 1.36rem; }
.detail-card p { margin: 0; }

.socials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.social {
  padding: 26px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  background: linear-gradient(180deg, rgba(20, 24, 33, 0.94), rgba(9, 12, 17, 0.96));
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.social:hover,
.social:focus-visible {
  transform: translateY(-7px) scale(1.01);
  border-color: rgba(226, 192, 117, 0.22);
}
.social__shine {
  position: absolute;
  inset: -40% auto auto -30%;
  width: 50%;
  height: 180%;
  transform: rotate(18deg);
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  opacity: .22;
}
.social strong { font-size: 1.56rem; }
.social small { font-size: .98rem; }
.social--tiktok::before,
.social--youtube::before,
.social--telegram::before,
.social--form::before
{
  content: "";
  position: absolute;
  inset: auto 22px 22px auto;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
}
.social--tiktok::before { background: linear-gradient(135deg, rgba(32, 28, 30, .28), rgba(0,0,0,.2)); }
.social--youtube::before { background: linear-gradient(135deg, rgba(255, 89, 89, .28), rgba(0,0,0,.2)); }
.social--telegram::before { background: linear-gradient(135deg, rgba(93, 181, 255, .28), rgba(0,0,0,.2)); }
.social--form::before { background: linear-gradient(135deg, rgba(215, 252, 0, .28), rgba(0,0,0,.2)); }

.leader-shell { display: block; }
.leader-card {
  padding: 30px;
  background: linear-gradient(180deg, rgba(34, 26, 16, 0.96), rgba(17, 14, 10, 0.92));
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
}
.leader-card__avatar,
.resident-card__avatar {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.2));
  border: 1px solid rgba(226, 192, 117, 0.14);
}
.leader-card__avatar {
  width: 180px;
  height: 180px;
}
.resident-card__avatar {
  width: 50%;
  aspect-ratio: 1;
}
.avatar-image,
.avatar-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-fallback {
  display: grid;
  place-items: center;
  background: #020202;
  color: rgba(255,255,255,.3);
  font-family: "Cinzel", serif;
  font-size: 2rem;
}
.leader-card__meta h3,
.resident-card h3 {
  margin: 0;
  font-size: 1.9rem;
}
.role-chip,
.license-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 700;
  border: 1px solid rgba(226, 192, 117, 0.16);
}
.role-chip {
  color: #24170a;
  background: linear-gradient(135deg, #f3d390, #bf8940);
}
.license-chip {
  color: #f2e5c3;
  background: rgba(255,255,255,.05);
}
.leader-card__chips,
.resident-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 14px;
}
.leader-card__meta p { margin: 0; max-width: 68ch; }
.residents-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resident-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(17, 22, 30, 0.95), rgba(9, 12, 17, 0.96));
  display: grid;
  gap: 18px;
}
.resident-card p { margin: 0; }
.loader-card {
  padding: 26px;
  text-align: center;
  background: linear-gradient(180deg, rgba(16, 20, 27, 0.92), rgba(10, 12, 18, 0.94));
}

.footer {
  padding: 30px 0 42px;
  border-top: 1px solid rgba(226, 192, 117, 0.1);
  background: rgba(7, 9, 13, 0.8);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer p,
.footer a {
  margin: 0;
  color: rgba(246, 237, 217, 0.72);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.floating { animation: float 7s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes drift {
  0% { transform: translateX(-2%); }
  50% { transform: translateX(2%); }
  100% { transform: translateX(-2%); }
}
@keyframes sway {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(5px) translateY(-3px); }
}
@keyframes scroll {
  0% { transform: translateY(-10px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

@media (max-width: 1120px) {
  .hero__grid,
  .card-grid,
  .detail-grid,
  .socials,
  .residents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid { align-items: start; }
}

@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: 44px; }
  .hero__grid,
  .card-grid,
  .detail-grid,
  .socials,
  .residents-grid,
  .leader-card,
  .citadel-panel {
    grid-template-columns: 1fr;
  }
  .hero__title span,
  .section-heading h2 { max-width: none; }
  .hero__metrics { grid-template-columns: 1fr; }
  .leader-card__avatar { width: 140px; height: 140px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .nav a {
    display: none;
  }
}

@media (max-width: 680px) {
  .section { padding: 88px 0; }
  .topbar__inner { padding: 10px 0; min-height: auto; align-items: flex-start; }
  .nav { justify-content: flex-start; }
  .hero__title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .story-card,
  .feature-card,
  .detail-card,
  .social,
  .leader-card,
  .resident-card,
  .citadel-panel { padding: 20px; }
  .castle-stage { padding: 12px; border-radius: 28px; }
  .castle-stage__label { position: static; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
