:root {
  --night: #070b14;
  --navy: #0c1b5c;
  --navy-mid: #16308a;
  --star: #f5c518;
  --star-deep: #d4a40c;
  --paper: #f3f5f8;
  --paper-2: #ffffff;
  --ink: #12161f;
  --soft: #4e5868;
  --line: #d5dce6;
  --mist: rgba(243, 245, 248, 0.08);
  --shadow: 0 24px 60px rgba(7, 11, 20, 0.12);
  --radius: 1.4rem;
  --nav-h: 5.25rem;
  --max: 1180px;
  --wide: 1360px;
  --display: "Syne", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", sans-serif;
}

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

html { scroll-behavior: smooth; }

html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; }

button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--star);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--star);
  color: var(--night);
  padding: 0.7rem 1rem;
  font-weight: 700;
  border-radius: 0.5rem;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-wide {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(243, 245, 248, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(7, 11, 20, 0.05);
}

.nav-inner {
  width: min(var(--wide), calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  height: 2.55rem;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.nav-links a,
.nav-drop > button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  border-radius: 999px;
  cursor: pointer;
}

.nav-links a:hover,
.nav-drop > button:hover { background: rgba(12, 27, 92, 0.06); }

.nav-drop { position: relative; }

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 14rem;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  display: none;
}

.nav-drop.is-open .nav-drop-menu,
.nav-drop:hover .nav-drop-menu { display: grid; }

.nav-drop-menu a {
  border-radius: 0.7rem;
  padding: 0.65rem 0.8rem;
}

.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  margin-left: 0.35rem;
}

.nav-cta:hover { background: var(--navy-mid) !important; }

.nav-links a[aria-current="page"] { color: var(--navy); }

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 0.35rem;
}

.lang button {
  border: 0;
  background: transparent;
  padding: 0.38rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.menu-btn {
  display: none;
  margin-left: auto;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--night);
  overflow: hidden;
}

.hero-media,
.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media video { object-position: center 35%; }

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.28) 0%, rgba(7, 11, 20, 0.15) 38%, rgba(7, 11, 20, 0.78) 100%),
    linear-gradient(90deg, rgba(7, 11, 20, 0.45) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--wide), calc(100% - 2.5rem));
  margin: 0 auto 4.5rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--star);
}

.kicker::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.hero h1 {
  margin: 0.7rem 0 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 560;
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.shine {
  background: linear-gradient(110deg, #fff 18%, var(--star) 46%, #fff 62%, var(--star) 88%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gleam 7s ease-in-out infinite;
}

@keyframes gleam {
  0%, 55% { background-position: 100% 50%; }
  75%, 100% { background-position: 0% 50%; }
}

.hero-lead {
  max-width: 38rem;
  margin: 1.35rem 0 0;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-star {
  background: var(--star);
  color: var(--night);
}

.btn-star:hover { background: #ffd54a; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover { background: var(--navy-mid); }

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-line:hover { border-color: var(--navy); color: var(--navy); }

.scroll-hint {
  position: absolute;
  right: max(1.5rem, calc((100% - var(--wide)) / 2));
  bottom: 1.6rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-hint i {
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(var(--star), transparent);
}

/* ---------- SECTIONS ---------- */
.section { padding: 6.5rem 0; }

.section-tight { padding: 5rem 0; }

.section-dark {
  background: var(--night);
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.section-dark .eyebrow { color: var(--star); }

h2, .h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 720;
}

.lede {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: var(--soft);
  font-size: 1.12rem;
}

.section-dark .lede { color: rgba(255, 255, 255, 0.72); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.mission-card {
  padding: 2.2rem 2.2rem 2.4rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mission-card + .mission-card { margin-top: 1.1rem; }

.mission-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 1.35rem;
}

.mission-card p { margin: 0; color: var(--soft); }

.quote {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 520;
}

/* ---------- DOMAINS ---------- */
.domain-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.1rem;
  margin-top: 2.6rem;
}

.domain {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.5rem;
  min-height: 28rem;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.domain img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.domain:hover img { transform: scale(1.05); }

.domain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.05) 20%, rgba(7, 11, 20, 0.82) 100%);
}

.domain-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 1.6rem 1.6rem 1.7rem;
}

.domain-body h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.domain-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
}

.domain-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--star);
}

.domain:nth-child(1) { grid-row: span 2; min-height: 38rem; }
.domain:nth-child(3) { min-height: 22rem; }
.domain:nth-child(4) { min-height: 22rem; }

/* ---------- PEOPLE ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2.4rem;
}

.person {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.person-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #dfe5ee;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.person-body { padding: 1.05rem 1.15rem 1.2rem; }

.person h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.person p {
  margin: 0.25rem 0 0;
  color: var(--soft);
  font-size: 0.92rem;
}

/* ---------- AMBASSADOR BAND ---------- */
.amb-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  background: #0b1220;
  border-radius: 1.8rem;
  overflow: hidden;
  min-height: 34rem;
}

.amb-split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 24rem;
}

.amb-copy {
  padding: 3rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.amb-copy h3 {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.amb-copy .role {
  color: var(--star);
  font-weight: 700;
  margin: 0.35rem 0 1rem;
}

.amb-copy p { color: rgba(255, 255, 255, 0.78); margin: 0; }

/* ---------- PAGE HERO ---------- */
.page-hero {
  position: relative;
  min-height: 58svh;
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--night);
}

.page-hero img,
.page-hero .cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.page-hero .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.2), rgba(7, 11, 20, 0.78));
}

.page-hero .wrap { position: relative; z-index: 1; padding-bottom: 3.4rem; }

.page-hero h1 {
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.prose {
  max-width: 42rem;
}

.prose p { margin: 0 0 1.1rem; color: var(--soft); font-size: 1.08rem; }

.prose h2 {
  margin: 2.2rem 0 0.8rem;
  font-size: 1.6rem;
}

.links {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.link-card {
  display: block;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-decoration: none;
  color: var(--ink);
}

.link-card:hover { border-color: var(--navy); }

.link-card strong { display: block; font-family: var(--display); }

.link-card span { color: var(--soft); font-size: 0.9rem; word-break: break-word; }

.subsidies {
  display: grid;
  gap: 0.9rem;
  margin: 1.4rem 0 0;
}

.subsidies article {
  padding: 1.15rem 1.2rem;
  background: #fff;
  border-left: 4px solid var(--star);
  border-radius: 0 1rem 1rem 0;
}

.subsidies h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.subsidies p { margin: 0; color: var(--soft); }

/* ---------- BIO ---------- */
.person:hover .person-photo img { transform: scale(1.03); }
.person-photo img { transition: transform 500ms ease; }

.bio {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

.bio:nth-of-type(even) { grid-template-columns: 1.15fr 0.85fr; }
.bio:nth-of-type(even) img { order: 2; }

.bio:last-child { border-bottom: 0; }

.bio img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 1.4rem;
  background: #dfe5ee;
}

.bio.landscape img { aspect-ratio: 5 / 4; object-position: center; }

.bio h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.bio .role { color: var(--navy); font-weight: 700; margin: 0 0 1rem; }

.bio p { color: var(--soft); margin: 0 0 0.9rem; }

/* ---------- FORM ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: start;
}

.form {
  display: grid;
  gap: 0.9rem;
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 650;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.8rem 0.9rem;
  background: #fbfcfd;
}

input:focus, textarea:focus {
  outline: 3px solid rgba(245, 197, 24, 0.45);
  border-color: var(--star);
}

textarea { min-height: 9rem; resize: vertical; }

.form-note { color: var(--soft); font-size: 0.9rem; margin: 0; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--night);
  color: #fff;
  padding: 4rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
}

.footer .brand img { height: 2.7rem; }

.footer p, .footer a { color: rgba(255, 255, 255, 0.72); }

.footer a { text-decoration: none; }

.footer a:hover { color: var(--star); }

.footer h3 {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--star);
}

.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }

.iban {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.legal {
  margin-top: 2.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.86rem;
}

.support-logo {
  display: inline-flex;
  align-items: center;
  padding: 1.4rem 1.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
}

.support-logo img { height: 2.4rem; width: auto; }

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  padding: 2.6rem;
  background: linear-gradient(135deg, var(--navy), #1a2f8f 55%, #0a1438);
  color: #fff;
  border-radius: 1.6rem;
}

.cta-band h2 { max-width: 16ch; }

html[lang="en"] [data-et] { display: none !important; }
html[lang="et"] [data-en] { display: none !important; }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 700ms ease forwards;
}

.reveal-2 { animation-delay: 90ms; }
.reveal-3 { animation-delay: 180ms; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shine { animation: none; color: var(--star); background: none; -webkit-background-clip: unset; background-clip: unset; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .domain img,
  .person-photo img { transition: none; }
  .person:hover .person-photo img { transform: none; }
}

@media (max-width: 980px) {
  .split,
  .domain-grid,
  .people-grid,
  .amb-split,
  .bio,
  .bio:nth-of-type(even),
  .form-grid,
  .footer-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .bio:nth-of-type(even) img { order: 0; }

  .cta-band { align-items: start; flex-direction: column; }

  .domain,
  .domain:nth-child(1),
  .domain:nth-child(3),
  .domain:nth-child(4) { min-height: 22rem; }

  .people-grid { grid-template-columns: 1fr 1fr; }

  .menu-btn { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 1rem 1.1rem;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }

  .nav.is-open .nav-links { display: flex; }

  .nav-drop-menu {
    position: static;
    display: grid;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 0.6rem;
  }

  .hero-content { margin-bottom: 3rem; }
  .section { padding: 4.2rem 0; }
}

@media (max-width: 640px) {
  .people-grid { grid-template-columns: 1fr; }
  .legal { flex-direction: column; }
  .hero h1 { font-size: clamp(2.5rem, 13vw, 3.6rem); }
}
