:root{
  --bg: #15181A;          /* hiili */
  --bg-2: #1A1E20;        /* tuhka */
  --text: #E8E6E1;
  --card-light: rgba(245,242,236,0.88);
  --card-dark: rgba(24,28,30,0.84);
  --shadow: rgba(0,0,0,0.45);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    background-image: radial-gradient(1200px 600px at 50% -10%, rgba(255,255,255,0.06), rgba(0,0,0,0)), linear-gradient(to bottom, var(--bg), #0F1112);
    color: var(--text);
}

h1, h2 {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 2px;
}

.hero {
    position: relative;
    height: 100vh;
    background: url('Karjalahero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,15,12,0.6), rgba(10,15,12,0.9));
}

.song-card {
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    position: relative;
}

.song-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: blur(12px);
    z-index: 0;
}

.song-card::after{
    content: "";
    position: absolute;
    inset: 0;
    /* graphic double-overlay for depth */
    background:
      linear-gradient(to bottom, rgba(11,18,16,0.20), rgba(11,18,16,0.50)),
      radial-gradient(900px 520px at 50% 25%, rgba(255,255,255,0.045), rgba(0,0,0,0));
    z-index: 1;
    pointer-events: none;
}

.song-card.aino::before { background-image: url('aino-theme.jpg'); }
.song-card.louhi::before { background-image: url('louhi-theme.jpg'); opacity: 0.18; }
.song-card.joukahainen::before { background-image: url('joukahainen-theme.jpg'); opacity: 0.09; }
.song-card.mielikki::before { background-image: url('mielikki-theme.jpg'); opacity: 0.07; }

.song-content {
    position: relative;
    background: var(--card-light);
    color: #1C1C1C;
    padding: 60px;
    max-width: 900px;
    border-radius: 16px;
        border: 1px solid rgba(232,230,225,0.10);
    backdrop-filter: blur(12px);
box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    z-index: 2;
}


/* === WATERMARK TITLE (per card) === */
.song-content::before{
  content: attr(data-watermark);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: currentColor;
  opacity: 0.028;            /* target ~0.02–0.04 */
  pointer-events: none;
  z-index: 0;
  filter: blur(0.2px);
  mix-blend-mode: overlay;
}

.song-content.dark::before{
  opacity: 0.035;
  mix-blend-mode: screen;
}

.song-content > *{
  position: relative;
  z-index: 2;
}

/* keep the inner frame above the watermark */
.song-content::after{
  z-index: 3;
}

/* Subtle ritual inner frame (all cards) */
.song-content::after{
  content:"";
  position:absolute;
  inset: 18px;
  border-radius: 12px;
  border: 1px solid rgba(232,230,225,0.08);
  pointer-events:none;
  opacity: 0.9;
}

.song-content.dark {
    background: var(--card-dark);
    color: #E8E6E1;
}

audio {
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-overlay {
    z-index: 1;
}

/* --- EXPANDABLE: LAAJEMPI KONTEKSTI --- */
details.more {
    margin-top: 28px;
    font-size: 0.95rem;
    opacity: 0.95;
}
details.more summary {
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    opacity: 0.7;
    list-style: none;
}
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { opacity: 1; }
details.more p {
    margin-top: 16px;
    line-height: 1.75;
}

/* --- KALEVAN KANSAT (EPIC INTRO CARD) --- */
.song-card.kalevankansat::before {
    background-image: url('kalevankansat-theme.jpg');
    opacity: 0.20;
    filter: blur(10px);
}

/* --- KALEVIPOEG (EPIC CONTEXT CARD) --- */
.song-card.kalevipoeg::before {
  background-image: url('kalvepoig.jpg');
  opacity: 0.18;
  filter: blur(10px);
}


.epic-card {
    padding: 180px 20px;
}

.epic-content {
    max-width: 1000px;
    padding: 80px;
    box-shadow: 0 35px 80px rgba(0,0,0,0.45);
}

.epic-content h2 {
    font-size: 3.0rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin: 0 0 34px 0;
}

.epic-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin: 0 0 22px 0;
}

/* --- HERO LAYER FIX --- */
.hero-content { position: relative; z-index: 2; }
.hero-overlay { z-index: 1; }

/* --- OPTIONAL THEME HOOKS FOR NEW CARDS --- */
.song-card.vainamoinen::before { background-image: url('vainamoinen.jpg'); opacity: 0.16; filter: blur(10px); }

.song-card.tapio-mielikki::before { background-image: url('tapio-mielikki-theme.jpg'); opacity: 0.10; }
.song-card.metsapeitto::before { background-image: url('metsapeitto-theme.jpg'); opacity: 0.18; filter: blur(8px); }
.song-card.hiidenhirvi::before { background-image: url('hiidenhirvi-theme.jpg'); opacity: 0.20; filter: blur(8px); }
/* === MYTHIC + CINEMATIC UPLIFT (Ash/Charcoal) === */

/* HERO: cinematic Ken Burns + deeper mythic overlay */
.hero{
  background-attachment: fixed;
  background-size: 110%;
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}

@keyframes heroKenBurns{
  from { background-size: 110%; background-position: 50% 45%; }
  to   { background-size: 120%; background-position: 50% 55%; }
}

.hero-overlay{
  background:
    radial-gradient(1200px 700px at 50% 35%, rgba(0,0,0,0.15), rgba(0,0,0,0.85)),
    linear-gradient(to bottom, rgba(10,15,12,0.30), rgba(10,15,12,0.92));
}

/* Optional film grain overlay: add a small 'grain.png' tile next to the css */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('grain.png');
  opacity: 0.06;
  mix-blend-mode: overlay;
}

/* Hero typography */
.hero-content h1{
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: 10px;
  margin: 0 0 20px 0;
  text-shadow: 0 30px 80px rgba(0,0,0,0.55);
}

.hero-sub{
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
  opacity: 0.85;
}

.hero-lead{
  max-width: 760px;
  margin: 26px auto 0 auto;
  font-size: 1.35rem;
  line-height: 1.85;
  opacity: 0.92;
}

/* MANIFESTO: mythic “gateway” */
.manifesto{
  padding: 140px 20px;
  display:flex;
  justify-content:center;
  position: relative;
}

.manifesto::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(800px 400px at 50% 25%, rgba(255,255,255,0.06), rgba(0,0,0,0)),
    linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.35));
  opacity: 0.9;
}

.manifesto-inner{
  position: relative;
  max-width: 980px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.55;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.m-accent{
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(232,230,225,0.25);
  text-underline-offset: 8px;
}

/* SCENE BREAK: cinematic breathing between myths */
.scene-break{
  height: 30vh;                 /* reduced to avoid giant gap */
  min-height: 220px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.scene-break::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(21,24,26,0.04), rgba(21,24,26,0.65)),
    radial-gradient(900px 420px at 50% 20%, rgba(255,255,255,0.05), rgba(0,0,0,0));
  pointer-events:none;
}

/* Use existing theme images as breaks (no new assets required) */
.aino-break{ background-image: url('aino-theme.jpg'); }
.louhi-break{ background-image: url('louhi-theme.jpg'); } /* you can replace with louhi-cinematic.jpg */
.mielikki-break{ background-image: url('mielikki-theme.jpg'); }

@media (max-width: 820px){
  .scene-break{
    height: 18vh;
    min-height: 140px;
    background-attachment: scroll;
  }
}

/* Dark cards: ritual border + deeper shadow */
.song-content.dark{
  border: 1px solid rgba(232,230,225,0.14);
  box-shadow: 0 35px 90px rgba(0,0,0,0.55);
}

.song-content.dark::before{
  content:"";
  position:absolute;
  inset: 16px;
  border-radius: 12px;
  border: 1px solid rgba(232,230,225,0.09);
  pointer-events:none;
}

/* Audio section: cleaner cinema */
.song-section.audio{
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.song-content.dark .song-section.audio{
  border-top: 1px solid rgba(232,230,225,0.12);
}

audio{
  width:100%;
  margin-top: 10px;
  filter: contrast(1.05);
}

/* Reveal on scroll */
.song-card{
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .9s ease, transform .9s ease;
}

.song-card.visible{
  opacity: 1;
  transform: translateY(0);
}


/* === MANIFESTO: TRI-LAYER TYPO HIERARCHY (ash/charcoal) === */
.manifesto-trilayer{
  padding: 140px 20px;
  position: relative;
  background: linear-gradient(to bottom, rgba(14,18,19,0.0), rgba(14,18,19,0.35));
}

.manifesto-trilayer::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 500px at 50% 20%, rgba(255,255,255,0.05), rgba(0,0,0,0)),
    linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
  pointer-events:none;
}

.manifesto-trilayer .manifesto-inner{
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 54px 54px;
  border-radius: 18px;
  background: rgba(30,34,36,0.62);
  border: 1px solid rgba(232,230,225,0.10);
  box-shadow: 0 35px 90px rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
}

.manifesto-head{
  text-align: center;
  margin-bottom: 34px;
}

.manifesto-title{
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  font-size: clamp(1.4rem, 2.2vw, 2.0rem);
  opacity: 0.95;
}

.manifesto-kicker{
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.65;
}

.manifesto-stack{
  display: grid;
  gap: 26px;
}

.manifesto-divider{
  height: 1px;
  background: linear-gradient(to right, rgba(232,230,225,0.0), rgba(232,230,225,0.18), rgba(232,230,225,0.0));
  opacity: 0.9;
}

.manifesto-layer{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: start;
  transition:
    opacity .35s ease,
    transform .35s ease,
    filter .35s ease,
    background .35s ease;
}

.layer-label{
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.65;
  padding-top: 6px;
}

.layer-text p{
  margin: 0 0 14px 0;
  line-height: 1.85;
}

.manifesto-layer.fi .layer-text{ font-size: 1.12rem; opacity: 0.96; }
.manifesto-layer.et .layer-text{ font-size: 1.02rem; opacity: 0.86; }
.manifesto-layer.krl .layer-text{ font-size: 0.98rem; opacity: 0.78; font-style: italic; }

/* === /MANIFESTO TRI-LAYER === */



/* === MANIFESTO HOVER FOCUS — CLEAN (NO BLUR) === */

.manifesto-layer{
  position: relative;
  transition:
    opacity .35s ease,
    transform .35s ease,
    background .35s ease;
}

/* Himmennetään muut ilman bluria */
.manifesto-stack:hover .manifesto-layer{
  opacity: 0.38;
}

/* Huntu ei-hoveratuille */
.manifesto-stack:hover .manifesto-layer:not(:hover)::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:10px;
  background: rgba(0,0,0,0.22);
  pointer-events:none;
}

/* Hoverattu kirkastuu */
.manifesto-layer:hover{
  opacity: 1 !important;
  transform: translateY(-6px) scale(1.01);
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  padding: 12px;
}

.manifesto-layer:hover .layer-text{
  text-shadow: 0 0 22px rgba(232,230,225,0.12);
}

.manifesto-layer:hover .layer-label{
  opacity: 1;
  letter-spacing: 4px;
}

.manifesto-layer:hover .layer-label::after{
  content:"";
  display:block;
  width:40px;
  height:1px;
  background: rgba(232,230,225,0.6);
  margin-top:8px;
}

.manifesto-layer.fi{
  opacity: 0.95;
}

/* === GRAPHIC BOOST PACK (glyph lines + outline watermark + scene sigil + manifesto label lines) === */

/* 1) Glyph line under card titles */
.song-content h2{
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.song-content h2::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width: 72px;
  height: 1px;
  background: rgba(232,230,225,0.35);
}

.song-content:not(.dark) h2::after{
  background: rgba(0,0,0,0.22);
}

/* 2) Watermark as subtle OUTLINE (museum label feel) */
.song-content::before{
  color: transparent !important;
  -webkit-text-stroke: 1px rgba(232,230,225,0.18);
  text-stroke: 1px rgba(232,230,225,0.18);
  opacity: 0.035 !important;          /* target ~0.02–0.04 */
  mix-blend-mode: normal !important;
  filter: none !important;
}

.song-content:not(.dark)::before{
  -webkit-text-stroke: 1px rgba(0,0,0,0.14);
  text-stroke: 1px rgba(0,0,0,0.14);
  opacity: 0.03 !important;
}

/* 3) Scene-break sigil (subtle) */
.scene-break::before{
  content:"⟡";
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  font-size: 44px;
  opacity: 0.18;
  color: rgba(232,230,225,0.55);
  z-index: 2;
  text-shadow: 0 20px 60px rgba(0,0,0,0.55);
  pointer-events:none;
}

/* 4) Manifesto title label lines */
.manifesto-title{
  position: relative;
  display: inline-block;
  padding: 0 18px;
}

.manifesto-title::before,
.manifesto-title::after{
  content:"";
  position:absolute;
  top:50%;
  width: 54px;
  height: 1px;
  background: rgba(232,230,225,0.22);
}

.manifesto-title::before{ right: 100%; margin-right: 12px; }
.manifesto-title::after{ left: 100%; margin-left: 12px; }


/* === ILMATAR CARD === */

.song-card.ilmatar::before{
  background-image: url('ilmatar.jpg');
  opacity: 0.10;
  filter: blur(14px);
}

.song-content.ilmatar-light{
  background: rgba(245,242,236,0.70);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(232,230,225,0.06);
}

.song-content.ilmatar-light::before{
  opacity: 0.022 !important;
}


/* === BACK TO MAIN SITE === */

.back-home{
  position: fixed;
  top: 26px;
  left: 32px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(232,230,225,0.75);
  z-index: 999;
  transition: opacity .3s ease, transform .3s ease, color .3s ease;
  position: fixed;
}

.back-home::after{
  content: "";
  display: block;
  width: 0%;
  height: 1px;
  margin-top: 4px;
  background: linear-gradient(90deg,#d4af37,#f6e27a,#c9a227);
  transition: width .35s ease;
}

.back-home:hover{
  opacity: 1;
  transform: translateX(-4px);
  color: #fff;
}

.back-home:hover::after{
  width: 100%;
}


/* --- KALEVA SCENE BREAK --- */
.kaleva-break{
  background-image: url('kaleva-woman.jpg');
  height: 38vh;
  min-height: 260px;
}


/* SIMPLE VIDEO (NO FADE) */
.video-break{
  height: 42vh;
  min-height: 300px;
  overflow: hidden;
  background: #0B1210;
}

.video-break video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* === VIDEO BREAK SIMPLE (HIIDEN HIRVI) — no effects === */
.video-break-simple{
  width: 100%;
  height: 42vh;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  background: #0B1210;
}

.video-break-simple .loop-video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 820px){
  .video-break-simple{
    height: 22vh;
    min-height: 170px;
  }
}


/* --- ILMARINEN --- */
.song-card.ilmarinen::before { background-image: url('ilmarinen.jpg'); opacity: 0.18; filter: blur(10px); }
/* --- KULTANEITO --- */
.song-card.kultaneito::before { background-image: url('kultaneito.jpg'); opacity: 0.14; filter: blur(12px); }

/* === Micro-animation: hover + glow fade (Ilmarinen & Kultaneito) === */
.song-card.ilmarinen,
.song-card.kultaneito{ position: relative; overflow: hidden; }

.song-card.ilmarinen::after,
.song-card.kultaneito::after{
  content:"";
  position:absolute;
  inset:-8%;
  pointer-events:none;
  opacity:0;
  transform: scale(1.02);
  transition: opacity 700ms ease, transform 900ms ease;
  mix-blend-mode: screen;
  background:
    radial-gradient(60% 60% at 20% 20%, rgba(255,215,120,0.18), rgba(255,215,120,0.00) 55%),
    radial-gradient(55% 55% at 85% 35%, rgba(255,185,80,0.12), rgba(255,185,80,0.00) 60%),
    radial-gradient(80% 70% at 50% 95%, rgba(140,200,255,0.07), rgba(140,200,255,0.00) 60%);
  filter: blur(2px);
}

.song-card.ilmarinen:hover::after,
.song-card.kultaneito:hover::after{
  opacity:1;
  transform: scale(1.06);
  animation: glowFade 2.8s ease-in-out infinite;
}

@keyframes glowFade{
  0%{ opacity:0.70; filter: blur(2px); }
  50%{ opacity:0.92; filter: blur(1.5px); }
  100%{ opacity:0.70; filter: blur(2px); }
}

@media (prefers-reduced-motion: reduce){
  .song-card.ilmarinen::after,
  .song-card.kultaneito::after{
    animation:none !important;
    transition:none !important;
  }
}
