:root {
  --night: #07080a;
  --slate: #141820;
  --chalk: #efe6d4;
  --parchment: #f2e8d2;
  --brass: #c9a467;
  --candle: #f0b45e;
  --muted: #8f8574;
  --soft: #bfb39b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--night);
  color: var(--chalk);
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 16px;
}

.sky {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% 18%, #2a3140 0%, var(--slate) 45%, var(--night) 100%);
}

.moon-glow {
  position: absolute;
  left: 70%;
  top: 12%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(236,226,200,0.22) 0, rgba(236,226,200,0.06) 22%, rgba(0,0,0,0) 50%);
}

.moon {
  position: absolute;
  left: 70%;
  top: 12%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #f4ecd8, #c9bfa6);
}

.castle {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.windows > * {
  opacity: var(--o);
  animation: flicker 4.5s ease-in-out infinite;
  animation-delay: var(--d);
}

@keyframes flicker {
  0%, 100% { opacity: var(--o); }
  20% { opacity: calc(var(--o) * .7); }
  35% { opacity: var(--o); }
  55% { opacity: calc(var(--o) * .85); }
  70% { opacity: calc(var(--o) * .6); }
}

.mist {
  position: absolute;
  left: -20%;
  bottom: 18%;
  width: 140%;
  height: 26%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(170,180,195,0.20), rgba(170,180,195,0) 70%);
  filter: blur(8px);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateX(-4%); }
  to { transform: translateX(4%); }
}

.fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(7,8,10,0) 0%, rgba(7,8,10,0.85) 55%, var(--night) 100%);
}

.title {
  position: relative;
  text-align: center;
  margin-bottom: clamp(56px, 10vh, 110px);
  animation: rise 2.4s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.kicker {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: clamp(13px, 1.4vw, 18px);
  letter-spacing: .78em;
  margin-right: -.78em;
  text-transform: uppercase;
  color: var(--brass);
}

h1 {
  margin: 6px 0 0;
  font-family: Cinzel, serif;
  font-weight: 700;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 1;
  letter-spacing: .17em;
  margin-right: -.17em;
  text-transform: uppercase;
  color: var(--parchment);
  text-shadow: 0 0 40px rgba(240,180,94,0.35);
}

.tagline {
  margin: 16px 0 0;
  font-style: italic;
  font-size: clamp(19px, 2vw, 24px);
  color: var(--soft);
}

.plate {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.plate p {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--candle);
}

.rule {
  width: clamp(32px, 6vw, 72px);
  height: 1px;
  background: linear-gradient(90deg, rgba(201,164,103,0), var(--brass), rgba(201,164,103,0));
}

.foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  font-family: Cinzel, serif;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot .dot { color: var(--brass); }

@media (prefers-reduced-motion: reduce) {
  .windows > *, .mist, .title { animation: none; }
}
