:root {
  --soot: #0b0705;
  --coal: #1a1310;
  --iron: #2a221e;
  --steel: #5a4f48;
  --ash: #b8a99a;
  --ember: #ff6a1a;
  --ember-hot: #ffb347;
  --ember-deep: #c2410c;
  --gold: #d4a24c;
  --parchment: #e8d5a8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--soot);
  color: var(--ash);
  font-family: 'Cormorant Garamond', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(255, 106, 26, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(194, 65, 12, 0.25) 0%, transparent 45%),
    linear-gradient(180deg, #050302 0%, #0b0705 40%, #160c07 100%);
}

/* Subtle hammered-metal noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(35deg,  rgba(0,0,0,0.18) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
  z-index: 0;
}

/* Forge background layers */
.forge-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.forge-glow {
  position: absolute;
  left: 50%;
  bottom: -25vh;
  transform: translateX(-50%);
  width: 90vw;
  height: 90vw;
  max-width: 1100px;
  max-height: 1100px;
  background: radial-gradient(circle, rgba(255,140,40,0.55) 0%, rgba(255,80,0,0.25) 25%, transparent 60%);
  filter: blur(20px);
  animation: forgePulse 4.5s ease-in-out infinite;
}

@keyframes forgePulse {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1.0;  transform: translateX(-50%) scale(1.06); }
}

/* Embers floating up */
.ember-field {
  position: absolute;
  inset: 0;
}

.ember {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  background: var(--ember-hot);
  border-radius: 50%;
  box-shadow:
    0 0 6px var(--ember),
    0 0 14px var(--ember-deep);
  opacity: 0;
  animation: rise linear infinite;
}

.ember:nth-child(1)  { left:  6%; animation-duration: 11s; animation-delay: 0s;   }
.ember:nth-child(2)  { left: 14%; animation-duration:  9s; animation-delay: 1.5s; }
.ember:nth-child(3)  { left: 22%; animation-duration: 13s; animation-delay: 3s;   }
.ember:nth-child(4)  { left: 33%; animation-duration: 10s; animation-delay: 0.7s; }
.ember:nth-child(5)  { left: 41%; animation-duration: 14s; animation-delay: 2.2s; }
.ember:nth-child(6)  { left: 49%; animation-duration:  8s; animation-delay: 4s;   }
.ember:nth-child(7)  { left: 57%; animation-duration: 12s; animation-delay: 1s;   }
.ember:nth-child(8)  { left: 66%; animation-duration:  9s; animation-delay: 3.5s; }
.ember:nth-child(9)  { left: 74%; animation-duration: 13s; animation-delay: 0.4s; }
.ember:nth-child(10) { left: 82%; animation-duration: 11s; animation-delay: 2.8s; }
.ember:nth-child(11) { left: 89%; animation-duration: 10s; animation-delay: 1.8s; }
.ember:nth-child(12) { left: 95%; animation-duration: 15s; animation-delay: 5s;   }

@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(1);    opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translateY(-55vh) translateX(20px) scale(0.8); }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) translateX(-15px) scale(0.3); opacity: 0; }
}

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) clamp(1.25rem, 5vw, 3rem) 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.brand { margin-bottom: 2.5rem; }

.runes {
  font-family: 'Uncial Antiqua', serif;
  letter-spacing: 0.6em;
  color: var(--gold);
  opacity: 0.55;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  margin-bottom: 1.2rem;
  text-shadow: 0 0 14px rgba(255, 170, 80, 0.35);
}

.wordmark {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: clamp(3.6rem, 13vw, 8rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--parchment);
  text-shadow:
    0 1px 0 #000,
    0 0 18px rgba(255, 130, 40, 0.55),
    0 0 60px rgba(255, 90, 0, 0.35);
  background: linear-gradient(180deg, #f4e4c1 0%, #d8b175 45%, #8a5a2a 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 110, 30, 0.35));
}

.wordmark .eth {
  font-style: italic;
  color: var(--ember-hot);
  -webkit-text-fill-color: var(--ember-hot);
}

.latin {
  margin-top: 0.9rem;
  font-family: 'Cinzel', serif;
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--steel);
}

.latin em {
  font-style: italic;
  color: var(--gold);
  text-transform: none;
  letter-spacing: 0.05em;
}

/* Tagline */
.tagline {
  margin: 0 auto;
  max-width: 640px;
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--ash);
  margin-bottom: 1.1rem;
}

.lead strong {
  color: var(--ember-hot);
  font-weight: 600;
  text-shadow: 0 0 12px rgba(255, 140, 40, 0.45);
}

.lead.jp {
  font-size: clamp(0.95rem, 1.9vw, 1.15rem);
  color: var(--steel);
  margin-top: 0.6rem;
}

/* Anvil / status */
.anvil {
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.hammer {
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: var(--ember-hot);
  text-shadow: 0 0 18px var(--ember), 0 0 40px var(--ember-deep);
  display: inline-block;
  transform-origin: 80% 80%;
  animation: hammer 2.6s ease-in-out infinite;
}

@keyframes hammer {
  0%, 60%, 100% { transform: rotate(-12deg); }
  70%           { transform: rotate(28deg); }
  78%           { transform: rotate(20deg); }
  85%           { transform: rotate(28deg); }
}

.status {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ember-hot);
  box-shadow: 0 0 10px var(--ember), 0 0 22px var(--ember-deep);
  animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

/* Footer */
.foot {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 169, 154, 0.12);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.foot .motto {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.06em;
  color: var(--gold);
  opacity: 0.7;
}

.foot a {
  color: var(--ash);
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.foot a:hover,
.foot a:focus-visible {
  color: var(--ember-hot);
  text-shadow: 0 0 14px rgba(255, 140, 40, 0.55);
  outline: none;
}

.foot .x-glyph {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  letter-spacing: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ember, .hammer, .forge-glow, .dot { animation: none; }
}

@media (max-width: 480px) {
  .foot { justify-content: center; text-align: center; }
}
