:root {
  --ink: #0c0a09;
  --ink-2: #14100e;
  --ivory: #ecdcb8;
  --ivory-2: #d9c59c;
  --crimson: #b3141f;
  --crimson-2: #8a0d16;
  --ember: #ff5a4a;
  --mute: #b3a58e;
  --rule: rgba(236, 220, 184, .14);
  --font-display: "Dela Gothic One", "Arial Black", sans-serif;
  --font-body: "Lato", system-ui, sans-serif;
  --font-kanji: "Yuji Syuku", "Yu Mincho", serif;
}

body.home { background: var(--ink); color: var(--ivory); font-family: var(--font-body); font-size: 17px; overflow-x: clip; }
body.home a { color: var(--ember); }
body.home h1, body.home h2, body.home h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; line-height: 1.08; }

.home .wrap { width: min(1240px, 100% - 40px); }

.home .topbar { position: absolute; inset: 0 0 auto; background: linear-gradient(var(--ink), transparent); border: 0; backdrop-filter: none; }
.home .topbar .wrap { height: 76px; }
.home .brand img { height: 42px; border-radius: 6px; }
.home .nav a { color: var(--ivory); font-weight: 700; font-size: 15px; }
.home .nav a:hover { color: #fff; }
.home .nav a.btn-get { background: var(--crimson); color: var(--ivory); padding: 10px 18px; border-radius: 3px; }
.home .nav a.btn-get:hover { background: var(--ember); color: var(--ink); text-decoration: none; }
.home .menu-toggle { border-color: var(--rule); color: var(--ivory); border-radius: 3px; }

.get { display: inline-grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 16px 28px 16px 22px; background: var(--crimson); color: var(--ivory) !important; border-radius: 3px; box-shadow: 6px 6px 0 var(--crimson-2); transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.get:hover { text-decoration: none; background: #c8182a; transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--crimson-2); }
.get:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--crimson-2); }
.get svg { grid-row: span 2; width: 30px; height: 30px; }
.get b { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.1; }
.get small { font-size: 14px; opacity: .85; }
.get[aria-disabled="true"] { background: #2a2320; box-shadow: none; color: var(--mute) !important; }
.get.light { background: var(--ivory); color: var(--ink) !important; box-shadow: 6px 6px 0 var(--ink); }
.get.light:hover { background: #fff; box-shadow: 8px 8px 0 var(--ink); }

.hero-v { position: relative; min-height: min(100svh, 900px); display: grid; align-content: end; overflow: hidden; isolation: isolate; }
.hero-v .map { position: absolute; inset: -4%; z-index: -2; background: url(vila.webp) 62% 40% / cover no-repeat; image-rendering: pixelated; animation: drift 60s ease-in-out infinite alternate; }
.hero-v::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 10, 9, .97) 0%, rgba(12, 10, 9, .86) 38%, rgba(12, 10, 9, .35) 70%, rgba(12, 10, 9, .55) 100%), linear-gradient(transparent 55%, var(--ink)); }
@keyframes drift { to { transform: scale(1.08) translate(-2%, 1%); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; padding: 120px 0 48px; }
.hero-v .logo { width: min(500px, 100%); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .8)); }
.hero-v .lead { font-size: 20px; line-height: 1.5; max-width: 34ch; margin: 18px 0 30px; color: var(--ivory); }
.dl-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.dl-links { display: flex; gap: 20px; font-weight: 700; }
.dl-links a { color: var(--ivory) !important; border-bottom: 2px solid var(--crimson); padding-bottom: 2px; }
.dl-links a:hover { text-decoration: none; border-color: var(--ember); }
.dl-links a[aria-disabled="true"] { color: var(--mute) !important; border-color: transparent; }
.dl-req { margin: 18px 0 0; font-size: 15px; color: var(--mute); }

.seal { display: grid; justify-items: center; gap: 14px; margin-bottom: 8px; }
.seal-stamp { writing-mode: vertical-rl; font-family: var(--font-kanji); font-size: 92px; line-height: 1; color: var(--ivory); background: var(--crimson); padding: 22px 16px; border-radius: 6px; transform: rotate(4deg); box-shadow: inset 0 0 0 5px var(--crimson), inset 0 0 0 8px var(--ivory); mix-blend-mode: normal; }
.seal p { margin: 0; text-align: center; font-size: 14px; line-height: 1.4; color: var(--ivory); }
.seal p b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 18px; }

.stats { border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats div { padding: 20px 0 26px; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.stats strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1; color: var(--ivory); }
.stats span { font-size: 15px; color: var(--mute); }

.band { padding: clamp(64px, 8vw, 112px) 0; }
.band h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 0 0 18px; }
.band .intro { font-size: 18px; color: var(--mute); max-width: 46ch; margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > :first-child { position: sticky; top: 32px; }

.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.feat { padding: 22px 0 24px; border-top: 1px solid var(--rule); }
.feat h3 { font-size: 21px; margin: 0 0 8px; color: var(--ivory); }
.feat p { margin: 0; color: var(--mute); font-size: 16px; line-height: 1.6; }

.select { background: radial-gradient(70% 90% at 22% 40%, #3a0b0f 0%, var(--ink-2) 70%); border-block: 1px solid var(--rule); }
.select-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.select-head h2 { margin: 0; }
.select-head p { margin: 0; color: var(--mute); max-width: 40ch; }
.stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.pedestal { position: relative; height: 400px; display: grid; place-items: end center; }
.pedestal::after { content: ""; position: absolute; bottom: 30px; width: 62%; height: 46px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); }
.pedestal img { position: relative; z-index: 1; height: 340px; width: auto; max-width: none; image-rendering: pixelated; margin-bottom: 38px; animation: idle 2.4s steps(2) infinite; }
@keyframes idle { 50% { transform: translateY(-4px); } }
.pedestal .kanji { position: absolute; inset: 0 0 auto; text-align: center; font-family: var(--font-kanji); font-size: 330px; line-height: 1.1; color: var(--crimson); opacity: .35; }
.bio .role { display: inline-block; font-weight: 900; font-size: 14px; padding: 4px 12px; border-radius: 3px; background: var(--role-color, #3a322c); color: var(--ink); }
.bio h3 { font-size: clamp(44px, 6vw, 76px); margin: 14px 0 10px; color: var(--ivory); }
.bio .sum { font-size: 19px; margin: 0 0 22px; color: var(--ivory); max-width: 40ch; }
.bio .sum::first-letter { text-transform: uppercase; }
.bio .role-desc { margin: 0 0 22px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--mute); max-width: 44ch; }
.bio .more { font-weight: 700; }

.roster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; margin-top: 40px; }
.roster button { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 4px; background: #1c1613; cursor: pointer; overflow: hidden; border-bottom: 4px solid var(--role-color, #3a322c); transition: background .12s ease, transform .12s ease; }
.roster button img { position: absolute; left: 50%; top: 4%; width: 150%; max-width: none; transform: translateX(-50%); image-rendering: pixelated; }
.roster button:hover { background: #2a201b; transform: translateY(-2px); }
.roster button[aria-pressed="true"] { background: var(--ivory); outline: 3px solid var(--crimson); outline-offset: 2px; }
.roster button:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }

.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 44px; }
.ledger a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; padding: 20px 0; border-top: 1px solid var(--rule); color: var(--ivory) !important; }
.ledger a:hover { text-decoration: none; }
.ledger a:hover h3 { color: var(--ember); }
.ledger h3 { font-size: 20px; margin: 0; transition: color .12s ease; }
.ledger p { grid-column: 1; margin: 0; color: var(--mute); font-size: 16px; }
.ledger a::after { content: "→"; grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--crimson); font-size: 22px; }

.paper { background: var(--ivory); color: var(--ink); }
.paper h2 { color: var(--ink); }
.paper .intro { color: #5a4c3a; }
.path { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 52px; }
.path::before { content: ""; position: absolute; top: 29px; left: 30px; right: 12%; height: 6px; background: var(--crimson); border-radius: 3px; transform: skewX(-20deg); }
.path div { position: relative; }
.path i { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: var(--crimson); color: var(--ivory); font-family: var(--font-kanji); font-style: normal; font-size: 32px; box-shadow: 0 0 0 6px var(--ivory); }
.path h3 { font-size: 21px; margin: 0 0 8px; color: var(--ink); }
.path p { margin: 0; color: #4a3e30; font-size: 16px; }
.paper a { color: var(--crimson) !important; font-weight: 700; }

.faq-list details { border-top: 1px solid var(--rule); padding: 20px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-weight: 700; font-size: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--ember); font-family: var(--font-display); font-size: 22px; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 12px 0 0; color: var(--mute); max-width: 62ch; }
.faq-list strong { color: var(--ivory); }

.call { background: var(--crimson); color: var(--ivory); overflow: hidden; }
.call .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.call h2 { color: var(--ivory); margin-bottom: 12px; }
.call p { margin: 0 0 30px; font-size: 18px; max-width: 44ch; }
.call .big-kanji { font-family: var(--font-kanji); font-size: clamp(160px, 20vw, 280px); line-height: .9; color: var(--crimson-2); }

.home footer.site { border-top: 0; background: var(--ink); padding: 40px 0 52px; color: var(--mute); }
.home footer.site .wrap { align-items: center; }
.home footer.site img { height: 34px; border-radius: 5px; }
.home footer.site a { color: var(--ivory); }
.foot-brand { display: flex; align-items: center; gap: 14px; }

@media (max-width: 980px) {
  .split, .stage { grid-template-columns: minmax(0, 1fr); }
  .split > :first-child { position: static; }
  .roster { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .path::before { display: none; }
  .pedestal { height: 320px; }
  .pedestal img { height: 260px; }
  .pedestal .kanji { font-size: 250px; }
}

@media (max-width: 720px) {
  .home .topbar { position: absolute; }
  .home .nav.open { background: var(--ink); top: 76px; border-color: var(--rule); }
  .hero-v { min-height: 0; }
  .hero-v::before { background: linear-gradient(rgba(12, 10, 9, .7), rgba(12, 10, 9, .92) 60%, var(--ink)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding: 104px 0 36px; }
  .seal { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .feats, .ledger { grid-template-columns: minmax(0, 1fr); }
  .roster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .path { grid-template-columns: minmax(0, 1fr); }
  .call .wrap { grid-template-columns: minmax(0, 1fr); }
  .call .big-kanji { display: none; }
  .get b { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v .map, .pedestal img { animation: none; }
}
