/* Hero */
.hero { position: relative; min-height: max(580px, 86svh); display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 30px) 0 110px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.04); animation: heroZoom 30s ease-in-out infinite alternate; }
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(55% 45% at 50% 48%, rgba(8, 40, 80, .38), transparent 70%),
  linear-gradient(180deg, rgba(8, 40, 80, .35) 0%, rgba(8, 40, 80, 0) 28%, rgba(228, 244, 253, 0) 62%, var(--bg) 97%); }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { margin: 22px 0 6px; }
.hero-logo img { width: min(460px, 80vw); height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); animation: float 6s ease-in-out infinite; }
.hero-tag { color: #fff; font: 400 clamp(20px, 2.5vw, 29px)/1.15 var(--display); text-shadow: 0 3px 0 var(--text), 0 10px 30px rgba(0, 0, 0, .45); max-width: 760px; }
.hero-sub { margin-top: 10px; max-width: 520px; font-size: 16px; font-weight: 700; color: #e6f0ff; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.hero-actions .btn { padding: 15px 22px; font-size: 18px; }
.hero-npc { position: absolute; bottom: 60px; z-index: -1; height: min(42vh, 360px); width: auto; filter: drop-shadow(0 24px 30px rgba(8, 50, 90, .38)); pointer-events: none; }
.hero-npc-left { left: max(-40px, calc(50% - 860px)); }
.hero-npc-right { right: max(-30px, calc(50% - 840px)); transform: scaleX(-1); }
.hero-scroll { position: absolute; bottom: 72px; left: 50%; translate: -50% 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); color: var(--text); box-shadow: var(--shadow); animation: bob 2.4s ease-in-out infinite; }
.hero-scroll svg { width: 24px; height: 24px; }

/* Stats */
.stats-band { position: relative; z-index: 2; margin-top: -70px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  position: relative; text-align: center; padding: 18px 14px 16px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 0 #c3e2f5, var(--shadow);
}
.stat::before { content: ''; position: absolute; inset: 0 30% auto; height: 4px; border-radius: 0 0 4px 4px; background: var(--gold-2); }
.stat strong { font: 400 clamp(30px, 3.4vw, 42px)/1 var(--display); background: linear-gradient(180deg, #fff3b0, var(--gold) 50%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 var(--brown)); }
.stat .plus { font: 400 26px/1 var(--display); color: var(--gold); vertical-align: top; }
.stat span:last-child { display: block; margin-top: 8px; font-weight: 800; color: var(--muted); }

/* Pillars */
.pillars .title { margin-bottom: 24px; }
.pillar { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 22px 0; }
.pillar-rev .pillar-art { order: 2; }
.pillar-art { position: relative; display: grid; place-items: center; min-height: 280px; }
.pillar-art > img:not(.pillar-side) { width: min(330px, 86%); filter: drop-shadow(0 30px 40px rgba(8, 50, 90, .35)); transition: transform .5s cubic-bezier(.2, .9, .3, 1.2); }
.pillar:hover .pillar-art > img:not(.pillar-side) { transform: translateY(-4px); }
.pillar-side { position: absolute; width: 46%; right: -2%; bottom: -6%; filter: drop-shadow(0 20px 30px rgba(8, 50, 90, .38)); animation: bob 5s ease-in-out infinite; }
.pillar-rev .pillar-side { right: auto; left: -4%; }
.pillar-glow { position: absolute; inset: 10% 12%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--g) 45%, transparent), transparent 65%); filter: blur(20px); }
.pillar-num { font: 400 44px/1 var(--display); color: transparent; -webkit-text-stroke: 2px #9ccfeb; }
.pillar h3 { font-size: clamp(24px, 2.8vw, 32px); margin: 6px 0 12px; }
.pillar p { color: var(--muted); font-size: 16px; }

/* Ateliers */
.ateliers { background: linear-gradient(180deg, transparent, var(--mint) 20%, var(--mint) 80%, transparent); }
.atelier-stage { display: grid; gap: 22px; }
.atelier-tabs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.atelier-tabs [role=tab] {
  --c: var(--gold);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px 12px;
  border-radius: 16px; background: var(--surface); border: 2px solid var(--line); transition: border-color .2s, background .2s, transform .2s;
}
.atelier-tabs [role=tab] img { height: 42px; width: auto; transition: transform .2s; }
.atelier-tabs [role=tab] span { font-weight: 900; font-size: 14px; color: var(--muted); }
.atelier-tabs [role=tab]:hover { transform: translateY(-3px); }
.atelier-tabs [role=tab]:hover img { transform: scale(1.08); }
.atelier-tabs [role=tab][aria-selected="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.atelier-tabs [role=tab][aria-selected="true"] span { color: var(--text); }

.atelier-show {
  --c: var(--gold);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 28px 32px; min-height: 360px;
  border-radius: 24px; background: radial-gradient(70% 80% at 30% 65%, rgba(255, 255, 255, .5), transparent 70%), linear-gradient(160deg, #8adcf7, #2b9fd3); border: 4px solid #fff; box-shadow: var(--shadow); overflow: hidden; --text: #fff; color: #fff;
}
.atelier-show.swap .atelier-main { animation: pop .5s cubic-bezier(.2, 1.3, .4, 1); }
.atelier-show.swap .atelier-info > * { animation: fadeUp .45s ease both; }
.atelier-show.swap .atelier-info > *:nth-child(2) { animation-delay: .05s; }
.atelier-show.swap .atelier-info > *:nth-child(3) { animation-delay: .1s; }
.atelier-show.swap .atelier-info > *:nth-child(4) { animation-delay: .15s; }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(20px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.atelier-visual { position: relative; display: grid; place-items: center; min-height: 290px; }
.atelier-disc { position: absolute; width: 86%; aspect-ratio: 3 / 1; bottom: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(8, 50, 90, .35), transparent); }
.atelier-main { position: relative; width: min(420px, 100%); max-height: 270px; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(8, 50, 90, .35)); }
.atelier-npc { position: absolute; right: 0; bottom: 0; height: 58%; width: auto; filter: drop-shadow(0 16px 20px rgba(8, 50, 90, .35)); }
.atelier-info h3 { font-size: clamp(24px, 2.6vw, 32px); margin: 10px 0 10px; }
.atelier-info p { color: #eaf7ff; font-size: 16px; }
.atelier-facts { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.atelier-facts li { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); }
.atelier-facts strong { display: block; font: 400 23px/1 var(--display); color: #fff; text-shadow: 0 2px 0 rgba(13, 63, 106, .4); }
.atelier-facts span { font-size: 13px; font-weight: 800; color: #eaf7ff; }

/* NPC carousel */
.carousel-ctrl { display: flex; gap: 10px; }
.npc-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px max(16px, calc((100vw - var(--max)) / 2)) 30px; scroll-padding-inline: max(16px, calc((100vw - var(--max)) / 2)); scrollbar-width: none;
}
.npc-track::-webkit-scrollbar { display: none; }
.npc-card { margin: 0; scroll-snap-align: start; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .25s, border-color .25s; }
.npc-card:hover { transform: translateY(-8px); border-color: var(--gold); }
.npc-img { height: 250px; display: grid; place-items: end center; padding-top: 20px; background: var(--art); }
.npc-img img { height: 210px; width: auto; max-width: 92%; object-fit: contain; transition: transform .35s cubic-bezier(.2, 1.3, .4, 1); filter: drop-shadow(0 12px 14px rgba(8, 50, 90, .35)); }
.npc-card:hover .npc-img img { transform: scale(1.07) translateY(-4px); }
.npc-card figcaption { padding: 14px 16px 18px; }
.npc-card strong { display: block; font: 400 20px/1.1 var(--display); }
.npc-card span { color: var(--dim); font-weight: 800; font-size: 14px; }

/* Bosses */
.boss-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 48px 0 40px; }
.boss-card {
  --t: var(--gold);
  position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(90% 70% at 50% 85%, color-mix(in srgb, var(--t) 45%, transparent), transparent 70%), linear-gradient(180deg, #e9f7fe, #c9e9f9);
  transition: transform .25s, border-color .25s;
}
.boss-card:hover { transform: translateY(-6px); border-color: var(--t); }
.boss-card img { height: 210px; width: 100%; object-fit: contain; padding: 30px 18px 6px; filter: drop-shadow(0 14px 16px rgba(8, 50, 90, .35)); transition: transform .35s; }
.boss-card:hover img { transform: scale(1.08); }
.boss-n { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 8px; background: var(--text); font-weight: 900; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.boss-meta { padding: 12px 16px 18px; }
.boss-meta strong { display: block; font: 400 20px/1.1 var(--display); }
.boss-meta span { color: var(--muted); font-weight: 800; font-size: 14px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.shot { border-radius: 16px; overflow: hidden; position: relative; }
.shot:first-child { grid-row: span 2; }
.shot:nth-child(n+6) { display: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.shot:hover img { transform: scale(1.06); }
.shot::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: inherit; }

/* Discord */
.discord-band {
  position: relative; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 24px; padding: 38px 44px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(90% 120% at 100% 100%, #8d97ff, transparent 60%), linear-gradient(135deg, #5865f2, #6e7cf4); color: #fff; --text: #fff;
}
.discord-band .lead { color: #e2e5ff; }
.discord-band img { justify-self: center; max-height: 250px; width: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .4)); animation: float 6s ease-in-out infinite; }

/* Final CTA */
.final-cta { position: relative; padding: 76px 0 64px; overflow: hidden; background: url(../assets/img/sky.webp) center/cover; }
.final-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg), rgba(228, 244, 253, 0) 40%, rgba(8, 50, 90, .15)); }
.final-cta .wrap { position: relative; }
.final-w { margin: 0 auto 10px; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .4)); }
.final-cta .title { color: #fff; text-shadow: 0 4px 0 var(--text), 0 10px 24px rgba(13, 63, 106, .4); }
.final-cta .title .hl { color: var(--gold); }
.final-cta .lead { color: var(--text); font-weight: 700; }

@media (max-width: 1080px) {
  .atelier-tabs { grid-template-columns: repeat(4, 1fr); }
  .boss-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1280px) { .hero-npc { display: none; } }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pillar, .pillar-rev { grid-template-columns: 1fr; gap: 24px; }
  .pillar-rev .pillar-art { order: 0; }
  .pillar-art { min-height: 300px; }
  .atelier-show { grid-template-columns: 1fr; padding: 24px; }
  .atelier-visual { min-height: 280px; }
  .discord-band { grid-template-columns: 1fr; padding: 32px 24px; }
  .discord-band img { max-height: 220px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 160px); }
  .shot:first-child { grid-column: span 2; grid-row: auto; }
  .hero-npc { display: none; }
}
@media (max-width: 520px) {
  .atelier-tabs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .atelier-tabs [role=tab] { padding: 8px 4px; }
  .atelier-tabs [role=tab] img { height: 38px; }
  .atelier-tabs [role=tab] span { font-size: 11px; }
  .atelier-facts { grid-template-columns: 1fr 1fr 1fr; }
  .atelier-facts strong { font-size: 22px; }
  .boss-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .boss-card img { height: 140px; padding: 30px 8px 4px; }
  .hero-actions .btn { width: 100%; }
  .npc-track { grid-auto-columns: 170px; }
  .npc-img { height: 200px; }
  .npc-img img { height: 180px; }
}

.atelier-badge { background: #fff; color: #0d3f6a; }
.atelier-info .link-arrow { color: #fff; }
.atelier-info h3 { text-shadow: 0 3px 0 rgba(13, 63, 106, .35); }
