/* ============================================================
   ALINA MIHAIL — pagini interioare
   „Povestea mea" (.pv-*) și „Galerie" (.gl-*).
   Nu redefinește niciun token: totul stă pe variabilele din core.css.
   ============================================================ */

@media (max-width: 900px) {
}

/* ============================================================
   1. POVESTEA MEA
   ============================================================ */

/* ---------- 1.1 HERO — pagină de revistă ----------
   Fundalul e construit din trei straturi: două halouri radiale calde,
   arcada din spatele siluetei și evantaiul logoului ca filigran. */
.pv-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(1.6rem, 5vh, 4rem));
  padding-bottom: clamp(2.5rem, 7vh, 5.5rem);
  background:
    radial-gradient(66vw 56vh at 76% 16%, rgba(232, 213, 168, .58), transparent 70%),
    radial-gradient(52vw 46vh at 2% 92%, rgba(201, 169, 97, .18), transparent 72%),
    var(--ivory);
}
.pv-hero__fan {
  position: absolute;
  left: -10vw;
  bottom: -8vh;
  width: min(54vw, 640px);
  opacity: .13;
  rotate: -10deg;          /* proprietate independentă: lasă `transform` liber pentru parallax */
  pointer-events: none;
}
.pv-hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(1.4rem, 4vw, 4.5rem);
  align-items: center;
}

.pv-hero__h { margin-block: .8rem 0; }
.pv-hero__script {
  display: block;
  font-size: clamp(4.2rem, 13.5vw, 11rem);
  line-height: .78;
  color: var(--gold-deep);
}
.pv-hero__caps {
  display: block;
  margin-top: .2em;
  margin-left: clamp(.15rem, 1.4vw, 1rem);
  font-size: clamp(1.05rem, 3.4vw, 2.3rem);
  letter-spacing: .24em;
}
.pv-hero__rule { margin-block: clamp(1.2rem, 3vw, 2rem); max-width: 340px; }
.pv-hero__lede { max-width: 42ch; }

.pv-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.8rem;
  margin-top: clamp(1.6rem, 3.5vw, 2.4rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.pv-hero__meta li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.pv-hero__meta svg { width: 17px; height: 17px; flex: none; color: var(--gold-deep); }

.pv-hero__fig {
  position: relative;
  margin: 0;
  display: grid;
  place-items: end center;
  isolation: isolate;
}
/* Arcada: forma din spatele siluetei. Decupajul are fundal transparent,
   deci se așază peste ea fără niciun chenar vizibil. */
.pv-hero__arc {
  position: absolute;
  z-index: -1;
  inset: 3% 0 0 0;
  width: min(88%, 460px);
  margin-inline: auto;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(168deg, var(--gold-pale), var(--ivory-2) 56%, var(--ivory-3));
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 0 90px rgba(201, 169, 97, .24);
}
.pv-hero__fig img {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 76svh;
  object-fit: contain;
  object-position: bottom;
}

/* ---------- 1.2 DESCHIDERE ---------- */
.pv-open__in {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: start;
}
.pv-open__h { max-width: 14ch; }

.pv-p { color: var(--ink-soft); max-width: 62ch; }
.pv-p + .pv-p { margin-top: 1.05rem; }
/* Inițială de revistă. `::first-letter` nu costă nimic și dă paginii ritm. */
.pv-p--lead::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  font-family: var(--display);
  font-size: 3.5em;
  font-weight: 500;
  line-height: .78;
  color: var(--gold-deep);
}

/* ---------- 1.3 CAPITOLE ---------- */
.pv-chapter + .pv-chapter { margin-top: clamp(3rem, 8vw, 7rem); }
.pv-chapter__in {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(1.8rem, 5vw, 5rem);
  align-items: center;
}
.pv-chapter--flip .pv-fig { order: -1; }
.pv-chapter--solo .pv-chapter__in { grid-template-columns: 1fr; max-width: 860px; }
.pv-chapter__k { margin-bottom: .9rem; }
.pv-chapter__t { margin-bottom: clamp(1rem, 2.4vw, 1.5rem); max-width: 18ch; }

/* Silueta din capitol: disc cald în spate + umbră la sol desenată ca
   gradient. `filter: drop-shadow()` pe un decupaj mare recalculează o
   mască blurată la fiecare compunere — nu merită prețul. */
.pv-fig {
  position: relative;
  margin: 0;
  display: grid;
  place-items: end center;
  isolation: isolate;
}
.pv-fig__disc {
  position: absolute;
  z-index: -1;
  inset: auto 0 5% 0;
  width: min(94%, 420px);
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-pale) 42%, rgba(247, 243, 234, 0) 72%);
  border: 1px solid var(--gold-line);
}
.pv-fig__disc--plain {
  background: radial-gradient(circle, var(--ivory) 50%, rgba(247, 243, 234, 0) 72%);
  box-shadow: inset 0 0 60px rgba(201, 169, 97, .16);
}
.pv-fig img {
  position: relative;
  width: 100%;
  max-width: 400px;
  object-fit: contain;
  object-position: bottom;
}
.pv-hero__fig::after,
.pv-fig::after,
.pv-sign__fig::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 0;
  width: 58%;
  height: 7%;
  translate: -50% 38%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(11, 11, 12, .2), rgba(11, 11, 12, 0) 70%);
  pointer-events: none;
}

/* ---------- 1.4 CITAT ---------- */
.pv-quote {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(4rem, 11vw, 9rem);
}
.pv-quote__glow {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: min(82vw, 940px);
  aspect-ratio: 2 / 1;
  background: radial-gradient(ellipse, rgba(201, 169, 97, .22), rgba(11, 11, 12, 0) 70%);
  pointer-events: none;
}
.pv-quote__in { position: relative; z-index: 1; }
.pv-quote__fan { width: clamp(46px, 6vw, 76px); margin: 0 auto clamp(1.2rem, 3vw, 2rem); opacity: .9; }
.pv-quote .quote { max-width: 24ch; margin-inline: auto; }

/* ---------- 1.5 CIFRE ---------- */
.pv-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  margin-top: clamp(1.8rem, 4vw, 3rem);
}

/* ---------- 1.6 SEMNĂTURĂ ---------- */
.pv-sign__in {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.4rem, 4vw, 3.5rem);
  align-items: end;
}
.pv-sign__fig {
  position: relative;
  margin: 0;
  isolation: isolate;
  justify-self: start;
}
.pv-sign__fig img { width: clamp(150px, 20vw, 260px); }
.pv-sign__name {
  display: block;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: .82;
  color: var(--gold-deep);
}
.pv-sign__role { display: block; margin-top: .6rem; font-size: var(--t-sm); letter-spacing: .26em; }
.pv-sign__note { margin-top: 1.2rem; max-width: 46ch; }
.pv-sign__body { padding-bottom: clamp(.5rem, 2vw, 1.5rem); }

/* ---------- 1.7 CTA DUBLU ---------- */
.pv-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(4.5rem, 11vw, 9.5rem);
}
.pv-cta__glow {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: min(80vw, 900px);
  aspect-ratio: 2 / 1;
  background: radial-gradient(ellipse, rgba(201, 169, 97, .2), rgba(11, 11, 12, 0) 70%);
  pointer-events: none;
}
.pv-cta__in { position: relative; z-index: 1; }
.pv-cta__fan { width: clamp(50px, 7vw, 84px); margin: 0 auto 1.3rem; opacity: .9; }
.pv-cta__h { margin-block: 1.2rem 1.4rem; }
.pv-cta__lede { margin-inline: auto; }
.pv-cta__btns { justify-content: center; margin-top: 2rem; }

/* ============================================================
   2. GALERIE
   ============================================================ */
.gl-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.2rem, 7vh, 5rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(60vw 48vh at 84% 6%, rgba(232, 213, 168, .5), transparent 70%),
    var(--ivory);
}
.gl-hero__fan {
  position: absolute;
  right: -8vw;
  top: 12%;
  width: min(40vw, 420px);
  opacity: .12;
  rotate: 8deg;
  pointer-events: none;
}
.gl-hero__in { position: relative; z-index: 1; max-width: 900px; }
.gl-hero__script {
  display: block;
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  line-height: .82;
  color: var(--gold-deep);
  margin-block: .5rem 0;
}
.gl-hero__lede { max-width: 56ch; margin-top: clamp(1.1rem, 2.6vw, 1.8rem); }
.gl-hero__lede a { border-bottom: 1px solid var(--gold-line); }

/* ---------- 2.1 FIGURILE ----------
   Decupajele sunt siluete cu fundal transparent: într-o galerie masonry
   obișnuită ar pluti. Fiecare figură primește propriul fundal, așa că
   seria se citește ca un șir de portrete de studio. */
.gl-fig {
  position: relative;
  padding: clamp(2.4rem, 4vw, 3.4rem) clamp(1rem, 2.2vw, 1.8rem) 0;
  background:
    radial-gradient(circle at 50% 76%, var(--ivory) 36%, rgba(247, 243, 234, 0) 74%),
    linear-gradient(166deg, var(--gold-pale), var(--ivory-2) 58%, var(--ivory-3));
  border: 1px solid var(--line-soft);
}
/* Intrarea și hoverul, într-o singură declarație: regula `[data-reveal]`
   din motion.css are specificitate mai mare decât `.gl-fig` și ar
   înlocui altfel tranziția de hover. */
.gal .gl-fig {
  transition:
    opacity 1.05s var(--ease-out) var(--d, 0ms),
    translate 1.15s var(--ease-out) var(--d, 0ms),
    border-color .5s var(--ease),
    box-shadow .7s var(--ease);
}
.gl-fig::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64%;
  height: 8%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(11, 11, 12, .18), rgba(11, 11, 12, 0) 70%);
  pointer-events: none;
}
.gl-fig img { position: relative; z-index: 1; }
.gl-fig:hover { border-color: var(--gold-line); box-shadow: 0 30px 54px -42px rgba(11, 11, 12, .45); }

.gl-fig figcaption {
  position: absolute;
  z-index: 2;
  left: clamp(1rem, 2.2vw, 1.8rem);
  top: clamp(.9rem, 2vw, 1.4rem);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.gl-fig figcaption b { font-weight: 600; color: var(--muted); }

/* Variante, ca ritmul seriei să nu fie plat. */
.gl-fig--ink {
  background:
    radial-gradient(circle at 50% 74%, rgba(201, 169, 97, .22) 0%, rgba(11, 11, 12, 0) 66%),
    linear-gradient(166deg, var(--ink-3), var(--ink) 64%);
  border-color: rgba(247, 243, 234, .14);
}
.gl-fig--ink::before { background: radial-gradient(ellipse, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 70%); }
.gl-fig--ink figcaption { color: var(--gold); }
.gl-fig--ink figcaption b { color: rgba(247, 243, 234, .6); }

.gl-fig--gold {
  background:
    radial-gradient(circle at 50% 78%, var(--gold-pale) 34%, rgba(240, 228, 198, 0) 76%),
    linear-gradient(166deg, var(--gold-lit), var(--ivory-3) 70%);
  border-color: var(--gold-line);
}

/* ---------- 2.2 BANDĂ FINALĂ ---------- */
.gl-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-block: clamp(1.6rem, 3.5vw, 2.6rem);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}
.gl-band__t { max-width: 22ch; }
.gl-band__n { font-size: var(--t-sm); color: var(--muted); max-width: 40ch; margin-top: .5rem; }

/* ============================================================
   3. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .pv-open__in { grid-template-columns: 1fr; }
  .pv-open__h { max-width: none; }
  .pv-chapter__t { max-width: none; }
}
@media (max-width: 900px) {
  .pv-hero__in { grid-template-columns: 1fr; gap: 1.2rem; }
  .pv-hero__fig { order: -1; }
  .pv-hero__fig img { max-height: 42svh; }
  .pv-hero__arc { width: min(72%, 340px); }
  .pv-hero__fan { left: -22vw; bottom: -4vh; width: 86vw; }

  .pv-chapter__in { grid-template-columns: 1fr; gap: 1.8rem; }
  .pv-chapter--flip .pv-fig { order: 0; }
  .pv-fig img { max-width: 300px; }

  .pv-stats { grid-template-columns: repeat(2, 1fr); }

  .pv-sign__in { grid-template-columns: 1fr; align-items: start; }
  .pv-sign__fig { justify-self: center; }

  .gl-hero__fan { right: -18vw; top: auto; bottom: -10%; width: 70vw; }
}
@media (max-width: 560px) {
  .pv-hero__caps { letter-spacing: .18em; }
  .pv-stats { grid-template-columns: 1fr; }
  .gl-band { flex-direction: column; align-items: flex-start; }
  .gl-band .btn { width: 100%; }
}
