/* Site stylesheet. */
/* Self-hosted web fonts (SIL Open Font License): Libre Baskerville, Montserrat */
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400; font-display: swap; src: url(/v/assets/redesign/fonts/libre-baskerville-latin-ext-73dd5a.1b43b44b58.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400; font-display: swap; src: url(/v/assets/redesign/fonts/libre-baskerville-latin-8ddc32.b62b98ef69.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: 'Libre Baskerville'; font-style: normal; font-weight: 700; font-display: swap; src: url(/v/assets/redesign/fonts/libre-baskerville-latin-ext-73dd5a.1b43b44b58.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 700; font-display: swap; src: url(/v/assets/redesign/fonts/libre-baskerville-latin-8ddc32.b62b98ef69.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: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url(/v/assets/redesign/fonts/montserrat-latin-ext-a93986.920711de9a.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url(/v/assets/redesign/fonts/montserrat-latin-83a31c.6438d7b8ea.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: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url(/v/assets/redesign/fonts/montserrat-latin-ext-a93986.920711de9a.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url(/v/assets/redesign/fonts/montserrat-latin-83a31c.6438d7b8ea.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: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url(/v/assets/redesign/fonts/montserrat-latin-ext-a93986.920711de9a.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url(/v/assets/redesign/fonts/montserrat-latin-83a31c.6438d7b8ea.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: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url(/v/assets/redesign/fonts/montserrat-latin-ext-a93986.920711de9a.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url(/v/assets/redesign/fonts/montserrat-latin-83a31c.6438d7b8ea.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; }

:root {
  --accent: #2f9fb5;
  --accent-dark: #1f7a8c;
  --accent-soft: #e6f4f7;
  --ink: #23303a;
  --muted: #5d6b75;
  --line: #dde4e8;
  --bg: #ffffff;
  --bg-soft: #f3f6f8;
  --dark: #1c262e;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Montserrat", Helvetica, Arial, sans-serif;
  --nav-h: 72px;
  --surface: #ffffff;
  --nav-bg: rgba(255,255,255,.97);
  --nav-link: #555;
  --faint: #66757e;
  --btn: #1f7a8c;
  --accent-text: #1a7183;
  --btn-hover: #17616f;
  --dot: #c9d3d8;
  color-scheme: light;
}
/* dark theme: follows the system unless the visitor picked a theme with the switch */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11181d; --bg-soft: #172128; --surface: #1c2830; --ink: #e4ecf0; --muted: #a3b3bc; --line: #2b3a44;
    --accent: #45b8cf; --accent-dark: #7fd0e0; --accent-soft: #1d3a44; --dark: #0b1216;
    --nav-bg: rgba(17,24,29,.96); --nav-link: #c3d0d7; --faint: #8fa1ab; --dot: #3a4a54; --btn: #1f7a8c; --btn-hover: #17616f; --accent-text: #7fd0e0; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11181d; --bg-soft: #172128; --surface: #1c2830; --ink: #e4ecf0; --muted: #a3b3bc; --line: #2b3a44;
  --accent: #45b8cf; --accent-dark: #7fd0e0; --accent-soft: #1d3a44; --dark: #0b1216;
  --nav-bg: rgba(17,24,29,.96); --nav-link: #c3d0d7; --faint: #8fa1ab; --dot: #3a4a54; --btn: #1f7a8c; --btn-hover: #17616f; --accent-text: #7fd0e0; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 15px; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent-text); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.3; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); box-shadow: 0 1px 12px rgba(0,0,0,.07); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }
.brand { text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand b { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .02em; display: block; }
.brand span { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--nav-link); font-size: 14px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav ul a.active { color: var(--accent-dark); border-bottom-color: var(--accent); }
.nav ul a:hover { color: var(--accent-text); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-toggle:checked + .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible + .burger { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 1080px) {
  .nav ul { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--surface); flex-direction: column; gap: 0; padding: 8px 16px 16px; box-shadow: 0 8px 12px rgba(0,0,0,.08); }
  .nav-toggle:checked ~ ul { display: flex; }
  .nav ul a { display: block; padding: 10px 0; border: 0; }
  .burger { display: block; }
}

/* buttons, chips */
.btn { display: inline-block; padding: 11px 24px; font-family: var(--sans); font-weight: 600; font-size: 14.5px; text-decoration: none; border-radius: 3px; border: 0; cursor: pointer; transition: background .2s, color .2s; line-height: 1.4; }
.btn-accent { background: var(--btn); color: #fff; }
.btn-accent:hover { background: var(--btn-hover); color: #fff; }
.btn-grey { background: rgba(100,100,100,.85); color: #fff; }
.btn-grey:hover { background: rgba(70,70,70,.95); color: #fff; }
.btn-outline { background: transparent; color: var(--accent-dark); box-shadow: inset 0 0 0 2px var(--accent); }
.btn-outline:hover { background: var(--btn); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.chip { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; margin: 0 4px 6px 0; }
a.chip:hover { background: var(--btn); color: #fff; }
.meta { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }

/* hero */
.hero { position: relative; min-height: min(calc(78svh - var(--nav-h)), 640px); display: flex; align-items: center; color: #fff; overflow: hidden; background: #0d1a22; }
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Pause control without JavaScript: the checkbox hides the video, leaving the still image (WCAG 2.2.2) */
.hero-stop { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; display: none; }  /* only focusable where the video plays */
.hero-stop-btn { display: none; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hero-stop { display: block; }
  .hero-stop-btn { display: grid; place-items: center; position: absolute; left: 20px; bottom: 20px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(8,20,28,.45); color: #fff; cursor: pointer; opacity: .7; transition: opacity .2s, background .2s; }
  .hero-stop-btn:hover, .hero-stop:focus-visible + .hero-stop-btn { opacity: 1; background: rgba(8,20,28,.75); }
  .hero-stop:focus-visible + .hero-stop-btn { outline: 2px solid #fff; outline-offset: 2px; }
  .hero-stop-btn svg { fill: currentColor; }
  .hero-stop-btn .i-play, .hero-stop:checked + .hero-stop-btn .i-pause { display: none; }
  .hero-stop:checked + .hero-stop-btn .i-play { display: inline; }
  .hero-stop:checked ~ video { display: none; }
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,20,28,.1) 0%, rgba(8,20,28,.35) 45%, rgba(8,20,28,.82) 100%); }
.hero .container { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.hero-text { max-width: 620px; text-align: right; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: .25em; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero .kicker { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 18px; margin-bottom: 6px; }
.hero .affil { font-size: 14.5px; font-weight: 600; color: #bfe9f1; margin-bottom: 16px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero p { font-size: 17.5px; font-weight: 500; line-height: 1.65; margin: 0 0 30px; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.hero .actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(8,20,28,.15), rgba(8,20,28,.88)); }
  .hero { align-items: flex-end; padding: 56px 0 40px; min-height: 64svh; height: auto; }
  .hero h1 { font-size: 32px; }
  .hero .kicker { font-size: 15px; }
  .hero p { font-size: 15px; margin-bottom: 18px; }
  .hero-text { text-align: left; }
  .hero .actions { justify-content: flex-start; }
}

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: min(1140px, 100% - 32px); margin: 0 auto 72px; }
.tile { border-radius: 6px; overflow: hidden; min-height: 200px; }
@media (max-width: 480px) { .tiles { gap: 10px; margin-bottom: 48px; } .tile { min-height: 96px; } }
.tile { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 46px 24px 42px; text-align: center; color: #fff; text-decoration: none; background: #4c555a linear-gradient(rgba(20,30,36,.5), rgba(20,30,36,.74)); background-image: linear-gradient(rgba(20,30,36,.5), rgba(20,30,36,.74)), var(--img, none); background-size: cover; background-position: center; transition: filter .2s; }
.tile h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.tile p { font-size: 13.5px; margin: 0 0 22px; opacity: .92; line-height: 1.6; }
.tile:hover { filter: brightness(1.12); color: #fff; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tile { padding: 26px 12px 24px; } .tile h3 { font-size: 16px; } .tile p { display: none; } .tile .btn { display: none; } }

/* sections */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { font-size: 30px; color: var(--accent-dark); text-align: center; margin-bottom: 14px; }
.section-sub { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 44px; }
.center { text-align: center; }
.mt-l { margin-top: 34px; }
.group-label { font-family: var(--sans); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 22px; display: flex; align-items: center; gap: 14px; }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* about */
.about { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: start; }
.about { align-items: end; }
.about-photo { position: relative; display: flex; justify-content: center; align-self: stretch; align-items: flex-end; }
.about-photo img { position: relative; width: 100%; max-width: 400px; height: auto; }
.about h2 { font-size: 30px; }
.about h2 em { font-style: normal; color: var(--accent); }
.about p { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.fact { border-top: 3px solid var(--accent); padding-top: 10px; }
.fact b { font-family: var(--serif); font-size: 26px; display: block; color: var(--ink); }
.fact span { font-size: 12px; color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 32px; } .about-photo img { max-width: 280px; } .facts { grid-template-columns: repeat(2, 1fr); } }

/* dark highlight */
.highlight { background: var(--dark); color: #e9eef1; }
.highlight .section-title { color: #7fd0e0; margin-bottom: 40px; }
.highlight .grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.highlight .grid + .grid { margin-top: 64px; }
.highlight .grid.flip > :first-child { order: 2; }
.highlight h3 { color: #fff; text-transform: uppercase; font-family: var(--sans); font-weight: 700; font-size: 16px; letter-spacing: .04em; line-height: 1.5; }
.highlight .meta { color: #7fd0e0; }
.highlight p { color: #b9c5cc; }
.highlight img { border-radius: 4px; width: 100%; aspect-ratio: 3/2; object-fit: cover; }
@media (max-width: 900px) { .highlight .grid { grid-template-columns: 1fr; gap: 26px; } .highlight .grid.flip > :first-child { order: 0; } }

/* image band */
.band { position: relative; color: #fff; padding: 110px 0; background: #0d1a22 var(--img) center/cover no-repeat; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,22,30,.9) 0%, rgba(10,22,30,.62) 50%, rgba(10,22,30,.05) 100%); }
.band .container { position: relative; }
.band .inner { max-width: 540px; }
.band h2 { font-size: 34px; margin-bottom: .2em; color: #fff; }
.band .kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; font-size: 15px; }
.band p { opacity: .93; }
@media (max-width: 700px) { .band::before { background: rgba(10,22,30,.75); } }


/* cards */
.card { background: var(--surface); border-radius: 4px; overflow: hidden; box-shadow: 0 6px 24px -10px rgba(0,0,0,.22); text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; transition: transform .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -14px rgba(0,0,0,.3); color: inherit; }
.card .ph { aspect-ratio: 16/10; overflow: hidden; background: #fff; border-bottom: 1px solid var(--bg-soft); }
.card .ph picture { display: block; height: 100%; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card .ph img.fig { object-fit: contain; padding: 14px; }
a.card:hover .ph img { transform: scale(1.04); }
.card .body { padding: 20px 22px 24px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 18.5px; color: var(--accent-dark); margin: 6px 0 8px; }
.card p { font-size: 14px; color: var(--muted); margin: 0 0 18px; line-height: 1.65; flex: 1; }
.card .btn { align-self: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid3, .grid2 { grid-template-columns: 1fr; } }

/* video cards */
.vcard video { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 4px; }
.vcard h3 { font-size: 17px; margin: 14px 0 6px; color: var(--ink); }
.vcard p { font-size: 13.5px; color: var(--muted); }

/* news */
.news { list-style: none; margin: 0; padding: 0; }
.news li { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.news time { font-weight: 600; color: var(--muted); font-size: 13px; display: block; }
.news .chip { margin-top: 4px; }
@media (max-width: 560px) { .news li { grid-template-columns: 1fr; gap: 4px; } }

/* page header */
.page-head { background: var(--bg-soft); padding: 64px 0 54px; text-align: center; }
.page-head h1 { font-size: clamp(30px, 4vw, 40px); color: var(--accent-dark); margin-bottom: 10px; }
.page-head p { max-width: 720px; margin: 0 auto; color: var(--muted); }
.page-head .rule { width: 46px; height: 3px; background: var(--accent); margin: 18px auto 0; }
.crumbs { font-size: 13px; margin-top: 20px; color: var(--muted); }
@media (max-width: 700px) { .crumbs { font-size: 15px; line-height: 1.6; } }
.crumbs a { text-decoration: none; }
.page-head.photo { position: relative; color: #fff; padding: 120px 0 90px; background: #1c262e var(--img) center/cover no-repeat; }
@media (min-width: 900px) { .page-head.photo, .band { background-image: var(--img-lg, var(--img)); } }
.page-head.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(12,22,30,.66), rgba(12,22,30,.84)); }
.page-head.photo .container { position: relative; }
.page-head.photo h1 { color: #fff; }
.page-head.photo p, .page-head.photo .crumbs { color: rgba(255,255,255,.95); }
.page-head.photo p { font-weight: 500; font-size: 16px; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.page-head.photo .crumbs a { color: #9fe0ec; }
.page-head .head-links { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* project page */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .split, .split.even { grid-template-columns: 1fr; gap: 32px; } }
.prose h2 { font-size: 24px; color: var(--accent-dark); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; }
.factbox { background: var(--bg-soft); border-radius: 4px; padding: 24px 26px; }
.factbox dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.factbox dt { font-weight: 600; color: var(--ink); }
.factbox dd { margin: 0; color: var(--muted); }
.factbox .btn { margin: 18px 8px 0 0; }
.figure img { width: 100%; height: auto; }
.figure { background: #fff; padding: 14px; border-radius: 4px; box-shadow: 0 10px 30px -14px rgba(0,0,0,.3); margin-bottom: 24px; }
.aims { max-width: 820px; margin: 0 auto; counter-reset: aim; }
.aim { display: grid; grid-template-columns: 64px 1fr; gap: 24px; position: relative; padding-bottom: 34px; }
.aim::before { counter-increment: aim; content: counter(aim); width: 56px; height: 56px; border-radius: 50%; background: var(--dark); color: #7fd0e0; font-family: var(--serif); font-size: 22px; display: grid; place-items: center; position: relative; z-index: 1; }
.aim:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--dark); }
.aim h3 { font-size: 17px; margin: 14px 0 4px; }
.aim p { margin: 0; color: var(--muted); font-size: 14.5px; }
.people { display: flex; gap: 22px; flex-wrap: wrap; }
.person { text-align: center; width: 116px; font-size: 13px; line-height: 1.35; }
.person img, .person .avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; }
.avatar { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font: 600 24px var(--sans); }
.person span { color: var(--muted); font-size: 12px; }

/* publications */
.pub-tools { position: sticky; top: var(--nav-h); z-index: 20; background: var(--nav-bg); border-bottom: 1px solid var(--line); padding: 14px 0; }
.pub-tools .container { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pub-tools input { flex: 1 1 240px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 3px; font: 16px var(--sans); }  /* 16px: stops iOS Safari zooming in on focus */
.pub-tools input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 14px; font: 600 12.5px var(--sans); color: var(--muted); cursor: pointer; }
.filters button.on { background: var(--btn); border-color: var(--btn); color: #fff; }
.pub-count { font-size: 12.5px; color: var(--muted); }
.pub-year { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 40px 0 10px; border-bottom: 1px solid var(--line); }
.pub-year > h2 { font-size: 34px; color: var(--accent-dark); position: sticky; top: calc(var(--nav-h) + 84px); align-self: start; margin: 0; }
.pub-type { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 16px; }
.pub-group { margin-bottom: 26px; }
.pub { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 18px; margin-bottom: 16px; background: var(--surface); border-radius: 4px; box-shadow: 0 4px 18px -10px rgba(0,0,0,.2); }
.pub .teaser { align-self: center; }
.pub .teaser img { width: 100%; height: auto; max-height: 240px; object-fit: contain; }
.pub .teaser picture { display: block; }
/* same gentle zoom as the project cards when pointing at a publication */
.pub .teaser picture, .pub .teaser .yt { overflow: hidden; border-radius: 3px; }
.pub .teaser img { transition: transform .5s, opacity .2s; }
.pub:hover .teaser img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .pub .teaser img, .card .ph img { transition: none; } .pub:hover .teaser img, a.card:hover .ph img { transform: none; } }
.pub h3 { font-size: 16.5px; line-height: 1.45; margin: 4px 0 6px; color: var(--ink); }
.pub .authors { font-size: 13.5px; color: var(--muted); margin: 0 0 4px; }
.pub .authors b { color: var(--ink); font-weight: 600; }
.pub .venue { font-size: 13.5px; color: var(--muted); font-style: italic; margin: 0 0 10px; }
.pub .links { display: flex; flex-wrap: wrap; gap: 6px; }
.pub .links a { font-size: 12px; font-weight: 600; text-decoration: none; padding: 4px 11px; border-radius: 3px; background: var(--bg-soft); color: var(--accent-dark); }
.pub .links a:hover { background: var(--btn); color: #fff; }
.pub-empty { display: none; padding: 40px 0; text-align: center; color: var(--muted); }
@media (max-width: 760px) {
  .pub-year { grid-template-columns: 1fr; gap: 6px; }
  .pub-year > h2 { position: static; }
  .pub { grid-template-columns: 1fr; }
  .pub .teaser { order: 2; }
}
.pub-list .pub { grid-template-columns: 240px 1fr; }
@media (max-width: 760px) { .pub-list .pub { grid-template-columns: 1fr; } }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 26px; }
.member { background: var(--surface); border-radius: 4px; box-shadow: 0 6px 22px -12px rgba(0,0,0,.25); padding: 26px 20px 22px; text-align: center; }
.member img, .member .avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.member h3 { font-size: 17px; margin: 0 0 4px; }
.member .role { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 8px; line-height: 1.5; }
.member p { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; line-height: 1.55; }
.member .years { font-size: 12px; color: var(--faint); }
.member a.li { font-size: 12.5px; font-weight: 600; text-decoration: none; }
.alumni { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.alum { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.alum img, .alum .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; font-size: 18px; }
.alum h3 { font-size: 15px; margin: 0 0 2px; }
.alum p { font-size: 13px; color: var(--muted); margin: 0 0 4px; line-height: 1.5; }
.alum .now { font-size: 12.5px; color: var(--ink); }
.alum .now b { color: var(--accent-dark); }

/* timeline (teaching, CV) */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.titem { position: relative; padding-bottom: 30px; }
.titem::before { content: ""; position: absolute; left: -32px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.titem .when { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.titem h3 { font-size: 17.5px; margin: 2px 0 2px; }
.titem .where { font-size: 13.5px; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.titem p { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.award { padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--bg-soft); border-radius: 0 4px 4px 0; }
.award .when { font-size: 12px; font-weight: 700; color: var(--accent); }
.award h3 { font-size: 15.5px; margin: 2px 0 6px; }
.award p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }
.cv-head { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.cv-head img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; box-shadow: 0 12px 30px -14px rgba(0,0,0,.4); }
.cv-head h1 { color: var(--accent-dark); font-size: 36px; margin-bottom: 4px; }
.cv-head .title { font-weight: 600; margin-bottom: 14px; }
.cv-head .head-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 700px) { .cv-head { grid-template-columns: 1fr; text-align: center; } .cv-head img { margin: 0 auto; width: 160px; height: 160px; } .cv-head .head-links { justify-content: center; } }
.checklist { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.checklist li { padding: 6px 0 6px 24px; position: relative; font-size: 14px; color: var(--muted); break-inside: avoid; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li { padding: 7px 0; font-size: 14px; color: var(--muted); line-height: 1.5; border-bottom: 1px solid var(--line); }
.service-list li:last-child { border-bottom: 0; }
.service-list b { color: var(--ink); font-weight: 600; }
.service-list span { float: right; margin-left: 12px; font-size: 13px; }
@media (max-width: 640px) { .checklist { columns: 1; } }
.cv-section + .cv-section { margin-top: 64px; }
.cv-section > h2 { font-size: 26px; color: var(--accent-dark); margin-bottom: 26px; }

/* PhD topics */
.topic { background: var(--surface); border-radius: 4px; box-shadow: 0 6px 22px -12px rgba(0,0,0,.25); padding: 26px 28px; display: flex; flex-direction: column; }
.topic h3 { font-size: 19px; color: var(--accent-dark); margin-bottom: 6px; }
.topic .note { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.topic .co { font-size: 13px; color: var(--ink); margin-bottom: 10px; }
.topic p, .topic li { font-size: 14px; color: var(--muted); }
.topic.wide { grid-column: 1 / -1; }
.topic .btn { align-self: flex-start; margin-top: auto; }
.cta { background: var(--dark); color: #e9eef1; border-radius: 4px; padding: 36px 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.cta p { color: #b9c5cc; margin: 0; max-width: 640px; }

/* footer */
.footer { background: var(--dark); color: #b9c5cc; padding: 0; font-size: 14px; margin-top: 0; }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; padding: 60px 0 46px; }
.footer blockquote { font-family: var(--serif); color: #fff; font-size: 18px; line-height: 1.6; margin: 0 0 8px; }
.footer cite { color: #7fd0e0; font-style: normal; font-size: 13px; font-weight: 600; }
.footer h4 { color: #fff; font-size: 17px; }
.footer a { color: #cfe9ef; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; }
.footer .social a { margin-left: 14px; text-decoration: none; }
.footer .social a:first-child { margin-left: 0; }
@media (max-width: 800px) { .footer .cols { grid-template-columns: 1fr; } }

/* fade-in on scroll: pure CSS (scroll-driven animations); content is always visible where unsupported */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  }
}
@media (max-width: 760px) { .pub-tools { position: static; } }

/* click-to-load YouTube */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; background: #000; cursor: pointer; border-radius: 3px; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; max-height: none !important; opacity: .92; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 60px; height: 42px; margin: -21px 0 0 -30px; background: rgba(20,20,20,.8); border-radius: 10px; }
.yt-play::after { content: ""; position: absolute; left: 24px; top: 12px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt-play { background: #e00; }
.cv-gap { margin-top: 80px !important; }

/* Prevent horizontal overflow on mobile Safari: let grid/flex children shrink, keep media out of intrinsic sizing */
html, body { overflow-x: clip; }
.pub > *, .pub-year > *, .split > *, .grid2 > *, .grid3 > *, .about > *, .highlight .grid > *, .alum > * { min-width: 0; }
.yt img { position: absolute; inset: 0; }
.pub .teaser picture, .pub .teaser img { display: block; max-width: 100%; }
.pub h3, .pub .authors, .pub .venue, .prose, .news li > div { overflow-wrap: anywhere; }
.pub-tools input { min-width: 0; width: 100%; }
.people.collab { justify-content: center; gap: 28px; }
.people.collab .person { width: 130px; }

/* about section first on the home page: tighter top spacing, compact photo on phones */
.hero + .section { padding-top: 64px; }
@media (max-width: 900px) {
  .hero + .section { padding-top: 36px; }
  .about { gap: 18px; }
  .about-photo img { max-width: 210px; }
}

/* search box with clear (x) button */
.search-wrap { position: relative; flex: 1 1 240px; min-width: 0; }
.search-wrap input { width: 100%; padding-right: 42px; }
.search-wrap input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--muted); font: 600 20px/1 var(--sans); cursor: pointer; display: grid; place-items: center; padding: 0; }
.search-clear:hover { background: var(--btn); color: #fff; }

/* compact Impressum */
.impressum .page-head { padding: 34px 0 26px; }
.impressum .section { padding: 28px 0 36px; }
.impressum .factbox p { margin-bottom: .5em; }
.impressum .factbox .pub-type { margin-bottom: 6px; }
@media (max-width: 700px) { .impressum .factbox { padding: 18px 20px; font-size: 14px; } .impressum .page-head { padding: 24px 0 18px; } .impressum .section { padding: 20px 0 24px; } }
.impressum .footer .bottom { padding: 14px 0; }

/* publications header: first pages of high-impact papers side by side */
.page-head.covers { position: relative; overflow: hidden; background: #1c262e; color: #fff; padding: 96px 0 76px; }
.cover-strip { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; gap: 22px; padding-top: 18px; }
.cover-strip img { flex: 0 0 auto; height: 125%; width: auto; border-radius: 2px; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.cover-strip img:nth-child(even) { transform: translateY(14px); }
.page-head.covers::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 75% at center, rgba(12,22,30,.84) 0%, rgba(12,22,30,.6) 60%, rgba(12,22,30,.38) 100%); }
.page-head.covers .container { position: relative; z-index: 1; }
.page-head.covers h1 { color: #fff; }
.page-head.covers p { color: rgba(255,255,255,.93); font-weight: 500; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.page-head.covers p a { color: #9fe0ec; }
.page-head.covers .btn-outline { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); }
.page-head.covers .btn-outline:hover { background: #fff; color: var(--ink); }
.page-head.covers .crumbs, .page-head.covers .crumbs a { color: rgba(255,255,255,.9); }
@media (max-width: 700px) { .page-head.covers { padding: 70px 0 56px; } .cover-strip { gap: 14px; } }

.crumbs span[aria-current] { color: inherit; }
.cv-head .crumbs { margin-top: 18px; }
.impressum .crumbs { margin-top: 8px; }

/* form fields and theme switch */
.pub-tools input { background: var(--surface); color: var(--ink); }
.theme-toggle { margin-left: auto; margin-right: 6px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; flex: 0 0 auto; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
@media (min-width: 1081px) { .nav-toggle { display: none; } .nav ul { margin-left: auto; } .theme-toggle { order: 3; margin: 0 0 0 22px; } }
/* dark mode details */
:root[data-theme="dark"] .card .ph, :root[data-theme="dark"] .figure { background: #e9eef1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card .ph, :root:not([data-theme="light"]) .figure { background: #e9eef1; } }
@media (max-width: 420px) { .brand span { font-size: 9.5px; letter-spacing: .12em; } .brand b { font-size: 16px; } .theme-toggle { width: 34px; height: 34px; } }

.os-facts { margin-top: 0; }
@media (max-width: 1200px) and (min-width: 1081px) { .nav ul { gap: 16px; } .nav ul a { font-size: 13.5px; } }

/* small accent-coloured text uses a deeper teal for WCAG AA contrast; bright teal stays for lines and dots */
.brand span, .pub-type, .group-label, .member .role, .titem .when, .award .when, .topic .note, .crumbs a, .person span { color: var(--accent-text); }
.chip { color: var(--accent-text); }
:root:not([data-theme="dark"]) .chip { color: #165f6e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip { color: var(--accent-dark); } }
.page-head.photo .crumbs a, .page-head.covers .crumbs a { color: #9fe0ec; }

.vcard .yt { border-radius: 4px; }

.nowrap { white-space: nowrap; }
@media (max-width: 380px) { .nowrap { white-space: normal; } }
/* print: just the content */
@media print {
  .nav, .skip, .footer, .hero video, .hero-stop-btn, .theme-toggle, .pub-tools, .cover-strip, .cta, .tiles { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-head, .page-head.photo, .page-head.covers, .highlight, .band, .hero { background: none !important; color: #000 !important; padding: 12px 0 !important; min-height: 0 !important; }
  .page-head.photo::before, .page-head.covers::after, .band::before, .hero::after { display: none !important; }
  .page-head h1, .hero h1, .band h2, .highlight h3, .page-head.photo h1, .page-head.covers h1 { color: #000 !important; text-shadow: none !important; }
  .page-head p, .hero p, .band p, .highlight p { color: #222 !important; text-shadow: none !important; }
  .section { padding: 16px 0; }
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
  a { color: #000; }
  .card, .pub, .member, .award, .titem { break-inside: avoid; box-shadow: none; }
}

/* contrast: active filter and outline buttons */
.filters button.on { background: var(--btn); border-color: var(--btn); color: #fff; }
:root[data-theme="dark"] .btn-outline { color: var(--accent-dark); box-shadow: inset 0 0 0 2px var(--accent); }
:root[data-theme="dark"] .filters button.on { background: #45b8cf; border-color: #45b8cf; color: #0b1216; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-outline { color: var(--accent-dark); box-shadow: inset 0 0 0 2px var(--accent); }
  :root:not([data-theme="light"]) .filters button.on { background: #45b8cf; border-color: #45b8cf; color: #0b1216; }
}
/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound h1 { font-size: 64px; color: var(--accent-dark); margin: 0; }
.notfound form { display: flex; gap: 8px; max-width: 420px; margin: 26px auto; }
.notfound input { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 3px; font: 16px var(--sans); background: var(--surface); color: var(--ink); }
/* media page */
.media-photos figure { margin: 0; }
.media-photos img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; }
.media-photos img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 10px 30px -16px rgba(0,0,0,.35); }
.media-photos figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.media-credit { font-size: 13px; color: var(--muted); margin-top: 18px; }
.talk-list { list-style: none; padding: 0 !important; }
.talk-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.talk-list span { display: inline-block; min-width: 72px; font-weight: 600; color: var(--accent-text); font-size: 12.5px; }

/* projects grid (home) */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1100px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid4 { grid-template-columns: 1fr; } }
/* news: native disclosure instead of JS */
.news-more { margin-top: 0; }
.news-more > summary { list-style: none; display: table; margin: 26px auto 0; cursor: pointer; }
.news-more > summary::-webkit-details-marker { display: none; }
.news-more[open] > summary { display: none; }
