/* ==========================================================================
   maurice.sobiera.com — stylesheet
   Design tokens and component styles. Values mirror the approved design
   prototype 1:1 (colours, type sizes, spacing, radii).
   Sections:
     1. Fonts        2. Tokens       3. Reset / base
     4. Layout       5. Header       6. Hero
     7. Home         8. Profile      9. Expertise
    10. Contact     11. Legal       12. Footer      13. Motion
   ========================================================================== */

/* 1. Fonts — self-hosted (no external requests, see privacy policy) ------- */
/* IBM Plex Sans is a variable font: one file covers weights 400–600. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spectral-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spectral-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/spectral-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/spectral-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/spectral-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/spectral-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --bg:          #0e141b;   /* page background          */
  --bg-alt:      #0b1017;   /* alternating band, footer */
  --bg-card:     #141c26;   /* cards                    */
  --bg-card-hi:  #18212d;   /* card hover               */
  --accent:      #66a8de;   /* the single accent colour */
  --accent-hi:   #8fc2ee;   /* link hover               */
  --on-accent:   #08121c;   /* text on accent surfaces  */
  --fg-strong:   #f4f7fa;   /* headings                 */
  --fg:          #e9eef3;   /* default text             */
  --fg-body:     #c4cfd9;   /* body copy                */
  --fg-body-2:   #cdd8e2;   /* hero claim               */
  --fg-mut:      #a4b2bf;   /* secondary copy           */
  --fg-mut-2:    #8b98a5;   /* meta, footer             */
  --fg-mut-3:    #7c8996;   /* inactive language        */
  --line:        rgba(255,255,255,.08);
  --line-soft:   rgba(255,255,255,.07);
  --line-card:   rgba(255,255,255,.09);
  --line-rule:   rgba(255,255,255,.12);
  --accent-rule: rgba(102,168,222,.4);
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --wrap: 1120px;
  --wrap-mid: 1000px;
  --wrap-narrow: 900px;
  --pad: 28px;
}

/* 3. Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hi); }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: rgba(102,168,222,.3); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
/* Keyboard-only focus ring; mouse users see the hover state instead. */
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--on-accent); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 4. Layout --------------------------------------------------------------- */
.wrap        { max-width: var(--wrap);        margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.wrap-mid    { max-width: var(--wrap-mid);    margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.band          { border-top: 1px solid var(--line-soft); }
.band--alt     { background: var(--bg-alt); }
.band-inner    { padding-top: 80px; padding-bottom: 80px; }
.band-inner--76{ padding-top: 76px; padding-bottom: 76px; }

.eyebrow {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
}
.section-label {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 34px; font-weight: 400;
}
.section-label--24 { margin-bottom: 24px; }
.section-label--10 { margin-bottom: 10px; }
/* Band heading that sits above a full-width grid rather than beside it. */
.band-label { display: block; margin-bottom: 38px; }
.spacer-60 { height: 60px; }

/* Two-column "label left / content right" grid used across the home page. */
.split { display: grid; grid-template-columns: 260px 1fr; gap: 48px; }

/* 5. Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,20,27,.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 16px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: .01em; color: var(--fg); }
.brand:hover .brand-name { color: var(--fg); }
.brand-role { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }

.mainnav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links { display: flex; gap: 4px; margin-right: 6px; flex-wrap: wrap; }
.nav-link {
  font-size: 15px; padding: 8px 12px; border-radius: 6px;
  color: var(--fg-body); transition: color .15s ease, background-color .15s ease;
}
.nav-link:hover { color: var(--fg-strong); background: rgba(255,255,255,.05); }
.nav-link[aria-current="page"] { color: var(--accent); }

.langswitch {
  display: flex; align-items: center; gap: 2px;
  padding-left: 14px; border-left: 1px solid var(--line-rule);
  font-size: 13px; letter-spacing: .06em;
}
.lang { font-size: 13px; padding: 6px 8px; font-weight: 600; color: var(--fg-mut-3); }
.lang:hover { color: var(--fg); }
.lang[aria-current="true"] { color: var(--accent); }
.lang-sep { color: rgba(255,255,255,.22); }

/* 6. Hero ----------------------------------------------------------------- */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 88px var(--pad) 72px;
  display: grid; grid-template-columns: 1.35fr .95fr; gap: 56px; align-items: center;
}
.hero-eyebrow { margin-bottom: 22px; }
.h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -.01em;
  margin: 0 0 24px; color: var(--fg-strong);
}
.hero-claim {
  font-family: var(--serif); font-size: clamp(21px, 2.4vw, 27px); line-height: 1.4;
  color: var(--fg-body-2); margin: 0 0 26px; font-weight: 400;
}
.hero-intro { font-size: 18px; line-height: 1.72; color: var(--fg-mut); max-width: 44ch; margin: 0 0 36px; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-size: 16px; padding: 14px 24px; border-radius: 8px;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); font-weight: 600; border: 1px solid var(--accent); }
.btn--primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--on-accent); }
.btn--ghost { background: none; color: var(--fg); font-weight: 500; border: 1px solid rgba(255,255,255,.22); }
.btn--ghost:hover { color: var(--fg-strong); border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.04); }
.btn svg { flex: none; }

.portrait-wrap { position: relative; }
/* Offset outline behind the photo — the one decorative element on the page. */
.portrait-wrap::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid rgba(102,168,222,.3); border-radius: 12px;
}
.portrait {
  position: relative; width: 100%; height: auto; border-radius: 12px; display: block;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.7);
}

/* 7. Home page ------------------------------------------------------------ */
.prose { max-width: 66ch; }
.prose p { font-size: 19px; line-height: 1.72; color: var(--fg-body); margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }

.dual-head { max-width: 70ch; margin-bottom: 44px; }
.dual-head .eyebrow { margin-bottom: 16px; display: block; }
.dual-intro { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; color: #dbe3ec; margin: 0; }
.dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.card {
  background: var(--bg-card); border: 1px solid var(--line-card);
  border-radius: 14px; padding: 34px 32px;
}
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.badge {
  font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--on-accent);
  background: var(--accent); width: 30px; height: 30px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.card-h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; margin: 0; color: var(--fg-strong); }
.tick-list { display: flex; flex-direction: column; gap: 14px; }
.tick-list li { display: flex; gap: 12px; font-size: 16.5px; line-height: 1.5; color: var(--fg-body); }
.tick-list li::before { content: "—"; color: var(--accent); flex: none; margin-top: 1px; }

.split-note { font-size: 16px; color: var(--fg-mut-2); margin: 0; }
.split-label { margin-bottom: 14px; display: block; }

.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 16px 1fr; gap: 20px; padding-bottom: 30px; }
.tl-marker { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex: none; }
.tl-line { width: 1px; flex: 1; background: var(--line-rule); margin-top: 6px; }
.tl-role { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--fg-strong); }
.tl-place { font-size: 14px; color: var(--accent); margin: 3px 0 10px; letter-spacing: .01em; }
.tl-text { font-size: 16.5px; line-height: 1.6; color: var(--fg-mut); margin: 0; max-width: 62ch; }
.inline-link { font-size: 16px; color: var(--accent); padding: 6px 0; font-weight: 500; display: inline-block; }

.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.list-label { font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--fg); margin-bottom: 20px; }
.rule-list { display: flex; flex-direction: column; gap: 16px; }
.rule-list li {
  font-size: 16.5px; line-height: 1.55; color: var(--fg-body);
  padding-left: 18px; border-left: 2px solid var(--accent-rule);
}

.cta { text-align: center; padding-top: 90px; padding-bottom: 90px; }
.cta h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 44px);
  margin: 0 0 18px; color: var(--fg-strong);
}
.cta p { font-size: 18px; color: var(--fg-mut); max-width: 52ch; margin: 0 auto 32px; }
.cta .btn { padding: 14px 30px; }

/* 8. Profile page --------------------------------------------------------- */
.page-head { padding: 84px var(--pad) 40px; }
.page-head .h1 { margin-bottom: 22px; }
.page-intro { font-size: 20px; line-height: 1.65; color: var(--fg-body); max-width: 60ch; margin: 0; }
.page-section { padding: 44px var(--pad); }
.page-section--last { padding-bottom: 8px; }

.career { display: flex; flex-direction: column; gap: 30px; }
.career-item { border-left: 2px solid rgba(255,255,255,.1); padding: 2px 0 4px 26px; position: relative; }
.career-item::before {
  content: ""; position: absolute; left: -6px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.career-role { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--fg-strong); }
.career-org { font-size: 15px; color: var(--accent); margin: 4px 0 12px; }
.career-text { font-size: 16.5px; line-height: 1.62; color: var(--fg-mut); margin: 0; max-width: 66ch; }

/* --- Career tree ---------------------------------------------------------
   Three branches side by side. The connecting line is built from .stem
   segments between the cards rather than a background element, so it stays
   exactly joined at any card height. The forks are SVG, hidden once the
   branches stack. */
.tree { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }

.limb { display: flex; flex-direction: column; align-items: center; }
.stem { width: 2px; background: rgba(102,168,222,.45); flex: none; height: 24px; }
.stem--28 { height: 28px; }
.stem--grow { flex: 1 1 auto; min-height: 24px; width: 2px; background: rgba(102,168,222,.45); }

.tree-node {
  background: var(--bg-card); border: 1px solid var(--line-card);
  border-radius: 12px; padding: 16px 20px 18px;
  width: 100%; max-width: 340px; text-align: left;
}
.tree-node--wide { max-width: 480px; }
/* Education nodes and the starting point read as outlines, not as cards. */
.tree-node--edu { background: transparent; border-style: dashed; border-color: rgba(102,168,222,.32); }
.tree-node--crown { background: #16202c; border-color: rgba(102,168,222,.5); max-width: 560px; }
.tree-node--crown .tree-role { font-size: 22px; }

.tree-year {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.tree-role { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--fg-strong); line-height: 1.3; }
.tree-org  { font-size: 14px; color: var(--fg-mut); margin-top: 4px; }
.tree-note { font-size: 14px; line-height: 1.55; color: var(--fg-mut-2); margin-top: 9px; }

.tree-stage {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg-mut-2); margin: 0 0 16px; text-align: center; font-weight: 400;
}

.fork-wrap { position: relative; }
.fork { display: block; width: 100%; }
.fork path { fill: none; stroke: rgba(102,168,222,.45); stroke-width: 2; }
.fork-caption {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  background: var(--bg); padding: 2px 12px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}

.branches { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: stretch; gap: 0 12px; }
.branch-head { text-align: center; margin: 0; max-width: 330px; }
.branch-tag {
  display: inline-block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent); border-radius: 5px; padding: 3px 9px; margin-bottom: 10px;
}
.branch-head h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--fg-strong); margin: 0 0 8px; }
.branch-head p { font-size: 14px; line-height: 1.55; color: var(--fg-mut-2); margin: 0; }

.tree-lead { font-size: 16.5px; line-height: 1.65; color: var(--fg-body); max-width: 66ch; margin: 0 0 40px; }

@media (max-width: 1000px) {
  /* Stacked, each branch stands on its own — the forks would only confuse. */
  .branches { grid-template-columns: 1fr; }
  .fork-wrap, .fork { display: none; }
  .branch-head { margin-top: 44px; }
  .stem--grow { flex: none; height: 24px; }
  .tree-node { max-width: 460px; }
}

.edu-table { border: 1px solid var(--line-card); border-radius: 12px; overflow: hidden; }
.edu-row {
  display: grid; grid-template-columns: 1.6fr 1.3fr .7fr; gap: 20px;
  padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,.06); align-items: baseline;
}
.edu-row:last-child { border-bottom: none; }
.edu-q { font-size: 16px; color: var(--fg); font-weight: 500; line-height: 1.4; }
.edu-inst { font-size: 15px; color: var(--fg-mut); line-height: 1.4; }
.edu-period { font-size: 14px; color: var(--fg-mut-2); text-align: right; white-space: nowrap; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two-col .section-label { margin-bottom: 22px; }

.refs-intro { font-size: 16px; color: var(--fg-mut-2); margin: 0 0 26px; max-width: 62ch; }
.refs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ref-card {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--bg-card); border: 1px solid var(--line-card); border-radius: 12px;
  padding: 20px 22px; transition: border-color .15s ease, background-color .15s ease;
}
.ref-card:hover { border-color: rgba(102,168,222,.5); background: var(--bg-card-hi); }
.ref-title { font-size: 16.5px; color: var(--fg-strong); font-weight: 500; line-height: 1.35; }
.ref-issuer { font-size: 14.5px; color: var(--accent); }
.ref-meta { font-size: 13.5px; color: var(--fg-mut-2); }
.ref-cta { font-size: 13px; color: var(--fg-mut); margin-top: 8px; display: inline-flex; align-items: center; gap: 7px; }

/* 9. Expertise page ------------------------------------------------------- */
.expertise-section { padding: 36px var(--pad) 80px; }
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.exp-card { background: var(--bg-card); border: 1px solid var(--line-card); border-radius: 14px; padding: 30px 30px 32px; }
.exp-card h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 14px; color: var(--fg-strong); }
.exp-card p { font-size: 16.5px; line-height: 1.62; color: var(--fg-mut); margin: 0; }

/* 10. Contact page -------------------------------------------------------- */
.contact-section { padding: 84px var(--pad) 80px; }
.contact-intro { margin-bottom: 52px; max-width: 58ch; }
.contact-card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 30px 34px; display: flex; flex-direction: column; gap: 26px;
}
.contact-label {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.contact-value { font-size: 16.5px; color: var(--fg); }
.contact-card a { font-size: 16px; overflow-wrap: anywhere; }
.contact-card a.with-icon { display: inline-flex; align-items: center; gap: 8px; }
.contact-block--sep { border-top: 1px solid var(--line); padding-top: 22px; }
.availability { font-size: 15px; color: var(--fg-mut); line-height: 1.6; }
/* Contact details are assembled by JavaScript (spam protection). */
.js-contact-fallback { font-size: 15px; color: var(--fg-mut); }

/* 11. Legal pages --------------------------------------------------------- */
.legal { max-width: 74ch; }
.legal h2 {
  font-family: var(--serif); font-weight: 500; font-size: 24px;
  color: var(--fg-strong); margin: 44px 0 14px;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.7; color: var(--fg-body); }
.legal p { margin: 0 0 16px; }
.legal ul { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.legal ul li { padding-left: 18px; border-left: 2px solid var(--accent-rule); }
.legal .meta { font-size: 15px; color: var(--fg-mut-2); }
.legal-updated { margin-top: 40px; }

/* Root language picker and 404 — small one-off pages. */
.lang-picker { margin-top: 28px; }
.notfound-h1 { font-size: clamp(34px, 4vw, 48px); }
.notfound-list { margin-top: 34px; }
.notfound-item { margin-bottom: 34px; }
.notfound-item h2 { margin-bottom: 8px; }
.notfound-item .page-intro { font-size: 17px; margin-bottom: 10px; }

/* 12. Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); margin-top: auto; }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 34px var(--pad);
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between;
  font-size: 14.5px; color: var(--fg-mut-2);
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--fg-mut-2); }
.footer-links a:hover { color: var(--fg); }

/* 13. Motion — gentle scroll reveal, JS-gated so no-JS users see everything */
.js .rvl { opacity: 0; transform: translateY(14px); }
.js .rvl.is-in { animation: fadeUp .6s cubic-bezier(.22,.61,.36,1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* 14. Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 64px; padding-bottom: 56px; }
  .portrait-wrap { max-width: 420px; }
  .hero-intro { max-width: none; }
}
@media (max-width: 860px) {
  .split, .edu-grid, .two-col { grid-template-columns: 1fr; gap: 28px; }
  .dual-grid, .expertise-grid, .refs-grid { grid-template-columns: 1fr; }
  .edu-grid { gap: 40px; }
  .band-inner, .band-inner--76 { padding-top: 60px; padding-bottom: 60px; }
  .cta { padding-top: 70px; padding-bottom: 70px; }
}
@media (max-width: 720px) {
  :root { --pad: 20px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mainnav { width: 100%; justify-content: space-between; }
  .nav-links { margin-right: 0; margin-left: -12px; }
  .nav-link { font-size: 14px; padding: 8px 10px; }
  .page-head { padding-top: 60px; }
  .edu-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
  .edu-period { text-align: left; }
  .card { padding: 28px 24px; }
  .exp-card { padding: 26px 24px 28px; }
  .contact-card { padding: 26px 24px 30px; }
}
@media (max-width: 420px) {
  .langswitch { padding-left: 10px; }
  .nav-link { font-size: 13.5px; padding: 7px 8px; }
}

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

@media print {
  .site-header, .site-footer, .skip-link, .btn-row { display: none; }
  body { background: #fff; color: #111; }
  .h1, .card-h3, .exp-card h2, .legal h2 { color: #111; }
  p, li { color: #222; }
}

/* Note under the references grid — reference projects on request. */
.refs-note {
  font-size: 15px; line-height: 1.6; color: var(--fg-mut-2);
  margin: 22px 0 0; max-width: 66ch;
  padding-left: 18px; border-left: 2px solid var(--accent-rule);
}
