:root {
  color-scheme: light;
  --paper: #faf3e7;
  --ink: #281543;
  --purple: #35186c;
  --purple-deep: #20113e;
  --gold: #ffce79;
  --cream: #fff0d1;
  --muted: #665977;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 3px solid #e98848; outline-offset: 5px; }
.wrap { width: min(1280px, calc(100% - 100px)); margin-inline: auto; }
.skip-link { z-index: 10; position: fixed; top: .7rem; left: .7rem; padding: .7rem 1rem; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { background: var(--paper); }
.header-inner { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; gap: .55rem; align-items: center; font-weight: 820; white-space: nowrap; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3.4vw, 3rem); font-size: .92rem; font-weight: 700; }
nav a { padding: .6rem .08rem; }
nav a:hover, .brand:hover { color: #7546a4; }

.hero { color: var(--cream); background: radial-gradient(ellipse at 65% 76%, #8446a2 0%, #50268b 38%, #2a1653 74%); overflow: clip; }
.hero-layout { position: relative; isolation: isolate; min-height: clamp(570px, 55vw, 760px); display: flex; align-items: end; }
.hero-orbit { position: absolute; z-index: -2; inset: 6% -7% -47% 20%; border-radius: 50%; transform: rotate(-12deg); border: 1px solid #ffdb9b48; box-shadow: 0 0 0 22px #ffce7909, 0 0 0 52px #ffce7918, 0 0 0 120px #ffce790a; pointer-events: none; }
.hero-orbit::after, .hero-orbit::before { content: "✦"; position: absolute; color: #ffd68c; font-size: 1.5rem; }
.hero-orbit::before { top: 31%; left: 7%; }
.hero-orbit::after { top: 27%; right: 7%; font-size: 2.5rem; }
.hero-heading { position: absolute; top: 9%; left: -.2%; z-index: -1; }
.eyebrow { margin-bottom: .62rem; font-size: .78rem; font-weight: 810; letter-spacing: .18em; text-transform: uppercase; color: #75469e; }
.hero .eyebrow, .game-section .eyebrow, .forge-section .eyebrow { color: var(--gold); }
.hero h1 { color: #ffdf9a; font: italic 900 clamp(6.1rem, 11.7vw, 11.5rem)/.83 var(--serif); letter-spacing: -.09em; text-transform: uppercase; text-shadow: 0 8px 50px #1e0a47a0; margin-left: -.045em; }
.hero-art { position: absolute; z-index: 0; right: -2%; bottom: 0; width: min(74%, 890px); height: min(92%, 700px); object-fit: contain; object-position: right bottom; filter: drop-shadow(0 25px 35px #1e0e4e97); animation: hero-rise 650ms cubic-bezier(.18,.8,.26,1) both; }
.hero-relic { position: absolute; z-index: 1; width: clamp(62px, 10vw, 135px); top: 46%; left: 35%; opacity: .88; rotate: -20deg; filter: drop-shadow(0 8px 17px #2110408f); animation: levitate 5s ease-in-out infinite; pointer-events: none; }
.hero-copy { z-index: 2; max-width: 24rem; padding-bottom: clamp(54px, 8vw, 100px); text-shadow: 0 3px 22px #20113e; }
.hero-tagline { font: italic 750 clamp(1.9rem, 3.35vw, 3.05rem)/1.07 var(--serif); letter-spacing: -.055em; text-wrap: balance; }
.hero-description { max-width: 29ch; color: #f1defa; margin: .85rem 0 1.5rem; }
.button { display: inline-flex; gap: 1rem; min-height: 49px; padding: .66rem 1.15rem .66rem 1.24rem; border-radius: 99px; align-items: center; justify-content: space-between; font-size: .9rem; font-weight: 810; text-shadow: none; }
.button span { font-size: 1.15rem; line-height: 1; }
.primary { background: var(--gold); color: #281239; }
.primary:hover { background: #ffe4af; }
.secondary { border: 1px solid #907ba9; color: #321b53; }
.secondary:hover { background: #f0e5dc; }
.hero-down { position: absolute; z-index: 2; right: 0; bottom: 1.5rem; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffe8be8a; border-radius: 50%; background: #23114094; font-size: 1.3rem; }
.hero-down:hover { background: #ffce79; color: var(--ink); }
@keyframes hero-rise { from { translate: 0 45px; opacity: 0; } }
@keyframes levitate { 50% { translate: 0 -16px; rotate: -9deg; } }

.arsenal-section, .world-section, .gallery-section { padding-block: clamp(60px, 8vw, 118px); }
.section-intro { margin-bottom: 2.3rem; }
.section-intro h2 { font: 800 clamp(2.45rem, 5vw, 5.25rem)/.99 var(--serif); letter-spacing: -.068em; text-wrap: balance; max-width: 14ch; }
.section-intro p:not(.eyebrow) { color: var(--muted); max-width: 40ch; }
.split, .gallery-intro { display: flex; justify-content: space-between; gap: 1.25rem 3rem; align-items: end; }
.split > p, .gallery-intro > p { padding-bottom: .3rem; }
.arsenal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.65vw, 1.5rem); }
.weapon-tile { position: relative; display: flex; flex-direction: column; justify-content: end; min-width: 0; aspect-ratio: .87; border-radius: 16px; overflow: hidden; padding: 1rem; color: white; background: #543085; isolation: isolate; }
.weapon-tile::before { position: absolute; inset: 13% 0 auto; margin: auto; width: 72%; aspect-ratio: 1; content: ""; border: 1px solid #fff3; border-radius: 50%; z-index: -1; box-shadow: 0 0 0 12px #fff1; }
.weapon-tile img { position: absolute; inset: 0 3% 14%; width: 94%; height: 84%; object-fit: contain; filter: drop-shadow(0 11px 13px #170a393f); transition: transform 400ms cubic-bezier(.18,.8,.26,1); }
.weapon-tile:hover img { transform: translateY(-5%) rotate(-6deg) scale(1.06); }
.weapon-tile figcaption { max-width: 18ch; font-size: clamp(.92rem, 1.56vw, 1.35rem); font-weight: 840; line-height: 1.16; }
.weapon-tile.brisa { background: radial-gradient(at 35% 12%, #a47ce1, #523086 70%); }
.weapon-tile.eclipse { background: radial-gradient(at 35% 12%, #a158ad, #602870 70%); }
.weapon-tile.represa { background: radial-gradient(at 34% 9%, #6ba9b4, #22576e 74%); }
.weapon-tile.draco { background: radial-gradient(at 35% 12%, #d98479, #823a58 76%); }

.game-section, .forge-section { background: var(--purple-deep); color: var(--cream); }
.game-layout, .forge-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding-block: clamp(60px, 9vw, 115px); }
.game-layout .section-intro, .forge-layout .section-intro { margin: 0; }
.game-layout .section-intro p:not(.eyebrow), .forge-layout .section-intro p:not(.eyebrow) { color: #e1cfe9; margin-block: 1rem 1.45rem; }
.game-art img, .forge-layout img { border-radius: 18px; border: 1px solid #d1aee04d; }
.game-art figcaption { font-size: .8rem; color: #dbc7e6; padding-top: .65rem; }
.forge-layout { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
.forge-section { background: #3d206b; }

.world-grid, .gallery { display: grid; gap: 1rem; }
.world-grid { grid-template-columns: 1.35fr 1fr 1fr; }
.world-map { position: relative; isolation: isolate; overflow: hidden; min-height: 240px; border-radius: 16px; background: #30204f; }
.world-map img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .38s ease; }
.world-map:hover img { transform: scale(1.05); }
.world-map::after { position: absolute; inset: 36% 0 0; content: ""; background: linear-gradient(transparent,#201139eb); }
.world-map figcaption { position: absolute; z-index: 1; inset: auto 1rem 1rem; font-weight: 800; color: var(--cream); line-height: 1.2; }
.gallery { list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-link { display: block; overflow: hidden; border: 1px solid #d8c9db; border-radius: 14px; background: #fffaf5; }
.gallery-link:hover { border-color: #8656b0; }
.gallery-link img { aspect-ratio: 16/10; object-fit: cover; }
.gallery-link span { display: flex; flex-direction: column; gap: .18rem; padding: .75rem .85rem; font-weight: 780; }
.gallery-link small { color: var(--muted); font-size: .82rem; font-weight: 530; }

.faq-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 2rem; border-top: 1px solid #d8c9db; padding-block: clamp(45px, 7vw, 85px); }
.faq-section h2 { font: 800 clamp(2rem, 3.6vw, 3.35rem)/1 var(--serif); letter-spacing: -.055em; }
.faq-list details { border-bottom: 1px solid #d8c9db; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; padding: .8rem 0; font-weight: 710; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: #7647a0; font-size: 1.35rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); padding-bottom: 1rem; }
.studio-section { display: flex; align-items: center; gap: 1rem; padding-block: 2rem 3.25rem; }
.studio-section img { width: clamp(58px, 7vw, 88px); }
.studio-section h2 { font: 800 1.6rem/1.05 var(--serif); margin-bottom: .25rem; }
.studio-section p { color: var(--muted); }
.studio-section .button { margin-inline-start: auto; flex-shrink: 0; }
footer { background: var(--purple-deep); color: var(--cream); overflow: clip; }
.footer-inner { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: .25rem 1rem; padding-block: 1.6rem 1.1rem; font-size: .85rem; }
.footer-wordmark { flex-basis: 100%; color: #d9b0ec; font: italic 900 clamp(4rem, 17vw, 13rem)/.88 var(--serif); letter-spacing: -.105em; margin-top: .85rem; }

.lightbox { overflow: auto; width: min(1024px, calc(100% - 28px)); max-height: calc(100% - 28px); border: 1px solid #8e699e; background: var(--purple-deep); color: var(--cream); border-radius: 14px; padding: 48px 12px 12px; }
.lightbox::backdrop { background: #10091ae8; }
.lightbox figure img { max-height: 70vh; object-fit: contain; background: #100b1b; border-radius: 6px; }
.lightbox figcaption { text-align: center; margin: .65rem 0; }
.lightbox-actions { display: flex; justify-content: center; gap: .65rem; }
.lightbox button { border: 1px solid #7c6098; background: #382756; color: var(--cream); border-radius: 999px; min-height: 43px; padding: .25rem .85rem; }
.lightbox button:hover { background: #533876; }
.lightbox .close { position: absolute; top: 5px; right: 12px; font-size: 1.55rem; line-height: 1; min-width: 44px; }

@supports (animation-timeline: view()) {
  .weapon-tile, .world-map, .game-art { animation: section-reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 23%; }
  @keyframes section-reveal { from { opacity: .58; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 52px); }
  .hero-art { right: -4%; width: 76%; height: 86%; }
  .hero-relic { left: 39%; top: 42%; }
  .game-layout, .forge-layout { gap: 2rem; }
  .world-map { min-height: 185px; }
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: .35rem .45rem; gap: 0; }
  .brand-mark { width: 35px; height: 35px; }
  nav { width: 100%; justify-content: space-between; gap: .3rem; flex-wrap: wrap; font-size: .82rem; }
  nav a { padding: .4rem .08rem; }
  .hero-layout { min-height: min(690px, max(600px, 136vw)); }
  .hero-heading { top: 8%; }
  .hero h1 { font-size: clamp(4.1rem, 18vw, 7.1rem); }
  .hero-art { right: -7%; width: 112%; height: 64%; bottom: 25%; object-position: center bottom; mask-image: linear-gradient(#000 82%, transparent 100%); }
  .hero-orbit { inset: 20% -30% 16% 0; }
  .hero-relic { left: 0; top: 49%; width: 19%; }
  .hero-copy { padding-bottom: 30px; max-width: 21rem; }
  .hero-description { margin: .5rem 0 1rem; max-width: 25ch; }
  .hero-down { bottom: 2.1rem; }
  .arsenal-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split, .gallery-intro { display: block; }
  .split > p, .gallery-intro > p { margin-top: .8rem; }
  .game-layout, .forge-layout, .faq-section { grid-template-columns: 1fr; }
  .forge-layout img { grid-row: 2; }
  .world-grid { grid-template-columns: 1fr 1fr; }
  .world-map:first-child { grid-column: 1 / -1; }
  .world-map { min-height: 158px; }
  .studio-section { flex-wrap: wrap; }
  .studio-section .button { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
