/* ============================================================================
   Baltic Foundation for Future Education — styles.css
   Palette: deep navy #1B2A4A + warm amber #E8A33D
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  --navy-900: #101A2E;
  --navy-800: #16233D;
  --navy:     #1B2A4A;
  --navy-700: #24365C;
  --navy-600: #35497A;

  --amber:      #E8A33D;
  --amber-soft: #F6D9A8;
  --amber-deep: #A76D14;   /* AA-contrast amber for text on white */
  --cream:      #FBF3E7;   /* tinted background for result/stat blocks */
  --cream-line: #F0E0C4;

  --ink:    #16202F;
  --body:   #3D4759;
  --muted:  #6B7688;
  --line:   #E2E7EF;
  --line-2: #EEF1F6;

  --bg:      #FFFFFF;
  --bg-alt:  #F6F8FB;
  --bg-tint: #FAFBFD;

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(16, 26, 46, .04), 0 2px 8px rgba(16, 26, 46, .04);
  --shadow:    0 2px 4px rgba(16, 26, 46, .04), 0 12px 28px rgba(16, 26, 46, .07);
  --shadow-lg: 0 4px 8px rgba(16, 26, 46, .05), 0 24px 56px rgba(16, 26, 46, .12);

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 116px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;          /* sticky header offset for anchors */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 650; letter-spacing: -0.02em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--navy-700); text-decoration-color: rgba(53, 73, 122, .35); text-underline-offset: 3px; }
a:hover { color: var(--navy); text-decoration-color: currentColor; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* --- Layout helpers -------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase;
  color: var(--amber-deep); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--amber); border-radius: 2px; flex: none;
}
.section__head--center .eyebrow::before { display: none; }

h1 { font-size: clamp(1.95rem, 5.2vw, 3.65rem); font-weight: 700; letter-spacing: -0.033em; overflow-wrap: break-word; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.012em; }
.lead { font-size: clamp(1.03rem, 1.5vw, 1.16rem); color: var(--body); }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: .97rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--amber); color: var(--navy-900); box-shadow: 0 6px 18px rgba(232, 163, 61, .3); }
.btn--primary:hover { background: #F0B054; color: var(--navy-900); box-shadow: 0 10px 26px rgba(232, 163, 61, .38); }

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

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; box-shadow: var(--shadow); }

.btn--sm { padding: 10px 20px; font-size: .9rem; }

/* --- Header ---------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 20px rgba(16, 26, 46, .06); }
.header__inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 13px; text-decoration: none; margin-right: auto; flex: none; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.logo__mark::after {
  content: ""; position: absolute; inset: auto -6px -8px auto;
  width: 22px; height: 22px; border-radius: 50%; background: var(--amber); opacity: .9;
}
.logo__mark span { position: relative; z-index: 1; color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: -0.03em; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-weight: 680; font-size: .97rem; color: var(--ink); letter-spacing: -0.015em; }
.logo__sub { font-size: .73rem; color: var(--muted); letter-spacing: .04em; }

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 13px; }
.nav a {
  display: block; padding: 9px 2px; border-radius: 8px;
  font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  font-weight: 550; color: var(--body); text-decoration: none;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav a:hover { color: var(--navy); background: var(--bg-alt); }

.header__actions { display: flex; align-items: center; gap: 12px; flex: none; }

/* Language switch */
.lang { display: inline-flex; padding: 3px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; }
.lang button {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: .81rem; font-weight: 650; letter-spacing: .04em; color: var(--muted);
  padding: 6px 13px; border-radius: 999px; transition: all .2s var(--ease);
}
.lang button:hover { color: var(--navy); }
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Burger */
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 11px; cursor: pointer; padding: 0;
  place-items: center; flex: none;
}
.burger span { display: block; width: 18px; height: 1.8px; background: var(--ink); border-radius: 2px; position: relative; transition: all .25s var(--ease); }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.8px; background: var(--ink); border-radius: 2px;
  transition: all .25s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile panel */
.mobile-nav {
  display: none; position: fixed; inset: 76px 0 0; z-index: 99;
  background: #fff; padding: 24px var(--gutter) 40px; overflow-y: auto;
}
.mobile-nav.is-open { display: block; animation: fadeUp .28s var(--ease); }
.mobile-nav a {
  display: block; padding: 15px 4px; font-size: 1.06rem; font-weight: 600;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2);
}
.mobile-nav a:hover { color: var(--navy-600); }
.mobile-nav .btn { width: 100%; margin-top: 26px; }

/* --- Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(152deg, var(--navy-900) 0%, var(--navy) 46%, var(--navy-700) 100%);
  padding-block: clamp(70px, 10vw, 118px) clamp(76px, 10vw, 122px);
}
.hero::before {           /* soft amber glow */
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(232, 163, 61, .22), transparent 66%);
  pointer-events: none;
}
.hero::after {            /* fine grid texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 6vw, 72px); align-items: center;
}
.hero .eyebrow { color: var(--amber-soft); }
.hero .eyebrow::before { background: var(--amber); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero__tagline {
  font-size: clamp(1.14rem, 2.1vw, 1.45rem); font-weight: 550; color: var(--amber);
  letter-spacing: -0.015em; margin: 0 0 22px;
}
.hero__lead { color: rgba(255, 255, 255, .84); font-size: clamp(1.02rem, 1.5vw, 1.13rem); max-width: 56ch; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Abstract composition instead of stock photography */
.hero__art { position: relative; aspect-ratio: 1 / 1; max-width: 420px; margin-inline: auto; width: 100%; }
.hero__art i { position: absolute; display: block; border-radius: 50%; }
.hero__art .ring-1 { inset: 0; border: 1.5px solid rgba(255,255,255,.16); }
.hero__art .ring-2 { inset: 13%; border: 1.5px solid rgba(255,255,255,.12); }
.hero__art .ring-3 { inset: 26%; border: 1.5px solid rgba(232,163,61,.34); }
.hero__art .arc {
  inset: 0; border: 3px solid transparent; border-top-color: var(--amber); border-right-color: var(--amber);
  animation: spin 26s linear infinite;
}
.hero__art .core {
  inset: 39%; background: linear-gradient(145deg, rgba(232,163,61,.95), rgba(232,163,61,.55));
  box-shadow: 0 0 60px rgba(232,163,61,.4);
}
.hero__art .dot { width: 13px; height: 13px; background: #fff; opacity: .85; }
.hero__art .dot-1 { top: -6px; left: 50%; margin-left: -6px; }
.hero__art .dot-2 { bottom: 12%; right: 4%; background: var(--amber); }
.hero__art .dot-3 { top: 30%; left: -6px; width: 9px; height: 9px; }

/* --- Pillars strip --------------------------------------------------------- */
.pillars {
  position: relative; z-index: 2; margin-top: -46px;
}
.pillars__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.pillar { background: #fff; padding: 26px 28px; }
.pillar h3 { font-size: 1.02rem; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.pillar h3::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.pillar p { font-size: .93rem; color: var(--muted); }

/* --- Mission --------------------------------------------------------------- */
.mission__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.mission__body p { font-size: 1.05rem; }
.mission__body p + p { color: var(--muted); font-size: 1rem; }

/* --- Direction cards ------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 26px; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-soft));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #D6DDE9; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 50px; height: 50px; border-radius: 13px; flex: none; margin-bottom: 20px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #EEF2F8, #E4EAF3);
  color: var(--navy-700);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.card:hover .card__icon { background: linear-gradient(145deg, var(--navy-700), var(--navy-900)); color: var(--amber); }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { color: var(--ink); margin-bottom: 8px; }
.card p { font-size: .94rem; color: var(--muted); margin-bottom: 20px; }
.card__more {
  margin-top: auto; font-size: .88rem; font-weight: 650; color: var(--navy-700);
  display: inline-flex; align-items: center; gap: 7px;
}
.card__more svg { width: 15px; height: 15px; transition: transform .28s var(--ease); }
.card:hover .card__more svg { transform: translateX(4px); }

/* Card media: photo at the top, 16:9, bled out to the card's own edges via
   negative margins so .card's padding/spacing rule above stays untouched. */
.card__media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  margin: -30px -28px 20px;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }
.card__media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 64%;
  background: linear-gradient(to top, rgba(16, 26, 46, .82), rgba(16, 26, 46, 0));
  pointer-events: none;
}
.card__media-overlay { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 18px 20px 16px; }
.card__media-overlay .card__icon { margin-bottom: 10px; }
.card__media-overlay h3 { color: #fff; margin-bottom: 0; }

/* --- Detail sections ------------------------------------------------------- */
.detail__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(34px, 6vw, 76px); align-items: start; }
.detail__head { position: sticky; top: 112px; }
.detail__media { position: relative; margin-bottom: 24px; }
.detail__media::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: 0;
  background: linear-gradient(145deg, var(--amber), var(--amber-soft));
  border-radius: var(--radius);
}
.detail__media img {
  position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 16 / 9;
  object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.detail__list { display: grid; gap: 14px; }
.item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; display: grid; grid-template-columns: auto 1fr; gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.item:hover { transform: translateX(4px); border-color: #D6DDE9; box-shadow: var(--shadow); }
.item__num {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--bg-alt); border: 1px solid var(--line);
  font-size: .82rem; font-weight: 700; color: var(--navy-600); font-variant-numeric: tabular-nums;
}
.section--alt .item { background: #fff; }
.item h3 { margin-bottom: 5px; }
.item p { font-size: .95rem; color: var(--muted); }

/* --- About ----------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(34px, 6vw, 68px); align-items: start; }
.about__body p { font-size: 1.04rem; }
.about__body p + p { color: var(--muted); font-size: 1rem; }

.person {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.person__top { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.person__avatar {
  width: 66px; height: 66px; border-radius: 50%; flex: none; position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
}
.person__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 0; }
.person__avatar::after {
  content: ""; position: absolute; inset: auto -10px -14px auto; width: 34px; height: 34px;
  border-radius: 50%; background: var(--amber); opacity: .85;
}
.person__label { display: block; font-size: .76rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-deep); }
.person__name { display: block; margin-top: 3px; font-size: 1.18rem; font-weight: 680; color: var(--ink); letter-spacing: -0.015em; }
.person p { font-size: .95rem; color: var(--muted); }

.factbox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm); }
.factbox + .factbox { margin-top: 16px; }
.factbox h3 { font-size: 1rem; margin-bottom: 12px; }
.factbox p { font-size: .93rem; color: var(--muted); }
.facts { display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: minmax(120px, .5fr) 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: .91rem; }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-weight: 550; }

/* --- Partner / contact ----------------------------------------------------- */
.partner {
  color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(152deg, var(--navy-900), var(--navy) 60%, var(--navy-700));
}
.partner::before {
  content: ""; position: absolute; width: 560px; height: 560px; left: -180px; bottom: -260px;
  background: radial-gradient(circle, rgba(232,163,61,.2), transparent 68%); pointer-events: none;
}
.partner__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 72px); align-items: start; }
.partner h2 { color: #fff; }
.partner .eyebrow { color: var(--amber-soft); }
.partner .eyebrow::before { background: var(--amber); }
.partner__lead { color: rgba(255,255,255,.84); font-size: 1.08rem; margin-bottom: 30px; }
.checks { display: grid; gap: 13px; }
.checks li { display: flex; align-items: flex-start; gap: 13px; color: rgba(255,255,255,.9); font-size: .98rem; }
.checks svg { width: 21px; height: 21px; flex: none; color: var(--amber); margin-top: 1px; }

.form {
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: clamp(26px, 3.5vw, 36px);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.form h3 { color: #fff; font-size: 1.22rem; margin-bottom: 6px; }
.form__note { font-size: .88rem; color: rgba(255,255,255,.66); margin-bottom: 24px; }
.form__note a { color: var(--amber); text-decoration-color: rgba(232,163,61,.5); }
.form__note a:hover { color: var(--amber-soft); }
.field { margin-bottom: 17px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.86); margin-bottom: 7px; }
.field .req { color: var(--amber); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .96rem; color: #fff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm); padding: 13px 15px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:hover, .field textarea:hover { border-color: rgba(255,255,255,.32); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: rgba(255,255,255,.11); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.form .btn { width: 100%; }
.form__status { font-size: .88rem; margin-top: 14px; min-height: 1.2em; color: var(--amber-soft); }
.form__status[data-state="error"] { color: #FFC2B4; }

/* --- Footer ---------------------------------------------------------------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.62); padding-block: clamp(52px, 6vw, 76px) 28px; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 52px); }
.footer .logo__name { color: #fff; }
.footer .logo__sub { color: rgba(255,255,255,.5); }
.footer__tagline { margin-top: 18px; max-width: 34ch; color: rgba(255,255,255,.6); font-size: .93rem; }
.footer h4 { color: #fff; font-size: .81rem; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: rgba(255,255,255,.66); text-decoration: none; transition: color .18s var(--ease); }
.footer a:hover { color: var(--amber); }
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.045);
  transition: all .22s var(--ease);
}
.social a:hover { border-color: var(--amber); background: rgba(232,163,61,.14); color: var(--amber); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.footer__bottom {
  margin-top: clamp(38px, 5vw, 58px); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.45);
}

/* --- Pieredze page (pieredze.html) ------------------------------------------ */
.hero--compact { padding-block: clamp(56px, 8vw, 88px) clamp(74px, 9vw, 108px); }
.hero--compact::after { mask-image: radial-gradient(ellipse 70% 90% at 20% 30%, #000 30%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 70% 90% at 20% 30%, #000 30%, transparent 100%); }
.hero--compact h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); max-width: 20ch; }
.hero__lead--compact { max-width: 62ch; margin-bottom: 0; }

.stats-strip .stats { grid-template-columns: repeat(4, 1fr); }
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stat { background: #fff; padding: 26px 20px; text-align: center; }
.stat__value { display: block; font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--amber-deep); letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px; }
.stat__label { display: block; font-size: .85rem; color: var(--navy-700); font-weight: 550; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 40px); }
.pill {
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--body);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 18px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.pill:hover { border-color: #D6DDE9; color: var(--navy); transform: translateY(-1px); }
.pill.is-active { background: var(--amber); border-color: var(--amber); color: var(--navy-900); }
.pill.is-active:hover { transform: none; }

.cases__empty { text-align: center; color: var(--muted); font-size: .98rem; padding: 40px 0; }

.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: opacity .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.case:hover { box-shadow: var(--shadow); border-color: #D6DDE9; }
.case[hidden] { display: none; }
.case.case--enter { opacity: 0; transform: translateY(8px); }
.case.case--leave { opacity: 0; transform: translateY(8px); }

.case__top { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.badge { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 650; letter-spacing: .03em; padding: 5px 12px; border-radius: 999px; }
.badge--done { background: var(--amber); color: var(--navy-900); }
.badge--progress { background: var(--navy); color: #fff; }
.badge--planned { background: transparent; color: var(--muted); border: 1.5px solid var(--line); }
.badge--team { background: var(--bg-alt); color: var(--navy-700); border: 1px solid var(--line); }
.badge--bffe { background: rgba(232, 163, 61, .14); color: var(--amber-deep); border: 1px solid rgba(232, 163, 61, .35); }

.case h3 { font-size: 1.14rem; margin-bottom: 4px; }
.case__subtitle { font-size: .92rem; color: var(--navy-700); font-weight: 550; margin-bottom: 10px; }
.case__meta { font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; margin-bottom: 14px; }
.case__desc { font-size: .93rem; color: var(--body); margin-bottom: 20px; }

.case__result { background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 18px; }
.case__result-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .83rem; font-weight: 600; color: var(--navy-800);
  background: #fff; border: 1px solid var(--cream-line); border-radius: 999px; padding: 6px 12px 6px 10px;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; }

.case__link-row { padding-top: 4px; }
.case__link { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 650; color: var(--navy-700); text-decoration: none; }
.case__link:hover { color: var(--navy); text-decoration: underline; }
.case__link--soon { color: var(--muted); font-weight: 550; font-style: italic; }

.cta-band {
  color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(152deg, var(--navy-900), var(--navy) 60%, var(--navy-700));
}
.cta-band::before {
  content: ""; position: absolute; width: 480px; height: 480px; right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(232,163,61,.2), transparent 68%); pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.cta-band p { color: rgba(255,255,255,.78); max-width: 52ch; margin: 0; }
.cta-band .btn { flex: none; }

/* --- Scroll reveal --------------------------------------------------------- */
/* Hidden only when JS is available to reveal them again — without JS
   (or if a script fails) the content stays fully visible. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .00s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .07s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .21s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .35s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .42s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .49s; }

@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header__actions { margin-left: auto; }
  .logo { margin-right: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .detail__head { position: static; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 300px; order: -1; margin-bottom: 8px; }
  .mission__grid, .detail__grid, .about__grid, .partner__grid { grid-template-columns: 1fr; }
  .detail__head { max-width: 640px; }
  .pillars__grid { grid-template-columns: 1fr; }
  .stats-strip .stats { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; text-align: center; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-cta { display: none; }          /* duplicated inside the mobile menu */
  .logo__sub { display: none; }
  .header__inner { gap: 12px; min-height: 68px; }
  .mobile-nav { inset-block-start: 68px; }
  .lang button { padding: 6px 11px; }
  html { scroll-padding-top: 76px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .pillars { margin-top: -32px; }
  .hero__cta .btn { width: 100%; }
  .item { grid-template-columns: 1fr; gap: 12px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .stats-strip .stats { grid-template-columns: 1fr; }
  .stat { padding: 20px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal, .js .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

@media print {
  .header, .mobile-nav, .hero__art, .form, .social { display: none !important; }
  .hero, .partner, .cta-band, .footer { background: #fff !important; color: #000 !important; }
  .hero h1, .partner h2, .cta-band h2 { color: #000 !important; }
}
