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

:root {
  --ink: #0e0d0b;
  --paper: #f5f0e8;
  --copper: #b87333;
  --copper-light: #d4956a;
  --copper-dark: #7a4a1e;
  --muted: #6b6560;
  --border: rgba(184, 115, 51, 0.25);
}

html, body {
  height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: 'DM Mono', monospace;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
  opacity: 0.4;
}

.wrap {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 3rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

/* Coin mark */
.coin-mark {
  width: 64px;
  height: 64px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

/* Japanese vertical text strip */
.jp-strip {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: 'Noto Serif JP', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(184, 115, 51, 0.3);
  opacity: 0;
  animation: fadeIn 1.2s ease 0.6s forwards;
}

/* Logo */
.logo {
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
  margin-bottom: 0.5rem;
}

.logo-main {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1;
}

.logo-kanji {
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: var(--copper);
  letter-spacing: 0.25em;
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  display: block;
  margin-top: 0.4rem;
}

/* Rule */
.rule {
  width: 100%;
  height: 0.5px;
  background: linear-gradient(to right, var(--copper), transparent);
  margin: 2rem 0;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.3s forwards;
}

/* Tagline */
.tagline {
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  color: var(--muted);
  letter-spacing: 0.12em;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.35s forwards;
  max-width: 480px;
}

.tagline strong {
  color: var(--copper-light);
  font-weight: 400;
}

/* Phase pills */
.phases {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

.phase {
  border: 0.5px solid var(--border);
  padding: 0.4rem 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.phase.active {
  border-color: var(--copper);
  color: var(--copper);
}

.phase-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper);
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 2s ease infinite;
}

/* Partners */
.partners {
  margin-top: 2.75rem;
  opacity: 0;
  animation: fadeUp 0.75s ease 0.62s forwards;
}

.partners-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(107, 101, 96, 0.75);
  margin-bottom: 0.85rem;
}

.partner-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.partner-links a {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--copper-light);
  text-decoration: none;
  border-bottom: 0.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.partner-links a:hover {
  color: var(--copper);
  border-bottom-color: rgba(184, 115, 51, 0.45);
}

.credit {
  margin-top: 1.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(107, 101, 96, 0.65);
  line-height: 1.6;
}

.credit a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 0.5px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.credit a:hover {
  color: var(--copper-light);
  border-bottom-color: rgba(184, 115, 51, 0.5);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Coin graphic */
.coin-graphic {
  position: fixed;
  right: -60px;
  bottom: -60px;
  width: 320px;
  height: 320px;
  opacity: 0.04;
  pointer-events: none;
  animation: slowspin 60s linear infinite;
}

@keyframes slowspin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Footer */
.foot {
  padding-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.8s forwards;
}

.foot-left {
  font-size: 0.65rem;
  color: rgba(107, 101, 96, 0.5);
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.foot-right {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.7rem;
  color: rgba(184, 115, 51, 0.4);
  letter-spacing: 0.15em;
}

/* Divider line left side */
.left-line {
  position: fixed;
  left: 2rem;
  top: 10%;
  bottom: 10%;
  width: 0.5px;
  background: linear-gradient(to bottom, transparent, var(--copper-dark), transparent);
  opacity: 0.3;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 600px) {
  .jp-strip { display: none; }
  .left-line { display: none; }
  .wrap { padding: 2rem 1.5rem; }
}
