@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --black: #0a0a0a;
    --soot: #111111;
    --charcoal: #1a1a1a;
    --ash: #242424;
    --iron: #333333;
    --rust: #c4371b;
    --rust-dim: rgba(196, 55, 27, .4);
    --rust-glow: rgba(196, 55, 27, .15);
    --ember: #ff6b35;
    --bone: #e8e0d4;
    --chalk: #d4cdc0;
    --ghost: #8a8478;
    --smoke: #5c574e;
    --text: #bbb5a8;
}

/* ========================
   FACTION THEMES
   ======================== */
/* Pinto = default (rust/red already in :root) */
.faction-pasquale {
    --rust: #9b3dbf;
    --rust-dim: rgba(155, 61, 191, .4);
    --rust-glow: rgba(155, 61, 191, .15);
    --ember: #c96de8;
}

/* ========================
   FACTION OVERLAY (picker)
   ======================== */
.faction-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 10, 10, .97);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 1;
    transition: opacity .4s;
}
.faction-overlay.hidden { opacity: 0; pointer-events: none; }
.faction-overlay-inner { max-width: 860px; width: 100%; text-align: center; }
.faction-overlay-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--smoke);
    margin-bottom: 1rem;
}
.faction-overlay h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 3px;
    color: var(--bone);
    line-height: 1;
    margin-bottom: .5rem;
    text-transform: uppercase;
}
.faction-overlay p {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--ghost);
    margin-bottom: 3rem;
}
.faction-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.faction-choice {
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255,255,255,.06);
    cursor: pointer;
    transition: all .3s;
    background: var(--soot);
    text-align: left;
}
.faction-choice:hover { transform: translateY(-4px); }
.faction-choice.choice-pinto:hover { border-color: #c4371b; box-shadow: 0 0 40px rgba(196,55,27,.2); }
.faction-choice.choice-pasquale:hover { border-color: #9b3dbf; box-shadow: 0 0 40px rgba(155,61,191,.2); }
.faction-choice h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: .3rem;
}
.choice-pinto h3 { color: #c4371b; }
.choice-pasquale h3 { color: #9b3dbf; }
.faction-choice .choice-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--smoke);
    margin-bottom: 1rem;
    display: block;
}
.faction-choice p {
    font-family: 'Crimson Pro', serif;
    font-style: normal;
    font-size: 1rem;
    color: var(--ghost);
    margin-bottom: 1.5rem;
}
.faction-choice .choice-cta {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: .7rem 1.6rem;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
}
.choice-pinto .choice-cta { background: #c4371b; color: #0a0a0a; }
.choice-pasquale .choice-cta { background: #9b3dbf; color: #0a0a0a; }
.faction-choice:hover .choice-cta { opacity: .85; }

@media (max-width: 600px) {
    .faction-choices { grid-template-columns: 1fr; }
}

/* ========================
   FACTION BADGE (in header)
   ======================== */
.faction-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: .6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: .3rem .8rem;
    border: 1px solid;
    cursor: pointer;
    transition: opacity .2s;
    white-space: nowrap;
}
.faction-badge:hover { opacity: .7; }
.faction-pinto .faction-badge { color: #c4371b; border-color: rgba(196,55,27,.3); }
.faction-pasquale .faction-badge { color: #9b3dbf; border-color: rgba(155,61,191,.3); }
.faction-none .faction-badge { color: var(--smoke); border-color: rgba(255,255,255,.08); }

/* ========================
   FACTION CONDITIONAL CONTENT
   ======================== */
.f-pinto, .f-pasquale { display: none; }
.f-neutral { display: block; }

/* Show faction content when faction is set */
.faction-pinto .f-pinto { display: block; }
.faction-pinto .f-neutral { display: none; }
.faction-pinto .f-pasquale { display: none; }

.faction-pasquale .f-pasquale { display: block; }
.faction-pasquale .f-neutral { display: none; }
.faction-pasquale .f-pinto { display: none; }

/* Inline variants (span) */
span.f-pinto, span.f-pasquale, span.f-neutral { display: none; }
.faction-pinto span.f-pinto { display: inline; }
.faction-pinto span.f-neutral { display: none; }
.faction-pasquale span.f-pasquale { display: inline; }
.faction-pasquale span.f-neutral { display: none; }

/* ========================
   CHAR CARD FACTION ACCENT
   ======================== */
.char-card.your-champion { border-color: var(--rust); }
.char-card.your-enemy { border-color: rgba(255,255,255,.06); opacity: .7; }
.your-champion-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: .6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: .5rem;
    display: block;
}
.your-enemy-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: .6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--smoke);
    margin-bottom: .5rem;
    display: block;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--text);
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- GRAIN OVERLAY --- */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: .5;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
strong { color: var(--bone); font-weight: 600; }

/* ========================
   HEADER
   ======================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, .92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(196, 55, 27, .08);
    transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: rgba(196, 55, 27, .25); }
.header-inner {
    width: min(1200px, 100%);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.4rem;
    letter-spacing: 3px;
    color: var(--rust);
    text-transform: uppercase;
}
.nav-toggle {
    display: none;
    border: 1px solid rgba(196, 55, 27, .3);
    background: transparent;
    color: var(--rust);
    padding: .4rem .7rem;
    font-size: 1.1rem;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
}
.nav-links { display: flex; gap: 0; }
.nav-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ghost);
    padding: .6rem 1.1rem;
    transition: color .2s;
    position: relative;
}
.nav-links a:hover { color: var(--bone); }
.nav-links a.active { color: var(--rust); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.1rem; right: 1.1rem;
    height: 2px;
    background: var(--rust);
}

/* ========================
   HERO
   ======================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 3rem;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,10,.2) 0%, rgba(10,10,10,.6) 50%, rgba(10,10,10,.95) 100%),
        url("rullo_di_ferro.png") center 30%/cover no-repeat;
    opacity: .25;
    filter: saturate(.5) contrast(1.2);
    transform: scale(1.04);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 40%, var(--rust-glow) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 80% 70%, rgba(255,107,53,.04) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 950px;
}
.hero-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--smoke);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp .8s ease-out .2s forwards;
}
.hero h1 {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 400;
    line-height: .9;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--bone);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp .9s ease-out .4s forwards;
}
.hero h1 span {
    display: block;
    color: var(--rust);
    font-size: .5em;
    letter-spacing: 8px;
    margin-top: .3rem;
}
.hero-sub {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: var(--ghost);
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeUp .9s ease-out .6s forwards;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp .8s ease-out .8s forwards;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 2.4rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all .25s;
}
.btn-primary {
    background: var(--rust);
    color: var(--black);
}
.btn-primary:hover {
    background: var(--ember);
    box-shadow: 0 0 30px var(--rust-dim);
}
.btn-ghost {
    background: transparent;
    color: var(--chalk);
    border: 1px solid var(--iron);
}
.btn-ghost:hover {
    border-color: var(--rust);
    color: var(--rust);
}
.hero-ip {
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem;
    letter-spacing: 2px;
    color: var(--smoke);
    padding: .6rem 1.4rem;
    border: 1px solid rgba(196, 55, 27, .12);
    display: inline-block;
    opacity: 0;
    animation: fadeUp .8s ease-out 1s forwards;
}
.hero-scroll {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: 'JetBrains Mono', monospace;
    font-size: .6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--smoke);
    animation: drift 3s ease-in-out infinite;
}
.hero-scroll span { display: block; margin-top: .5rem; font-size: 1rem; color: var(--rust); }

/* ========================
   SECTIONS
   ======================== */
.section { padding: 7rem 2rem; }
.section--dark { background: var(--black); }
.section--deeper { background: var(--soot); }
.section--charcoal { background: var(--charcoal); }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-sep {
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(196,55,27,.12) 50%, transparent 95%);
}

.section-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: .6rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: .8rem;
}
.section-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bone);
    line-height: 1;
    margin-bottom: .6rem;
}
.section-rule {
    width: 50px;
    height: 3px;
    background: var(--rust);
    margin: 1.5rem 0 0;
}
.section-header { margin-bottom: 4rem; }
.section-header--center { text-align: center; }
.section-header--center .section-rule { margin-left: auto; margin-right: auto; }

/* ========================
   CONTENT BLOCKS
   ======================== */
.prose {
    font-family: 'Crimson Pro', serif;
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text);
    max-width: 700px;
}
.prose p + p { margin-top: 1.2rem; }

.card {
    background: var(--soot);
    border: 1px solid rgba(255,255,255,.04);
    padding: 2.2rem 2rem;
    position: relative;
    transition: border-color .3s, transform .3s;
}
.card:hover {
    border-color: rgba(196, 55, 27, .2);
    transform: translateY(-2px);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: var(--rust);
    opacity: 0;
    transition: opacity .3s;
}
.card:hover::before { opacity: 1; }

.card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bone);
    margin-bottom: .5rem;
}
.card p {
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ghost);
}
.card-link {
    display: inline-block;
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rust);
    transition: color .2s;
}
.card-link:hover { color: var(--ember); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-2--wide { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: start; }

/* ========================
   CHARACTER CARDS
   ======================== */
.char-card {
    background: var(--soot);
    border: 1px solid rgba(255,255,255,.04);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}
.char-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--rust-glow) 0%, transparent 70%);
    pointer-events: none;
}
.char-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: .3rem;
}
.char-card .char-epithet {
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--smoke);
    margin-bottom: 1.2rem;
    display: block;
}
.char-card p {
    font-family: 'Crimson Pro', serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

/* ========================
   QUEST TIMELINE
   ======================== */
.quest-list { display: grid; gap: .8rem; }
.quest-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.4rem 1.8rem;
    background: var(--soot);
    border: 1px solid rgba(255,255,255,.03);
    transition: border-color .2s;
}
.quest-item:hover { border-color: rgba(196, 55, 27, .15); }
.quest-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: rgba(196, 55, 27, .2);
    line-height: 1;
}
.quest-item h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bone);
    margin-bottom: .15rem;
}
.quest-item p {
    font-family: 'Crimson Pro', serif;
    font-size: .95rem;
    color: var(--ghost);
}
.quest-reward {
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem;
    letter-spacing: 1px;
    color: var(--ember);
    white-space: nowrap;
}

/* ========================
   SONGS (no lyrics, just links)
   ======================== */
.song-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.6rem;
    border-bottom: 1px solid rgba(255,255,255,.03);
    transition: background .2s;
}
.song-row:hover { background: rgba(196, 55, 27, .04); }
.song-row:last-child { border-bottom: none; }
.song-info { display: flex; align-items: center; gap: 1.2rem; }
.song-idx {
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem;
    color: var(--smoke);
    min-width: 24px;
}
.song-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: var(--bone);
}
.song-artist {
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    color: var(--smoke);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.song-play {
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rust);
    padding: .4rem 1rem;
    border: 1px solid rgba(196, 55, 27, .25);
    transition: all .2s;
}
.song-play:hover {
    background: var(--rust);
    color: var(--black);
}

/* ========================
   VIDEO
   ======================== */
.video-wrap {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
.video-frame {
    position: relative;
    border: 1px solid rgba(196, 55, 27, .15);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 60px var(--rust-glow);
}
.video-frame video { width: 100%; display: block; background: #000; }

/* ========================
   IMAGES
   ======================== */
.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.04);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem 1.4rem;
    background: linear-gradient(transparent, rgba(10,10,10,.9));
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--chalk);
}

/* ========================
   BULLET / NUMBER LISTS (subpages)
   ======================== */
.bullet-list, .number-list { padding-left: 1.2rem; }
.bullet-list li, .number-list li {
    margin-bottom: .6rem;
    color: var(--text);
    font-family: 'Crimson Pro', serif;
    font-size: 1.05rem;
    line-height: 1.7;
}
.bullet-list li::marker { color: var(--rust); }

/* page shell for subpages */
.page-shell { padding-top: 60px; }

/* ========================
   FOOTER
   ======================== */
.site-footer {
    padding: 3.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(196, 55, 27, .08);
    background: var(--black);
}
.site-footer .footer-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: .4rem;
}
.site-footer .footer-tagline {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    color: var(--smoke);
    font-size: .95rem;
}

/* ========================
   ANIMATIONS
   ======================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes drift {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease-out, transform .7s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 980px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2, .grid-2--wide { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .quest-item { grid-template-columns: 45px 1fr; }
    .quest-reward { grid-column: 2; }
}
@media (max-width: 760px) {
    .site-header { height: 56px; }
    .header-inner { padding: 0 1rem; }
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: fixed;
        top: 56px; left: 0; right: 0;
        background: rgba(10, 10, 10, .98);
        padding: .6rem 1rem 1rem;
        border-bottom: 1px solid rgba(196, 55, 27, .1);
        flex-direction: column;
    }
    .nav-links.open { display: flex; }
    .hero h1 { font-size: clamp(3rem, 12vw, 5rem); }
    .section { padding: 5rem 1.2rem; }
    .card { padding: 1.6rem 1.4rem; }
    .char-card { padding: 2rem 1.6rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .page-shell { padding-top: 56px; }
}
