/* =========================================================
   Glory2Ukraine — Ukraine Brand Report
   Production stylesheet. Consolidated from the previously
   approved design draft into one clean file — no override
   layering, only the final, already-approved values. Shared
   by all three language pages (/, /ua/, /de/) via a
   root-relative <link>.
   ========================================================= */

:root {
  --bg: #f9f7f2;
  --bg-secondary: #f1ece1;
  --surface: #ffffff;

  --blue: #0057B7;
  --blue-deep: #00206b;
  --yellow: #FFD700;
  --yellow-deep: #f0c400;
  --gold-ink: #8a6a00;

  --text: #14181f;
  --muted: #545e6e;
  --line: #dfe4ee;

  --font-serif: "Playfair Display", "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --max-width: 1180px;
  --max-width-narrow: 860px;
  --edge-padding: clamp(1.25rem, 5vw, 4rem);
  --header-height: 76px;

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

/* ---------- Reset ---------- */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

/* Visible only when focused via keyboard, or used to give a landmark
   section an accessible name without a second, redundant visible
   heading (the Hero's own h1 already gives that section a visible
   title). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--yellow);
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(247, 249, 252, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.logo-part--yellow { color: var(--gold-ink); }
.logo-part--blue { color: var(--blue); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.lang-btn {
  padding: 0.35rem 0.15rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn[aria-current="page"] {
  color: var(--gold-ink);
}

.lang-btn:focus-visible,
.skip-link:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.lang-sep {
  color: rgba(170, 180, 195, 0.35);
}

/* ---------- Hero ---------- */

.hero-report {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: clamp(96px, 12vw, 200px);
  color: #fff;
}

/* Flat fallback fill — same blue as .hero-wave__base, so the sliver it
   can momentarily reveal during the wave's drift animation is an exact
   color match, never a visible seam. */
.hero-report__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--blue);
}

/* The Hero's entire blue/yellow background: one wide SVG (rect + one
   gentle Bezier wave), covering the section's full height. The curve
   sits within ±6% of vertical center, so the color boundary stays close
   to 50% and only drifts a little — see the keyframes below. Width is
   140vw (20vw past the viewport on each side) so the slow drift never
   reveals an edge; overflow:hidden on .hero-report clips the excess. */
.hero-wave {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -20vw;
  width: 140vw;
  z-index: 2;
  pointer-events: none;
  animation: heroWaveDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-wave__base { fill: var(--blue); }
.hero-wave__crest { fill: var(--yellow); }

@keyframes heroWaveDrift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(1.6%, 8px); }
}

@media (max-width: 640px) {
  .hero-wave { animation-duration: 26s; }
  @keyframes heroWaveDrift {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(1%, 5px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wave { animation: none; transform: none; }
}

/* Emblem — transparent positioning frame (no background/border/fill of
   any kind, so glory4.png sits directly on the blue with nothing behind
   it). Purely positioning + size + a gentle float; the symbol itself
   (glory4.png) is a finished, pre-rendered gold 3D coat of arms and is
   shown as-is, unmodified. */
.hero-emblem-frame {
  position: absolute;
  top: 6%;
  right: 4%;
  z-index: 3;
  width: clamp(141px, 21vw, 405px);
  background: transparent;
  pointer-events: none;
  animation: heroEmblemFloat 10s ease-in-out infinite alternate;
}

@keyframes heroEmblemFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@media (max-width: 640px) {
  .hero-emblem-frame { width: clamp(79px, 17.6vw, 176px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-emblem-frame { animation: none; }
}

/* glory4.png itself: no recoloring, no bevel/relief simulation — it's
   already a finished 3D-rendered asset. Only a very light neutral
   drop-shadow to seat it against the flat blue background (not a glow:
   dark, tight, no color tint). */
.hero-report__emblem {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.hero-report__inner {
  position: relative;
  z-index: 5;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  text-align: center;
  padding: clamp(56px, 6vw, 72px) var(--edge-padding) 0;
}

.hero-report__text {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2vw, 32px);
}

.hero-report__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero-report__subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-report__cover {
  position: relative;
  z-index: 4;
  margin: 0 auto;
  margin-top: clamp(48px, 5vw, 64px);
  width: 92vw;
  max-width: 90vw;
  text-align: center;
}

@media (min-width: 641px) and (max-width: 899px) {
  .hero-report__cover { width: 75vw; max-width: 680px; }
}

@media (min-width: 900px) {
  .hero-report__cover { width: 620px; max-width: min(680px, 90vw); }
}

.hero-report__cover-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--blue-deep);
  border: 1px solid rgba(0, 32, 107, 0.3);
}

.btn--ghost-dark:hover {
  border-color: var(--blue-deep);
  background: rgba(0, 87, 183, 0.06);
  transform: translateY(-2px);
}

/* ---------- Sections (shared) ---------- */

.section {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 9vw, 7rem) var(--edge-padding);
}

.section--muted {
  background: var(--bg-secondary);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: var(--max-width-narrow);
}

.section__inner--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.section__head {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section__heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.section__subheading {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Report-detail intro: left-aligned lede instead of the default centered
   section head. */
#report-detail {
  border-top: 1px solid rgba(240, 196, 0, 0.35);
}

#report-detail .section__head {
  text-align: left;
  margin-bottom: 1.5rem;
}

#report-detail .section__subheading {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--blue-deep);
  font-weight: 600;
}

.section__prose {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.section__inner--center .section__prose {
  margin-top: 0;
  text-align: center;
}

.section__note {
  color: var(--muted);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---------- Report intro (stats / quote) ---------- */

.report-lede {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: left;
}

.report-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0;
}

@media (min-width: 600px) {
  .report-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

.report-stat {
  padding: 2rem 1.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--yellow-deep);
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 40, 110, 0.05);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.report-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 40, 110, 0.1);
}

.report-stat__num {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--blue-deep);
  margin-bottom: 0.6rem;
}

.report-stat__label {
  font-family: var(--font-sans);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .report-stat { padding: 1.5rem 1.35rem; }
  .report-stat__num { font-size: clamp(1.7rem, 7vw, 2.1rem); }
}

/* Plain editorial pull-quote: centered, larger italic Playfair, framed
   by two thin navy hairlines instead of a filled color box. */
.pull-quote {
  margin: 3rem auto;
  padding: 1.75rem 1rem;
  max-width: 700px;
  border-top: 1px solid rgba(0, 32, 107, 0.18);
  border-bottom: 1px solid rgba(0, 32, 107, 0.18);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--blue-deep);
  text-align: center;
}

/* ---------- Comparison ("theme") cards ---------- */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 3rem;
}

.theme-card {
  padding: 2rem 1.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-deep);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.theme-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 32, 107, 0.08);
}

.theme-card__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--blue-deep);
}

.theme-card__body {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ---------- Full report body ---------- */

.report-body {
  max-width: 860px;
  margin: 0 auto;
}

.report-h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  color: var(--blue-deep);
  margin: 4.5rem 0 1.1rem;
}

.report-h2:first-of-type {
  margin-top: 0;
}

.report-h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--blue-deep);
  margin: 2.5rem 0 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(0, 32, 107, 0.2);
}

.report-p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
  margin-bottom: 1.15rem;
}

.report-p strong {
  color: var(--text);
}

.info-box {
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  padding: 1.75rem 2rem;
  margin: 2.75rem 0;
  background: linear-gradient(180deg, #fbfcff 0%, var(--bg-secondary) 100%);
}

.info-box__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.info-box p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
  margin: 0;
}

.swot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin: 1.5rem 0 2.5rem;
}

@media (max-width: 640px) {
  .swot-grid { grid-template-columns: 1fr; }
}

.swot-card {
  padding: 1.85rem 1.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-top: 4px solid var(--line);
}

@media (max-width: 480px) {
  .swot-card { padding: 1.5rem 1.35rem; }
}

.swot-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.swot-card ul { display: flex; flex-direction: column; gap: 0.45rem; }
.swot-card li { color: var(--muted); font-size: 0.9rem; line-height: 1.5; padding-left: 0.9rem; position: relative; }
.swot-card li::before { content: "\2013"; position: absolute; left: 0; opacity: 0.5; }

/* Ukrainian-flag-adjacent palette, no red anywhere. */
.swot-card--strength { border-top-color: #1a7a3d; } .swot-card--strength h4 { color: #1a7a3d; }
.swot-card--weak { border-top-color: var(--gold-ink); } .swot-card--weak h4 { color: var(--gold-ink); }
.swot-card--opp { border-top-color: var(--blue); } .swot-card--opp h4 { color: var(--blue); }
.swot-card--threat { border-top-color: var(--blue-deep); } .swot-card--threat h4 { color: var(--blue-deep); }

.report-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
}

.report-list li {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
  padding-left: 1.1rem;
  position: relative;
}

.report-list li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--blue);
  opacity: 0.7;
}

.bib-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.bib-list li {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  padding-left: 0.9rem;
  border-left: 2px solid var(--line);
}

.report-lang-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.75;
}

/* Sources disclosure — discreet, collapsed by default. Native
   <details>/<summary>, no JS. */
.report-sources {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.report-sources__summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--blue-deep);
}

.report-sources__summary::-webkit-details-marker {
  display: none;
}

.report-sources__cta {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--gold-ink);
  white-space: nowrap;
}

.report-sources__cta-open { display: none; }
details[open] .report-sources__cta-open { display: inline; }
details[open] .report-sources__cta-closed { display: none; }

.report-sources__content {
  margin-top: 1.25rem;
}

.report-sources__content .report-lang-note {
  margin-top: 1.25rem;
}

/* ---------- Donation ---------- */

.donation-pl {
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.donation-pl .section__prose {
  text-align: left;
}

.donation-pl > p.section__prose:first-child {
  text-align: center;
}

.donation-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: linear-gradient(180deg, #fbfcff 0%, var(--bg-secondary) 100%);
}

@media (max-width: 560px) {
  .donation-box { flex-direction: column; align-items: center; }
  .donation-box__qr { align-self: center; }
  .donation-box__details { width: 100%; }
}

.donation-box__qr {
  flex: 0 0 auto;
  background: #fff;
  padding: 10px;
  border: 1px solid var(--line);
}

.donation-box__qr img {
  display: block;
  width: 140px;
  height: 140px;
}

.donation-box__details {
  flex: 1 1 240px;
  min-width: 0;
}

.donation-box__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.donation-box__meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.donation-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.donation-address code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  word-break: break-all;
}

.donation-copy-btn {
  border: 1px solid rgba(0, 32, 107, 0.3);
  background: transparent;
  color: var(--blue-deep);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.donation-copy-btn:hover {
  border-color: var(--blue-deep);
  background: rgba(0, 87, 183, 0.06);
}

.donation-copy-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.donation-warning {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  border-left: 3px solid var(--yellow-deep);
  padding-left: 0.75rem;
  margin: 0 0 1.25rem;
}

.donation-legal-note {
  font-size: 0.82rem;
  opacity: 0.65;
  margin-top: 1.75rem;
}

/* ---------- Interactive chrome ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--yellow) 100%);
  z-index: 50;
  transition: width 0.1s linear;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  width: 44px;
  height: 44px;
  background: var(--blue-deep);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 32, 107, 0.3);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s var(--ease);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--blue);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 215, 0, 0.35);
  padding: 3.5rem var(--edge-padding);
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.85);
}

.site-footer .logo-part--yellow { color: var(--yellow); }
.site-footer .logo-part--blue { color: #fff; }

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

.site-footer__meta {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__meta a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer__meta a:hover,
.site-footer__meta a:focus-visible {
  color: var(--yellow);
}

.site-footer__credit {
  width: auto;
  margin-top: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

/* ---------- Scroll reveal ---------- */
/* Default: everything visible (safe no-JS fallback). Only once main.js
   confirms IntersectionObserver support does it hide-then-show. */

.has-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.has-reveal .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  :root { --header-height: 64px; }
  .site-header__inner { padding: 0 1.1rem; }
  .logo { font-size: 0.85rem; }
  .lang-switch { font-size: 0.78rem; }
  .btn { width: 100%; }
}
