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

:root {
  --paper: #f3eadc;
  --card: #fffaf2;
  --ink: #1b1510;
  --mute: #6d5e52;
  --seal: #c41e3a;
  --seal-deep: #8f1028;
  --gold: #b4842a;
  --line: rgba(27, 21, 16, 0.12);
  --night: #161310;
  --font-jp: "Zen Maru Gothic", "Hiragino Sans", sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Figtree", "Hiragino Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Header — floating capsule, not a full-bleed bar */
.site-header {
  position: fixed;
  inset: 1rem 0 auto;
  z-index: 100;
  pointer-events: none;
}

.nav {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, 94vw);
  margin: 0 auto;
  padding: 0.45rem 0.55rem 0.45rem 0.85rem;
  background: rgba(255, 250, 242, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(27, 21, 16, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--seal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding-right: 0.4rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nav-links a:hover { color: var(--seal); }

.nav-socials {
  display: flex;
  gap: 0.45rem;
  margin-left: 0.2rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
}

.nav-socials a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--card);
  font-size: 0.68rem;
  letter-spacing: 0;
}

.nav-socials a:hover {
  background: var(--seal);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.55rem 0.7rem;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero — full-bleed photo, copy sitting on the image */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff8f0;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: -2;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(22, 19, 16, 0.15) 0%, rgba(22, 19, 16, 0.2) 40%, rgba(22, 19, 16, 0.88) 100%);
}

.hero-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 8rem 0 2.2rem;
}

.hero-chip {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 248, 240, 0.35);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(196, 30, 58, 0.85);
}

.hero h1 {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(3.6rem, 12vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: 0.12em;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: 0.28em;
  margin: 0.4rem 0 1rem;
  color: #f3d9a4;
}

.hero-sub span { color: #fff; }

.hero-bio {
  max-width: 38em;
  color: rgba(255, 248, 240, 0.82);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1120px, 92vw);
  margin: 0 auto -3.2rem;
  position: relative;
  z-index: 2;
  gap: 0.8rem;
}

.hero-stats li {
  background: var(--card);
  color: var(--ink);
  border-radius: 1.25rem;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 18px 40px rgba(27, 21, 16, 0.16);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--seal);
}

.hero-stats span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.4rem;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-seal {
  background: var(--seal);
  color: #fff8f2;
}

.btn-seal:hover { background: var(--seal-deep); }

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.hero .btn-ghost {
  border-color: rgba(255, 248, 240, 0.55);
  color: #fff8f0;
}

.hero .btn-ghost:hover {
  background: #fff8f0;
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-lg { padding: 1.05rem 1.65rem; }

button.btn { font: inherit; }

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 6.5rem 0 5rem;
}

.story { padding-top: 6.8rem; }

.diary-head {
  margin-bottom: 2rem;
  max-width: 34em;
}

.diary-head.center {
  text-align: center;
  margin-inline: auto;
}

.date-stamp,
.kicker {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 0.45rem;
}

.diary-head h2,
.profile-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.diary-head p,
.profile-copy p {
  color: var(--mute);
  font-size: 1.05rem;
}

.profile-copy p { margin-bottom: 0.9rem; }
.profile-copy strong { color: var(--ink); }
.profile-copy em { color: var(--ink); font-style: italic; }

/* Bento diary */
.bento {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.1rem;
  align-items: stretch;
}

.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.1rem;
  box-shadow: 0 12px 32px rgba(27, 21, 16, 0.05);
  display: flex;
  flex-direction: column;
}

.tile-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.9rem;
}

.tile-bar a {
  color: var(--seal);
  text-decoration: none;
  font-weight: 700;
}

.who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.who img,
.x-mark {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
}

.x-mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 1.1rem;
}

.who strong {
  display: block;
  font-family: var(--font-jp);
}

.who span {
  display: block;
  font-size: 0.78rem;
  color: var(--mute);
}

.yt-player,
.x-widget {
  overflow: hidden;
  border-radius: 1rem;
  background: #000;
  flex: 1;
}

.yt-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  border: 0;
  display: block;
}

.x-widget { min-height: 480px; }

.x-frame {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
  background: #fff;
}

.tile-cap {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--mute);
}

.tile-cap a { color: var(--seal); }

/* About — circular portrait, not a split bleed */
.about {
  background:
    radial-gradient(circle at 18% 20%, rgba(196, 30, 58, 0.08), transparent 28%),
    var(--paper);
}

.profile {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 3.5rem;
  align-items: center;
}

.profile-photo {
  position: relative;
  width: min(100%, 340px);
  margin: 0 auto;
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  border: 10px solid var(--card);
  box-shadow: 0 24px 50px rgba(27, 21, 16, 0.16);
}

.hanko {
  position: absolute;
  right: 4%;
  bottom: 6%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 3px solid var(--seal);
  border-radius: 8px;
  color: var(--seal);
  font-family: var(--font-jp);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  background: rgba(255, 250, 242, 0.92);
  transform: rotate(-12deg);
}

.chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.chips li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
}

.chips span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

/* Memes — horizontal filmstrip, not a tiled wall */
.memes { padding-right: 0; padding-left: 0; }

.memes .wrap { margin-bottom: 0.4rem; }

.filmstrip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.4rem max(4vw, calc((100vw - 1120px) / 2)) 1.2rem;
  scrollbar-width: thin;
}

.filmstrip figure {
  flex: 0 0 min(72vw, 280px);
  scroll-snap-align: start;
  margin: 0;
  background: var(--card);
  border-radius: 1.3rem;
  padding: 0.7rem 0.7rem 1rem;
  box-shadow: 0 10px 28px rgba(27, 21, 16, 0.08);
}

.filmstrip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.9rem;
}

.filmstrip figcaption {
  margin-top: 0.65rem;
  text-align: center;
  font-family: var(--font-jp);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--mute);
}

/* CA — ticket stub */
.ticket {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: var(--card);
  border: 1px dashed var(--gold);
  border-radius: 1.4rem;
  overflow: hidden;
  position: relative;
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--paper);
  border-radius: 50%;
  left: 169px;
}

.ticket::before { top: -11px; }
.ticket::after { bottom: -11px; }

.ticket-stub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.4rem 1.1rem;
  background: var(--seal);
  color: #fff8f2;
  text-align: center;
}

.ticket-stub p {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}

.ticket-stub strong {
  font-family: var(--font-jp);
  font-size: 1.35rem;
}

.ticket-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
}

.ca-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  width: 100%;
}

.ca-address {
  flex: 1;
  font-size: clamp(0.82rem, 1.8vw, 1.05rem);
  word-break: break-all;
  color: var(--ink);
}

.ticket .btn-ghost {
  color: var(--ink);
  border-color: var(--line);
}

.ticket .btn-ghost:hover,
.ticket .btn.copied {
  background: var(--seal);
  border-color: var(--seal);
  color: #fff;
}

.copy-toast {
  min-height: 1.4rem;
  margin-top: 0.8rem;
  color: var(--seal);
  opacity: 0;
  transition: opacity 0.25s;
}

.copy-toast.show { opacity: 1; }

/* Tokenomics — circular stamps */
.stamps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.stamps article {
  text-align: center;
  padding: 1.4rem 0.8rem;
}

.stamp-value {
  width: 118px;
  height: 118px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border: 3px solid var(--seal);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--seal);
  transform: rotate(-8deg);
}

.stamps article:nth-child(2) .stamp-value { transform: rotate(6deg); }
.stamps article:nth-child(3) .stamp-value { transform: rotate(-4deg); }
.stamps article:nth-child(4) .stamp-value { transform: rotate(9deg); }

.stamps h3 {
  font-family: var(--font-jp);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.stamps p { color: var(--mute); font-size: 0.92rem; }

/* Buy — vertical timeline */
.buy {
  background: var(--night);
  color: #f6eee2;
}

.buy .kicker { color: #f3d9a4; }
.buy h2 { color: #fff8f0; }
.buy .diary-head { margin-bottom: 2.2rem; }

.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid rgba(243, 217, 164, 0.35);
  margin: 0 0 2.2rem 0.7rem;
}

.timeline li {
  position: relative;
  padding: 0 0 1.8rem 1.6rem;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline span {
  position: absolute;
  left: -0.7rem;
  top: 0.15rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--seal);
  color: transparent;
  font-size: 0;
}

.timeline h3 {
  font-family: var(--font-jp);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.timeline p {
  color: rgba(246, 238, 226, 0.72);
  font-size: 0.98rem;
}

.buy-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.buy .btn-ghost {
  border-color: rgba(246, 238, 226, 0.4);
  color: #f6eee2;
}

.buy .btn-ghost:hover {
  background: #f6eee2;
  color: var(--night);
}

/* Footer */
.footer {
  padding: 2.4rem 0;
  background: #100e0c;
  color: #f6eee2;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 2rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.footer-inner strong {
  display: block;
  font-family: var(--font-jp);
  letter-spacing: 0.08em;
}

.footer-inner span,
.footer-disclaimer {
  color: rgba(246, 238, 226, 0.62);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 1.4rem;
}

.footer-links a {
  color: #f3d9a4;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-disclaimer {
  grid-column: 1 / -1;
  max-width: 46em;
}

@media (max-width: 980px) {
  .bento,
  .profile,
  .ticket,
  .stamps,
  .hero-stats,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    margin-bottom: -2.2rem;
  }

  .hero-inner { padding-top: 7rem; }

  .chips { grid-template-columns: 1fr; }

  .ticket::before,
  .ticket::after { display: none; }

  .footer-links { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .nav {
    border-radius: 1.4rem;
    padding-right: 0.35rem;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 0.8rem;
    background: rgba(255, 250, 242, 0.97);
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    box-shadow: 0 16px 40px rgba(27, 21, 16, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.22s ease;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.2rem;
  }

  .nav-socials {
    margin: 0;
    padding: 0.5rem 1.2rem 0.2rem;
    border: 0;
  }

  .nav-toggle { display: flex; }

  .section { padding: 4.4rem 0 3.6rem; }
  .story { padding-top: 5.4rem; }

  .hero h1 { letter-spacing: 0.06em; }

  .x-widget,
  .x-frame { min-height: 420px; height: 420px; }

  .filmstrip figure {
    flex-basis: min(78vw, 240px);
  }
}
