/* Paleta vine din fotografiile ședinței din 20.08.2025 și din afișul adus la același albastru.
   Un singur font: Poppins. Fără italice. Fiecare cameră e un ecran întreg, fix, ca afișul. */
:root {
  --noapte: #0E1823;
  --adanc: #172636;
  --albastru: #334A5E;
  --fond-afis: #3E5870;
  --camasa: #A9BBD0;
  --alb: #EEF2F6;
  --hartie: #E8E4DA;
  --linie: rgba(169, 187, 208, .28);
  --ruj: #B42A2E;
  --font: "Poppins", system-ui, sans-serif;
  --nav: 84px;
  --bara: 64px;
  --lat: 5vw;
  color-scheme: dark;
}
:root[data-theme="light"], :root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { color-scheme: dark; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--noapte); scroll-snap-type: y mandatory; overflow-x: clip; }
body { background: var(--noapte); color: var(--alb); font: 300 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
em, i, cite, blockquote { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }
.vizual-ascuns { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#praf { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; pointer-events: none; }
main { position: relative; z-index: 1; }

/* navigarea */
.nav { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: var(--nav); display: flex; align-items: center; gap: 32px; padding: 0 var(--lat); background: var(--noapte); }
.marca { font-weight: 500; font-size: 11px; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.meniu { display: flex; gap: 22px; margin-left: auto; }
.meniu a, .meniu-mobil a { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--camasa); transition: color .3s; white-space: nowrap; }
.meniu a b, .meniu-mobil a b { font-weight: 500; margin-right: 4px; }
.meniu a:hover, .meniu a.activ { color: var(--alb); }
.meniu a.activ b { color: var(--ruj); }
.buton-mic { font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--camasa); padding: 8px 16px; border-radius: 40px; white-space: nowrap; }
.deschide-meniu { display: none; font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.meniu-mobil { position: fixed; inset: 0; z-index: 19; background: var(--noapte); padding: 110px var(--lat) 40px; display: grid; align-content: start; gap: 22px; }
.meniu-mobil[hidden] { display: none; }
.meniu-mobil a { font-size: 20px; color: var(--alb); }

/* ecranul: aceeași formă în toate camerele */
.ecran { position: relative; height: 100vh; height: 100svh; padding: var(--nav) 0 var(--bara); scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.scena { position: relative; width: 100%; height: 100%; overflow: hidden; }
.bara { position: absolute; left: 0; right: 0; bottom: 0; height: var(--bara); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--lat); background: var(--noapte); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--camasa); }
.bara b { font-weight: 500; color: var(--ruj); margin-right: 6px; }
.bara .jos { justify-self: end; font-size: 20px; letter-spacing: 0; width: 44px; height: 44px; display: grid; place-items: center; }
.pasi { display: flex; align-items: center; gap: 18px; }
.pasi button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linie); font-size: 16px; transition: border-color .3s; }
.pasi button:hover { border-color: var(--alb); }
.contor { min-width: 54px; text-align: center; }
.bara.surse { grid-template-columns: 1fr auto; gap: 20px; font-size: 9.5px; letter-spacing: .04em; text-transform: none; line-height: 1.4; }

/* 01 afișul */
.lichid, .lichid-auto { position: absolute; inset: 0; }
.lichid canvas, .lichid-auto canvas { width: 100%; height: 100%; display: block; }
#afis .lichid { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* 02 viața și cartea */
.cusatura .strat { position: absolute; inset: 0; }
.cusatura .cella { background: var(--noapte); }
.cusatura .cella .fundal { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .78; transition: opacity .6s; }
.cusatura .cella::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,24,35,.82) 0%, rgba(14,24,35,.35) 50%, rgba(14,24,35,.1) 100%); }
.cusatura .diana { background: var(--albastru); clip-path: inset(0 0 0 50%); }
.cusatura .text { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: min(40vw, 620px); }
.cusatura .cella .text { left: var(--lat); }
.cusatura .diana .text { right: var(--lat); text-align: right; }
.cusatura .loc { font-weight: 200; font-size: clamp(30px, 4.4vw, 76px); line-height: 1; text-transform: uppercase; }
.cusatura .loc span { display: block; margin-top: 12px; font-weight: 500; font-size: 11px; letter-spacing: .3em; }
.cusatura .fraza { margin-top: 30px; font-weight: 300; font-size: clamp(18px, 1.7vw, 28px); line-height: 1.4; }
.cusatura .sursa { margin-top: 18px; font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--camasa); }
.cusatura .eticheta-foto { position: absolute; z-index: 2; left: var(--lat); bottom: 18px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--camasa); }
.cusatura .linie { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--alb); pointer-events: none; }

/* 03 motivele */
.motive-scena { display: grid; place-items: center; }
.motiv-fundal { position: absolute; inset: 0; background-size: cover; background-position: center 35%; opacity: 0; transition: opacity 1s; }
.motiv-fundal::after { content: ""; position: absolute; inset: 0; background: rgba(14,24,35,.62); }
.cuvinte { position: relative; z-index: 2; width: min(1200px, 90vw); display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .1em .5em; line-height: 1; transition: opacity .6s; }
.cuvant { font-weight: 200; text-transform: uppercase; color: var(--camasa); transition: color .4s, opacity .4s; padding: .06em 0; }
.cuvant:hover { color: var(--alb); }
.motive-scena.ales .cuvinte { opacity: 0; pointer-events: none; }
.motiv-citate { position: absolute; z-index: 3; inset: 0; display: grid; place-content: center; padding: 0 var(--lat); text-align: center; pointer-events: none; opacity: 0; transition: opacity .5s; }
.motive-scena.ales .motiv-citate { opacity: 1; pointer-events: auto; }
.motiv-citate h3 { font-weight: 200; font-size: clamp(44px, 8vw, 140px); line-height: 1; text-transform: uppercase; margin-bottom: 4vh; }
.motiv-citate blockquote { max-width: 900px; margin: 0 auto 3vh; font-size: clamp(18px, 1.9vw, 30px); line-height: 1.4; }
.motiv-citate cite { display: block; margin-top: 8px; font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--camasa); }
.motiv-citate .inapoi-cuvinte { margin-top: 3vh; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--camasa); border: 1px solid var(--linie); border-radius: 40px; padding: 10px 20px; justify-self: center; }

/* 04 cărțile */
.carti-scena { display: grid; place-items: center; }
.raft { width: 100%; transition: opacity .5s, transform .6s; }
.carti-rand { position: relative; display: flex; gap: 3.6vw; justify-content: center; align-items: flex-end; perspective: 1600px; padding: 40px 10px 0; border-bottom: 3px solid #22364B; box-shadow: 0 22px 40px -18px rgba(0,0,0,.7); }
.carte { --w: clamp(130px, 13vw, 210px); --h: calc(var(--w) * 1.5); --g: calc(var(--w) * var(--gros, .15));
  position: relative; flex: 0 0 auto; width: var(--w); height: var(--h); transform-style: preserve-3d;
  transform: rotateY(-38deg) rotateX(3deg); transform-origin: 50% 100%; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.carte:hover { transform: rotateY(-18deg) rotateX(3deg) translateY(-10px); }
.carte > span { position: absolute; display: block; }
.carte .fata, .carte .spate, .coperta-mobila { background-color: var(--c); background-image: var(--panza), linear-gradient(100deg, rgba(255,255,255,.07), rgba(0,0,0,.18)); }
.carte .fata { inset: 0; transform: translateZ(calc(var(--g) / 2)); padding: 14% 11% 11%; display: flex; flex-direction: column; justify-content: space-between; text-align: center; color: #E7EEF6; }
.carte .fata::before, .carte .fata::after, .coperta-mobila::before { content: ""; position: absolute; pointer-events: none; border: 1px solid rgba(203,217,234,.42); }
.carte .fata::before, .coperta-mobila::before { inset: 7%; } .carte .fata::after { inset: calc(7% + 4px); border-color: rgba(203,217,234,.2); }
.carte .autor { font-weight: 500; font-size: calc(var(--w) * .055); letter-spacing: .3em; }
.carte .titlu { font-weight: 300; font-size: calc(var(--w) * .095); line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; }
.carte .titlu::after { content: ""; display: block; width: 26%; height: 1px; margin: 12% auto 0; background: rgba(203,217,234,.6); }
.carte .an { font-weight: 500; font-size: calc(var(--w) * .05); letter-spacing: .26em; }
.carte .spate { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--g) / 2)); filter: brightness(.8); }
.carte .cotor { width: var(--g); height: 100%; left: calc(50% - var(--g) / 2); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
  background-color: var(--c); background-image: var(--panza), linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.06) 45%, rgba(0,0,0,.3));
  writing-mode: vertical-rl; display: flex; align-items: center; justify-content: space-between; padding: 12% 0; color: #DCE6F1; }
.carte .cotor b { font-weight: 300; font-size: calc(var(--w) * .062); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; max-height: 74%; }
.carte .cotor i { font-weight: 500; font-size: calc(var(--w) * .045); letter-spacing: .24em; }
.carte .file { width: var(--g); height: calc(100% - 6px); top: 3px; left: calc(50% - var(--g) / 2); transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px)); background: repeating-linear-gradient(90deg, #E6E1D5 0 1px, #CFC8B8 1px 2px); }
.carte .sus { width: calc(100% - 4px); height: var(--g); left: 0; top: calc(50% - var(--g) / 2); transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 3px)); background: repeating-linear-gradient(0deg, #E6E1D5 0 1px, #CFC8B8 1px 2px); }
/* cartea deschisă: două pagini, coperta se întoarce */
.deschisa-scena { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .5s; }
.carti-scena.deschis .deschisa-scena { opacity: 1; pointer-events: auto; }
.carti-scena.deschis .raft { opacity: 0; transform: translateY(40px) scale(.96); pointer-events: none; }
.spread { position: relative; width: min(1080px, 88vw); height: min(64vh, 640px); display: grid; grid-template-columns: 1fr 1fr; perspective: 2200px; box-shadow: 0 40px 90px rgba(0,0,0,.55); }
.pagina { position: relative; background: var(--hartie); color: #1E2C3B; padding: 7% 8%; overflow: auto; }
.pagina.stanga { background-image: linear-gradient(90deg, rgba(0,0,0,0) 85%, rgba(0,0,0,.12)); }
.pagina.dreapta { background-image: linear-gradient(270deg, rgba(0,0,0,0) 85%, rgba(0,0,0,.12)); display: flex; flex-direction: column; justify-content: center; }
.pagina h3 { font-weight: 200; font-size: clamp(26px, 2.6vw, 44px); line-height: 1.05; text-transform: uppercase; }
.pagina .an { margin: 10px 0 20px; font-weight: 500; font-size: 11px; letter-spacing: .28em; color: var(--ruj); }
.pagina p { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.6; margin-bottom: 12px; }
.pagina blockquote { font-size: clamp(18px, 1.7vw, 27px); line-height: 1.45; margin-bottom: 18px; }
.coperta-mobila { position: absolute; top: 0; right: 0; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; backface-visibility: hidden; }
.inchide-carte { position: absolute; top: 18px; right: var(--lat); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linie); font-size: 22px; }

/* 05 oamenii ei */
.oameni-text { position: absolute; z-index: 2; left: var(--lat); bottom: 4vh; pointer-events: none; }
.oameni-text .nume { font-weight: 200; font-size: clamp(40px, 7.5vw, 130px); line-height: .95; text-transform: uppercase; text-shadow: 0 2px 40px rgba(14,24,35,.6); }
.oameni-text .sursa { margin-top: 12px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--camasa); }

/* 06 fotografiile */
.foto-scena .diapozitiv { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; }
.foto-scena .diapozitiv.vizibil { opacity: 1; }
.foto-scena .diapozitiv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.foto-scena .diapozitiv.vizibil img.prim { animation: apropiere 9s ease-out both; }
.foto-scena .diapozitiv img.ceata { display: none; }
@keyframes apropiere { from { transform: scale(1); } to { transform: scale(1.07); } }

/* 07 spectacolul */
.spectacol-fundal { position: absolute; inset: -40px; background: url("../assets/img/afis_albastru.webp") center / cover; filter: blur(26px) brightness(.55); transform: scale(1.1); }
.spectacol-text { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 var(--lat); }
.spectacol-text .mare { display: grid; font-weight: 200; font-size: clamp(36px, 6.4vw, 112px); line-height: 1; text-transform: uppercase; }
.spectacol-text .actrite { margin-top: 5vh; font-weight: 500; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.spectacol-text .date { list-style: none; margin-top: 4vh; display: grid; gap: 6px; font-weight: 200; font-size: clamp(20px, 2vw, 30px); }
.spectacol-text .date b { font-weight: 500; }
.spectacol-text .loc-spectacol { margin-top: 2.4vh; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--camasa); }
.buton-bilete { display: inline-block; margin-top: 4.5vh; padding: 16px 44px; border-radius: 40px; background: var(--alb); color: var(--noapte); font-weight: 500; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; }
.buton-bilete.inactiv { background: none; color: var(--alb); border: 1px solid rgba(238,242,246,.45); cursor: default; }

/* tabletă */
@media (max-width: 1180px) {
  .meniu, .buton-mic { display: none; }
  .deschide-meniu { display: block; margin-left: auto; }
}
/* telefon */
@media (max-width: 760px) {
  :root { --nav: 64px; --bara: 58px; --lat: 18px; }
  .marca { font-size: 9.5px; }
  .bara { grid-template-columns: auto 1fr auto; gap: 10px; }
  .bara .nume-camera { font-size: 0; } .bara .nume-camera b { font-size: 11px; }
  .bara .pasi { justify-self: center; gap: 12px; }
  .pasi button { width: 38px; height: 38px; }
  .bara.surse { font-size: 8.5px; }
  /* 02: viața sus, cartea jos */
  .cusatura .strat { position: absolute; }
  .cusatura .cella { inset: 0 0 50% 0; }
  .cusatura .diana { inset: 50% 0 0 0; clip-path: none !important; }
  .cusatura .linie { display: none; }
  .cusatura .text { width: auto; left: var(--lat) !important; right: var(--lat) !important; text-align: left !important; }
  .cusatura .loc { font-size: 26px; } .cusatura .fraza { margin-top: 12px; font-size: 16px; } .cusatura .sursa { margin-top: 8px; font-size: 9.5px; }
  .cusatura .eticheta-foto { bottom: 8px; font-size: 8.5px; }
  .cusatura .cella::after { background: rgba(14,24,35,.55); }
  /* 04 */
  .carti-rand { justify-content: flex-start; overflow-x: auto; overflow-y: visible; gap: 34px; padding: 30px 40px 6px; scroll-snap-type: x mandatory; }
  .carte { --w: 120px; scroll-snap-align: center; }
  .spread { grid-template-columns: 1fr; width: 88vw; height: 74%; }
  .pagina.stanga { display: none; }
  .pagina.dreapta { justify-content: flex-start; }
  .coperta-mobila { width: 100%; }
  .inchide-carte { top: 8px; }
  /* 06: fotografia întreagă, cu ea însăși estompată în spate, ca să nu taie fețele */
  .foto-scena .diapozitiv img.ceata { display: block; object-fit: cover; filter: blur(22px) brightness(.6); transform: scale(1.15); }
  .foto-scena .diapozitiv img.prim { object-fit: contain; }
}
@media (prefers-reduced-motion: reduce) { .carte, .raft { transition: none; } .foto-scena .diapozitiv.vizibil img.prim { animation: none; } }
.carte .sus { display: none; }
.carte .cotor { top: 0; }

/* 07: reprezentațiile, siglele, mențiunea AFCN */
.reprezentatii { margin-top: 4vh; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3vh 5vw; max-width: 1000px; }
.reprezentatie .data { font-weight: 200; font-size: clamp(22px, 2.3vw, 36px); text-transform: uppercase; line-height: 1.1; }
.reprezentatie .loc-spectacol { margin-top: 8px; }
.reprezentatie .ore { margin-top: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.reprezentatie .buton-bilete { margin-top: 0; padding: 12px 22px; font-size: 11px; letter-spacing: .18em; }
.sigle { margin-top: 4vh; display: flex; gap: 34px; align-items: center; justify-content: center; }
.sigle img { height: clamp(48px, 7vh, 76px); width: auto; }
.afcn { margin-top: 1.6vh; max-width: 760px; font-size: 9.5px; line-height: 1.45; color: var(--camasa); opacity: .8; }
@media (max-width: 760px) {
  .spectacol-text { justify-content: flex-start; padding-top: 3vh; overflow-y: auto; }
  .spectacol-text .mare { font-size: 30px; }
  .spectacol-text .actrite { margin-top: 2vh; font-size: 10px; }
  .reprezentatii { grid-template-columns: 1fr; gap: 2.4vh; margin-top: 2.4vh; }
  .reprezentatie .data { font-size: 20px; }
  .reprezentatie .buton-bilete { padding: 10px 16px; font-size: 10px; }
  .sigle { margin-top: 2.4vh; gap: 22px; } .sigle img { height: 44px; }
  .afcn { font-size: 8px; }
}

/* valul dintre camere și unda de pe fotografii */
.val { position: fixed; inset: 0; z-index: 10; width: 100%; height: 100%; pointer-events: none; visibility: hidden; }
.unda { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; visibility: hidden; }

/* 04: cărțile, pe nisip */
.nisip { position: absolute; inset: 0; }
.nisip canvas { width: 100%; height: 100%; display: block; }

/* butonul de sunet, în bara de sus */
.sunet { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--camasa); transition: color .3s; }
.sunet:hover { color: var(--alb); }
.sunet svg { width: 26px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.sunet svg path { transition: d .4s; animation: unda-sunet 2.4s ease-in-out infinite; transform-origin: center; }
.sunet.oprit svg path { d: path("M1 6 Q4.5 6 8 6 T15 6 T22 6 T27 6"); animation: none; }
.sunet.oprit { opacity: .6; }
@keyframes unda-sunet { 50% { transform: scaleY(.55); } }
@media (max-width: 1180px) { .sunet { margin-left: auto; } .deschide-meniu { margin-left: 0; } }
@media (max-width: 760px) { .sunet span { display: none; } .sunet { padding: 10px 4px; } }
@media (prefers-reduced-motion: reduce) { .sunet svg path { animation: none; } }
