/* =========================================================================
   FPRM — Fundația pentru o Românie Modernă
   Design system & styles
   Paletă inspirată din emblemă: bleumarin instituțional + auriu heraldic
   ========================================================================= */

:root {
  /* Brand */
  --navy-900: #081a33;
  --navy-800: #0a1f3d;
  --navy-700: #0d2a52;
  --navy-600: #123a6e;
  --blue-500: #0b4da2;
  --blue-400: #2066c4;

  --gold-600: #a67c13;
  --gold-500: #c9a227;
  --gold-400: #e0b84c;
  --gold-200: #f1dd9e;

  --ink: #16202e;
  --slate: #4a5666;
  --muted: #7a8699;
  --line: #e4e8ef;
  --mist: #f5f7fa;
  --paper: #ffffff;

  --ro-blue: #0b4da2;
  --ro-yellow: #f2c200;
  --ro-red: #c8102e;

  /* Typography */
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Metrics */
  --maxw: 1440px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 10px rgba(10, 31, 61, 0.06);
  --shadow-md: 0 12px 34px rgba(10, 31, 61, 0.12);
  --shadow-lg: 0 28px 70px rgba(10, 31, 61, 0.22);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-500); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-600); }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--navy-800); letter-spacing: -0.015em; }
::selection { background: var(--gold-200); color: var(--navy-900); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy-800); color: #dce4f0; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold-500); display: inline-block; }
.section--navy .eyebrow { color: var(--gold-400); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-head p { margin-top: 18px; color: var(--slate); font-size: 1.1rem; }
.section--navy .section-head p { color: #aebbd0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  font-family: var(--font-sans); cursor: pointer; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-900); box-shadow: 0 8px 22px rgba(166,124,19,.32); }
.btn--gold:hover { color: var(--navy-900); box-shadow: 0 14px 32px rgba(166,124,19,.42); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-200); }
.btn--outline { background: transparent; border-color: var(--line); color: var(--navy-800); }
.btn--outline:hover { border-color: var(--gold-500); color: var(--gold-600); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--navy-800); font-weight: 500; font-size: .96rem; padding: 10px 16px;
  border-radius: 8px; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-500); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: .3s var(--ease); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #e7edf7; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(32,102,196,.45), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(201,162,39,.18), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.5) 1px, transparent 1.4px);
  background-size: 34px 34px; opacity: .04;
}
.hero-inner {
  position: relative; z-index: 2; max-width: 880px;
  padding-block: clamp(90px, 13vw, 180px);
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.04; }
.hero h1 .accent { color: var(--gold-400); font-style: italic; }
.hero-lead { margin-top: 24px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #bccbe3; max-width: 36ch; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 44px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero-trust .ht { }
.hero-trust .num { font-family: var(--font-display); font-size: 2rem; color: var(--gold-400); font-weight: 600; line-height: 1; }
.hero-trust .lbl { font-size: .82rem; color: #9fb0ca; margin-top: 6px; letter-spacing: .02em; }
/* Emblema ca watermark mare de fundal, cu transparență, peste care trece textul */
.hero-watermark {
  position: absolute; z-index: 1; top: 50%; right: -5%; transform: translateY(-50%);
  width: min(82vw, 900px); aspect-ratio: 1; opacity: .16; pointer-events: none; user-select: none;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 50%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 50%, #000 50%, transparent 75%);
}
/* varianta pentru pagini interioare (opțional) */
.hero-emblem { position: relative; display: grid; place-items: center; }
.hero-emblem img { width: min(100%, 420px); filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); }
.hero-emblem .ring {
  position: absolute; width: min(108%, 470px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(224,184,76,.25); box-shadow: inset 0 0 80px rgba(32,102,196,.25);
}
.hero-wave { position: relative; z-index: 2; display: block; width: 100%; margin-bottom: -6px; }

/* ---------- Trust bar ---------- */
.marquee-strip { background: var(--navy-900); color: #cfdaec; border-top: 1px solid rgba(255,255,255,.06); }
.strip-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; padding-block: 22px; font-size: .92rem; }
.strip-inner span { display: inline-flex; align-items: center; gap: 10px; color: #aebbd0; }
.strip-inner strong { color: var(--gold-400); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; overflow: hidden; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-200); }
.card .ic {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); color: var(--gold-400);
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .98rem; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: .9rem; }

/* Project card variant with top bar */
.card--project::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold-500), var(--blue-500)); opacity: 0; transition: opacity .3s; }
.card--project:hover::before { opacity: 1; }

/* ---------- Values / mission split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; background: var(--navy-800); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { margin-top: 24px; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .chk { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900); display: grid; place-items: center; margin-top: 2px; }
.feature-list .chk svg { width: 14px; height: 14px; }
.feature-list b { color: var(--navy-800); }
.feature-list span.txt { color: var(--slate); font-size: .98rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { padding: 24px 16px; }
.stat .n { font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 600; color: var(--gold-400); line-height: 1; }
.stat .l { margin-top: 10px; color: #b8c6dd; font-size: .96rem; }
.section--navy .stat .l { color: #aebbd0; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 820px; margin-inline: auto; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold-400), var(--line)); }
.tl-item { position: relative; padding-left: 52px; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .dot { position: absolute; left: 6px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 4px solid var(--gold-500); box-shadow: 0 0 0 4px rgba(201,162,39,.12); }
.tl-item .yr { font-family: var(--font-display); color: var(--blue-500); font-weight: 600; font-size: 1.15rem; }
.tl-item h4 { color: var(--navy-800); margin: 4px 0 6px; font-size: 1.15rem; }
.tl-item p { color: var(--slate); font-size: .98rem; }

/* ---------- Timeline v2 (istoric aspectuos) ---------- */
.tl2 { position: relative; max-width: 820px; margin-inline: auto; }
.tl2::before {
  content: ""; position: absolute; left: 31px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-400), var(--blue-500) 55%, var(--navy-700));
}
.tl2-item { position: relative; padding-left: 92px; padding-bottom: 26px; }
.tl2-item:last-child { padding-bottom: 0; }
.tl2-year {
  position: absolute; left: 0; top: 0; width: 66px; height: 66px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); color: var(--gold-200);
  display: grid; place-items: center; text-align: center; line-height: 1.05;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  border: 3px solid #fff; box-shadow: 0 8px 20px rgba(10,31,61,.28), 0 0 0 1px var(--line);
  z-index: 2;
}
.tl2-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 24px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative;
}
.tl2-card::before {
  content: ""; position: absolute; left: -9px; top: 26px; width: 16px; height: 16px;
  background: var(--paper); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.tl2-card:hover { transform: translateX(5px); box-shadow: var(--shadow-md); border-color: var(--gold-200); }
.tl2-card .mo { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 4px; }
.tl2-card h4 { color: var(--navy-800); font-size: 1.18rem; margin-bottom: 7px; }
.tl2-card p { color: var(--slate); font-size: .97rem; margin: 0; }
@media (max-width: 560px) {
  .tl2-item { padding-left: 74px; }
  .tl2-year { width: 56px; height: 56px; font-size: .82rem; }
  .tl2::before { left: 26px; }
  .tl2-card { padding: 16px 18px; }
}

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.person { text-align: center; }
.person .avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); color: var(--gold-200);
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; box-shadow: var(--shadow-sm);
  border: 3px solid #fff; outline: 1px solid var(--line);
}
.person h4 { font-size: 1.05rem; color: var(--navy-800); }
.person .role { color: var(--muted); font-size: .9rem; margin-top: 2px; }

/* ---------- Press / news ---------- */
.news-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); height: 100%; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-card .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); position: relative; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--navy-800); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.news-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card .date { font-size: .82rem; color: var(--muted); }
.news-card h3 { font-size: 1.16rem; margin: 8px 0 10px; }
.news-card p { color: var(--slate); font-size: .95rem; flex: 1; }
.news-card .more { margin-top: 14px; font-weight: 600; font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  border-radius: 22px; padding: clamp(40px, 6vw, 72px); text-align: center; color: #fff;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.5) 1px, transparent 1.4px); background-size: 30px 30px; opacity: .06; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); position: relative; }
.cta-band p { color: #cdd9ee; max-width: 56ch; margin: 16px auto 32px; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; display: block; background: var(--navy-700); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.08); }
.gallery .tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 60px); }
.contact-info .ci-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci-item:last-child { border-bottom: 0; }
.contact-info .ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 11px; background: var(--mist); color: var(--blue-500); display: grid; place-items: center; }
.contact-info .ci-item .lbl { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-info .ci-item .val { font-weight: 600; color: var(--navy-800); }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy-800); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit;
  font-size: .98rem; color: var(--ink); background: var(--mist); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-400); background: #fff; box-shadow: 0 0 0 4px rgba(32,102,196,.1); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background:
    radial-gradient(900px 500px at 85% -20%, rgba(32,102,196,.4), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff; padding-block: clamp(104px, 13vw, 178px); position: relative; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.5) 1px, transparent 1.4px); background-size: 32px 32px; opacity: .04; }
/* emblema watermark identică cu cea de pe Acasă (vezi .hero-watermark) */
.page-hero .inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.page-hero p { color: #bccbe3; margin-top: 18px; font-size: 1.12rem; }
.breadcrumb { font-size: .85rem; color: #90a2c0; margin-bottom: 20px; }
.breadcrumb a { color: var(--gold-400); }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose p { color: var(--slate); margin-bottom: 18px; }
.prose h3 { color: var(--navy-800); margin: 32px 0 12px; font-size: 1.5rem; }
.prose blockquote { border-left: 4px solid var(--gold-500); padding: 6px 0 6px 24px; margin: 26px 0; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--navy-700); }
.prose blockquote cite { display: block; font-family: var(--font-sans); font-style: normal; font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb0ca; padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { width: 52px; }
.footer-brand .ft-name { font-family: var(--font-display); font-size: 1.5rem; color: #fff; font-weight: 600; letter-spacing: .02em; }
.footer-brand .ft-sub { font-size: .76rem; color: var(--gold-400); letter-spacing: .08em; text-transform: uppercase; }
.site-footer p { font-size: .94rem; color: #8ea0bb; max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: #9fb0ca; font-size: .95rem; }
.footer-col a:hover { color: var(--gold-400); }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #cfdaec; transition: background .25s, transform .25s; }
.socials a:hover { background: var(--gold-500); color: var(--navy-900); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: #7585a0; }
.footer-flag { display: inline-flex; height: 14px; width: 22px; border-radius: 3px; overflow: hidden; vertical-align: middle; margin-left: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.footer-flag i { flex: 1; }
.footer-flag .b { background: var(--ro-blue); } .footer-flag .y { background: var(--ro-yellow); } .footer-flag .r { background: var(--ro-red); }

/* ---------- Reveal on scroll ----------
   Progressive enhancement: content is fully visible by default.
   Only when JS is active (html.js) do we hide-then-reveal on scroll,
   so the page is never blank if JS is disabled or fails. */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal:not(.in) { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- Mobile nav & responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { text-align: center; max-width: 100%; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-watermark { right: 50%; transform: translate(50%, -50%); width: min(135vw, 580px); opacity: .10; }
  .split { grid-template-columns: 1fr; }
  .split .media { order: -1; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .35s var(--ease); z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .people, .stats, .footer-grid, .gallery { grid-template-columns: 1fr 1fr; }
  .hero-trust { gap: 22px; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
