/* Fintech Kneissl, v2: the printed annual, night edition. One face (STIX Two Text), one navy family, brand blue as fields. */

@font-face { font-family: "STIX Two Text"; src: url("../fonts/stix-two-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "STIX Two Text"; src: url("../fonts/stix-two-text-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "STIX Two Text"; src: url("../fonts/stix-two-text-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  /* grounds, darkest to lightest */
  --night: #070a17;        /* footer */
  --ground: #0b1022;       /* page */
  --surface: #121a33;      /* one tone step up */
  --surface-2: #19233f;    /* two steps up */
  --paper: #e9e8e4;        /* the one light section */
  /* inks */
  --ink: #e9e8e4;          /* text on dark: 15.6:1 on --ground */
  --muted: #aab1c6;        /* secondary on dark: 8.6:1 on --ground, 7.4:1 on --surface */
  --ink-dark: #0b1022;     /* text on paper */
  --muted-dark: #424a5f;   /* secondary on paper: 7.6:1 */
  /* brand */
  --blue: #1d3fbf;         /* brand blue: fields and the action; paper text on it 7.0:1 */
  --blue-deep: #0f2a8a;    /* brand deep blue: fields */
  --on-blue: #e9e8e4;
  --on-blue-soft: #cfd6f3; /* 5.9:1 on --blue */

  --step-small: clamp(0.9375rem, 0.92rem + 0.1vw, 1rem);            /* 15–16 */
  --step-body: clamp(1.0625rem, 1.03rem + 0.18vw, 1.1875rem);         /* 17–19 */
  --step-lead: clamp(1.3125rem, 1.15rem + 0.62vw, 1.75rem);           /* 21–28 */
  --step-head: clamp(2.375rem, 1.55rem + 2.9vw, 3.75rem);             /* 38–60 */
  --step-display: clamp(3.75rem, 0.9rem + 8.6vw, 8.75rem);            /* 60–140 */

  --m: clamp(20px, 2.22vw, 32px);
  --gap: clamp(16px, 1.67vw, 24px);
  --section: clamp(80px, 8.4vw, 128px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: "STIX Two Text", "Georgia", "Times New Roman", serif;
  font-size: var(--step-body); line-height: 1.5; font-weight: 400;
  font-kerning: normal; font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
strong { font-weight: 600; }
a { color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { padding-inline: var(--m); max-width: 1680px; margin-inline: auto; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 30; background: var(--ink); color: var(--ground); padding: 12px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.num { display: block; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; font-weight: 400; font-variant-numeric: lining-nums tabular-nums; }

h2 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.028em; }
h3 { font-size: var(--step-lead); line-height: 1.18; letter-spacing: -0.012em; }

/* buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px;
  background: var(--blue); color: #fff;
  font-size: var(--step-body); font-weight: 500; line-height: 1;
  text-decoration: none; border-radius: 0;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--light { background: var(--ink); color: var(--ground); }
.link {
  text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--blue-deep); }
  .button--light:hover { background: #fff; }
  .link:hover { text-decoration-color: currentColor; }
}

/* pictures: one treatment, square corners, a quiet caption */
.pic { position: relative; overflow: hidden; background: var(--surface); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-size: var(--step-small); line-height: 1.4; color: var(--muted); }
.pic figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 14px; background: var(--ground); color: var(--muted); }

/* ---------- bar ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 84px; position: relative; z-index: 5; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; line-height: 1; }
.wordmark img { width: 30px; height: auto; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .wordmark:hover img { transform: translateY(-2px); } }
.nav { display: flex; gap: 8px 36px; flex-wrap: wrap; font-size: var(--step-body); }
.nav a { text-decoration: none; padding: 10px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: scaleX(1); } }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; padding-bottom: 8px; }
.hero__text { grid-column: 1 / -1; display: grid; gap: 22px; justify-items: start; padding-top: 8px; }
.hero__title { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.042em; font-weight: 400; margin-left: -0.04em; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }
.hero__lead { font-size: var(--step-lead); line-height: 1.3; max-width: 24ch; letter-spacing: -0.008em; }
.hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__act p { font-size: var(--step-body); color: var(--muted); }
.hero__act .link { color: var(--ink); }

.hero__picture { grid-column: 1 / -1; aspect-ratio: 4 / 5; max-height: 74svh; overflow: hidden; background: #868b91; }
.hero__picture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

.hero__figures { grid-column: 1 / -1; display: grid; background: var(--blue); color: var(--on-blue); }
.hero__figures li { display: grid; gap: 10px; padding: 20px 22px 22px; align-content: start; }
.hero__figures li + li { background: var(--blue-deep); }
.hero__figures li + li + li { background: var(--blue); }
.hero__figures li > span:last-child { font-size: var(--step-small); line-height: 1.38; color: var(--on-blue-soft); }

@media (min-width: 760px) and (max-width: 1023.98px) {
  .hero__picture { aspect-ratio: 16 / 10; max-height: none; }
  .hero__picture img { object-position: 50% 30%; }
  .hero__figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro__tall { aspect-ratio: 3 / 2; }
}
@media (min-width: 1024px) {
  .hero { min-height: calc(100svh - 84px); max-height: 980px; grid-template-rows: 1fr auto; row-gap: 0; padding-bottom: clamp(24px, 3svh, 40px); }
  .hero__text { grid-column: 1 / 8; grid-row: 1; align-content: center; gap: 26px; padding: 0 0 40px; }
  .hero__lead { max-width: 30ch; }
  .hero__picture { grid-column: 8 / -1; grid-row: 1 / 3; aspect-ratio: auto; max-height: none; height: 100%; min-height: 560px; }
  .hero__figures { grid-column: 1 / 8; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); align-self: end; }
  .hero__figures li { padding: 24px 24px 26px; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .hero__title { font-size: min(var(--step-display), 15svh); }
}

/* ---------- intro ---------- */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; padding-top: var(--section); }
.intro__tall { grid-column: 1 / -1; grid-row: 2; aspect-ratio: 4 / 5; }
.intro__body { grid-column: 1 / -1; display: grid; gap: 28px; align-content: start; }
.intro__lead { font-size: var(--step-lead); line-height: 1.32; max-width: 34ch; }
.intro__cols { display: grid; gap: 28px; }
.intro__cols h3 { margin-bottom: 14px; }
.plain li { padding: 12px 0 0; }
.plain li + li { margin-top: 12px; }
.intro__cols .plain li { background: none; }
.intro__facts { display: grid; gap: 4px; }
.intro__facts > div { background: var(--surface); padding: 18px 20px; display: grid; gap: 4px; }
.intro__facts dt { font-size: var(--step-small); color: var(--muted); }
.intro__facts dd { font-size: var(--step-body); }
@media (min-width: 760px) {
  .intro__cols { grid-template-columns: 1fr 1fr; gap: var(--gap); }
  .intro__facts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .intro { align-items: stretch; }
  .intro__tall { grid-column: 1 / 6; grid-row: 1; aspect-ratio: auto; min-height: 640px; }
  .intro__body { grid-column: 7 / -1; grid-row: 1; gap: 32px; }
}

/* ---------- mandates ---------- */
.work { padding-top: var(--section); }
.work__head { display: grid; gap: 16px; margin-bottom: 48px; }
@media (min-width: 760px) {
  .work__head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .work__head h2 { grid-column: 1 / 6; }
  .work__head p { grid-column: 7 / -1; }
}
.work__head p { font-size: var(--step-lead); line-height: 1.3; max-width: 32ch; color: var(--muted); }
.mandate { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; }
.mandate + .mandate { margin-top: 64px; }
.mandate__picture { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.mandate__text { grid-column: 1 / -1; display: grid; gap: 18px; align-content: start; }
.mandate__role { font-size: var(--step-body); color: var(--muted); }
.mandate__fig { display: grid; gap: 10px; background: var(--blue); color: var(--on-blue); padding: 22px 24px 24px; }
.mandate--flip .mandate__fig { background: var(--blue-deep); }
.mandate__fig > span:last-child { font-size: var(--step-small); line-height: 1.4; color: var(--on-blue-soft); max-width: 46ch; }
.mandate__text > p:last-child { max-width: 62ch; }
@media (min-width: 1024px) {
  .work__head { margin-bottom: 56px; }
  .mandate { align-items: center; }
  .mandate + .mandate { margin-top: 24px; }
  .mandate__picture { grid-column: 1 / 6; grid-row: 1; }
  .mandate__text { grid-column: 7 / -1; grid-row: 1; padding: 8px 0; }
  .mandate--flip .mandate__picture { grid-column: 8 / -1; }
  .mandate--flip .mandate__text { grid-column: 1 / 7; }
  .mandate__fig { grid-template-columns: auto 1fr; align-items: center; column-gap: 24px; }
}

/* ---------- roles mosaic ---------- */
.roles { padding-top: var(--section); }
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tile { background: var(--surface); padding: 24px; display: grid; gap: 12px; align-content: start; }
.tile p:not(.num) { font-size: var(--step-body); }
.tile--head { grid-column: 1 / -1; gap: 18px; background: none; padding: 0 0 18px; }
.tile--head p { font-size: var(--step-lead); line-height: 1.3; color: var(--muted); max-width: 30ch; }
.tile--photo { grid-column: 1 / -1; padding: 0; aspect-ratio: 1492 / 938; }
.tile--role { grid-column: 1 / -1; }
.tile--role:nth-of-type(3) { background: var(--surface-2); }
.tile--years { background: var(--blue); color: var(--on-blue); }
.tile--budget { background: var(--blue-deep); color: var(--on-blue); }
.tile--years p:not(.num), .tile--budget p:not(.num) { color: var(--on-blue-soft); font-size: var(--step-small); }
@media (min-width: 760px) {
  .mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile--role { grid-column: 1 / -1; }
  .tile--years, .tile--budget { grid-column: span 3; }
}
@media (min-width: 1024px) {
  .mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); }
  .tile { padding: 28px; }
  .tile--head { grid-column: 1 / 5; grid-row: 1 / 3; background: var(--surface); padding: 32px 28px; align-content: space-between; }
  .tile--photo { grid-column: 5 / -1; grid-row: 1 / 3; aspect-ratio: auto; min-height: 480px; }
  .tile--role { grid-column: span 3; grid-row: 3; min-height: 230px; }
  .tile--role:nth-of-type(2) { grid-column: 1 / 4; }
  .tile--role:nth-of-type(3) { grid-column: 4 / 7; }
  .tile--role:nth-of-type(4) { grid-column: 7 / 10; }
  .tile--years { grid-column: 10 / -1; grid-row: 3; }
  .tile--budget { grid-column: 10 / -1; grid-row: 4; }
  .tile--role { grid-row: 3 / 5; }
}

/* ---------- speaking: two event photos ---------- */
.speaking { padding-top: var(--section); }
.speaking__head { display: grid; gap: 16px; margin-bottom: 40px; }
.speaking__head p { font-size: var(--step-lead); line-height: 1.3; max-width: 40ch; color: var(--muted); }
.speaking__grid { display: grid; gap: var(--gap); }
.speaking__pic { aspect-ratio: 16 / 10; }
.speaking__pic--left img { object-position: 16% 50%; }
@media (min-width: 760px) { .speaking__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- reference: a brand-blue page ---------- */
.letter { margin-top: var(--section); background: var(--blue-deep); color: var(--on-blue); }
.letter__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; padding-block: clamp(64px, 7vw, 104px); }
.letter__side { grid-column: 1 / -1; display: grid; gap: 20px; align-content: start; }
.letter__sign { font-size: var(--step-small); color: var(--on-blue-soft); max-width: 30ch; }
.letter__sign span { display: block; font-size: var(--step-body); color: var(--on-blue); font-weight: 500; }
.letter__body { grid-column: 1 / -1; display: grid; gap: 28px; }
.letter__open { font-size: var(--step-lead); line-height: 1.3; max-width: 34ch; letter-spacing: -0.008em; }
.letter__cols { display: grid; gap: 18px; }
@media (min-width: 760px) { .letter__cols { grid-template-columns: 1fr 1fr; gap: var(--gap); } }
@media (min-width: 1024px) {
  .letter__side { grid-column: 1 / 6; }
  .letter__body { grid-column: 7 / -1; gap: 36px; }
}

/* ---------- record: the one light page ---------- */
.record { background: var(--paper); color: var(--ink-dark); }
.record .pic { background: #d6d6d2; }
.record :focus-visible { outline-color: var(--ink-dark); }
.record figcaption, .record .pic figcaption { color: var(--muted-dark); }
.record .pic figcaption { background: var(--paper); }
.record__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; padding-block: var(--section); }
.record__lead { grid-column: 1 / -1; display: grid; gap: 24px; align-content: start; }
.record__lead > p { max-width: 52ch; }
.record__picture { aspect-ratio: 4 / 3; }
.record__list { grid-column: 1 / -1; }
.record__list h3 { margin-bottom: 16px; }
.record__list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 12px 14px; font-size: var(--step-small); line-height: 1.4; }
.record__list li:nth-child(odd) { background: #dcdcd7; }
.record__list li > span:last-child { font-variant-numeric: tabular-nums; color: var(--muted-dark); white-space: nowrap; }
.record__facts { margin-top: 28px; display: grid; gap: 4px; }
.record__facts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; background: var(--ink-dark); color: var(--paper); padding: 14px; font-size: var(--step-small); }
.record__facts dt { color: #b7bccb; }
@media (min-width: 760px) and (max-width: 1023.98px) {
  .record__list { grid-column: span 6; }
}
@media (min-width: 1024px) {
  .record__lead { grid-column: 1 / 6; grid-row: 1 / 3; }
  .record__list { grid-column: 7 / -1; }
}

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; padding-block: var(--section); }
.contact__say { grid-column: 1 / -1; display: grid; gap: 24px; align-content: start; }
.contact__say > p { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; color: var(--muted); }
.contact__card { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center; margin-top: 8px; }
.contact__portrait { width: 112px; aspect-ratio: 1; overflow: hidden; background: #868b91; }
.contact__portrait img { width: 100%; height: 100%; object-fit: cover; }
.contact__links { display: grid; gap: 6px; font-size: var(--step-lead); line-height: 1.3; min-width: 0; }
.contact__links a { overflow-wrap: anywhere; }
.contact__note { font-size: var(--step-small); color: var(--muted); padding-top: 6px; }
.composer { grid-column: 1 / -1; background: var(--surface); padding: clamp(22px, 2.6vw, 36px); display: grid; gap: 26px; align-content: start; }
.composer legend { font-size: var(--step-lead); line-height: 1.2; margin-bottom: 14px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; background: var(--surface-2); color: var(--ink); font-size: var(--step-small); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chips input:checked + span { background: var(--blue); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.chips label:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chips input:not(:checked):hover + span { background: #24305a; } }
.composer__subject { font-size: var(--step-body); color: var(--muted); }
.composer .button { justify-self: start; }
@media (min-width: 1024px) {
  .contact { align-items: start; }
  .contact__say { grid-column: 1 / 6; }
  .foot__credits ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .contact__card { grid-template-columns: 148px 1fr; gap: 24px; }
  .contact__portrait { width: 148px; }
  .composer { grid-column: 7 / -1; }
}

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--ink); }
.foot__in { padding-top: clamp(56px, 6vw, 88px); padding-bottom: 24px; display: grid; gap: 40px; }
.foot__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gap); font-size: var(--step-small); line-height: 1.6; }
.foot__first { color: var(--muted); margin-bottom: 6px; }
.foot a { text-decoration: none; }
.foot__cols a, .foot__credits a { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .foot__cols a:hover, .foot__credits a:hover { text-decoration-color: currentColor; } }
.foot__credits { font-size: var(--step-small); line-height: 1.55; color: var(--muted); display: grid; gap: 12px; }
.foot__credits > p { max-width: 75ch; }
.foot__credits ul { display: grid; gap: 6px var(--gap); }
.foot__credits li { max-width: 60ch; }
.foot__credits--one { display: block; max-width: 75ch; }
@media (max-width: 759.98px) { .foot__cols > div:nth-child(3) { grid-column: 1 / -1; grid-row: 1; } }
.foot__mark { width: 100%; }
.foot__svg { width: 100%; height: auto; fill: var(--ink); font-family: "STIX Two Text", Georgia, serif; font-size: 118px; font-weight: 400; letter-spacing: -0.03em; }
.foot__svg--one { display: none; }
.foot__legal { font-size: var(--step-small); color: var(--muted); }
@media (min-width: 760px) {
  .foot__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot__svg--one { display: block; }
  .foot__svg--two { display: none; }
}

/* ---------- legal pages ---------- */
.doc-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; padding-bottom: var(--section); }
.doc-head__text { grid-column: 1 / -1; display: grid; gap: 22px; align-content: center; }
.doc-head__text h1 { font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.042em; margin-left: -0.04em; }
.doc-head__text > p { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.doc-head__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.doc-head__facts > div { background: var(--blue); color: var(--on-blue); padding: 16px 18px; display: grid; gap: 2px; }
.doc-head__facts > div:nth-child(even) { background: var(--blue-deep); }
.doc-head__facts dt { font-size: var(--step-small); color: var(--on-blue-soft); }
.doc-head__facts dd { font-size: var(--step-body); }
.doc-head__picture { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.doc-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; padding-bottom: var(--section); }
.doc-index { grid-column: 1 / -1; }
.doc-index h2 { font-size: var(--step-lead); line-height: 1.2; margin-bottom: 14px; }
.doc-index ol { display: grid; gap: 2px; }
.doc-index a { display: block; padding: 12px 16px; background: var(--surface); text-decoration: none; font-size: var(--step-small); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.doc-index a:active { transform: scale(0.99); }
.doc-index a[aria-current="true"] { background: var(--blue); color: #fff; }
@media (hover: hover) and (pointer: fine) { .doc-index a:not([aria-current="true"]):hover { background: var(--surface-2); } }
.doc-content { grid-column: 1 / -1; display: grid; gap: 4px; }
.doc-content section { background: var(--surface); padding: clamp(22px, 2.6vw, 36px); display: grid; gap: 18px; scroll-margin-top: 24px; }
.doc-content section:nth-child(even) { background: var(--surface-2); }
.doc-content h2 { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; }
.doc-content p, .doc-content li { max-width: 66ch; }
.doc-content ul { display: grid; gap: 8px; }
.doc-content ul li { padding-left: 1.1em; position: relative; }
.doc-content ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.45em; height: 0.45em; background: var(--blue); }
.doc-content dl { display: grid; gap: 2px; }
.doc-content dl > div { display: grid; gap: 2px 24px; padding: 10px 0; }
.doc-content dt { color: var(--muted); font-size: var(--step-small); }
.doc-content a { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
@media (min-width: 760px) {
  .doc-content dl > div { grid-template-columns: 15em 1fr; }
}
@media (max-width: 1023.98px) {
  .doc-index ol { display: flex; flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 759.98px) {
  .doc-head__facts { grid-template-columns: 1fr; }
  .doc-head__facts > div { grid-template-columns: 9em 1fr; gap: 12px; align-items: baseline; padding: 12px 16px; }
}
@media (min-width: 1024px) {
  .doc-head { min-height: min(calc(100svh - 84px), 760px); }
  .doc-head__text { grid-column: 1 / 7; padding-bottom: 24px; }
  .doc-head__picture { grid-column: 7 / -1; aspect-ratio: auto; min-height: 520px; }
  .doc-index { grid-column: 1 / 4; position: sticky; top: 24px; align-self: start; }
  .doc-content { grid-column: 4 / -1; }
}

/* ---------- phone and tablet ---------- */
@media (max-width: 1023.98px) {
  .bar { min-height: 68px; }
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin-right: -4px;
    background: var(--surface); color: var(--ink); border: 0; border-radius: 0; font: inherit; font-size: var(--step-small); cursor: pointer;
    transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
  }
  .menu-toggle:active { transform: scale(0.97); }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); padding: 8px var(--m) 16px; flex-direction: column; gap: 0; }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: 14px 0; font-size: var(--step-lead); }
  html:not(.js) .menu-toggle { display: none; }
}
@media (max-width: 1023.98px) and (prefers-reduced-motion: no-preference) {
  .js .nav.is-open { animation: nav-in var(--t-ui) var(--ease-out); }
  @keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } }
}
@media (max-width: 759.98px) {
  .hero__figures li { grid-template-columns: 7.2em 1fr; align-items: baseline; gap: 14px; padding: 16px 18px; }
  .hero__figures .num { font-size: 2.125rem; }
  .mandate__fig .num { font-size: 2.75rem; }
  .pic figcaption { position: static; padding: 10px 0 0; background: none; }
  .pic { background: none; }
  .pic img { height: auto; aspect-ratio: inherit; }
  .mandate__picture, .intro__tall, .record__picture, .doc-head__picture, .tile--photo { aspect-ratio: auto; }
  .mandate__picture img { aspect-ratio: 4 / 3; }
  .intro__tall img { aspect-ratio: 4 / 5; }
  .tile--photo img { aspect-ratio: 1492 / 938; }
  .record__picture img, .doc-head__picture img { aspect-ratio: 4 / 3; }
  .hero__act .button { width: 100%; }
}

/* ---------- motion: transform and opacity only, never hiding content without script ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line], .js .doc-head [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(120ms + var(--i) * 110ms); }
  .js [data-load] { opacity: 0; transform: translateY(16px); animation: rise 600ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .hero [data-open] { opacity: 0; animation: fade 900ms var(--ease-out) 160ms forwards; }
  .js .hero [data-open] img { transform: scale(1.08); animation: settle 2200ms var(--ease-expo) 120ms forwards; }
}
/* scroll entrances on wide screens only: on a phone every part is shown at once */
@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--r, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal-pic] img { opacity: 0; transform: scale(1.06); transition: opacity 900ms var(--ease-out), transform 1600ms var(--ease-expo); }
  .js [data-reveal-pic].is-in img { opacity: 1; transform: scale(1.0); }
  .js [data-reveal-pic] figcaption { opacity: 0; transition: opacity 600ms var(--ease-out) 400ms; }
  .js [data-reveal-pic].is-in figcaption { opacity: 1; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes settle { to { transform: none; } }
