/* ═══════════════════════════════════════════════════════════
   Ülle Madise — Seventh President of the Republic of Estonia
   An independent editorial profile.

   Design idea: "clarity as warmth."
   A literary serif (Literata) for the human voice, a clean
   digital sans (Inter) for the state — a constitutional scholar
   inside a digital republic. Warm limestone paper, Estonian
   flag blue, and the rukkilill (cornflower) as the only motif.

   Both faces carry full Cyrillic, which the page requires: the
   earlier serif (Newsreader) ships latin only, so every serif
   heading and paragraph in the Russian version fell back to
   Times. Any replacement face must cover Cyrillic.
   ═══════════════════════════════════════════════════════════ */

/* ─── Tokens: light is the base definition ─── */
:root {
  --paper:        #FBF8F3;
  --paper-2:      #F5F0E7;
  --raised:       #FFFFFF;
  --ink:          #14181F;
  --ink-2:        #414A59;
  --ink-3:        #6E7787;
  --line:         rgba(20, 24, 31, .11);
  --line-2:       rgba(20, 24, 31, .06);

  --blue:         #0F52A0;   /* deep Estonian blue — text-safe accent   */
  --blue-bright:  #0072CE;   /* flag blue                               */
  --blue-track:   #D8E4F4;   /* lighter step of the same ramp (meter)   */
  --cornflower:   #4A6FE3;
  --warm:         #A8672F;   /* ochre — the warmth in the palette       */
  --warm-tint:    #F6EEE3;

  --dark-bg:      #101725;
  --dark-bg-2:    #162033;

  --serif: "Literata", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shell: 1180px;
  --gut: clamp(1.25rem, 5vw, 4rem);
  --r: 3px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light dark;
}

/* ─── Dark mode: re-stepped, not flipped ─── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #0D1219;
    --paper-2:    #121924;
    --raised:     #161E2A;
    --ink:        #ECEFF4;
    --ink-2:      #AFB9C7;
    --ink-3:      #7C879A;
    --line:       rgba(236, 239, 244, .14);
    --line-2:     rgba(236, 239, 244, .07);

    --blue:       #78ADEA;
    --blue-bright:#5C9EE6;
    --blue-track: #1E3355;
    --cornflower: #8AA5F0;
    --warm:       #E0A56C;
    --warm-tint:  #241A11;

    --dark-bg:    #080C13;
    --dark-bg-2:  #0E1420;
  }
}

/* ─── Reset & base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-bright); }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: .7rem 1.1rem; z-index: 99; font-size: .85rem;
}
.skip:focus { left: 1rem; top: 1rem; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ─── The tricolour hairline: sinine · must · valge ─── */
.tricolour {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; height: 3px;
}
.tricolour span { flex: 1; }
.tricolour span:nth-child(1) { background: var(--blue-bright); }
.tricolour span:nth-child(2) { background: #14181F; }
.tricolour span:nth-child(3) { background: #F2EFE9; }

/* ─── Top bar ─── */
.topbar {
  position: sticky; top: 3px; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line-2);
}
.topbar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 60px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-size: 1.06rem; letter-spacing: .005em;
  white-space: nowrap;
}
.wordmark__flower { color: var(--cornflower); display: inline-flex; }
.wordmark:hover .wordmark__text { color: var(--blue); }

.nav {
  display: flex; gap: clamp(.7rem, 1.6vw, 1.5rem);
  overflow-x: auto; scrollbar-width: none;
  min-width: 0; margin-inline: auto;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--ink-2); text-decoration: none;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .35rem 0; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--blue-bright);
  transition: right .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="true"]::after { right: 0; }
.nav a[aria-current="true"] { color: var(--ink); }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 900px) { .topbar__in { justify-content: space-between; } }

/* ═══════════════ Typography scale ═══════════════ */
.eyebrow {
  margin: 0 0 1.1rem;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--warm);
}
.eyebrow .dot { opacity: .5; margin: 0 .35em; }

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 3.8vw, 2.8rem);
  line-height: 1.14;
  letter-spacing: -.018em;
  margin: 0 0 1.4rem;
  max-width: 22ch;
  text-wrap: balance;
}
.section__lede {
  font-family: var(--serif);
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 68ch;
  margin: 0 0 3.2rem;
}

.section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; }
/* Keep section headings clear of the sticky bar when arriving via an anchor. */
main > section[id] { scroll-margin-top: 74px; }
.section--tint { background: var(--paper-2); }

/* ═══════════════ Hero ═══════════════ */
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); position: relative; }
.hero .eyebrow { margin-bottom: 1.5rem; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(58rem 40rem at 88% -12%, color-mix(in srgb, var(--blue-bright) 9%, transparent), transparent 68%),
    radial-gradient(40rem 30rem at 4% 104%, var(--warm-tint), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__crest { order: -1; }
}

.hero__name {
  padding-top: .1em;               /* the Ü umlaut needs room above the cap line */
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.9rem, 10.4vw, 6.9rem);
  line-height: .94;
  letter-spacing: -.035em;
  margin: 0 0 .5rem;
}
.hero__role {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  color: var(--blue);
  margin: 0 0 1.8rem;
  line-height: 1.35;
}
.hero__lede {
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  color: var(--ink-2);
  max-width: 50ch;
  margin: 0 0 2.2rem;
}
.hero__lede em { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 1.06em; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.5rem;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--r);
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--blue-bright); color: #fff; }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ─── Crest ─── */
.crest {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 1; width: min(100%, 21rem); margin-inline: auto;
}
.crest__ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.crest__ring circle { stroke: var(--line); stroke-width: 1; }
.crest__ring--dash {
  stroke: color-mix(in srgb, var(--cornflower) 45%, transparent);
  stroke-dasharray: 1.5 7; stroke-linecap: round;
  transform-origin: center;
  animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.crest__flower {
  width: 52%; height: auto;
  color: var(--cornflower);
  filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--cornflower) 22%, transparent));
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.035) rotate(2.5deg); } }
.crest__caption {
  margin: 1.4rem 0 0;
  text-align: center;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
}
.crest__caption span {
  display: block; margin-top: .3rem;
  font-weight: 400; letter-spacing: .04em; text-transform: none;
  font-family: var(--serif); font-style: italic; font-size: .84rem;
}
@media (prefers-reduced-motion: reduce) {
  .crest__ring--dash, .crest__flower { animation: none; }
}

/* ═══════════════ Mandate: meter + KPI row ═══════════════ */
.mandate {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .mandate { grid-template-columns: 1fr; } }

.mandate__title {
  margin: 0 0 .9rem;
  font-size: .76rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3);
}

/* the single hero figure on the page — sans, not serif */
.hero-figure {
  margin: 0 0 1.1rem;
  display: flex; align-items: baseline; gap: .6rem;
  font-family: var(--sans);
}
.hero-figure__num {
  font-size: clamp(3.4rem, 8vw, 4.9rem);
  font-weight: 600; line-height: .9;
  letter-spacing: -.035em;
  color: var(--ink);
}
.hero-figure__of {
  font-size: 1.02rem; font-weight: 500;
  color: var(--ink-3); letter-spacing: .01em;
}

/* Meter — single value. Fill = accent, track = lighter step of
   the same blue ramp, so the state reads across the whole bar. */
.meter { padding-bottom: 1.9rem; }
.meter__track {
  position: relative;
  height: 10px;
  background: var(--blue-track);
  border-radius: 2px;
}
.meter__fill {
  height: 100%; width: 0;
  background: var(--blue);
  border-radius: 2px 4px 4px 2px;
  transition: width 1.5s var(--ease);
}
.meter__threshold {
  position: absolute; top: -6px; bottom: -6px;
  border-left: 1.5px dashed var(--ink-3);
}
.meter__threshold span {
  position: absolute; top: calc(100% + .45rem); left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .7rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
}
.mandate__note {
  margin: 0;
  font-family: var(--serif);
  font-size: .98rem; line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
}

.kpis {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
}
.kpi {
  background: var(--raised);
  padding: 1.15rem 1.25rem;
  display: flex; flex-direction: column; gap: .18rem;
}
.kpi__label {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
.kpi__value {
  font-family: var(--sans);
  font-size: 1.85rem; font-weight: 600;
  line-height: 1.15; letter-spacing: -.02em;
  color: var(--ink);
}
.kpi--live .kpi__value { font-size: 1.5rem; color: var(--blue); }
.kpi__foot { font-size: .8rem; color: var(--ink-3); }
.kpi--live .kpi__foot { font-family: var(--serif); font-style: italic; }
@media (max-width: 430px) { .kpis { grid-template-columns: 1fr; } }

/* ═══════════════ Statement band ═══════════════ */
.statement {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.eyebrow--onDark { color: #D8A472; }

.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20.5rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 860px) {
  .statement__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .portrait { order: -1; justify-self: start; }
}

/* Portrait — 484×604 native, so it is held at a size the file can carry. */
.portrait {
  margin: 0;
  max-width: 20.5rem;
  justify-self: end;
}
.portrait img {
  display: block;
  width: 100%; height: auto;
  border-radius: var(--r);
  background: #222A38;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .14),
    0 18px 44px rgba(0, 0, 0, .38);
}
.portrait figcaption {
  margin-top: .85rem;
  display: flex; flex-wrap: wrap; gap: .1rem .5rem;
  font-size: .68rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  color: #8098BC;
}
.portrait figcaption a { color: #8098BC; text-decoration-thickness: 1px; }
.portrait figcaption a:hover { color: #C3D4EC; }

.statement__q { margin: 0; }
.statement__q p {
  max-width: 32ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 3.1vw, 2.3rem);
  line-height: 1.3;
  letter-spacing: -.018em;
  margin: 0 0 1.5rem;
  color: #F7F5F0;
  text-wrap: pretty;
}
.statement__q footer {
  font-size: .76rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: #9BB4D6;
}

/* ═══════════════ Prose ═══════════════ */
.prose { max-width: 68ch; }
.prose p {
  font-family: var(--serif);
  font-size: clamp(1.03rem, 1.5vw, 1.16rem);
  line-height: 1.72;
  color: var(--ink-2);
  margin: 0 0 1.5rem;
}
.prose strong { color: var(--ink); font-weight: 500; }
.prose em { font-style: italic; }

/* ═══════════════ Conviction cards ═══════════════ */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.card {
  background: var(--paper);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  position: relative;
  transition: background-color .35s var(--ease);
}
.card:hover { background: var(--raised); }
.card__num {
  display: block;
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em;
  color: var(--warm);
  margin-bottom: 1rem;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  line-height: 1.25;
  letter-spacing: -.012em;
  margin: 0 0 1.1rem;
  color: var(--ink);
  text-wrap: balance;
}
.card blockquote {
  margin: 0 0 1.1rem;
  padding-left: 1.05rem;
  border-left: 2px solid color-mix(in srgb, var(--cornflower) 55%, transparent);
  font-family: var(--serif); font-style: italic;
  font-size: 1.02rem; line-height: 1.55;
  color: var(--blue);
}
.card cite {
  display: block;
  margin: -.5rem 0 1.1rem;
  padding-left: 1.05rem;
  font-style: normal;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-3);
}
.card p {
  margin: 0;
  font-size: .95rem; line-height: 1.65;
  color: var(--ink-2);
}
.card p em { font-style: italic; color: var(--ink); }

/* ═══════════════ Record ═══════════════ */
.record { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rec {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 0;
  padding: clamp(1.5rem, 3vw, 2.1rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.rec:last-child { border-bottom: 1px solid var(--line); }
.rec h3, .rec p { grid-column: 2; }
.rec__tag {
  font-size: .7rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--warm);
  padding-top: .35rem;
}
.rec h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.16rem, 2.2vw, 1.5rem);
  line-height: 1.28;
  letter-spacing: -.014em;
  margin: 0 0 .6rem;
  color: var(--ink);
}
.rec p {
  margin: 0;
  font-size: .98rem; line-height: 1.68;
  color: var(--ink-2);
  max-width: 62ch;
}
.rec p em { font-style: italic; color: var(--ink); }
@media (max-width: 700px) {
  .rec { grid-template-columns: 1fr; row-gap: .45rem; }
  .rec h3, .rec p { grid-column: 1; }
  .rec__tag { padding-top: 0; }
}

/* ═══════════════ Language switch ═══════════════ */
.langswitch {
  display: flex; gap: 2px; flex-shrink: 0;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
}
.langswitch button {
  appearance: none; border: 0; cursor: pointer;
  padding: .34rem .62rem;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .09em;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.langswitch button:hover { color: var(--ink); }
.langswitch button[aria-pressed="true"] { background: var(--blue); color: #fff; }

/* ═══════════════ Hero additions ═══════════════ */
.hero__meta {
  margin: 0 0 2rem;
  font-size: .8rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: .1rem .6rem; align-items: baseline;
}
.hero__sep { opacity: .45; }

.hero__quote {
  margin: 0 0 2.2rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--warm);
}
.hero__quote p {
  max-width: 30ch;
  margin: 0 0 .8rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.28rem, 2.5vw, 1.72rem);
  line-height: 1.4;
  letter-spacing: -.014em;
  color: var(--ink);
  text-wrap: pretty;
}
.hero__quote footer {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ═══════════════ Teenistuskäik — the CV ═══════════════ */
.cv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.cv__head {
  margin: 0 0 .9rem;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--warm);
}
.cv__head:not(:first-child) { margin-top: 2.6rem; }
.cv__list { margin: 0 0 0; padding: 0; }
.cv__row {
  display: grid;
  grid-template-columns: 6.1rem minmax(0, 1fr);
  gap: 1.2rem;
  padding: .72rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.cv__row:last-child { border-bottom: 1px solid var(--line); }
.cv__row dt {
  font-family: var(--sans);
  font-size: .82rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  color: var(--ink-3);
  white-space: nowrap;
}
.cv__row dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem; line-height: 1.5;
  color: var(--ink-2);
}
.cv__row dd em { font-style: italic; }
.cv__row--now dt { color: var(--blue); }
.cv__row--now dd { color: var(--ink); font-weight: 500; }
@media (max-width: 460px) {
  .cv__row { grid-template-columns: 1fr; gap: .1rem; }
}

/* ═══════════════ Kõned — source list ═══════════════ */
.speeches { list-style: none; margin: 0; padding: 0; }
.sp { border-top: 1px solid var(--line); }
.sp:last-child { border-bottom: 1px solid var(--line); }
.sp a {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.15rem .4rem 1.15rem 0;
  text-decoration: none;
  color: var(--ink);
  transition: padding-left .3s var(--ease), color .3s var(--ease);
}
.sp a:hover { padding-left: .5rem; color: var(--blue); }
.sp__date {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  white-space: nowrap;
}
.sp__title {
  font-family: var(--serif);
  font-size: clamp(1.04rem, 1.9vw, 1.24rem);
  line-height: 1.4;
}
.sp__src {
  font-size: .7rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
@media (max-width: 680px) {
  .sp a { grid-template-columns: 1fr auto; gap: .3rem .9rem; }
  .sp__date { grid-column: 1; }
  .sp__src { grid-column: 2; grid-row: 1; text-align: right; }
  .sp__title { grid-column: 1 / -1; }
}

/* ═══════════════ Office (dark section) ═══════════════ */
.section--dark {
  background: var(--dark-bg);
  color: #E8ECF3;
}
.section--dark .eyebrow { color: #D8A472; }
.section--dark .h2 { color: #F7F9FC; }
.section--dark .section__lede { color: #A9B6CA; }
.office {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r);
  overflow: hidden;
}
.off {
  background: var(--dark-bg);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: background-color .35s var(--ease);
}
.off:hover { background: var(--dark-bg-2); }
.off h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  line-height: 1.28;
  margin: 0 0 .8rem;
  color: #F7F9FC;
  text-wrap: balance;
}
.off p {
  margin: 0;
  font-size: .94rem; line-height: 1.68;
  color: #A9B6CA;
}
.off p em { font-style: italic; color: #D6DEEB; }

/* ═══════════════ Close ═══════════════ */
.close {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  background:
    radial-gradient(46rem 30rem at 50% 0%, color-mix(in srgb, var(--cornflower) 10%, transparent), transparent 70%),
    var(--paper-2);
  text-align: center;
}
.close__in { display: flex; flex-direction: column; align-items: center; }
.close__flower { width: 2.6rem; height: 2.6rem; color: var(--cornflower); margin-bottom: 1.8rem; }
.close__q {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.5rem, 4.2vw, 2.6rem);
  line-height: 1.24; letter-spacing: -.02em;
  margin: 0 0 1.3rem;
  max-width: 26ch;
  color: var(--ink);
  text-wrap: balance;
}
.close__attr {
  margin: 0;
  font-size: .76rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ═══════════════ Footer ═══════════════ */
.footer {
  background: var(--ink);
  color: #B9C3D3;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
  font-size: .9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h2 {
  font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: #7E8DA4;
  margin: 0 0 1.2rem;
}
.footer__note p { margin: 0 0 1rem; line-height: 1.7; max-width: 62ch; }
.footer__note strong { color: #EEF1F6; font-weight: 500; }
.footer__correct { color: #8E9BAF; font-size: .86rem; }
.footer__sources ul { list-style: none; margin: 0; padding: 0; }
.footer__sources li { padding: .42rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer__sources li:last-child { border-bottom: 0; }
.footer__sources a {
  color: #B9C3D3; text-decoration: none;
  font-size: .87rem; line-height: 1.5;
  display: inline-block;
  transition: color .25s var(--ease);
}
.footer__sources a:hover { color: #fff; text-decoration: underline; }

.footer__base {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.footer__base p { margin: 0; font-size: .82rem; color: #7E8DA4; }
.footer__flag {
  display: inline-flex; width: 30px; height: 20px;
  border-radius: 2px; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
}
.footer__flag i { flex: 1; }
.footer__flag i:nth-child(1) { background: #0072CE; }
.footer__flag i:nth-child(2) { background: #14181F; }
.footer__flag i:nth-child(3) { background: #F2EFE9; }

/* ═══════════════ Reveal on scroll ═══════════════ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .7s var(--ease) calc(var(--i, 0) * 70ms),
    transform .7s var(--ease) calc(var(--i, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .reveal.no-anim { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .meter__fill { transition: none; }
  .btn:hover, .q:hover { transform: none; }
}

/* ═══════════════ Print ═══════════════ */
@media print {
  .topbar, .tricolour, .hero__crest, .hero__cta { display: none; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
  .statement, .section--dark, .footer { background: #fff; color: #000; }
  .statement__q p, .off h3, .off p, .footer__note p { color: #000; }
  a { color: #000; }
}
