/* THE AGE OF DRAGONS — cinematic album site */
:root {
  color-scheme: dark;
  --ink: #100e12;
  --ink-soft: #18151b;
  --paper: #e9e0d2;
  --muted: #b8adab;
  --gold: #d6b77a;
  --gold-light: #f0d9a3;
  --red: #8e2528;
  --line: rgba(226, 197, 140, .26);
  --serif: "Cinzel", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --header-height: 82px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); line-height: 1.75; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: #151115; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 200; padding: .7rem 1rem; background: var(--gold); color: var(--ink); }
.skip-link:focus { top: 1rem; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1.2rem, 5vw, 5.5rem); background: linear-gradient(180deg, rgba(10,9,12,.94), rgba(10,9,12,.68)); border-bottom: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(14px); transition: background .35s, border-color .35s; }
.site-header.scrolled { background: rgba(10,9,12,.96); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--gold-light); }
.brand-mark { font-size: 1.7rem; line-height: 1; text-shadow: 0 0 18px rgba(214,183,122,.5); }
.brand-text, .footer-brand { font: 600 .86rem/1.25 var(--serif); letter-spacing: .17em; }
.brand-text span, .footer-brand span { display: block; font-size: .68rem; letter-spacing: .31em; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 3rem); }
.main-nav a { position: relative; text-decoration: none; text-transform: uppercase; letter-spacing: .13em; font-size: .68rem; color: #d7d0c8; transition: color .25s; }
.main-nav a::after { content: ""; position: absolute; height: 1px; left: 0; right: 100%; bottom: -.5rem; background: var(--gold); transition: right .3s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold-light); }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; }
.hero { position: relative; min-height: min(900px, 100svh); min-height: max(680px, 100svh); display: grid; align-items: center; overflow: hidden; isolation: isolate; background: #100b0e; }
.hero-image { position: absolute; z-index: -3; inset: 0; background: center 44% / cover no-repeat url("../images/hero.jpg"), radial-gradient(ellipse at 70% 40%, #4b2425, #100e12 68%); transform: scale(1.025); animation: hero-drift 24s ease-in-out infinite alternate; }
.hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(12,9,12,.94) 0%, rgba(12,9,12,.75) 39%, rgba(12,9,12,.16) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 24%, rgba(10,8,10,.15) 100%); }
.ambient-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-content { position: relative; z-index: 2; width: min(780px, 90vw); margin-left: clamp(1.4rem, 10vw, 10rem); padding: calc(var(--header-height) + 3rem) 0 7rem; }
.eyebrow { margin: 0 0 1.15rem; color: var(--gold); font-size: .68rem; font-weight: 700; letter-spacing: .28em; line-height: 1.6; text-transform: uppercase; }
.hero h1 { margin: 0; color: #f4e7ce; font: 500 clamp(3.4rem, 8.3vw, 8.1rem)/.98 var(--serif); letter-spacing: -.055em; text-shadow: 0 8px 45px rgba(0,0,0,.55); }
.hero h1 span { color: var(--gold); font-size: .67em; letter-spacing: .09em; }
.hero-subtitle { max-width: 540px; margin: 2rem 0 2.3rem; font-size: clamp(1rem, 1.7vw, 1.25rem); font-weight: 300; color: #e4d9d0; }
.hero-actions, .listen-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 2rem; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 1.1rem; min-height: 52px; padding: .9rem 1.45rem; border: 1px solid var(--gold); text-decoration: none; text-transform: uppercase; font-size: .68rem; font-weight: 700; letter-spacing: .15em; transition: transform .25s, background .25s, box-shadow .25s, color .25s; }
.button span { font-size: 1rem; transition: transform .25s; }
.button:hover { transform: translateY(-3px); box-shadow: 0 0 28px rgba(214,183,122,.18); }
.button:hover span { transform: translate(3px,-2px); }
.button-primary { background: var(--gold); color: #1a1411; }
.button-primary:hover { background: var(--gold-light); }
.button-outline { background: transparent; color: var(--gold-light); }
.button-outline:hover { background: rgba(214,183,122,.1); }
.text-link { display: inline-flex; gap: .7rem; align-items: center; color: #e9ded3; text-decoration: none; text-transform: uppercase; letter-spacing: .15em; font-size: .68rem; }
.text-link span { color: var(--gold); transition: transform .25s; }
.text-link:hover span { transform: translateY(4px); }
.hero-caption { position: absolute; z-index: 2; right: clamp(1.4rem, 5vw, 5rem); bottom: 4.7rem; display: flex; align-items: center; gap: .9rem; color: rgba(238,222,197,.72); font-size: .58rem; letter-spacing: .22em; writing-mode: vertical-rl; }
.hero-caption i { width: 1px; height: 48px; background: var(--gold); }
.scroll-cue { position: absolute; z-index: 3; bottom: 1.5rem; left: 50%; width: 28px; height: 42px; border: 1px solid rgba(240,217,163,.6); border-radius: 20px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 3px; height: 7px; border-radius: 2px; background: var(--gold); animation: scroll-pulse 1.8s infinite; }
.section-pad { padding: clamp(5.5rem, 10vw, 10rem) clamp(1.4rem, 8vw, 8rem); }
.album-intro { position: relative; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(112,49,40,.18), transparent 60%), var(--ink); }
.intro-ornament { margin-bottom: 1.2rem; color: var(--gold); font-size: 2rem; }
.section-title { margin: 0; font: 500 clamp(2.2rem, 5vw, 4.8rem)/1.16 var(--serif); letter-spacing: -.035em; }
.section-title em, .chapter-copy h3 em { color: var(--gold); font-style: normal; }
.intro-copy { max-width: 780px; margin: 2.4rem auto 0; color: #c8bfbb; font-size: .98rem; font-weight: 300; }
.intro-copy strong { color: var(--paper); font-weight: 600; }
.intro-motto { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin: 3.2rem auto 0; color: var(--gold-light); font: 500 clamp(1rem, 2vw, 1.4rem)/1.6 var(--serif); }
.intro-motto span { width: clamp(28px, 7vw, 100px); height: 1px; background: var(--line); }
.chapters-heading { padding-top: 3rem; padding-bottom: 4rem; text-align: center; background: #131116; }
.section-lead { max-width: 670px; margin: 1.4rem auto 0; color: var(--muted); font-weight: 300; font-size: .98rem; }
.chapters { overflow: hidden; }
.chapter { position: relative; isolation: isolate; overflow: hidden; min-height: 700px; display: flex; align-items: center; padding: clamp(5rem, 9vw, 9rem) clamp(1.4rem, 8vw, 8rem); background: var(--chapter-base, #171319); }
.chapter::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--chapter-overlay, linear-gradient(90deg, rgba(12,10,13,.96), rgba(12,10,13,.82) 48%, rgba(12,10,13,.62))); }
.chapter-backdrop { position: absolute; z-index: -2; inset: -2%; background-image: var(--chapter-bg), var(--chapter-fallback, radial-gradient(ellipse at 70% 50%, #47272a, #171319 70%)); background-size: cover; background-position: center; opacity: .53; transform: scale(1.02); transition: transform 1.5s ease, opacity 1s; }
.chapter.in-view .chapter-backdrop { transform: scale(1.06); opacity: .68; }
.chapter-inner { width: min(1280px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(280px, .86fr) minmax(300px, 1.14fr); gap: clamp(3rem, 8vw, 9rem); align-items: center; }
.chapter-inner-reverse .chapter-art { order: 2; }
.chapter-inner-reverse .chapter-copy { order: 1; }
.chapter-art { width: 100%; max-width: 460px; justify-self: center; }
.cover-button { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid rgba(224,194,136,.5); background: #211a1d; color: var(--paper); cursor: zoom-in; overflow: hidden; box-shadow: 0 25px 70px rgba(0,0,0,.38); }
.cover-button::before { content: ""; position: absolute; z-index: 2; inset: 0; border: 1px solid rgba(240,217,163,0); pointer-events: none; transition: inset .4s, border-color .4s, box-shadow .4s; }
.cover-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.cover-button:hover img, .cover-button:focus-visible img { transform: scale(1.055); filter: brightness(.72); }
.cover-button:hover::before, .cover-button:focus-visible::before { inset: 12px; border-color: rgba(240,217,163,.85); box-shadow: inset 0 0 30px rgba(214,183,122,.14); }
.cover-overlay { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .3s; color: white; text-transform: uppercase; letter-spacing: .17em; font-size: .7rem; }
.cover-overlay b { color: var(--gold); font-size: 1rem; margin-left: .4rem; }
.cover-button:hover .cover-overlay, .cover-button:focus-visible .cover-overlay { opacity: 1; }
.cover-button.image-missing { background: linear-gradient(145deg, rgba(139,43,39,.65), #171319 65%); }
.cover-button.image-missing img { visibility: hidden; }
.cover-button.image-missing::after { content: "INSERISCI LA COPERTINA"; position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; color: rgba(239,216,171,.7); font: 500 .8rem var(--serif); letter-spacing: .16em; text-align: center; }
.art-caption { display: block; margin-top: 1rem; color: rgba(224,211,195,.68); text-align: center; font-size: .6rem; letter-spacing: .24em; }
.chapter-copy { max-width: 620px; }
.chapter-copy h3 { margin: 0 0 1.6rem; font: 500 clamp(2.4rem, 4.8vw, 4.7rem)/1.1 var(--serif); letter-spacing: -.045em; }
.chapter-lead { margin: 0 0 1.25rem; color: #f0e4d7; font-size: clamp(1rem, 1.5vw, 1.22rem); font-weight: 500; line-height: 1.65; }
.chapter-copy > p:not(.eyebrow):not(.chapter-lead) { color: #c5bbb7; font-size: .93rem; font-weight: 300; }
.chapter-number { position: absolute; right: clamp(1rem, 4vw, 4rem); bottom: -3rem; color: rgba(242,225,195,.045); font: 700 clamp(9rem, 22vw, 22rem)/1 var(--serif); pointer-events: none; }
.lyrics-details { margin-top: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lyrics-details summary { position: relative; padding: 1rem 2rem 1rem 0; color: var(--gold-light); cursor: pointer; list-style: none; text-transform: uppercase; letter-spacing: .12em; font-size: .65rem; font-weight: 700; }
.lyrics-details summary::-webkit-details-marker { display: none; }
.lyrics-details summary::after { content: "+"; position: absolute; right: .2rem; color: var(--gold); font-size: 1.15rem; transition: transform .25s; }
.lyrics-details[open] summary::after { transform: rotate(45deg); }
.details-content { padding: 0 0 1rem; color: var(--muted); font-size: .88rem; }
.theme-ember { --chapter-base: #1b1013; --chapter-fallback: radial-gradient(ellipse at 72% 45%, #712326, #1b1013 70%); }
.theme-ember::before { background: linear-gradient(90deg, rgba(15,10,13,.97), rgba(20,10,13,.78) 48%, rgba(20,10,13,.53)); }
.theme-snow { --chapter-base: #1b2024; --chapter-fallback: radial-gradient(ellipse at 72% 45%, #586c76, #161c21 72%); }
.theme-snow::before { background: linear-gradient(90deg, rgba(14,19,23,.94), rgba(16,21,25,.76) 50%, rgba(16,21,25,.52)); }
.theme-banner { --chapter-base: #1b1b1b; --chapter-fallback: radial-gradient(ellipse at 70% 40%, #5b4930, #191719 72%); }
.theme-black { --chapter-base: #09090b; --chapter-fallback: radial-gradient(ellipse at 75% 55%, #392123, #09090b 70%); }
.theme-black::before { background: linear-gradient(90deg, rgba(5,5,7,.98), rgba(8,7,9,.82) 52%, rgba(8,7,9,.55)); }
.theme-ash { --chapter-base: #29282b; --chapter-fallback: radial-gradient(ellipse at 70% 45%, #555052, #252326 70%); }
.theme-ash::before { background: linear-gradient(90deg, rgba(22,21,24,.95), rgba(25,24,27,.78) 50%, rgba(25,24,27,.52)); }
.theme-firelight { --chapter-base: #211a17; --chapter-fallback: radial-gradient(ellipse at 70% 50%, #76502f, #201816 70%); }
.theme-wind { --chapter-base: #111b2b; --chapter-fallback: radial-gradient(ellipse at 75% 45%, #31577b, #111b2b 70%); }
.theme-wind::before { background: linear-gradient(90deg, rgba(8,14,24,.95), rgba(10,17,29,.76) 48%, rgba(10,17,29,.48)); }
.theme-crimson { --chapter-base: #1d1016; --chapter-fallback: radial-gradient(ellipse at 70% 45%, #72232c, #1d1016 70%); }
.theme-sunrise { --chapter-base: #38251d; --chapter-fallback: radial-gradient(ellipse at 70% 25%, #d08b43, #442b24 58%, #1d1719 100%); }
.theme-sunrise::before { background: linear-gradient(90deg, rgba(28,19,19,.89), rgba(36,22,18,.65) 48%, rgba(36,22,18,.35)); }
.world-section { position: relative; overflow: hidden; text-align: center; isolation: isolate; background: radial-gradient(ellipse at 50% 50%, #28212b, #121015 70%); }
.world-section::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(12,10,13,.35), rgba(12,10,13,.2)); }
.world-content { max-width: 900px; margin: 0 auto; }
.world-section .section-lead { max-width: 720px; }
.world-last-line { margin: 3rem 0 0; color: var(--gold-light); font: 500 clamp(1.1rem, 2.5vw, 1.7rem) var(--serif); }
.listen-section { position: relative; overflow: hidden; text-align: center; background: #0d0b10; }
.listen-glow { position: absolute; width: 700px; height: 400px; left: 50%; top: 10%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(137,44,40,.18), transparent 70%); pointer-events: none; }
.listen-section > *:not(.listen-glow) { position: relative; }
.listen-section .section-lead { margin-bottom: 2.5rem; }
.listen-actions { justify-content: center; }
.link-note { margin-top: 1.4rem; color: #827b7e; font-size: .75rem; }
.site-footer { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .65rem 2rem; align-items: center; padding: 2.5rem clamp(1.4rem, 8vw, 8rem); border-top: 1px solid rgba(214,183,122,.18); background: #09080b; }
.footer-brand { color: var(--gold-light); text-decoration: none; letter-spacing: .16em; }
.footer-brand span { display: inline; margin-left: .45rem; }
.site-footer p { margin: 0; color: #8e8587; font-size: .75rem; }
.back-top { grid-column: 2; grid-row: 1 / span 2; color: var(--gold); text-decoration: none; text-transform: uppercase; font-size: .65rem; letter-spacing: .14em; }
.site-footer small { grid-column: 1 / -1; color: #6f686c; font-size: .68rem; }
.lightbox { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 4rem 1.5rem 2rem; background: rgba(5,4,7,.94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(88vw, 900px); max-height: 85vh; text-align: center; transform: scale(.96); transition: transform .35s; }
.lightbox.is-open figure { transform: scale(1); }
.lightbox img { max-height: 76vh; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; box-shadow: 0 25px 80px #000; }
.lightbox figcaption { margin-top: 1rem; color: var(--gold-light); font: 500 1rem var(--serif); letter-spacing: .1em; }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; width: 48px; height: 48px; border: 1px solid var(--line); background: transparent; color: var(--paper); font-size: 2rem; cursor: pointer; transition: background .2s, color .2s; }
.lightbox-close:hover { background: var(--gold); color: var(--ink); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.chapter-copy .reveal, .chapter-art.reveal { will-change: opacity, transform; }
@keyframes hero-drift { from { transform: scale(1.025) translateX(0); } to { transform: scale(1.09) translateX(-.6%); } }
@keyframes scroll-pulse { 0%, 100% { opacity: .25; transform: translate(-50%,0); } 55% { opacity: 1; transform: translate(-50%,8px); } }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
@media (max-width: 850px) {
  :root { --header-height: 72px; }
  .site-header { padding-inline: 1.25rem; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-toggle { display: flex; position: relative; z-index: 102; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid rgba(214,183,122,.4); background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; width: 19px; height: 1px; margin: 0 auto; background: var(--gold-light); transition: transform .25s, opacity .25s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; z-index: 101; inset: var(--header-height) 0 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 2rem 2rem 5rem; background: rgba(10,9,12,.98); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, visibility .25s, transform .25s; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { padding: 1.2rem .3rem; border-bottom: 1px solid rgba(214,183,122,.15); font-size: .85rem; }
  .main-nav a::after { display: none; }
  .hero-content { margin-left: 7vw; padding-top: calc(var(--header-height) + 3rem); }
  .hero-shade { background: linear-gradient(90deg, rgba(12,9,12,.9), rgba(12,9,12,.5) 78%), linear-gradient(0deg, var(--ink), transparent 35%); }
  .chapter { min-height: auto; padding-block: 5rem; }
  .chapter-inner { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; max-width: 650px; }
  .chapter-inner-reverse .chapter-art, .chapter-inner-reverse .chapter-copy { order: initial; }
  .chapter-art { max-width: min(430px, 84vw); }
  .chapter-copy { max-width: none; }
  .chapter-number { bottom: -1rem; }
  .chapter-backdrop { background-position: center; }
  .site-footer { grid-template-columns: 1fr; }
  .back-top { grid-column: 1; grid-row: auto; }
  .site-footer small { grid-column: 1; }
}
@media (max-width: 520px) {
  .brand-text { font-size: .72rem; }
  .brand-text span { font-size: .58rem; }
  .hero { min-height: 760px; min-height: 100svh; }
  .hero-content { width: 88vw; margin-left: 6vw; padding-bottom: 8rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-subtitle { max-width: 330px; }
  .hero-caption { right: 1rem; bottom: 4.5rem; font-size: .48rem; }
  .section-pad { padding: 5rem 1.35rem; }
  .intro-motto { gap: .7rem; }
  .intro-motto span { width: 18px; }
  .chapter { padding: 4.5rem 1.35rem; }
  .chapter-copy h3 { font-size: clamp(2.5rem, 12vw, 3.8rem); }
  .chapter-number { font-size: 42vw; }
  .listen-actions { flex-direction: column; align-items: stretch; }
  .listen-actions .button { width: 100%; }
  .site-footer { padding: 2rem 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
