/* Casa Scriitorilor — landing page
   Paletă inspirată din afișul "Un loc cu trecut. Un nou început în 2027." */
:root {
  --cream: #F4EDE0;
  --cream-2: #EBE1CE;
  --paper: #FBF7EF;
  --ink: #4A2516;
  --ink-2: #6E4E3D;
  --muted: #8A7760;
  --green: #5B6A3F;
  --green-dark: #414C2D;
  --terra: #B7563B;
  --line: #CDBC9B;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--cream); padding: 8px 14px; z-index: 100; text-decoration: none; }
.skip:focus { top: 8px; }

/* Swatches (pătratele colorate din afiș) */
.sw { display: inline-block; width: 14px; height: 14px; }
.sw-green { background: var(--green); }
.sw-terra { background: var(--terra); }
.sw-ink { background: var(--ink); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: background .2s ease, color .2s ease, transform .2s ease;
  cursor: pointer;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.btn-small { padding: 9px 18px; font-size: .92rem; }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.link-arrow { font-style: italic; font-size: 1.15rem; color: var(--green); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { border-bottom-color: var(--green); }

/* Labels (ATUNCI / ÎN 2027) */
.label {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.label::after { content: ""; flex: 0 0 56px; height: 1px; background: var(--ink-2); opacity: .7; }
.label-center { justify-content: center; }
.label-center::before { content: ""; flex: 0 0 56px; height: 1px; background: var(--ink-2); opacity: .7; }
.label-light { color: var(--cream); }
.label-light::after, .label-light::before { background: var(--cream); }

/* Header: crem, 90% opac (10% transparent), fix deasupra paginii */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  color: var(--ink);
  background: rgba(244, 237, 224, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(205, 188, 155, .5);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(74,37,22,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo { display: block; height: 60px; width: auto; }
.logo text, #logo-cs text { font-family: var(--font-display); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); }
.site-nav a:not(.btn) { text-decoration: none; font-size: 1.1rem; font-weight: 500; letter-spacing: .04em; position: relative; padding: 4px 0; white-space: nowrap; }
.site-nav .btn { white-space: nowrap; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.site-nav .btn-small { background: transparent; color: var(--ink); border-color: var(--ink); }
.site-nav .btn-small:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: none; }
.nav-toggle { display: none; background: none; border: 1px solid currentColor; border-radius: var(--radius); width: 44px; height: 44px; position: relative; cursor: pointer; color: inherit; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 11px; width: 20px; height: 2px; background: currentColor; transition: transform .25s ease, top .25s ease, opacity .2s; }
.nav-toggle-bar { top: 20px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }
section[id] { scroll-margin-top: 84px; }

/* Hero: fotografia full-screen, de la o margine la alta; textul peste ea */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 clamp(44px, 8vh, 96px);
  color: var(--cream);
  overflow: hidden;
  background: #1d1612;
}
.hero-inner { position: relative; z-index: 2; width: 100%; pointer-events: none; display: flex; align-items: flex-start; gap: clamp(18px, 3vw, 40px); }
.hero-inner a { pointer-events: auto; }
.hero-marks { display: flex; flex-direction: column; gap: 6px; padding-top: .15rem; }
.hero-marks .sw { width: clamp(16px, 2vw, 28px); height: clamp(16px, 2vw, 28px); }
.hero-text { flex: 1 1 auto; min-width: 0; }
.eyebrow { font-size: .95rem; letter-spacing: .36em; text-transform: uppercase; color: #E6C8B5; font-weight: 600; margin-bottom: 1.2rem; }
.hero h1 {
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.3rem, 5.6vw, 5rem);
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0 0 1.1rem;
  max-width: 24ch;
  color: #FBF7EF;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-sub { font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: #D9DEC3; display: flex; align-items: center; gap: 18px; margin: 0 0 2rem; }
.hero-sub::after { content: ""; flex: 1 1 0; max-width: 140px; height: 1px; background: rgba(244,237,224,.55); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.hero .link-arrow { color: var(--cream); }
.hero .link-arrow:hover { border-bottom-color: var(--cream); }

/* Panels: Atunci / În 2027 */
.panel { padding: clamp(40px, 6vw, 84px) 0; }
.panel-atunci { border-top: 1px solid var(--line); }
.panel-2027 { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.panel-figure { margin: 0; position: relative; }
.panel-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: 0 30px 60px -36px rgba(74,37,22,.55); }
.panel-figure::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--line); z-index: -1; }
.panel-atunci .panel-figure img { filter: grayscale(1) contrast(1.04); }
.panel-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.panel-text .lead { font-size: clamp(1.3rem, 2vw, 1.5rem); line-height: 1.45; color: var(--ink); }
.panel-text p:not(.lead):not(.label) { color: var(--ink-2); }

/* Stats */
.stats { padding: clamp(44px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
.stats-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 820px; }
.stat { text-align: center; padding: 10px 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-icon { width: 38px; height: 38px; color: var(--green); margin-bottom: 8px; }
.stat strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1; color: var(--ink); }
.stat span { font-size: 1.1rem; letter-spacing: .04em; color: var(--ink-2); }
.stats-tagline { margin: clamp(28px, 4vw, 44px) auto 0; text-align: center; font-style: italic; font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--ink); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; max-width: 900px; }
.stats-tagline i { font-style: normal; color: var(--terra); }

/* Features */
.features { background: var(--cream-2); padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.section-title { text-align: center; font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 760px; margin: 0 auto clamp(32px, 5vw, 60px); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--paper); border: 1px solid var(--line); padding: 30px 26px 26px; position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -30px rgba(74,37,22,.5); }
.feature-num { font-family: var(--font-display); font-size: 1rem; letter-spacing: .1em; color: var(--terra); display: block; margin-bottom: 18px; }
.feature-num::after { content: ""; display: block; width: 28px; height: 1px; background: var(--terra); margin-top: 8px; }
.feature h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.feature p { font-size: 1.12rem; color: var(--ink-2); margin: 0; line-height: 1.5; }
.feature .more { display: inline-block; margin-top: 14px; font-style: italic; color: var(--green); text-decoration: none; }
.feature .more::after { content: " \2192"; }

/* Keep */
.keep { padding: clamp(56px, 8vw, 110px) 0; }
.keep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); max-width: 1040px; margin: 0 auto; }
.keep-item { border-top: 1px solid var(--line); padding-top: 22px; }
.keep-swatch { display: block; width: 18px; height: 18px; margin-bottom: 16px; }
.keep-item h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.keep-item p { color: var(--ink-2); font-size: 1.15rem; margin: 0; }

/* CTA */
.cta { background: var(--green-dark); color: var(--cream); padding: clamp(64px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(244,237,224,.18); }
.cta::before { content: ""; position: absolute; right: 40px; bottom: 20px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(244,237,224,.12); }
.cta-inner { max-width: 760px; text-align: center; position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); color: #fff; }
.cta-text { font-size: 1.25rem; opacity: .9; margin-bottom: 2rem; }
.subscribe { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; position: relative; }
.subscribe input[type="email"] {
  flex: 1 1 280px; max-width: 420px;
  font: inherit; font-size: 1.15rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--cream); border-radius: var(--radius);
  padding: 13px 18px; outline: none;
}
.subscribe input[type="email"]:focus { box-shadow: 0 0 0 3px rgba(244,237,224,.35); }
.subscribe .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { flex-basis: 100%; margin: 10px 0 0; min-height: 1.4em; font-style: italic; font-size: 1.1rem; }
.form-msg.is-ok { color: #fff; }
.form-msg.is-err { color: #F3C9B9; }

/* Footer */
.site-footer { background: var(--cream-2); border-top: 1px solid var(--line); padding: 34px 0 20px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 48px; }
.footer-left { flex: 1 1 280px; }
.footer-brand { margin: 0 0 .7rem; display: block; }
.logo-footer { height: 62px; }
.footer-tag { font-style: italic; color: var(--ink-2); margin: 0; font-size: 1.05rem; }
.footer-right { flex: 0 1 auto; min-width: 240px; }
.footer-heading { font-size: .76rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 14px; }
.footer-copy { font-size: .95rem; color: var(--muted); margin: 0; letter-spacing: .03em; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature { transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .panel-grid { grid-template-columns: 1fr; gap: 28px; }
  .panel-text { max-width: 640px; }
  .panel-figure::after { inset: 10px -10px -10px 10px; }
}
/* Submeniuri (desktop: la hover/click; mobil: se desfac în listă) */
.site-nav { gap: clamp(12px, 1.5vw, 22px); }
.site-nav a:not(.btn) { font-size: 1.02rem; }
.site-nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.site-nav .has-sub { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-toggle { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; }
.sub-toggle::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.has-sub.is-open > .sub-toggle::before { transform: translateY(2px) rotate(225deg); }
.sub {
  position: absolute; top: calc(100% + 12px); left: -18px; min-width: 240px; z-index: 60;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 22px 44px -26px rgba(74,37,22,.5);
  padding: 8px 0; display: none;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-sub:hover > .sub, .has-sub.is-open > .sub, .has-sub:focus-within > .sub { display: block; }
.site-nav .sub a { display: block; padding: 9px 20px; font-size: 1.02rem; white-space: nowrap; text-decoration: none; color: var(--ink); }
.site-nav .sub a::after { display: none; }
.site-nav .sub a:hover { background: var(--cream-2); color: var(--terra); }
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); color: var(--ink); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none; max-height: calc(100vh - 84px); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.btn), .site-nav .has-sub > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .site-nav .has-sub { flex-wrap: wrap; align-items: stretch; gap: 0; }
  .site-nav .has-sub > a { flex: 1 1 auto; }
  .sub-toggle { width: 44px; height: auto; border-radius: 0; border-bottom: 1px solid var(--line); }
  .sub { position: static; min-width: 0; width: 100%; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); background: var(--cream-2); padding: 4px 0; }
  .sub::before { display: none; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub.is-open > .sub { display: block; }
  .site-nav .sub a { padding: 9px 18px; font-size: 1.05rem; white-space: normal; }
  .site-nav .btn { margin-top: 16px; text-align: center; }
}
@media (max-width: 760px) {
  .hero-sub::after { display: none; }
  .stats-grid { grid-template-columns: 1fr; max-width: 320px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat { padding: 18px 0; }
  .stats-tagline { flex-direction: column; gap: 4px; }
  .stats-tagline i { display: none; }
  .keep-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 1.15rem; }
  .logo { height: 46px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 br { display: none; }
  .hero h1 { font-size: clamp(2.1rem, 10.5vw, 2.8rem); }
}

/* ---------- Stratul animat: Atunci -> În 2027, tușe de pensulă automate ---------- */
.morph {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  background: #1d1612;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.morph-canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; z-index: 1; }
.morph-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); z-index: 0; }
.morph.is-ready .morph-fallback { visibility: hidden; }
.morph-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to top, rgba(29,22,18,.86) 0%, rgba(29,22,18,.55) 30%, rgba(29,22,18,.12) 58%, rgba(29,22,18,0) 100%);
}
.morph-tag {
  position: absolute; top: 96px; z-index: 4;
  font-size: .8rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink); background: rgba(244,237,224,.9);
  padding: 7px 12px 6px 15px; pointer-events: none;
  transition: opacity .4s ease;
}
.morph-tag-old { left: var(--gutter); }
.morph-tag-new { right: var(--gutter); opacity: .4; }
.morph.is-started .morph-tag-new { opacity: 1; }
.morph.is-done .morph-tag-old { background: var(--terra); color: var(--cream); }
.morph-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(244,237,224,.15); z-index: 4; }
.morph-bar i { display: block; height: 100%; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
@media (max-width: 760px) {
  .hero { padding-bottom: 72px; }
  .hero-marks { display: none; }
  .header-inner { min-height: 72px; }
  .morph-tag { top: 86px; font-size: .7rem; padding: 6px 9px 5px 11px; }
  .morph-shade { background: linear-gradient(to top, rgba(29,22,18,.9) 0%, rgba(29,22,18,.62) 40%, rgba(29,22,18,.15) 70%, rgba(29,22,18,.05) 100%); }
}

/* Panourile de mai jos: cadraje diferite față de hero */
.panel-figure img.crop-atunci { aspect-ratio: 4 / 3; object-position: 50% 62%; }
.panel-figure img.crop-2027 { aspect-ratio: 4 / 3; object-position: 18% 60%; }

/* Buton "înapoi sus": apare după ce treci de hero */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); background: var(--ink);
  border: 1px solid rgba(244,237,224,.25);
  box-shadow: 0 10px 24px -10px rgba(29,22,18,.6);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s, background .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--terra); border-color: var(--terra); }
.to-top:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
@media (max-width: 760px) {
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: none; }
}

/* Parteneri */
.partners { background: var(--cream-2); border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 76px) 0; }
.section-title-small { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: clamp(22px, 3vw, 34px); }
.partners-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.partner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); padding: 28px 36px 22px; min-width: 280px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.partner:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -30px rgba(74,37,22,.45); }
.partner a { display: block; line-height: 0; }
.partner img { height: 42px; width: auto; }
.partner-desc { font-style: italic; color: var(--ink-2); font-size: 1.05rem; text-align: center; }
@media (max-width: 520px) {
  .partner { width: 100%; min-width: 0; }
}

/* Textele de conținut: aliniate stânga-dreapta, cu despărțire în silabe */
.prose p, .prose li, .prose blockquote, .panel-text p, .feature p, .card p, .journal p,
.keep-item p, .cta-text, .partner-desc, .page-hero .lead, .timeline p, .check-list li, .contact-intro {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.hero-sub, .label, .note, .form-msg, .stats-tagline, .contact-line, .morph-caption { text-align: inherit; }

/* ---------- Pagini interioare ---------- */
.page-hero { position: relative; background: var(--ink); color: var(--cream); min-height: 48vh; display: flex; align-items: flex-end; padding: 150px 0 52px; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(29,22,18,.9) 0%, rgba(29,22,18,.55) 45%, rgba(29,22,18,.18) 100%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .label { color: #E6C8B5; }
.page-hero .label::after { background: #E6C8B5; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); color: #FBF7EF; max-width: 20ch; margin-bottom: .6rem; }
.page-hero .lead { font-style: italic; font-size: clamp(1.2rem, 2vw, 1.5rem); color: #D9DEC3; max-width: 62ch; margin: 0; }
.page-hero.is-plain { background: var(--cream-2); color: var(--ink); min-height: 0; padding: 140px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero.is-plain::after { display: none; }
.page-hero.is-plain h1 { color: var(--ink); }
.page-hero.is-plain .lead { color: var(--ink-2); }
.page-hero.is-plain .label { color: var(--ink-2); }
.page-hero.is-plain .label::after { background: var(--ink-2); }
.page-hero .credit { position: absolute; right: 12px; bottom: 8px; z-index: 2; font-size: .75rem; color: rgba(244,237,224,.6); }

.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-alt { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }
.prose { max-width: 70ch; }
.prose p { color: var(--ink-2); }
.prose .lead { color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.45rem); line-height: 1.45; }
.prose h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: .8rem; }
.prose h3 { font-size: 1.4rem; margin: 1.6rem 0 .5rem; }
.prose ul { padding-left: 1.2em; color: var(--ink-2); }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.6rem 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--terra); font-style: italic; font-size: 1.3rem; color: var(--ink); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split figure { margin: 0; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 30px 60px -36px rgba(74,37,22,.55); }
.split.is-flipped figure { order: -1; }
figcaption { font-size: .95rem; color: var(--muted); font-style: italic; margin-top: 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); padding: 26px 24px; }
.card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.card p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }
.card-num { font-family: var(--font-display); color: var(--terra); letter-spacing: .1em; font-size: .95rem; display: block; margin-bottom: 12px; }
.card-num::after { content: ""; display: block; width: 28px; height: 1px; background: var(--terra); margin-top: 8px; }
a.card { text-decoration: none; color: inherit; display: block; transition: transform .25s ease, box-shadow .25s ease; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -30px rgba(74,37,22,.5); }
.card .more { display: inline-block; margin-top: 14px; font-style: italic; color: var(--green); }
.card .more::after { content: " \2192"; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 28px; }
.check-list li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 1.12rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; background: var(--green); }
.check-list.is-terra li::before { background: var(--terra); }
.check-list.is-single { grid-template-columns: 1fr; max-width: 70ch; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: var(--line); }
.timeline li { position: relative; padding-top: 30px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 3px; width: 13px; height: 13px; background: var(--terra); }
.timeline .year { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; display: block; margin-bottom: .3rem; }
.timeline p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }
.chapters { list-style: none; margin: 0; padding: 0; counter-reset: cap; display: grid; gap: 10px; max-width: 780px; }
.chapters li { counter-increment: cap; display: flex; align-items: center; gap: 16px; background: var(--paper); border: 1px solid var(--line); padding: 14px 18px; font-size: 1.12rem; }
.chapters li::before { content: counter(cap, decimal-leading-zero); font-family: var(--font-display); color: var(--terra); font-size: 1.05rem; min-width: 2.2em; }
.chapters .cap-play { margin-left: auto; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.chapters .cap-play::before { content: ""; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.note { font-style: italic; color: var(--muted); font-size: 1rem; }
.tag { display: inline-block; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; background: var(--terra); color: var(--cream); padding: 5px 10px 4px 12px; margin-left: 10px; vertical-align: middle; font-family: var(--font-body); font-style: normal; }
.tag-soft { background: var(--cream-2); color: var(--ink-2); border: 1px solid var(--line); }
.band { background: var(--green-dark); color: var(--cream); padding: clamp(44px, 6vw, 72px) 0; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.band h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin: 0 0 .3rem; }
.band p { margin: 0; opacity: .9; }
.band .btn-light { flex: none; }
.journal { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.journal article { background: var(--paper); border: 1px solid var(--line); padding: 26px 24px; display: flex; flex-direction: column; }
.journal time { font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.journal h3 { font-size: 1.35rem; margin: .5rem 0 .5rem; }
.journal p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }
.journal article.is-soon { background: transparent; border-style: dashed; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); display: block; }
.form-grid { display: grid; gap: 14px; }
.form-grid input, .form-grid textarea { font: inherit; font-size: 1.1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 12px 16px; width: 100%; border-radius: var(--radius); }
.form-grid textarea { min-height: 150px; resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.form-grid .form-msg { color: var(--ink-2); }
.form-grid .form-msg.is-err { color: var(--terra); }
.form-grid .form-msg.is-ok { color: var(--green); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .95rem; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--terra); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; align-items: center; }
@media (max-width: 860px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.is-flipped figure { order: 0; }
  .page-hero { padding-top: 120px; min-height: 40vh; }
}

/* Date de contact în secțiunea "Rămâi aproape" și în subsol */
.contact-lines { margin-top: clamp(32px, 5vw, 48px); padding-top: 28px; border-top: 1px solid rgba(244,237,224,.22); }
.contact-intro { font-style: italic; font-size: 1.15rem; opacity: .85; margin-bottom: 18px; }
.contact-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact-card {
  display: inline-flex; align-items: center; gap: 16px; text-align: left;
  color: var(--cream); text-decoration: none;
  background: rgba(244,237,224,.07); border: 1px solid rgba(244,237,224,.18); border-radius: 6px;
  padding: 16px 22px 16px 16px; min-width: 260px;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.contact-card:hover { background: rgba(244,237,224,.13); border-color: rgba(244,237,224,.4); transform: translateY(-2px); }
.contact-card:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.contact-icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--terra); color: var(--cream);
}
.contact-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.contact-label { font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; opacity: .65; }
.contact-value { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: #fff; letter-spacing: .01em; line-height: 1.25; overflow-wrap: anywhere; }
.contact-name { font-style: italic; font-size: 1rem; opacity: .8; }
.contact-cards.on-light { justify-content: flex-start; }
.contact-cards.on-light .contact-card { color: var(--ink); background: var(--paper); border-color: var(--line); width: 100%; }
.contact-cards.on-light .contact-value { color: var(--ink); }
.contact-cards.on-light .contact-card:hover { background: #fff; border-color: var(--terra); }
.contact-cards.on-light .contact-card:focus-visible { outline-color: var(--terra); }
.footer-contact { font-size: 1.1rem; margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; letter-spacing: .02em; transition: color .2s ease; }
.footer-contact svg { width: 19px; height: 19px; color: var(--terra); flex: none; }
.footer-contact a:hover { color: var(--terra); }
@media (max-width: 600px) {
  .contact-card { width: 100%; min-width: 0; padding: 14px 14px; gap: 12px; }
  .contact-icon { width: 38px; height: 38px; }
  .contact-value { font-size: .98rem; letter-spacing: 0; }
}
