/* ---------- TOKENS ---------- */
:root {
  --bg: oklch(0.972 0.008 78);
  --bg-soft: oklch(0.945 0.012 75);
  --bg-deep: oklch(0.9 0.014 72);
  --ink: oklch(0.22 0.012 70);
  --ink-soft: oklch(0.42 0.014 70);
  --ink-quiet: oklch(0.58 0.012 70);
  --rule: oklch(0.86 0.014 72);
  --water: oklch(0.42 0.07 215);
  --water-soft: oklch(0.7 0.05 215);
  --rose: oklch(0.6 0.08 25);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 60ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-gap: clamp(5rem, 10vw, 9rem);
  --content-max: 1240px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

@media (min-width: 720px) {
  body { font-size: 18px; }
}

img { max-width: 100%; display: block; }

::selection { background: var(--water); color: var(--bg); }

/* sidenav removed */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 0 var(--gutter) clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  color: var(--bg);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, oklch(0.18 0.02 70 / 0.7) 0%, oklch(0.18 0.02 70 / 0.15) 45%, transparent 75%),
    linear-gradient(to right, oklch(0.18 0.02 70 / 0.35), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  animation: heroFade 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.85);
  margin: 0 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 400;
}

.kicker-rule {
  display: inline-block;
  width: 3rem;
  height: 1px;
  background: oklch(1 0 0 / 0.7);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(5rem, 17vw, 13rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 2rem;
  color: var(--bg);
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: oklch(0.85 0.08 215);
}

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.45;
  color: oklch(1 0 0 / 0.92);
  max-width: 36ch;
  margin: 0 0 2.5rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.78);
}

.hero-meta .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: oklch(1 0 0 / 0.55);
}

/* scroll cue removed */

/* ---------- MAIN ---------- */
main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 600px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

/* Eyebrow for sections */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin: 0 0 1.4rem;
  display: block;
}

/* H2 */
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
  color: var(--ink);
  text-wrap: balance;
}

h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--water);
}

.section-lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 1rem 0 0;
  max-width: 50ch;
  text-wrap: pretty;
}

.section-head-center .section-lede {
  margin-left: auto;
  margin-right: auto;
}

p { margin: 0 0 1.2rem; color: var(--ink); text-wrap: pretty; }
.lede { text-wrap: pretty; }

/* ---------- SPLIT (text + image) ---------- */
.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1.1fr; }
  .split-reverse .split-text { order: 2; }
  .split-reverse .split-image { order: 1; }
}

.split-text { max-width: 50ch; }
.split-text p { color: var(--ink); }

.quick-facts {
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 0;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

@media (min-width: 540px) {
  .quick-facts { grid-template-columns: repeat(3, 1fr); }
}

.quick-facts > div { display: flex; flex-direction: column; gap: 0.2rem; }
.quick-facts dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.quick-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---------- IMAGE FIGURES ---------- */
figure { margin: 0; }

.split-image {
  position: relative;
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: clamp(360px, 60vw, 620px);
  object-fit: cover;
  filter: saturate(0.95);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.split-image:hover img {
  transform: scale(1.02);
}

.split-image figcaption,
.banner figcaption,
.viata-grid figcaption,
.gallery figcaption {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-quiet);
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.split-image figcaption span:first-child {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.cap-meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- FIGURES (CIFRE) ---------- */
.figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 880px) {
  .figures { grid-template-columns: repeat(4, 1fr); }
}

.fig {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.fig:nth-child(2) { transform: translateY(1.5rem); }
.fig:nth-child(3) { transform: translateY(0.5rem); }
.fig:nth-child(4) { transform: translateY(2rem); }

@media (max-width: 879px) {
  .fig:nth-child(n) { transform: none; }
}

.num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}

.lbl {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

.note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-quiet);
  margin-top: 0.4rem;
}

/* ---------- BANNER IMAGE ---------- */
.banner {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: clamp(280px, 45vw, 540px);
  object-fit: cover;
  filter: saturate(0.95);
}

.banner figcaption {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-quiet);
  margin-top: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- TIMELINE ---------- */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 4vw, 4rem);
}

@media (min-width: 880px) {
  .timeline-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: clamp(3rem, 6vw, 6rem);
  }
}

.timeline-map-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ---------- PRUT MAP SVG ---------- */
.prut-map {
  width: 100%;
  height: auto;
  max-width: 380px;
  display: block;
}

@media (max-width: 600px) {
  .prut-map { max-width: 320px; }
}

.prut-map .map-frame path {
  fill: none;
  stroke: var(--ink-quiet);
  stroke-width: 0.8;
  opacity: 0.5;
}

.prut-map .map-compass circle {
  fill: none;
  stroke: var(--ink-quiet);
  stroke-width: 0.6;
  opacity: 0.5;
}
.prut-map .map-compass path {
  fill: none;
  stroke: var(--ink-quiet);
  stroke-width: 0.6;
  opacity: 0.45;
}
.prut-map .compass-arrow {
  fill: var(--water);
  stroke: none;
  opacity: 0.85;
}
.prut-map .map-compass text {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.1em;
  fill: var(--ink-quiet);
}

.prut-map .map-peaks path {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.55;
}
.prut-map .peak-back { opacity: 0.3; }

.prut-map .map-region {
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: 0.32em;
  fill: var(--ink-quiet);
  opacity: 0.7;
}

.prut-map .map-country {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.42em;
  fill: var(--ink-quiet);
  opacity: 0.45;
  text-anchor: middle;
}

.prut-map .map-title {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.32em;
  fill: var(--ink-soft);
  opacity: 0.7;
}

.prut-map .river-path {
  stroke: var(--water);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1100;
  stroke-dashoffset: 1100;
  filter: drop-shadow(0 0 2px oklch(0.46 0.062 215 / 0.15));
}

.prut-map.is-drawn .river-path {
  animation: drawRiver 4.2s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

@keyframes drawRiver {
  to { stroke-dashoffset: 0; }
}

.prut-map .map-danube {
  stroke: var(--water-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.7s ease 4.0s;
}
.prut-map.is-drawn .map-danube { opacity: 0.85; }

.prut-map .map-danube-label {
  font-family: var(--sans);
  font-size: 7.5px;
  letter-spacing: 0.32em;
  fill: var(--water);
  opacity: 0;
  transition: opacity 0.6s ease 4.4s;
}
.prut-map.is-drawn .map-danube-label { opacity: 0.85; }

.prut-map .map-cities g {
  opacity: 0;
  transition: opacity 0.55s ease;
}

.prut-map .map-cities circle {
  fill: var(--bg);
  stroke: var(--water);
  stroke-width: 1.6;
}

.prut-map .map-cities text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  fill: var(--ink);
}

.prut-map .map-cities .map-km {
  font-family: var(--sans);
  font-style: normal;
  font-size: 7.5px;
  letter-spacing: 0.1em;
  fill: var(--water);
}

.prut-map.is-drawn .map-cities g:nth-child(1) { opacity: 1; transition-delay: 3.6s; }
.prut-map.is-drawn .map-cities g:nth-child(2) { opacity: 1; transition-delay: 3.9s; }
.prut-map.is-drawn .map-cities g:nth-child(3) { opacity: 1; transition-delay: 4.1s; }
.prut-map.is-drawn .map-cities g:nth-child(4) { opacity: 1; transition-delay: 4.35s; }
.prut-map.is-drawn .map-cities g:nth-child(5) { opacity: 1; transition-delay: 4.55s; }
.prut-map.is-drawn .map-cities g:nth-child(6) { opacity: 1; transition-delay: 4.75s; }
.prut-map.is-drawn .map-cities g:nth-child(7) { opacity: 1; transition-delay: 4.95s; }

@media (prefers-reduced-motion: reduce) {
  .prut-map .river-path {
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }
  .prut-map .map-danube,
  .prut-map .map-danube-label,
  .prut-map .map-cities g {
    opacity: 1 !important;
    transition: none !important;
  }
  .prut-map.is-drawn .map-danube { opacity: 0.85 !important; }
  .prut-map.is-drawn .map-danube-label { opacity: 0.85 !important; }
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  display: grid;
  gap: 2.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--water-soft) 8%, var(--water-soft) 92%, transparent);
}

@media (max-width: 720px) {
  .timeline::before { left: 4.5rem; }
}

.timeline li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 2.5rem;
  align-items: baseline;
  position: relative;
}

@media (max-width: 720px) {
  .timeline li { grid-template-columns: 3.7rem 1fr; gap: 1.4rem; }
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 7rem;
  top: 0.6em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--water);
  transform: translateX(-50%);
  z-index: 1;
}

@media (max-width: 720px) {
  .timeline li::before { left: 4.5rem; }
}

.tl-km {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--water);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tl-body {
  padding-left: 1.2rem;
  max-width: 56ch;
}

.timeline h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
}

.timeline p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- VIAȚA GRID ---------- */
.viata-grid {
  display: grid;
  gap: clamp(1.2rem, 2vw, 2rem);
  grid-template-columns: 1fr;
}

.viata-grid figure {
  position: relative;
  overflow: hidden;
}

.viata-grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.viata-grid figure:hover img {
  transform: scale(1.03);
}

.viata-tall img  { aspect-ratio: 3/4; }
.viata-wide img  { aspect-ratio: 16/10; }
.viata-small img { aspect-ratio: 1/1; }

@media (min-width: 880px) {
  .viata-grid {
    grid-template-columns: 1.05fr 1.4fr 0.95fr;
    grid-template-rows: auto auto;
  }
  .viata-tall  { grid-column: 1;     grid-row: 1 / span 2; }
  .viata-wide  { grid-column: 2 / 4; grid-row: 1; }
  .viata-text  { grid-column: 2;     grid-row: 2; }
  .viata-small { grid-column: 3;     grid-row: 2; }
  .viata-tall img { aspect-ratio: auto; height: 100%; min-height: 520px; }
  .viata-wide img { aspect-ratio: 16/9; }
  .viata-small img { aspect-ratio: 4/5; height: 100%; min-height: 240px; }
}

.viata-grid figure { display: flex; flex-direction: column; }

.viata-grid figcaption {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
}

.viata-grid figcaption em {
  font-style: italic;
  color: var(--ink-quiet);
}

.viata-text {
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.viata-text p {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.species {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
}

.species li {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- QUOTE SECTION ---------- */
.quote-section {
  padding: clamp(5rem, 11vw, 9rem) var(--gutter);
  margin: 0 calc(var(--gutter) * -1);
  position: relative;
  background:
    linear-gradient(180deg, transparent 0, var(--bg-soft) 12%, var(--bg-soft) 88%, transparent 100%);
}

.pullquote-wrap {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
  position: relative;
}

.quote-mark {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(5rem, 9vw, 7.5rem);
  font-style: normal;
  color: var(--water-soft);
  line-height: 0.8;
  margin-bottom: 0.4rem;
  user-select: none;
}

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 2rem;
  letter-spacing: -0.005em;
}

.quote-author {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.quote-author em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}

.quote-rule {
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--ink-quiet);
}

/* ---------- GALLERY ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

.gallery figure {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(0.95);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery figure:hover img {
  transform: scale(1.03);
}

.gallery figcaption {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Vary gallery item heights for editorial feel */
@media (min-width: 960px) {
  .gallery figure:nth-child(1) img { aspect-ratio: 4/5; }
  .gallery figure:nth-child(3) img { aspect-ratio: 4/5; }
  .gallery figure:nth-child(5) img { aspect-ratio: 4/5; }
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem var(--gutter) 3rem;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.footer-meta {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}

.footer-credits {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--ink-quiet);
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal img {
    opacity: 1 !important;
    transform: none !important;
    clip-path: inset(0 0 0 0) !important;
  }
  html { scroll-behavior: auto; }
}
