:root {
  --bg: #0b0d13;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --text: #f8efe5;
  --muted: #b9afa4;
  --fox: #f26a2e;
  --fox-dark: #9d2e23;
  --cream: #ffe0b8;
  --gold: #ffbc5e;
  --red: #d53b31;
  --line: rgba(255, 255, 255, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 15%, rgba(213, 59, 49, 0.24), transparent 34rem),
    radial-gradient(circle at 84% 8%, rgba(255, 188, 94, 0.16), transparent 31rem),
    linear-gradient(135deg, #090a0f 0%, #111827 48%, #1d1010 100%);
  overflow-x: hidden;
}

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 20;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.ambient {
  position: fixed;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  filter: blur(64px);
  opacity: 0.32;
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}

.ambient-one {
  left: -6rem;
  top: 20rem;
  background: var(--red);
}

.ambient-two {
  right: -7rem;
  top: 4rem;
  background: var(--gold);
  animation-delay: -4s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #190a08;
  font-family: "Noto Serif JP", serif;
  background: linear-gradient(135deg, var(--gold), var(--cream));
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(255, 188, 94, 0.35);
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 9, 14, 0.48);
}

nav a {
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 14px;
  transition: 0.25s ease;
}

nav a:hover {
  color: var(--text);
  background: var(--panel);
}

.hero,
.section,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 78px);
  padding: 46px 0 82px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(48px, 8vw, 96px);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 5vw, 62px);
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.lead,
.text-block p,
.card p,
.timeline-item p,
.footer p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.lead {
  max-width: 640px;
  margin-bottom: 34px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.primary {
  color: #1b0d08;
  background: linear-gradient(135deg, var(--gold), var(--cream));
  box-shadow: 0 16px 38px rgba(242, 106, 46, 0.28);
}

.ghost {
  border: 1px solid var(--line);
  background: var(--panel);
}

.hero-art {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 50% 10%, rgba(255, 188, 94, 0.26), transparent 18rem);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: auto -10% 0;
  height: 42%;
  background:
    linear-gradient(transparent, rgba(11, 13, 19, 0.92)),
    repeating-linear-gradient(110deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 26px);
}

.moon {
  position: absolute;
  top: 58px;
  right: 70px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff9da, var(--gold) 64%, #c85630);
  box-shadow: 0 0 70px rgba(255, 188, 94, 0.58);
  animation: pulse 4s ease-in-out infinite;
}

.torii span {
  position: absolute;
  left: 54px;
  right: 54px;
  background: linear-gradient(90deg, #7a1617, var(--red), #7a1617);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.25);
}

.torii span:nth-child(1) {
  top: 208px;
  height: 22px;
  border-radius: 18px;
}

.torii span:nth-child(2) {
  top: 248px;
  height: 18px;
}

.torii span:nth-child(3) {
  top: 266px;
  left: 34%;
  right: 34%;
  height: 230px;
}

.fox {
  position: absolute;
  left: 50%;
  bottom: 56px;
  width: 250px;
  height: 265px;
  transform: translateX(-50%);
  animation: floatFox 5s ease-in-out infinite;
}

.tail {
  position: absolute;
  bottom: 42px;
  width: 92px;
  height: 210px;
  background: linear-gradient(160deg, var(--fox), var(--fox-dark));
  border-radius: 70px 70px 18px 70px;
  transform-origin: bottom center;
}

.tail::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 16px;
  width: 46px;
  height: 62px;
  border-radius: 50%;
  background: var(--cream);
}

.tail-one {
  left: 14px;
  transform: rotate(-34deg);
}

.tail-two {
  left: 78px;
  bottom: 58px;
  transform: rotate(-8deg);
}

.tail-three {
  right: 12px;
  transform: rotate(31deg);
}

.body {
  position: absolute;
  left: 77px;
  bottom: 26px;
  width: 105px;
  height: 142px;
  border-radius: 56px 56px 42px 42px;
  background: linear-gradient(150deg, var(--fox), var(--fox-dark));
}

.chest {
  position: absolute;
  left: 100px;
  bottom: 28px;
  width: 58px;
  height: 90px;
  border-radius: 40px 40px 30px 30px;
  background: var(--cream);
}

.head {
  position: absolute;
  left: 74px;
  bottom: 144px;
  width: 112px;
  height: 98px;
  border-radius: 52% 52% 46% 46%;
  background: linear-gradient(150deg, var(--fox), var(--fox-dark));
}

.ear {
  position: absolute;
  top: -34px;
  width: 48px;
  height: 62px;
  background: var(--fox);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.ear.left {
  left: 6px;
  transform: rotate(-19deg);
}

.ear.right {
  right: 6px;
  transform: rotate(19deg);
}

.eye {
  position: absolute;
  top: 42px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #190a08;
  box-shadow: 0 0 12px rgba(255, 224, 184, 0.8);
}

.eye.left {
  left: 34px;
}

.eye.right {
  right: 34px;
}

.snout {
  position: absolute;
  left: 39px;
  bottom: 10px;
  width: 34px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream);
}

.spirit-orb {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px var(--gold);
  animation: rise 6s ease-in-out infinite;
}

.orb-one {
  left: 20%;
  bottom: 26%;
}

.orb-two {
  left: 74%;
  bottom: 18%;
  animation-delay: -2s;
}

.orb-three {
  left: 50%;
  bottom: 42%;
  animation-delay: -4s;
}

.section {
  padding: 96px 0;
}

.split {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 42px;
  border-top: 1px solid var(--line);
}

.text-block {
  max-width: 820px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 188, 94, 0.42);
  background: var(--panel-strong);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  color: var(--gold);
  font-family: "Noto Serif JP", serif;
  font-size: 26px;
  border-radius: 16px;
  background: rgba(255, 188, 94, 0.1);
}

.legends {
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 84px 0.65fr 1fr;
  align-items: start;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item span {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.timeline-item p {
  margin-bottom: 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}

.footer p {
  margin-bottom: 0;
}

.footer a {
  color: var(--gold);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  to {
    transform: translate3d(42px, -26px, 0) scale(1.08);
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 96px rgba(255, 188, 94, 0.72);
  }
}

@keyframes floatFox {
  50% {
    transform: translate(-50%, -10px);
  }
}

@keyframes rise {
  0%,
  100% {
    opacity: 0;
    transform: translateY(16px) scale(0.8);
  }

  35%,
  70% {
    opacity: 1;
  }

  70% {
    transform: translateY(-74px) scale(1.18);
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  nav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .hero-art {
    min-height: 480px;
  }

  .split,
  .cards,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .timeline-item {
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .hero,
  .section,
  .footer,
  .site-header {
    width: min(100% - 22px, 1120px);
  }

  h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-art {
    min-height: 430px;
    border-radius: 20px;
  }

  .moon {
    right: 28px;
    width: 96px;
    height: 96px;
  }

  .torii span {
    left: 28px;
    right: 28px;
  }

  .fox {
    transform: translateX(-50%) scale(0.82);
    transform-origin: bottom center;
  }

  @keyframes floatFox {
    50% {
      transform: translate(-50%, -10px) scale(0.82);
    }
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
