/* Extramus Alumni (alumni.extramusportal.it). The brand's indigo, green and red
   from the logo; Inter, served from this site. Light and dark themes. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("fonts/inter-800.woff2") format("woff2"); }
/* While Inter loads, a local fallback sized like it, so the text barely moves when Inter arrives */
@font-face { font-family: "Inter fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }

:root {
  --indigo: #3a3089; --indigo-deep: #221b5a; --indigo-soft: #eeecf9; --green: #29af4b; --green-soft: #e6f6ea; --green-ink: #1c7a35; --green-btn: #1c7a35;
  --red: #e9212a; --amber-soft: #fdf3dd; --amber-ink: #8a5a0f;
  /* page, cards, quiet surfaces: a lavender-tinted white; green is kept for the main buttons */
  --ink: #17142e; --ink2: #4a4664; --ink3: #6b6687; --bg: #fbfaff; --paper: #ffffff; --mist: #f3f1fb; --line: #e7e4f2; --link: #3a3089; --accent: #3a3089;
  --font: "Inter", "Inter fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --soft: cubic-bezier(.33, 1, .68, 1);
  --shadow: 0 1px 2px rgba(34, 27, 90, .05), 0 10px 28px -10px rgba(34, 27, 90, .16);
  color-scheme: light;
}
/* Dark: the visitor's choice (theme.js sets data-theme), else the system setting */
:root[data-theme="dark"] {
    --indigo-soft: #2a2552; --green-soft: #173523; --green-ink: #7fd39b; --amber-soft: #3a2d12; --amber-ink: #f0c56b;
    --ink: #eeecf8; --ink2: #c4c0d9; --ink3: #928dad; --bg: #0d0b1f; --paper: #18153a; --mist: #141130; --line: #29254a; --link: #b3a8f5; --accent: #b3a8f5;
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --indigo-soft: #2a2552; --green-soft: #173523; --green-ink: #7fd39b; --amber-soft: #3a2d12; --amber-ink: #f0c56b;
    --ink: #eeecf8; --ink2: #c4c0d9; --ink3: #928dad; --bg: #0d0b1f; --paper: #18153a; --mist: #141130; --line: #29254a; --link: #b3a8f5; --accent: #b3a8f5;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--ink3); }

/* Header: logo, the menu with a pill that marks the page, then language, theme and the Extramus site */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .3s var(--ease); }
.top.is-scrolled { box-shadow: 0 6px 18px rgba(20, 16, 50, .07); }
.top-row { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink2); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; flex: none; }
.brand img { height: 32px; width: auto; transition: transform .5s var(--soft); }
.brand:hover img { transform: translateY(-1px) scale(1.03); }
.brand span { padding-left: 12px; border-left: 1px solid var(--line); }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
.menu { position: relative; display: flex; align-items: center; gap: 2px; margin-left: auto; isolation: isolate; }
.menu > a { position: relative; color: var(--ink2); text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 8px 14px; border-radius: 999px; transition: color .3s var(--soft); }
.menu > a:hover, .menu > a[aria-current="page"] { color: var(--ink); }
.menu:not(.has-pill) > a[aria-current="page"] { background: var(--mist); }
/* The pill slides to the link under the pointer and back to the page you are on (site.js) */
.menu-pill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; background: var(--mist); z-index: -1; opacity: 0; transition: transform .5s var(--soft), width .5s var(--soft), opacity .3s var(--soft); }
.menu-pill.on-page::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.tools { display: flex; align-items: center; gap: 8px; }
.icon-btn, .lang summary { height: 38px; min-width: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 500 13.5px var(--font); cursor: pointer; transition: border-color .3s var(--soft), transform .25s var(--soft); }
.icon-btn:hover, .lang summary:hover { border-color: var(--ink3); }
.icon-btn:active, .lang summary:active { transform: scale(.96); }
.flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
/* Language: a <details> menu, so it works without JavaScript; site.js closes it on a click outside or Escape */
.lang { position: relative; }
.lang summary { list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang .chev { width: 12px; height: 12px; color: var(--ink3); transition: transform .4s var(--soft); }
.lang[open] .chev { transform: rotate(180deg); }
.lang[open] summary { border-color: var(--accent); }
.lang-list { position: absolute; right: 0; top: calc(100% + 10px); z-index: 2; width: 220px; padding: 6px; display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(20, 16, 50, .16); transform-origin: top right; }
.lang[open] .lang-list { animation: menu-in .35s var(--soft) both; }
.lang-list a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; transition: background-color .2s; }
.lang-list a:hover, .lang-list a[aria-current] { background: var(--mist); }
.lang-list a[aria-current] { font-weight: 700; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
/* Theme: sun and moon swap with a turn */
.theme-btn { position: relative; width: 38px; padding: 0; overflow: hidden; }
.theme-btn svg { position: absolute; width: 18px; height: 18px; transition: transform .5s var(--soft), opacity .35s var(--soft); }
.theme-btn .moon { transform: translateY(22px) rotate(-90deg); opacity: 0; }
:root[data-theme="dark"] .theme-btn .sun { transform: translateY(-22px) rotate(90deg); opacity: 0; }
:root[data-theme="dark"] .theme-btn .moon { transform: none; opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { transform: translateY(-22px) rotate(90deg); opacity: 0; } :root:not([data-theme="light"]) .theme-btn .moon { transform: none; opacity: 1; } }
.menu-btn { display: none; width: 40px; padding: 0; flex-direction: column; gap: 4px; }
.menu-btn i { display: block; width: 16px; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform .45s var(--soft), opacity .3s var(--soft); }
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }
.ext { display: inline-flex; gap: 6px; align-items: center; margin-left: 4px; padding: 8px 4px 8px 16px; border-left: 1px solid var(--line); color: var(--ink2); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .3s var(--soft); }
.ext:hover { color: var(--ink); }
.ext span { display: inline-block; transition: transform .4s var(--soft); }
.ext:hover span { transform: translate(2px, -2px); }
/* The logo's three colours as a thin band; in the header it fills as the page scrolls (site.js) */
.band { height: 3px; background: var(--line); overflow: hidden; }
.band-fill { display: flex; height: 100%; transform-origin: 0 50%; }
.band-fill i { display: block; }
.band-fill i:nth-child(1) { flex: 6; background: var(--indigo); }
.band-fill i:nth-child(2) { flex: 2.5; background: var(--green); }
.band-fill i:nth-child(3) { flex: 1.5; background: var(--red); }
.drawer, .tabbar { display: none; }
/* The header gets a wider row than the page, so the Extramus link sits further right */
.top > .wrap { max-width: 1360px; }
.signin { gap: 8px; padding: 0 16px; background: var(--indigo); border-color: var(--indigo); color: #fff; font-weight: 600; text-decoration: none; }
.signin:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); }
:root[data-theme="dark"] .signin { background: #4a3fb0; border-color: #4a3fb0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .signin { background: #4a3fb0; border-color: #4a3fb0; } }
.signin svg { width: 17px; height: 17px; }
.ext { margin-left: 10px; padding-left: 18px; }
/* Nothing may push the page sideways (a closed menu still has a size) */
body { overflow-x: clip; }
@media (max-width: 1180px) { .signin { width: 38px; padding: 0; } .signin span { display: none; } }

/* Buttons and small parts */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; transition: background-color .25s var(--soft), box-shadow .3s var(--soft), transform .25s var(--soft); font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--green-btn); color: #fff; }
.btn-primary:hover { background: #166329; box-shadow: 0 8px 20px rgba(28, 122, 53, .25); }
.btn:active { transform: scale(.97); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--mist); color: var(--ink2); border: 1px solid var(--line); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; white-space: nowrap; }
.tag-current { background: var(--indigo-soft); color: var(--link); }
.tag-future { background: var(--amber-soft); color: var(--amber-ink); }
.tag-alumni { background: var(--green-soft); color: var(--green-ink); }
.tag-lead { background: var(--indigo); color: #fff; font-size: 11px; vertical-align: 2px; }
.tag-p-planned { background: var(--mist); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); }
.tag-p-progress { background: var(--indigo-soft); color: var(--link); }
.tag-p-review { background: var(--amber-soft); color: var(--amber-ink); }
.tag-p-done { background: var(--green-soft); color: var(--green-ink); }

/* Hero */
.hero { background: #1a1450; isolation: isolate; color: #fff; padding: clamp(48px, 8vw, 104px) 0 clamp(36px, 5vw, 56px); position: relative; overflow: hidden; }
/* the hero fills the first screen (below the header); the content sits in its middle */
.hero { min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); display: flex; align-items: center; }
.hero > .hero-grid { width: 100%; }
.hero h1 { font-size: clamp(2rem, 3.2vw, 2.75rem); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px 48px; align-items: center; position: relative; z-index: 1; }
.hero-grid-solo { grid-template-columns: minmax(0, 1fr); }
/* Wide screens: text 4, slider 6; the numbers sit under the buttons, small, and the slider spans both rows */
@media (min-width: 861px) {
  .hero-grid:not(.hero-grid-solo) { grid-template-rows: auto auto; row-gap: 30px; }
  .hero-grid:not(.hero-grid-solo) > div:first-child { grid-row: 1; align-self: end; }
  .hero-grid:not(.hero-grid-solo) > .slider { grid-column: 2; grid-row: 1 / span 2; }
  .hero-grid:not(.hero-grid-solo) > .stats { grid-column: 1; grid-row: 2; align-self: start; grid-auto-columns: max-content; gap: 30px; }
  .hero-grid:not(.hero-grid-solo) .stat { border-top: 0; padding-top: 0; gap: 7px; }
  .hero-grid:not(.hero-grid-solo) .stat-num { font-size: 1.6rem; }
  .hero-grid:not(.hero-grid-solo) .stat-label { font-size: .85rem; }
}
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero .eyebrow { color: #c9c1ff; }
.hero .eyebrow, .hero h1, .hero .lead, .hero-actions, .stats { animation: hero-rise .6s var(--ease) both; }
.hero h1 { animation-delay: .08s; }
.hero .lead { animation-delay: .16s; }
.hero-actions { animation-delay: .24s; }
.stats { animation-delay: .4s; }
.lead { font-size: 1.15rem; color: var(--ink2); margin-top: 16px; max-width: 60ch; }
.hero .lead { color: rgba(255, 255, 255, .82); }
.hero-actions { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.stats { display: grid; grid-column: 1 / -1; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px; }
.stats:empty { display: none; }
.stat { display: flex; align-items: baseline; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 14px; }
.stat-num { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: rgba(255, 255, 255, .75); font-weight: 600; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--mist); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.section-head a { font-weight: 700; text-decoration: none; }
.section-lead { color: var(--ink2); margin: -10px 0 18px; }
.page-head { padding: 48px 0 8px; }
.page-head.has-banner + .section { padding-top: 28px; }

/* Home: how the internship works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
/* A line through the numbers, in the logo's colours. */
.steps::before { content: ""; position: absolute; left: 24px; right: calc((100% - 60px) / 4 - 24px); top: 23px; height: 2px; background: linear-gradient(90deg, var(--indigo), var(--green), var(--red)); opacity: .35; }
.step { position: relative; display: grid; gap: 8px; align-content: start; }
.step-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 800; font-size: 1.2rem; box-shadow: 0 0 0 6px var(--paper); margin-bottom: 6px; }
.step:nth-child(2) .step-num { background: #5b4bd6; }
.step:nth-child(3) .step-num { background: var(--green-btn); }
.step:nth-child(4) .step-num { background: var(--red); }
.step h3 { font-size: 1.08rem; font-weight: 700; }
.step p { color: var(--ink2); font-size: 15px; }

/* Departments (#228): the way in. A card per department: its initials on a brand tone, its name, links to its projects and people */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dept-grid-all { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dept-card { --tone: var(--indigo); position: relative; display: grid; gap: 14px; align-content: start; padding: 24px 22px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--soft), box-shadow .35s var(--soft), border-color .3s var(--soft); }
.dept-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--tone); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--soft); }
.dept-card:hover, .dept-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.dept-card:hover::before, .dept-card:focus-within::before { transform: scaleX(1); }
.dept-tone-1 { --tone: var(--green-btn); } .dept-tone-2 { --tone: #c81d25; } .dept-tone-3 { --tone: var(--indigo-deep); }
.dept-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tone); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .02em; transition: transform .5s var(--soft); }
.dept-card:hover .dept-ico { transform: translateY(-2px) rotate(-4deg); }
.dept-card h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.dept-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; }
.dept-empty { color: var(--ink3, var(--ink2)); font-size: 14px; }   /* lib/depts.php: a department nobody is listed in yet */
.dept-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.dept-links a span[aria-hidden] { display: inline-block; transition: transform .3s var(--soft); }
.dept-links a:hover span[aria-hidden] { transform: translateX(3px); }
.dept-count { color: var(--ink3); font-weight: 600; font-variant-numeric: tabular-nums; }
.depts-section { padding-top: 48px; }
.back { display: inline-block; text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.empty { color: var(--ink3); padding: 24px 0; }

/* Filters: one family of controls, the same height, radius, border and focus ring */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.input { font: inherit; font-size: 15px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); min-width: 0; transition: border-color .3s var(--soft), box-shadow .3s var(--soft); }
.input:hover { border-color: var(--ink3); }
.input:focus-visible, .field:focus-within, .dd-btn:focus-visible, .dd.is-open .dd-btn { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.field { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink3); transition: border-color .3s var(--soft), box-shadow .3s var(--soft); }
.field-search { flex: 1 1 280px; min-width: 0; }
.field svg { width: 17px; height: 17px; flex: none; }
.field .input { border: 0; height: 100%; padding: 0; background: none; flex: 1; box-shadow: none; }
.field .input:focus-visible { box-shadow: none; }
.segs { position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); isolation: isolate; }
.seg { font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; height: 34px; border: 0; background: none; color: var(--ink2); padding: 0 12px; border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: color .3s var(--soft), background-color .3s var(--soft); }
.seg span { color: var(--ink3); font-weight: 500; }
.seg:hover { color: var(--ink); }
.seg.is-active, .seg[aria-current="true"], .seg[aria-pressed="true"] { color: var(--ink); background: var(--mist); }
.seg svg { width: 14px; height: 14px; }
/* Once site.js runs, the chosen one is marked by a thumb that glides */
.has-thumb .seg.is-active, .has-thumb .seg[aria-current="true"], .has-thumb .seg[aria-pressed="true"] { background: none; }
.seg-thumb { position: absolute; left: 0; top: 0; z-index: -1; border-radius: 8px; background: var(--mist); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(22, 19, 43, .06); pointer-events: none; transition: transform .45s cubic-bezier(.45, 0, .2, 1), width .45s cubic-bezier(.45, 0, .2, 1), opacity .3s var(--soft); }
.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: 0 0 16px; }
.view-switch { margin-left: auto; }
.filter-meta { display: flex; align-items: center; gap: 14px; color: var(--ink3); font-size: 14px; }
.filter-meta[hidden] { display: flex !important; visibility: hidden; }
.clear-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.clear-link:hover { text-decoration: underline; }
/* The department and country menu (site.js builds it over the real select) */
.dd { position: relative; }
.dd-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.dd-btn { display: flex; align-items: center; gap: 10px; height: 44px; min-width: 220px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: 500 15px var(--font); cursor: pointer; transition: border-color .3s var(--soft), box-shadow .3s var(--soft); }
.dd-btn:hover { border-color: var(--ink3); }
.dd-chev { margin-left: auto; width: 8px; height: 8px; border-right: 1.6px solid var(--ink3); border-bottom: 1.6px solid var(--ink3); transform: translateY(-2px) rotate(45deg); transition: transform .4s var(--soft); }
.dd.is-open .dd-chev { transform: translateY(2px) rotate(225deg); }
.dd-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 10px; font-weight: 800; letter-spacing: .02em; color: #fff; flex: none; background: var(--indigo); }
.dd-tone-1 { background: var(--green-btn); }
.dd-tone-2 { background: #c81d25; }
.dd-tone-3 { background: var(--indigo-deep); }
.dd-all { background: none; color: var(--ink3); border: 1px dashed var(--line); }
/* Anchored to the right: a closed menu can only stick out to the left, which never scrolls the page */
.dd-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; min-width: 100%; width: max-content; max-width: min(360px, 90vw); max-height: 60vh; overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(20, 16, 50, .16); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .3s var(--soft), transform .4s var(--soft), visibility 0s .4s; }
.dd.is-left .dd-list { left: 0; right: auto; transform-origin: top left; }
.dd.is-open .dd-list { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--soft), transform .4s var(--soft); }
.dd-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; font-size: 14.5px; color: var(--ink); opacity: 0; transform: translateY(-4px); transition: background-color .2s, opacity .35s var(--soft), transform .4s var(--soft); transition-delay: calc(var(--i, 0) * 22ms); }
.dd.is-open .dd-list li { opacity: 1; transform: none; }
.dd-list li.is-at, .dd-list li:hover { background: var(--mist); }
.dd-list li[aria-selected="true"] { font-weight: 700; }
.dd-list li[aria-selected="true"]::after { content: ""; width: 5px; height: 9px; margin: 0 4px 3px 2px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }
.dd-list li small { margin-left: auto; padding-left: 18px; color: var(--ink3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dd-list li.is-empty { color: var(--ink3); }
.dd-list li.is-empty .dd-ico { opacity: .45; }

/* Cards: one family for projects and people. A list by default (cover left, text, labels on the right),
   a grid on the home page, the 404 page and when the visitor picks it. */
.cards { display: grid; gap: 14px; }
.card { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .35s var(--soft), box-shadow .35s var(--soft), border-color .3s var(--soft); }
.card:hover, .card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card-cover { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--mist); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--soft); }
.card:hover .card-cover img, .card:focus-visible .card-cover img { transform: scale(1.05); }
.card-cover-empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--indigo-soft), var(--green-soft)); }
.card-body { display: grid; gap: 4px; align-content: center; min-width: 0; }
.card-title { font-size: 1.08rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.card-text { color: var(--ink2); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.card-meta { color: var(--ink3); font-size: 13.5px; }
.card-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 260px; }
.tag-dept { background: var(--paper); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); }
/* People: a round avatar in place of the cover */
.card-avatar { aspect-ratio: auto; width: 64px; justify-self: center; background: none; border-radius: 50%; overflow: visible; }
.card-avatar .avatar { width: 64px; height: 64px; font-size: 20px; }
.people-cards .card { grid-template-columns: 88px minmax(0, 1fr) auto; }
.person-quote { margin-top: 6px; color: var(--ink2); font-size: 14px; line-height: 1.5; border-left: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); padding-left: 12px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
/* Grid */
.cards.is-grid, :root[data-view="grid"] [data-cards] { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.people-cards.is-grid, :root[data-view="grid"] .people-cards[data-cards] { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.is-grid .card, :root[data-view="grid"] [data-cards] .card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-items: start; gap: 14px; padding: 10px 10px 16px; }
.is-grid .card-body, .is-grid .card-tags, :root[data-view="grid"] [data-cards] .card-body, :root[data-view="grid"] [data-cards] .card-tags { padding: 0 8px; }
.is-grid .card-tags, :root[data-view="grid"] [data-cards] .card-tags { justify-content: flex-start; max-width: none; }
.is-grid .card-avatar, :root[data-view="grid"] [data-cards] .card-avatar { justify-self: start; margin: 8px 0 0 8px; }
/* Same-page view transitions: cards move, leavers shrink away, newcomers come in */
::view-transition-group(*.card) { animation-duration: .5s; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
::view-transition-old(*.card):only-child { animation: card-out .3s cubic-bezier(.45, 0, .2, 1) both; }
::view-transition-new(*.card):only-child { animation: card-in .45s cubic-bezier(.45, 0, .2, 1) .08s both; }
.is-morphing::view-transition-old(root), .is-morphing::view-transition-new(root) { animation: none; }
@keyframes card-out { to { opacity: 0; transform: scale(.96); } }
@keyframes card-in { from { opacity: 0; transform: scale(.97); } }
/* Nothing matches */
.empty-box { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 44px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink3); background: color-mix(in srgb, var(--paper) 60%, transparent); }
.empty-box svg { width: 42px; height: 42px; color: var(--accent); }
.empty-box p { color: var(--ink); font-weight: 600; }
.btn-soft { background: var(--paper); color: var(--ink); border: 1px solid var(--line); padding: 9px 18px; font-size: 14.5px; }
.btn-soft:hover { border-color: var(--accent); }

/* Avatars: a photo, or initials on one of four tones */
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initials { display: grid; place-items: center; background: var(--indigo-soft); color: var(--link); font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.avatar-tone-1 { background: var(--green-soft); color: var(--green-ink); }
.avatar-tone-2 { background: var(--amber-soft); color: var(--amber-ink); }
.avatar-tone-3 { background: linear-gradient(135deg, var(--indigo-soft), var(--green-soft)); }
.avatar-sm { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg { width: 112px; height: 112px; font-size: 34px; }

/* A project */
.project-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.project-main h2 { margin: 32px 0 10px; }
.head-status { margin-top: 18px; }
.head-status .tag { font-size: 13px; padding: 4px 12px; }
.gallery-main { margin: 0; position: relative; }
.gallery-main.has-viewer img { cursor: zoom-in; }
.gallery-main img { width: 100%; height: auto; border-radius: var(--radius); background: var(--mist); }
.gallery-main figcaption { color: var(--ink3); font-size: 14px; margin-top: 8px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--mist); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--accent); }
.thumb img { transition: transform .3s var(--ease); }
.thumb:hover img { transform: scale(1.06); }

/* The image viewer (built by site.js on a project page) */
.viewer-open { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(23, 20, 46, .72); color: #fff; font-size: 20px; cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease); }
.viewer-open:hover { transform: scale(1.08); background: rgba(23, 20, 46, .9); }
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: viewer-in .25s var(--ease) both; }
.viewer::backdrop { background: rgba(10, 8, 28, .9); }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.viewer-stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 72px; position: relative; }
.viewer-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.viewer-img.is-entering { animation: viewer-in .3s var(--ease) both; }
/* moving between images: the new one slides in from the side it comes from */
.viewer-img.from-next { animation: viewer-from-next .42s var(--ease) both; }
.viewer-img.from-prev { animation: viewer-from-prev .42s var(--ease) both; }
@keyframes viewer-from-next { from { opacity: 0; transform: translateX(48px); } }
@keyframes viewer-from-prev { from { opacity: 0; transform: translateX(-48px); } }
.viewer-stage { touch-action: pan-y; }
@media (prefers-reduced-motion: reduce) { .viewer-img.from-next, .viewer-img.from-prev, .viewer-img.is-entering { animation: none; } }
.viewer-cap { text-align: center; color: rgba(255, 255, 255, .82); padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); min-height: 3em; }
.viewer-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease); }
.viewer-btn:hover { background: rgba(255, 255, 255, .26); transform: scale(1.06); }
.viewer-prev, .viewer-next { position: absolute; top: 50%; translate: 0 -50%; }
.viewer-prev { left: 14px; }
.viewer-next { right: 14px; }
@keyframes viewer-in { from { opacity: 0; transform: scale(.97); } }
.project-side { display: grid; gap: 18px; position: sticky; top: 88px; }
.side-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; }
.side-block h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); }
.member { display: flex; gap: 12px; text-decoration: none; color: var(--ink); }
.member > span { display: grid; gap: 2px; min-width: 0; }
.member-name { font-weight: 700; }
.member-role { color: var(--ink2); font-size: 14px; }
.member-details { color: var(--ink3); font-size: 13.5px; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.links a { font-weight: 600; }
.prose { color: var(--ink2); }
.prose > * + * { margin-top: .8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose strong { color: var(--ink); }
.prose code { background: var(--mist); padding: 1px 5px; border-radius: 4px; font-size: .92em; }

/* A person: the profile first, then what they worked on */
.person-head { padding-bottom: 40px; }
.profile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 8px; }
.avatar-xl { width: 176px; height: 176px; font-size: 54px; letter-spacing: .01em; }
.person-head .avatar-xl { box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px color-mix(in srgb, var(--accent) 45%, transparent), 0 24px 48px -16px rgba(34, 27, 90, .35); }
.profile-main { display: grid; gap: 10px; justify-items: start; min-width: 0; padding-top: 6px; }
.profile-main h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); overflow-wrap: anywhere; }
.profile-status .tag { font-size: 12.5px; padding: 4px 12px; }
.profile-role { font-size: 1.15rem; color: var(--ink2); font-weight: 600; }
.quote { position: relative; margin: 14px 0 4px; padding: 0 0 0 22px; max-width: 42ch; font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.45; font-weight: 500; color: var(--ink); border-left: 3px solid var(--accent); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 10px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); width: 100%; max-width: 640px; }
.facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink3); }
.facts dd { margin: 3px 0 0; font-weight: 600; }
.profile-actions { margin-top: 10px; }
/* a profile's buttons and Share in one row */
.profile-main > .profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.profile-actions > .head-share { margin: 0; }
.btn-linkedin { background: var(--paper); color: var(--ink); border: 1px solid var(--line); padding: 10px 18px; font-size: 15px; }
.btn-linkedin:hover { border-color: var(--accent); }
.btn-linkedin span { display: inline-block; transition: transform .35s var(--soft); }
.btn-linkedin:hover span { transform: translate(2px, -2px); }
.person-projects h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.contrib-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 900px; }
/* a profile's projects sit centred under the profile, in line with its About */
.person-projects .wrap > h2, .person-projects .contrib-list { max-width: 780px; margin-left: auto; margin-right: auto; }
.contrib-row { display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .35s var(--soft), box-shadow .35s var(--soft), border-color .3s var(--soft); }
.contrib-row:hover, .contrib-row:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.contrib-cover { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--mist); align-self: start; }
.contrib-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--soft); }
.contrib-row:hover .contrib-cover img { transform: scale(1.05); }
.contrib-body { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.contrib-title { font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.contrib-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.contrib-role { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.contrib-details { color: var(--ink2); font-size: 14.5px; line-height: 1.5; }
.contrib-go { color: var(--ink3); font-size: 1.2rem; padding: 0 8px; transition: transform .35s var(--soft), color .3s var(--soft); }
.contrib-row:hover .contrib-go { transform: translateX(4px); color: var(--accent); }
.member.supervisor { padding: 0; }

/* FAQ */
.faq-cat + .faq-cat { margin-top: 36px; }
.faq-cat h2 { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.faq-count { font-size: 13px; font-weight: 700; color: var(--ink3); background: var(--mist); border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 16px 12px; margin: 0 -12px; border-radius: 10px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: background .2s var(--ease); }
.faq-item summary:hover { background: var(--mist); }
.faq-item summary::-webkit-details-marker { display: none; }
/* One "+" that turns into "×" as the answer opens. */
.faq-item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mist); color: var(--ink2); font-weight: 700; font-size: 1.2rem; line-height: 1; transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--link); }
.faq-item .prose { padding: 2px 0 18px; }
.faq-item[open] .prose { animation: faq-open .3s var(--ease) both; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } }

/* Footer: about, explore, Extramus, languages; the band closes the page */
.foot { background: var(--mist); padding: 56px 0 0; margin-top: 48px; color: var(--ink2); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; gap: 36px; }
.foot-about img { height: 30px; width: auto; margin-bottom: 14px; }
.foot p { color: var(--ink3); max-width: 34ch; }
.foot-note { margin-top: 12px; font-size: 14px; }
.foot-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--ink3); margin-bottom: 14px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-links a, .foot-langs a { color: var(--ink2); text-decoration: none; font-weight: 500; transition: color .3s var(--soft), transform .35s var(--soft); }
.foot-links a:hover, .foot-langs a:hover { color: var(--ink); transform: translateX(3px); }
.foot-links a[aria-current="page"], .foot-langs a[aria-current] { color: var(--ink); font-weight: 700; }
.foot-links a { display: inline-block; }
.foot-langs a { display: inline-flex; align-items: center; gap: 8px; }
.foot-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--line); color: var(--ink3); font-size: 14px; }
.foot-base a { color: var(--ink3); text-decoration: none; }
/* "Led by …" sits at the very bottom, next to the copyright */
.foot-copy { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.foot-base .foot-lead { margin: 0; color: var(--ink3); }
.foot-base a:hover { color: var(--ink); }

/* Not found */
.lost { padding-top: 64px; }
.lost-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--indigo-soft); margin-bottom: 8px; }
.lost-actions { margin-top: 28px; }
.lost-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lost-link { display: inline-flex; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-weight: 600; color: var(--ink); transition: border-color .3s var(--ease); }
.lost-link span { display: inline-block; transition: transform .3s var(--ease); }
.lost-link:hover { border-color: var(--indigo); }
.lost-link:hover span { transform: translateX(3px); }
.lost-latest { margin-bottom: 22px; }

@media (max-width: 860px) {
  .hero-grid, .project-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { gap: 8px; }
  .field-search { flex: 1 1 100%; }
  .dd { flex: 1 1 100%; }
  .dd-btn { width: 100%; min-width: 0; }
  .filters > .segs:not(.view-switch) { flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters > .segs::-webkit-scrollbar { display: none; }
  .view-switch .seg span { display: none; }
  .card, .people-cards .card { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 10px; align-items: start; }
  .card-cover { aspect-ratio: 1; }
  .card-avatar { width: 56px; margin-top: 4px; }
  .card-avatar .avatar { width: 56px; height: 56px; font-size: 18px; }
  .card-title { font-size: 1rem; }
  .card-text { font-size: 13.5px; }
  .card-tags { grid-column: 2; justify-content: flex-start; max-width: none; flex-wrap: nowrap; overflow: hidden; }
  .card-tags .tag { flex: none; }
  .card-tags .tag:nth-child(n+3) { display: none; }
  .card-tags .tag:nth-child(2) { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .is-grid .card-tags, :root[data-view="grid"] [data-cards] .card-tags { grid-column: auto; flex-wrap: wrap; }
  :root[data-view="grid"] [data-cards] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  :root[data-view="grid"] [data-cards] .card-text, :root[data-view="grid"] [data-cards] .person-quote, :root[data-view="grid"] [data-cards] .card-meta { display: none; }
  .profile { grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: center; text-align: center; }
  .profile-main { justify-items: center; }
  .avatar-xl { width: 128px; height: 128px; font-size: 40px; }
  .quote { border-left: 0; padding: 0; margin-top: 8px; }
  .quote::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; background: var(--accent); margin: 0 auto 14px; }
  .facts { justify-content: center; }
  .contrib-row { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: start; }
  .contrib-cover { aspect-ratio: 1; }
  .contrib-go { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  /* On phones, each step links to the next with its own short line. */
  .steps::before { display: none; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 54px; bottom: -16px; width: 2px; background: var(--line); }
  .step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; }
  .step-num { grid-row: span 2; margin: 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-about, .foot-grid > nav:last-child { grid-column: 1 / -1; }
  .project-side { position: static; }
  .viewer-stage { padding: 0 8px; }
  .viewer-prev, .viewer-next { top: auto; bottom: 8px; translate: none; background: rgba(23, 20, 46, .72); }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .stats { gap: 12px; }
  .stat { display: grid; gap: 2px; }
  .stat-num { font-size: 1.5rem; }
  .hero-grid > .stats { order: 1; }
  .hero-grid > .slider { order: 2; }
  /* phones: the numbers in one small row under the buttons */
  .hero-grid > .stats { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: max-content; gap: 22px; }
  .hero-grid > .stats .stat { display: flex; align-items: baseline; gap: 6px; border-top: 0; padding-top: 0; }
  .hero-grid > .stats .stat-num { font-size: 1.35rem; }
  .hero-grid > .stats .stat-label { font-size: .85rem; }
}
/* Up to small laptops: the menu goes behind three lines (it no longer fits in every language) */
@media (max-width: 1080px) {
  .menu, .ext { display: none; }
  .tools { margin-left: auto; gap: 6px; }
  .menu-btn { display: inline-flex; }
  .drawer { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(20, 16, 50, .1); opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .35s var(--soft), transform .45s var(--soft), visibility 0s .45s; }
  .drawer.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .35s var(--soft), transform .45s var(--soft); }
  .drawer .wrap { display: grid; padding-top: 6px; padding-bottom: 14px; }
  .drawer a { display: flex; align-items: center; gap: 6px; min-height: 52px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .drawer a:last-child { border: 0; color: var(--ink2); font-size: 15px; }
  .drawer .ext { margin: 0; padding: 0; border-left: 0; }
  .drawer a[aria-current="page"] { color: var(--accent); }
  .top-row { position: relative; }
}
/* Phones: menu behind three lines, the language stays next to it, a tab bar at the bottom, the language list as a sheet */
@media (max-width: 860px) {
  .top { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .top-row { min-height: 60px; gap: 10px; }
  .brand img { height: 28px; }
  .menu, .ext { display: none; }
  .signin { width: 40px; }
  .signin { width: 40px; padding: 0; }
  .signin span { display: none; }
  .tools { margin-left: auto; gap: 6px; }
  .icon-btn, .lang summary { height: 40px; min-width: 40px; }
  .theme-btn { width: 40px; }
  .menu-btn { display: inline-flex; }
  .drawer { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(20, 16, 50, .1); opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .35s var(--soft), transform .45s var(--soft), visibility 0s .45s; }
  .drawer.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .35s var(--soft), transform .45s var(--soft); }
  .drawer .wrap { display: grid; padding-top: 6px; padding-bottom: 14px; }
  .drawer a { display: flex; align-items: center; gap: 6px; min-height: 52px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .drawer a:last-child { border: 0; color: var(--ink2); font-size: 15px; }
  .drawer .ext { margin: 0; padding: 0; border-left: 0; }
  .drawer a[aria-current="page"] { color: var(--accent); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; height: 62px; padding: 6px; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(22, 19, 43, .16); transition: transform .45s var(--soft); }
  .tabbar.is-away { transform: translateY(calc(100% + 24px)); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; color: var(--ink3); font-size: 11px; font-weight: 600; text-decoration: none; transition: color .3s var(--soft), background-color .3s var(--soft); }
  .tabbar svg { width: 22px; height: 22px; transition: transform .4s var(--soft); }
  .tabbar a[aria-current="page"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
  .tabbar a[aria-current="page"] svg { transform: translateY(-1px) scale(1.06); }
  .tabbar a:active svg { transform: scale(.9); }
  .lang-code { display: none; }
  .lang summary { padding: 0 10px; gap: 6px; }
  .lang[open]::before { content: ""; position: fixed; inset: 0; z-index: 1; background: rgba(12, 10, 28, .4); animation: fade .3s var(--soft) both; }
  .lang-list { position: fixed; left: 10px; right: 10px; top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; padding: 10px; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: 22px; transform-origin: bottom center; box-shadow: 0 -10px 40px rgba(22, 19, 43, .22); }
  .lang-list::before { content: ""; grid-column: 1 / -1; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 2px auto 10px; }
  .lang[open] .lang-list { animation: sheet-in .4s var(--soft) both; }
  .lang-list a { min-height: 48px; font-size: 15.5px; }
  .foot-base { flex-direction: column; }
}
@media (max-width: 420px) { .brand span { display: none; } }

/* Home (#196): alumni quotes, a snapping row on phones and a grid on wide screens */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.quote-card { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.quote-card blockquote { margin: 0; font-size: 1.12rem; line-height: 1.5; font-weight: 500; color: var(--ink); }
.quote-card blockquote::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--accent); margin-bottom: 16px; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.quote-card figcaption a { display: block; font-weight: 700; color: var(--ink); text-decoration: none; }
.quote-card figcaption a:hover { color: var(--accent); }
.quote-role { display: block; font-size: 13.5px; color: var(--ink3); }
@media (max-width: 720px) {
  .quotes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; gap: 14px; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .quotes::-webkit-scrollbar { display: none; }
  .quote-card { flex: 0 0 82%; scroll-snap-align: start; }
}
/* Home (#196): on wide screens the sections flow one after another, each only as tall as its content, and each
   one's rounded top tucks over the end of the one before. (Pinned sheets sliding over each other made the page
   heavy, and a short section could not be read before the next one covered it.) Phones: they simply follow. */
/* Room to breathe: every home section has generous space above and below (the extra 32 px at the bottom of a
   wide-screen section is what the next one's rounded top tucks over). */
.stack > .section { padding: 64px 0; }
.stack > .section .section-head { margin-bottom: 28px; }
@media (min-width: 901px) {
  .stack > .section { background: var(--bg); padding: clamp(88px, 8vw, 120px) 0 calc(clamp(88px, 8vw, 120px) + 32px); }
  .stack > .section:last-child { padding-bottom: clamp(88px, 8vw, 120px); }
  .stack > .section .section-head { margin-bottom: 36px; }
  .stack > .section-alt { background: var(--mist); }
  .stack > * + .section { margin-top: -32px; border-radius: 32px 32px 0 0; box-shadow: 0 -1px 0 var(--line), 0 -24px 48px -12px rgba(22, 19, 43, .10); }
  .stack > .hero + .section { box-shadow: 0 -24px 48px -12px rgba(8, 5, 32, .35); }
  :root[data-theme="dark"] .stack > .section + .section { box-shadow: 0 -1px 0 rgba(255, 255, 255, .06), 0 -24px 48px -12px rgba(0, 0, 0, .5); }
  .stack > * + .section::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; border-radius: inherit; pointer-events: none; z-index: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent), transparent); }
}
@media (min-width: 901px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stack > .section + .section { box-shadow: 0 -1px 0 rgba(255, 255, 255, .06), 0 -24px 48px -12px rgba(0, 0, 0, .5); } }

/* People: the intake timeline, a row of stops on a line that slides sideways */
.timeline { margin-bottom: 26px; }
.tl-title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); margin: 0 0 12px; }
.tl-row { display: flex; align-items: center; gap: 10px; }
.tl-track { position: relative; flex: 1; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 2px 6px; }
.tl-track::-webkit-scrollbar { display: none; }
.tl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--accent) 45%, var(--line)), var(--line)); }
.tl-stop { position: relative; flex: 0 0 auto; min-width: 150px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px; padding: 30px 14px 8px; border: 1px solid transparent; border-radius: 18px; color: var(--ink); text-decoration: none; scroll-snap-align: center; transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
/* the stops spread along the line when there are few (the chosen one keeps its size); with many the track scrolls */
.tl-track { justify-content: space-between; }
.tl-stop:hover { background: var(--paper); border-color: var(--line); transform: translateY(-2px); }
.tl-stop[aria-current] { background: var(--paper); border-color: var(--accent); }
.tl-dot { position: absolute; left: 14px; top: 9px; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); transition: transform .3s var(--ease), background-color .3s var(--ease); }
.tl-stop[aria-current] .tl-dot { background: var(--accent); transform: scale(1.15); }
.tl-label { grid-column: 1 / -1; font-weight: 700; font-size: 15px; white-space: nowrap; }
.tl-count { font-size: 13.5px; color: var(--ink3); }
.tl-faces { display: flex; margin: 0; }
.tl-faces .avatar { width: 24px; height: 24px; font-size: 8px; letter-spacing: -.02em; border: 1.5px solid var(--bg); margin-right: -5px; }
.tl-stop[aria-current] .tl-faces .avatar, .tl-stop:hover .tl-faces .avatar { border-color: var(--paper); }
.tl-arrow { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; transition: border-color .3s var(--ease), opacity .3s var(--ease); }
.tl-arrow svg { width: 16px; height: 16px; }
.tl-arrow:hover:not(:disabled) { border-color: var(--accent); }
.tl-arrow:disabled { opacity: .35; cursor: default; }
.tl-arrow[hidden] { display: none; }
@media (max-width: 720px) { .tl-arrow { display: none; } .tl-stop { min-width: 136px; } }
/* the line fills up to the chosen period, and the stops slide in one after another (site.js adds .is-in) */
.tl-fill { position: absolute; left: 0; top: 19px; height: 2px; width: var(--tl-w, 100%); background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--tl-x, 0)); transition: transform .6s var(--ease); pointer-events: none; }
.tl-track.is-in .tl-stop { animation: tl-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes tl-in { from { opacity: 0; transform: translateX(28px); } }
@media (prefers-reduced-motion: reduce) { .tl-track.is-in .tl-stop { animation: none; } .tl-fill { transition: none; } }

/* The pager under a list: ten a page (#195), previous and next on the sides, the page in the middle */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.pager[hidden] { display: none; }
.pager-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease); }
.pager-btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.pager-btn[href]:hover { border-color: var(--accent); }
.pager-prev[href]:hover svg { transform: translateX(-3px); }
.pager-next[href]:hover svg { transform: translateX(3px); }
.pager-btn[aria-disabled] { opacity: .4; }
.pager-status { color: var(--ink3); font-size: 14.5px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .pager-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .pager-btn { padding: 0 14px; } }

/* Page heads: a banner behind the title of every inner page (site_banner in site.php).
   The liquid is drawn by liquid.js; the CSS blobs below are its fallback; a project shows its cover.
   Only the background moves, never the text; everything stops off screen and with "reduce motion". */
.page-head.has-banner { position: relative; isolation: isolate; color: #fff; background: #1a1450; padding: 56px 0 112px; }
.has-banner .banner-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.has-banner .banner-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 13, 56, .55), rgba(18, 13, 56, .15) 65%, rgba(18, 13, 56, 0)); }
.has-banner h1, .has-banner .profile-main h1 { color: #fff; }
.has-banner .lead { color: rgba(255, 255, 255, .82); }
.has-banner .back { color: rgba(255, 255, 255, .85); }
.has-banner .back:hover { color: #fff; }
.has-banner .eyebrow { color: #c9c1ff; }
.mesh { position: absolute; inset: 0; }
.mesh .liquid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mesh.is-gl .mesh-move { display: none; }
/* the fallback: soft blobs that drift, turn and stretch on long, offset loops */
.mesh-move { position: absolute; inset: -40%; animation: mesh-turn 70s linear infinite; }
.mesh-move i { position: absolute; display: block; border-radius: 50%; animation: flow-a 19s cubic-bezier(.45, .05, .55, .95) infinite; }
.mesh-move i:nth-child(1) { left: 6%; top: 10%; width: 50%; height: 56%; background: radial-gradient(closest-side, rgba(58, 48, 137, .95), rgba(58, 48, 137, .4) 55%, transparent); }
.mesh-move i:nth-child(2) { right: 4%; top: 4%; width: 44%; height: 50%; background: radial-gradient(closest-side, rgba(64, 170, 255, .7), rgba(64, 170, 255, .24) 55%, transparent); animation-name: flow-b; animation-duration: 23s; animation-delay: -5s; }
.mesh-move i:nth-child(3) { left: 24%; bottom: 4%; width: 50%; height: 46%; background: radial-gradient(closest-side, rgba(232, 96, 208, .55), rgba(232, 96, 208, .2) 55%, transparent); animation-name: flow-c; animation-duration: 26s; animation-delay: -11s; }
.mesh-move i:nth-child(4) { right: 16%; bottom: 10%; width: 40%; height: 44%; background: radial-gradient(closest-side, rgba(138, 92, 255, .8), rgba(138, 92, 255, .28) 55%, transparent); animation-name: flow-b; animation-duration: 21s; animation-delay: -15s; }
.mesh-move i:nth-child(5) { left: 40%; top: 26%; width: 30%; height: 34%; background: radial-gradient(closest-side, rgba(41, 175, 75, .55), rgba(41, 175, 75, .18) 55%, transparent); animation-duration: 17s; animation-delay: -8s; }
.mesh-move i:nth-child(6) { left: 0; bottom: 16%; width: 34%; height: 38%; background: radial-gradient(closest-side, rgba(255, 110, 110, .42), rgba(255, 110, 110, .14) 55%, transparent); animation-name: flow-c; animation-duration: 25s; animation-delay: -19s; }
@keyframes mesh-turn { to { transform: rotate(360deg); } }
@keyframes flow-a { 0%, 100% { transform: translate(0, 0) rotate(0) scale(1, 1); } 33% { transform: translate(12%, 12%) rotate(64deg) scale(.92, 1.14); } 66% { transform: translate(-9%, 10%) rotate(132deg) scale(.88, 1.1); } }
@keyframes flow-b { 0%, 100% { transform: translate(0, 0) rotate(0) scale(1, 1); } 40% { transform: translate(-2%, 15%) rotate(-80deg) scale(1.18, .9); } 80% { transform: translate(8%, -4%) rotate(-150deg) scale(1.12, .94); } }
@keyframes flow-c { 0%, 100% { transform: translate(0, 0) rotate(0) scale(1, 1); } 36% { transform: translate(-4%, -14%) rotate(58deg) scale(.9, 1.2); } 80% { transform: translate(-2%, 8%) rotate(128deg) scale(.94, 1.1); } }
/* a project: its cover, darkened enough for the title to read */
.banner-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.has-cover .banner-bg::after { background: linear-gradient(180deg, rgba(14, 10, 40, .55), rgba(14, 10, 40, .82)), linear-gradient(90deg, rgba(14, 10, 40, .5), transparent 70%); }
/* small floating shapes: rings, dots, a plus, a soft square. They never sit on the text (#195, #226):
   the small ones live in the top and bottom padding of the banner (placed in px, not %), the larger ones
   only in the empty space right of the text on wide screens, where the text is kept to 680px. */
.shapes { position: absolute; inset: 0; z-index: 1; }
.sh { position: absolute; display: block; opacity: .55; animation: float 14s ease-in-out infinite alternate; }
.sh1 { left: 6%; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); opacity: .75; }
.sh4 { left: 46%; top: 8px; width: 18px; height: 18px; background: linear-gradient(currentColor, currentColor) center / 18px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 18px no-repeat; color: rgba(255, 255, 255, .5); animation-duration: 16s; animation-delay: -6s; }
.sh7 { left: 78%; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .5; animation-duration: 11s; animation-delay: -3s; }
.sh3 { left: 70%; bottom: 82px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); opacity: .7; animation-duration: 12s; animation-delay: -4s; }
.sh8 { left: 20%; bottom: 86px; width: 8px; height: 8px; border-radius: 50%; background: #b3a8f5; opacity: .65; animation-duration: 15s; animation-delay: -7s; }
.sh2, .sh5, .sh6, .sh9 { display: none; }
@media (min-width: 1100px) { .has-banner h1, .has-banner .lead { max-width: 680px; } }
@media (min-width: 1240px) {
  .sh2, .sh5, .sh6, .sh9 { display: block; }
  .sh2 { right: 8%; top: 18%; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); animation-duration: 18s; }
  .sh5 { right: 3%; top: 52%; width: 22px; height: 22px; border-radius: 6px; border: 2px solid rgba(41, 175, 75, .6); animation-duration: 20s; animation-delay: -2s; }
  .sh6 { right: 18%; top: 56%; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); animation-duration: 22s; animation-delay: -9s; }
  /* a person's strip and the 404 page use the full width, so only the small shapes in the padding stay */
  .person-head .sh2, .person-head .sh5, .person-head .sh6, .person-head .sh9, .lost .sh2, .lost .sh5, .lost .sh6, .lost .sh9 { display: none; }
  .sh9 { right: 11%; top: 22%; width: 120px; height: 120px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .16); animation: spin 60s linear infinite; }
}
@keyframes float { 0% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(8px, -6px, 0) rotate(20deg); } 100% { transform: translate3d(-8px, 4px, 0) rotate(-10deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
/* the wave: two layers drifting in opposite directions, in the colour of the page below */
/* the content always sits above the wave (a photo on the edge of the strip, a share menu) */
.has-banner > .wrap { position: relative; z-index: 1; }
.has-banner .wave { position: absolute; z-index: 0; left: 0; right: 0; bottom: -1px; height: 72px; overflow: hidden; pointer-events: none; color: var(--bg); }
.wave svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; display: block; fill: currentColor; }
.wave .w1 { opacity: .45; animation: wave-l 26s linear infinite; }
.wave .w2 { animation: wave-r 34s linear infinite; }
@keyframes wave-l { to { transform: translate3d(-50%, 0, 0); } }
@keyframes wave-r { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
.is-paused .sh, .is-paused .mesh-move, .is-paused .mesh-move i, .is-paused .wave svg { animation-play-state: paused; }
/* A person or a supervisor: the banner is a strip at the top and the photo sits on its edge */
.person-head.has-banner { color: var(--ink); background: none; padding: 0 0 24px; }
.person-head .banner-bg { bottom: auto; height: 220px; }
.person-head .wave { bottom: auto; top: 149px; }
.person-head .wrap { padding-top: 28px; }
.person-head .profile { margin-top: 64px; }
.person-head .profile-main { padding-top: 104px; }
.person-head .profile-main h1 { color: var(--ink); }
/* Below an inner page's head, the page deepens gently toward the footer */
:root { --deep: #ece8fa; }
:root[data-theme="dark"] { --deep: #15123a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --deep: #15123a; } }
main:has(> .page-head.has-banner), main:has(> article > .page-head.has-banner) { background: linear-gradient(180deg, var(--bg) 0, var(--bg) 420px, var(--deep) 100%);; padding-bottom: 48px; }
/* the gradient runs into the footer, without a light gap between them */
main:has(> .page-head.has-banner) + .foot, main:has(> article > .page-head.has-banner) + .foot { margin-top: 0; }
.lost .lost-code { color: rgba(255, 255, 255, .22); }
.has-banner .lost-link { color: #fff; border-color: rgba(255, 255, 255, .3); }
@media (max-width: 860px) {
  .page-head.has-banner { padding: 36px 0 76px; }
  .has-banner .wave { height: 44px; }
  .person-head.has-banner { padding: 0 0 16px; }
  .person-head .banner-bg { height: 170px; }
  .person-head .wave { top: 127px; }
  .person-head .profile { margin-top: 36px; }
  .person-head .profile-main { padding-top: 0; }
  .sh3 { bottom: 50px; }
  /* a cover behind a title that wraps over most of a phone: darker, so no photo detail reads through the text */
  .has-cover .banner-bg::after { background: linear-gradient(180deg, rgba(14, 10, 40, .74), rgba(14, 10, 40, .9)); }
  .sh8 { bottom: 54px; }
}

/* Home hero (#230): the liquid behind it (liquid.js, CSS fallback) and a slider of five projects beside the title */
.hero-bg .mesh { position: absolute; inset: 0; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 13, 56, .55), rgba(18, 13, 56, .1) 70%); }
.hero.is-paused .sh, .hero.is-paused .mesh-move, .hero.is-paused .mesh-move i { animation-play-state: paused; }
.slider { position: relative; isolation: isolate; aspect-ratio: 16 / 11.4; border-radius: 22px; overflow: hidden; background: #0a0819; box-shadow: 0 30px 60px rgba(8, 5, 32, .35); }
.slider:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s cubic-bezier(.45, 0, .2, 1); }
.slide.is-on { opacity: 1; z-index: 1; }
/* the cover shows edge to edge (16:9, as uploaded) and its lower part fades into the text */
.slide-art { position: absolute; inset: 0 0 auto 0; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #3a3089, #6a5fd0 60%, #29af4b); }
.slide-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.slide.is-on .slide-art img { transform: scale(1); }
/* the text stays readable on any cover, also on covers with text in them */
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 25, 0) 40%, rgba(10, 8, 25, .8) 60%, #0a0819 76%); }
.slide-txt { position: absolute; left: 28px; right: 28px; bottom: 64px; z-index: 1; display: grid; justify-items: start; gap: 6px; color: #fff; }
.slide-txt > * { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--soft), transform .6s var(--soft); }
.slide.is-on .slide-txt > * { opacity: 1; transform: none; }
.slide.is-on .slide-txt > :nth-child(1) { transition-delay: .25s; } .slide.is-on .slide-txt > :nth-child(2) { transition-delay: .33s; }
.slide.is-on .slide-txt > :nth-child(3) { transition-delay: .41s; } .slide.is-on .slide-txt > :nth-child(4) { transition-delay: .49s; }
.slide-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; }
.slide-title { font-size: 1.4rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.slide-text { color: rgba(255, 255, 255, .8); font-size: 14.5px; max-width: 46ch; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.slide-link { margin-top: 6px; color: #fff; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.slide-link span { display: inline-block; transition: transform .35s var(--soft); }
.slide-link:hover span { transform: translateX(4px); }
.slider-ctl { position: absolute; left: 28px; right: 20px; bottom: 20px; z-index: 2; display: flex; align-items: center; gap: 12px; color: #fff; }
.slider:not(.is-ready) .slider-ctl { display: none; }
.slider-count { font-size: 13px; color: rgba(255, 255, 255, .65); font-variant-numeric: tabular-nums; min-width: 50px; }
.slider-count b { color: #fff; font-weight: 700; }
.slider-dots { display: flex; gap: 6px; flex: 1; }
.slider-dot { flex: 1; max-width: 52px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.slider-dot i { position: relative; display: block; width: 100%; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .3); }
.slider-dot i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.slider-dot.is-done i::after { transform: scaleX(1); }
.slider-dot.is-on i::after { animation: dot-fill var(--dur, 6s) linear forwards; }
.slider.is-holding .slider-dot.is-on i::after { animation-play-state: paused; }
@keyframes dot-fill { to { transform: scaleX(1); } }
.slider-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .3s var(--soft), transform .25s var(--soft); }
.slider-arrow svg { width: 16px; height: 16px; }
.slider-arrow:hover { background: rgba(255, 255, 255, .22); }
.slider-arrow:active { transform: scale(.94); }
@media (max-width: 860px) {
  .slider { aspect-ratio: 16 / 17; }
  .slide-txt { left: 20px; right: 20px; bottom: 64px; }
  .slider-ctl { left: 20px; right: 14px; bottom: 16px; }
  .slide-title { font-size: 1.3rem; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* Light/dark switch: the page cross-fades instead of flashing */
/* Light/dark switch: the new theme spreads from the button as a circle (site.js animates the clip; the compositor draws it) */
.is-theming::view-transition-old(root), .is-theming::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.is-theming::view-transition-new(root) { z-index: 2; }

/* Footer legal links and the legal pages (alumni-site/lib/legal.php). */
.legal-links { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; font-size: 14px; color: var(--ink3); }
.legal-links a { color: var(--ink2); text-decoration: none; }
.legal-links a:hover { color: var(--accent); }
.legal-page h2 { margin: 0 0 .4em; } .legal-page h3 { margin: 1.2em 0 .3em; } .legal-page table { width: 100%; border-collapse: collapse; } .legal-page th, .legal-page td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; } .legal-page .tbl { overflow-x: auto; }

/* A private profile (people who have not answered yet; alumni-site/lib/private.php). */
.private-note { margin: 14px 0 6px; max-width: 620px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); color: var(--ink2); font-size: 15px; line-height: 1.5; }
.private-note p { margin: 0; } .private-note p + p { margin-top: 6px; }
.private-note a { color: var(--accent); font-weight: 600; }

/* Footer "Led by …" and a person's other profiles (alumni-site/lib/extras.php). */
.foot-lead { margin-top: 12px; font-size: 14px; color: var(--ink3); }
.role-more { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--mist); color: var(--ink2); font-size: 12px; font-weight: 700; line-height: 1.6; vertical-align: 1px; cursor: help; }
.profile-also { margin: 2px 0 0; color: var(--ink3); font-size: 14px; }
.tech-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tech-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; line-height: 1.6; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); background: var(--mist); }
.tech-ic { width: 12px; height: 12px; fill: currentColor; flex: none; }

/* Page and language changes: the browser keeps the old page on screen and fades the new one in, a little lifted,
   while the header stays put (a cross-document view transition; browsers without it simply load the page). */
@view-transition { navigation: auto; }
html.vt-page .top { view-transition-name: site-top; }
html.vt-page::view-transition-old(root) { animation: page-out .32s cubic-bezier(.4, 0, .6, 1) both; mix-blend-mode: normal; }
html.vt-page::view-transition-new(root) { animation: page-in .6s cubic-bezier(.33, 0, .2, 1) .26s both; mix-blend-mode: normal; }
html.vt-page::view-transition-group(site-top) { animation: none; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Scroll reveal: site.js marks what is below the first screen (.rv) and shows it, a few at a time, as it comes in.
   Without JavaScript and with "reduce motion" nothing is ever hidden. */
.has-reveal .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--soft), transform .6s var(--soft); transition-delay: calc(var(--rv, 0) * 70ms); }
.has-reveal .rv.in { opacity: 1; transform: none; }
/* Home: a short accent line under each section heading, drawn from the left as the heading rises in (once). */
.stack .section-head h2 { position: relative; padding-bottom: 14px; }
.stack .section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--accent); }
.has-reveal .stack .section-head h2::after { transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--soft) .25s; }
.has-reveal .stack .section-head h2.drawn::after { transform: none; }
/* Headings rise out of an invisible line */
.has-reveal .mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.has-reveal .mask > span { display: block; transform: translateY(105%); transition: transform .8s var(--ease); }
.has-reveal .mask.in > span { transform: none; }

/* ── From the prototype (#196, #200) ── */
/* The hero headline: one word in lavender; with JavaScript the words come in one after another */
.hero-title em { font-style: normal; color: #c9c1ff; }
.hero h1.is-split { animation: none; }
.is-split .w { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity .6s var(--soft), transform .7s var(--ease); transition-delay: calc(var(--wi, 0) * 55ms + 120ms); }
.is-split.words-in .w { opacity: 1; transform: none; }

/* Every home section has its own soft, slowly moving pastel field; it rests when it is off screen */
.stack > .section { position: relative; isolation: isolate; }
.pfield { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: .85; border-radius: inherit; }
.pfield i { position: absolute; display: block; width: 58%; height: 72%; border-radius: 50%; animation: flow-a 24s cubic-bezier(.45, .05, .55, .95) infinite; }
.pfield i:nth-child(1) { left: -8%; top: -10%; background: radial-gradient(closest-side, var(--p1), transparent 70%); }
.pfield i:nth-child(2) { right: -10%; top: 4%; background: radial-gradient(closest-side, var(--p2), transparent 70%); animation-name: flow-b; animation-duration: 29s; animation-delay: -7s; }
.pfield i:nth-child(3) { left: 22%; bottom: -18%; background: radial-gradient(closest-side, var(--p3), transparent 70%); animation-name: flow-c; animation-duration: 33s; animation-delay: -13s; }
.pfield i:nth-child(4) { right: 14%; bottom: -6%; width: 40%; height: 52%; background: radial-gradient(closest-side, var(--p4), transparent 70%); animation-duration: 27s; animation-delay: -19s; }
.pfield::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 60%, color-mix(in srgb, var(--bg) 55%, transparent), transparent 70%); }
.pfield[data-pal="lav"] { --p1: #cfc6ff; --p2: #c5ecd2; --p3: #c9dbff; --p4: #f4cfe4; }
.pfield[data-pal="sky"] { --p1: #c3d7ff; --p2: #d9cdff; --p3: #c9f0e0; --p4: #bfc9ff; }
.pfield[data-pal="rose"] { --p1: #f6cde2; --p2: #d6cbff; --p3: #ffd9cf; --p4: #c8dcff; }
.pfield[data-pal="mint"] { --p1: #c9efd8; --p2: #cfd2ff; --p3: #d8f3e3; --p4: #e2d4ff; }
.pfield[data-pal="sky2"] { --p1: #c6e0ff; --p2: #cdeedd; --p3: #d6ccff; --p4: #f2d6ea; }
:root[data-theme="dark"] .pfield { opacity: .4; --p1: #5b4fd0; --p2: #2f8f5a; --p3: #3d6fd8; --p4: #a0479a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pfield { opacity: .4; --p1: #5b4fd0; --p2: #2f8f5a; --p3: #3d6fd8; --p4: #a0479a; } }
@media (max-width: 900px) { .pfield { opacity: .6; } }
.is-still .pfield i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .pfield i { animation: none; } }

/* The big quote: the first alumni line, large, its words coming in one after another */
.big-quote { margin: 0 0 28px; }
.big-quote blockquote { margin: 0; max-width: 28ch; font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; color: var(--ink); }
.big-quote blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--accent); margin-bottom: 12px; }
.big-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.big-quote figcaption a { display: block; font-weight: 700; color: var(--ink); text-decoration: none; }

/* A soft light follows the pointer over cards (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .card, .dept-card, .quote-card { isolation: isolate; overflow: hidden; }
  .card::after, .dept-card::after, .quote-card::after { content: ""; position: absolute; left: 0; top: 0; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; z-index: -1; pointer-events: none; background: radial-gradient(circle, rgba(91, 79, 208, .13), transparent 68%); transform: translate(var(--mx, -999px), var(--my, -999px)); opacity: 0; transition: opacity .45s var(--soft); }
  :root[data-theme="dark"] .card::after, :root[data-theme="dark"] .dept-card::after, :root[data-theme="dark"] .quote-card::after { background: radial-gradient(circle, rgba(179, 168, 245, .12), transparent 68%); }
  .card:hover::after, .dept-card:hover::after, .quote-card:hover::after { opacity: 1; }
}
.quote-card { position: relative; }

/* Phones: a dim backdrop behind an open language sheet or menu list */
.scrim { position: fixed; inset: 0; z-index: 35; background: rgba(10, 8, 28, .38); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.scrim.on { opacity: 1; pointer-events: auto; }
@media (min-width: 901px) { .scrim { display: none; } }

/* One continuous site: between pages the header and tab bar stay, the banner's liquid reshapes into the next banner,
   its texts change one after the other, the wave stays in place, and a project card's cover becomes the project banner. */
html.vt-page .tabbar { view-transition-name: tabbar; }
html.at-top.vt-page:not(.vt-home) .page-head.has-banner > .banner-bg, html.at-top.vt-page:not(.vt-home) .hero > .hero-bg { view-transition-name: banner; }
html.at-top.vt-page:not(.vt-home) .page-head.has-banner > .wrap, html.at-top.vt-page:not(.vt-home) .hero > .hero-grid { view-transition-name: bannertext; }
html.at-top.vt-page:not(.vt-home) .page-head.has-banner > .wave { view-transition-name: wave; }
html.vt-page::view-transition-group(site-top), html.vt-page::view-transition-group(tabbar) { animation: none; }
html.vt-page::view-transition-old(site-top), html.vt-page::view-transition-old(tabbar) { display: none; }
html.vt-page::view-transition-new(site-top), html.vt-page::view-transition-new(tabbar) { animation: none; }
html.vt-page::view-transition-group(banner) { animation-duration: .9s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
html.vt-page::view-transition-old(banner), html.vt-page::view-transition-new(banner) { height: 100%; width: 100%; object-fit: cover; object-position: center; }
/* the two liquids blend into each other (no dip in between): the old one fades out slowly while the new one fades in */
html.vt-page::view-transition-old(banner) { animation: page-fade-out .9s cubic-bezier(.65, 0, .35, 1) both; }
html.vt-page::view-transition-new(banner) { animation: page-fade-in .9s cubic-bezier(.65, 0, .35, 1) both; }
html.vt-page::view-transition-group(bannertext) { animation-duration: .9s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
html.vt-page::view-transition-old(bannertext) { animation: page-fade-out .22s cubic-bezier(.4, 0, 1, 1) both; }
html.vt-page::view-transition-new(bannertext) { animation: page-fade-in .55s cubic-bezier(.33, 1, .68, 1) .5s both; }
html.vt-page::view-transition-group(wave) { animation-duration: .9s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
html.vt-page::view-transition-old(wave):not(:only-child) { display: none; }
html.vt-page::view-transition-new(wave):not(:only-child) { animation: none; }
html.vt-page::view-transition-group(cover) { animation-duration: .7s; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
html.vt-page::view-transition-old(cover), html.vt-page::view-transition-new(cover) { height: 100%; object-fit: cover; animation-duration: .7s; }
@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in { from { opacity: 0; } }
html.at-top.vt-page:not(.vt-home) .banner-cover { view-transition-name: cover; }

/* Header details from the prototype: the band shimmers once when a visit starts, the header drops in on the
   home page, and the logo lifts a little under the pointer */
.top .band { position: relative; }
.top .band.is-sheen::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); transform: translateX(-120%); animation: sheen 1.4s var(--ease) .3s both; }
@keyframes sheen { to { transform: translateX(420%); } }
.brand img { transition: transform .5s var(--soft); }
.brand:hover img { transform: translateY(-1px) scale(1.03); }
.is-home-first .top { animation: drop .6s var(--soft) both; }
@keyframes drop { from { transform: translateY(-100%); } }
/* Phones: the tab bar's mark glides to the tapped tab before the next page opens */
@media (max-width: 900px) {
  .tabbar .tab-pill { position: absolute; left: 0; top: 6px; bottom: 6px; width: 0; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); transition: transform .35s var(--ease), opacity .2s var(--ease); pointer-events: none; }
  .tabbar.has-pill a[aria-current="page"] { background: none; }
}
@media (prefers-reduced-motion: reduce) { .top .band.is-sheen::after, .is-home-first .top { animation: none; } .tabbar .tab-pill { transition: none; } }

/* To or from the home page the full-screen hero and a short banner have different shapes: nothing is stretched,
   the whole page cross-fades slowly and calmly instead (opacity only, so nothing jumps). */
html.vt-home::view-transition-old(root) { animation: page-out .55s cubic-bezier(.45, 0, .55, 1) both; mix-blend-mode: normal; }
html.vt-home::view-transition-new(root) { animation: page-in .8s cubic-bezier(.45, 0, .55, 1) .35s both; mix-blend-mode: normal; }
/* To or from the home page the background itself carries the change: the short banner grows into the full-screen
   hero, or the hero folds up into the banner. The pictures are never stretched; only their lower edge moves
   (a clip, set by theme.js with the real heights), and the texts fade over it. */
html.vt-home.at-top .hero > .hero-bg, html.vt-home.at-top .page-head.has-banner > .banner-bg { view-transition-name: banner; }
html.vt-home::view-transition-group(banner) { animation: none; }
html.vt-home::view-transition-image-pair(banner) { isolation: auto; }
html.vt-home::view-transition-old(banner), html.vt-home::view-transition-new(banner) { width: 100%; height: auto; object-fit: none; object-position: top center; mix-blend-mode: normal; animation: none; }
html.vt-home::view-transition-old(banner), html.vt-home::view-transition-new(banner) { -webkit-mask-image: linear-gradient(#000 calc(100% - 160px), transparent); mask-image: linear-gradient(#000 calc(100% - 160px), transparent); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: top; mask-position: top; mask-size: 100% 100%; }
html.vt-shrink::view-transition-old(banner) { z-index: 1; }

/* The first slide also opens with its slow zoom and its texts rising in (the next ones do it as they come in) */
.slider:not(.is-started) .slide.is-on .slide-art img { animation: slide-zoom 7s linear both; }
@keyframes slide-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.slider:not(.is-started) .slide.is-on .slide-txt > * { animation: hero-rise .6s var(--soft) both; }
.slider:not(.is-started) .slide.is-on .slide-txt > :nth-child(1) { animation-delay: .45s; }
.slider:not(.is-started) .slide.is-on .slide-txt > :nth-child(2) { animation-delay: .53s; }
.slider:not(.is-started) .slide.is-on .slide-txt > :nth-child(3) { animation-delay: .61s; }
.slider:not(.is-started) .slide.is-on .slide-txt > :nth-child(4) { animation-delay: .69s; }
/* Coming from another page, the hero's texts and pictures wait until the background has settled, then come in */
html.vt-page .hero .eyebrow, html.vt-page .hero .lead, html.vt-page .hero-actions, html.vt-page .stats,
html.vt-page .hero .slider .slide.is-on .slide-art img, html.vt-page .hero .slider .slide.is-on .slide-txt > *, html.vt-page .hero .slider { animation-play-state: paused; }
.hero .slider { animation: hero-rise .8s var(--ease) .3s both; }
@media (prefers-reduced-motion: reduce) { .slider:not(.is-started) .slide.is-on .slide-art img, .slider:not(.is-started) .slide.is-on .slide-txt > *, .hero .slider { animation: none; } }

/* Home: the questions, as in the prototype. Left the title, a line and the categories; right the first questions as cards. */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-intro .section-head { margin: 8px 0 0; }
.faq-intro h2 { position: relative; font-size: clamp(1.8rem, 3.4vw, 2.6rem); padding-bottom: 14px; }
.faq-intro h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--accent); }
.faq-lead { color: var(--ink2); margin-top: 14px; max-width: 34ch; }
.faq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip-link { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink2); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: border-color .3s var(--soft), color .3s var(--soft), transform .3s var(--soft); }
.chip-link:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.link-more { display: inline-flex; gap: 8px; margin-top: 22px; font-weight: 700; font-size: 14.5px; color: var(--accent); text-decoration: none; }
.link-more span { display: inline-block; transition: transform .3s var(--soft); }
.link-more:hover span { transform: translateX(3px); }
.faq-cards { display: grid; gap: 10px; }
.faq-cards .faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 0 22px; transition: box-shadow .4s var(--soft), border-color .4s var(--soft); }
.faq-cards .faq-item summary { margin: 0 -22px; padding: 18px 22px; border-radius: var(--radius); }
.faq-cards .faq-item summary:hover { background: none; }
.faq-cards .faq-item[open] { border-color: transparent; box-shadow: 0 12px 32px -12px rgba(22, 19, 43, .18), 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.faq-cards .faq-item[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-cards .faq-item .prose { padding: 0 0 18px; color: var(--ink2); animation: ans .45s var(--soft); }
@keyframes ans { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
/* While the theme changes, colours switch at once (no colour transitions), so the spreading circle shows the new
   theme everywhere and nothing glows in the old light colours for a moment */
.is-theming *, .is-theming *::before, .is-theming *::after { transition-property: none !important; }

/* Home (#250): People by intake period. A timeline of periods above, one period's people below; it plays by itself */
.pslider:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 12px; }
.ps-timeline { margin-bottom: 8px; }
.ps-timeline .tl-stop { min-width: 140px; }
.ps-slides { position: relative; }
.ps-title { font-size: 1.15rem; font-weight: 700; margin: 10px 0 14px; }
.ps-title span { color: var(--ink3); font-weight: 500; font-size: .95rem; margin-left: 6px; }
.ps-slide.is-entering { animation: ps-in .55s var(--ease) both; }
.ps-slide.is-entering.from-prev { animation-name: ps-in-prev; }
@keyframes ps-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes ps-in-prev { from { opacity: 0; transform: translateX(-28px); } }
.ps-slide .link-more { margin-top: 14px; }
.ps-ctl { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.ps-ctl[hidden] { display: none; }
.ps-bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ps-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.pslider.is-playing .ps-bar i { animation: ps-fill 7s linear forwards; }
.pslider.is-held .ps-bar i { animation-play-state: paused; }
@keyframes ps-fill { to { transform: scaleX(1); } }
.ps-ctl .slider-arrow { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .3s var(--ease), transform .2s var(--ease); }
.ps-ctl .slider-arrow:hover { border-color: var(--accent); }
.ps-ctl .slider-arrow:active { transform: scale(.94); }
.ps-ctl .slider-arrow svg { width: 16px; height: 16px; }
.ps-i-play { display: none; }
.pslider.is-stopped .ps-i-pause { display: none; }
.pslider.is-stopped .ps-i-play { display: inline; }
@media (prefers-reduced-motion: reduce) { .ps-slide.is-entering { animation: none; } .pslider.is-playing .ps-bar i { animation: none; } }
/* Narrow phones: the four hero numbers sit in two rows of two, so long words ("départements") fit */
@media (max-width: 480px) { .stats { grid-auto-flow: row; grid-template-columns: 1fr 1fr; row-gap: 14px; } }
/* Keyboard focus and in-page jumps never end up under the sticky header (or the phone tab bar) */
html { scroll-padding-top: 84px; scroll-padding-bottom: 24px; }
@media (max-width: 900px) { html { scroll-padding-bottom: 96px; } }

/* "Available for hire" (lib/hire.php): a green badge, "Contact on LinkedIn" and the hero number */
.hire-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; background: #e7f6ec; color: #17803a; white-space: nowrap; vertical-align: 2px; }
.hire-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22a24a; box-shadow: 0 0 0 3px rgba(34, 162, 74, .2); }
:root[data-theme="dark"] .hire-badge { background: rgba(34, 162, 74, .18); color: #8ee6a8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hire-badge { background: rgba(34, 162, 74, .18); color: #8ee6a8; } }
.card-title .hire-badge { margin-left: 8px; }
.profile-status .hire-badge { margin-left: 6px; }
.btn-hire { background: var(--green-btn); color: #fff; }
.stat.stat-hire { color: inherit; text-decoration: none; }
.stat.stat-hire .stat-num { color: #7fe3a0; }
.stat.stat-hire:hover .stat-label { text-decoration: underline; }
.spot-tile .hire-badge { position: relative; margin-top: 2px; font-size: 11px; padding: 2px 8px; }
.seg-hire { color: #17803a; }

/* FAQ (lib/faq_menu.php): on wide screens the search and the topics sit in a side menu that stays in view;
   on phones the topics stay as chips above the questions and the menu's title and help box are not shown */
.faq-topics-title, .faq-help { display: none; }
@media (min-width: 901px) {
  .faq-head, .faq-layout { max-width: 1160px; }
  .faq-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; align-items: start; }
  .faq-layout > :not(.filters) { grid-column: 2; }
  .faq-layout > .filters { grid-row: 1 / span 3; position: sticky; top: 96px; display: grid; gap: 14px; margin: 0; }
  .faq-layout > .filters input[type="search"] { width: 100%; }
  .faq-topics-title { display: block; margin: 4px 0 -6px 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
  .faq-layout .segs { display: grid; gap: 2px; padding: 0; border: 0; background: none; box-shadow: none; }
  .faq-layout .seg { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; height: auto; min-height: 40px; padding: 10px 14px; border-radius: 10px; text-align: left; white-space: normal; line-height: 1.35; font-weight: 600; color: var(--ink2); }
  .faq-layout .seg span { flex: none; min-width: 26px; padding: 1px 7px; border-radius: 999px; background: var(--mist); text-align: center; font-size: 12.5px; color: var(--ink3); }
  .faq-layout .seg:hover { background: var(--paper); color: var(--ink); }
  .faq-layout .seg[aria-current] { background: var(--paper); color: var(--ink); box-shadow: 0 6px 18px -12px rgba(20, 14, 60, .35); }
  .faq-layout .seg[aria-current]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); }
  .faq-layout .seg[aria-current] span { background: var(--accent); color: #fff; }
  .faq-help { display: block; margin-top: 6px; padding: 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
  .faq-help b { display: block; margin-bottom: 4px; color: var(--ink); }
  .faq-help a { font-weight: 700; color: var(--accent); text-decoration: none; }
  .faq-layout .faq-cat:first-child h2 { margin-top: 0; }
}

/* /sitemap (lib/seo.php): every public page, grouped */
.sitemap-groups { display: grid; gap: 34px; }
.sitemap-group h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 12px; }
.sitemap-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 24px; }
.sitemap-group a { display: block; padding: 6px 0; color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.sitemap-group a:hover { text-decoration: underline; }

/* ── Small SVG animations (after #295) ──
   Each one plays once, when its element first comes into view (site.js marks it .in), or once on load when it is
   already on screen. Only opacity and transform; nothing is tied to the scroll position; all off with reduce motion.
   Without JavaScript (.has-reveal missing) everything simply shows. */
@keyframes piece-in { from { opacity: 0; transform: translateY(5px) scale(.82); } }
@keyframes line-fill { from { transform: scaleX(0); } }
@keyframes ico-settle { from { opacity: 0; transform: scale(.6) rotate(-12deg); } }
@keyframes num-pop { from { opacity: 0; transform: scale(.7); } }

/* "How the internship works": a line drawing per step, its parts come in one after another, then the line between the steps fills */
.step-num { position: relative; }
.step-num svg { width: 24px; height: 24px; overflow: visible; }
.step-n { position: absolute; right: -5px; top: -5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px var(--bg), 0 2px 6px rgba(22, 19, 43, .15); }
/* The four steps light up slowly from left to right, as a light travels along the line (about 3 s), and the light
   passes twice more, then everything rests. */
.step:nth-child(2) { --sd: .8s; } .step:nth-child(3) { --sd: 1.6s; } .step:nth-child(4) { --sd: 2.4s; }
.has-reveal .step .step-num { animation: num-pop .5s var(--soft) var(--sd, 0s) both paused; }
.has-reveal .step .step-num svg > * { transform-box: fill-box; transform-origin: 50% 50%; animation: piece-in .5s var(--soft) both paused; }
.has-reveal .step .step-num svg > :nth-child(1) { animation-delay: calc(var(--sd, 0s) + .2s); }
.has-reveal .step .step-num svg > :nth-child(2) { animation-delay: calc(var(--sd, 0s) + .32s); }
.has-reveal .step .step-num svg > :nth-child(3) { animation-delay: calc(var(--sd, 0s) + .44s); }
.has-reveal .step .step-num svg > :nth-child(4) { animation-delay: calc(var(--sd, 0s) + .56s); }
.has-reveal .step.in .step-num, .has-reveal .step:not(.rv) .step-num,
.has-reveal .step.in .step-num svg > *, .has-reveal .step:not(.rv) .step-num svg > * { animation-play-state: running; }
.has-reveal .steps::before { transform-origin: 0 50%; animation: line-fill 2.6s cubic-bezier(.4, 0, .6, 1) .1s both paused; }
.steps::after { content: ""; position: absolute; left: 24px; top: 20px; width: calc((75% + 15px) / 5); height: 8px; border-radius: 8px; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(124, 108, 255, .55) 45%, transparent); }
@keyframes step-flow { 0% { opacity: 0; transform: translateX(-20%); } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(400%); } }
.has-reveal .steps::after { animation: step-flow 2.8s cubic-bezier(.45, 0, .55, 1) .1s 3 both paused; }
.has-reveal .steps:has(> .step.in)::before, .has-reveal .steps:not(:has(> .rv))::before,
.has-reveal .steps:has(> .step.in)::after, .has-reveal .steps:not(:has(> .rv))::after { animation-play-state: running; }
@media (max-width: 760px) { .steps::after { display: none; } }

/* Department icons settle in when their card comes into view */
.has-reveal .dept-card .dept-ico { animation: ico-settle .6s cubic-bezier(.2, .9, .25, 1.15) .12s both paused; }
.has-reveal .dept-card.in .dept-ico, .has-reveal .dept-card:not(.rv) .dept-ico { animation-play-state: running; }

/* Empty states ("nothing matches"): a folder, its page peeks out, a magnifier glides in and a "?" appears (once, when shown) */
.empty-box svg.empty-art { width: 76px; height: auto; overflow: visible; }
.empty-art .em-back { fill: color-mix(in srgb, currentColor 10%, var(--paper)); }
.empty-art .em-paper { fill: var(--paper); }
.empty-art .em-front { fill: color-mix(in srgb, currentColor 22%, var(--paper)); }
.empty-art .em-lens { fill: color-mix(in srgb, var(--paper) 85%, transparent); }
.empty-art > *, .empty-art .em-q { transform-box: fill-box; }
@keyframes em-peek { from { transform: translateY(9px); } }
@keyframes em-glass { 0% { opacity: 0; transform: translate(16px, -12px) rotate(-30deg); } 60% { opacity: 1; transform: translate(-3px, 1px) rotate(6deg); } 80% { transform: translate(1px, 0) rotate(-3deg); } 100% { transform: none; } }
@keyframes em-q { from { opacity: 0; transform: scale(0); } }
.empty-box:not([hidden]) .em-paper, .empty-box:not([hidden]) .em-lines { animation: em-peek .5s var(--soft) .1s both; }
.empty-box:not([hidden]) .em-glass { transform-origin: 44px 30px; animation: em-glass .9s var(--soft) .3s both; }
.empty-box:not([hidden]) .em-q { transform-origin: 50% 50%; animation: em-q .4s cubic-bezier(.3, 1.5, .5, 1) 1.05s both; }
/* The 404 page: a magnifier with a question mark */
.lost-art { display: block; width: 64px; height: 64px; margin-bottom: 4px; color: rgba(255, 255, 255, .85); }
.lost-art > * { transform-box: fill-box; transform-origin: 50% 50%; animation: piece-in .5s var(--soft) both; }
.lost-art > :nth-child(1) { animation-delay: .15s; } .lost-art > :nth-child(2) { animation-delay: .3s; }
.lost-art > :nth-child(3) { animation-delay: .45s; } .lost-art > :nth-child(4) { animation-delay: .6s; }
html.vt-page .lost-art > * { animation-play-state: paused; }

/* Arrows in links nudge forward under the pointer or keyboard focus */
.arr { display: inline-block; transition: transform .3s var(--soft); }
a:hover > .arr, a:focus-visible > .arr { transform: translateX(3px); }

/* The theme button: the sun and the moon turn with a small spring */
.theme-btn svg { transition: transform .6s cubic-bezier(.34, 1.4, .64, 1), opacity .3s var(--soft); }

/* The questions' "+" turns into "×" with a soft spring, and its colour follows */
.faq-item summary::after { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background-color .3s var(--soft), color .3s var(--soft); }


@media (prefers-reduced-motion: reduce) {
  .has-reveal .step .step-num, .has-reveal .step .step-num svg > *, .has-reveal .steps::before, .has-reveal .dept-card .dept-ico,
  .empty-box:not([hidden]) svg > *, .lost-art > *, .hero-bg .mesh, .hero-bg::before, .hero .shapes { animation: none; }
  .arr, .theme-btn svg, .faq-item summary::after { transition: none; }
}

/* The home hero opens with its background: the liquid blooms out of the dark base, a soft light passes over it
   once, and the floating shapes come in after. Once, on load, opacity and transform only; nothing tied to the
   scroll. Arriving from another page, the background is already there (it grew into the hero), so only the light
   passes, after the change has settled. */
@keyframes bg-bloom { from { opacity: 0; transform: scale(1.08); } }
@keyframes bg-sweep { 0% { opacity: 0; transform: translateX(-70%) skewX(-12deg); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateX(70%) skewX(-12deg); } }
@keyframes shapes-in { from { opacity: 0; transform: scale(.94); } }
.hero-bg .mesh { animation: bg-bloom 1.4s var(--ease) both; }
.hero-bg::before { content: ""; position: absolute; z-index: 1; top: -10%; bottom: -10%; left: -20%; right: -20%; pointer-events: none; background: linear-gradient(100deg, transparent 38%, rgba(201, 193, 255, .14) 47%, rgba(255, 255, 255, .18) 50%, rgba(140, 220, 190, .1) 53%, transparent 62%); opacity: 0; animation: bg-sweep 2.2s cubic-bezier(.45, 0, .2, 1) .5s both; }
.hero .shapes { animation: shapes-in 1.2s var(--soft) .7s both; }
html.came-by-vt .hero-bg .mesh, html.came-by-vt .hero .shapes { animation: none; }
html.vt-page .hero-bg::before { animation-play-state: paused; }

/* The opening (draft): the Extramus mark puts itself together, "Extramus Alumni" slides in beside it, the three brand
   colours grow from the middle and cover it, and the overlay fades into the hero (whose colour the last circle has).
   About 1.2 s, once per visit, on the home page only; a click or a key skips it. Opacity and transform only. */
.intro { position: fixed; inset: 0; z-index: 100; place-items: center; overflow: hidden; background: #0d0b1f; cursor: pointer; }
html.intro-on .intro[hidden] { display: grid !important; }
html.intro-on .intro { animation: intro-out .3s cubic-bezier(.4, 0, .2, 1) .92s forwards; }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
.intro-logo { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; }
.intro-mark { width: auto; height: 68px; overflow: visible; }
.intro-p { transform-box: fill-box; transform-origin: 50% 50%; animation: piece-in .4s var(--soft) both; }
.intro-p2 { animation-delay: .06s; } .intro-p3 { animation-delay: .14s; animation-duration: .35s; }
.intro-word { display: inline-flex; gap: .28em; overflow: hidden; padding: 4px 2px; font: 800 clamp(26px, 5vw, 40px)/1.1 var(--font); letter-spacing: -.02em; color: #fff; white-space: nowrap; }
.intro-w1, .intro-w2 { display: inline-block; animation: intro-slide .45s var(--ease) .1s both; }
.intro-w2 { color: #c9c1ff; animation-delay: .18s; }
@keyframes intro-slide { from { opacity: 0; transform: translateX(42px); } }
.intro-c { position: absolute; z-index: 2; left: 50%; top: 50%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; border-radius: 50%; transform: scale(0); animation: intro-grow .38s cubic-bezier(.7, 0, .3, 1) .5s forwards; }
.intro-c1 { background: #29af4b; }
.intro-c2 { background: #e9212a; animation-delay: .56s; }
.intro-c3 { background: #1a1450; animation-delay: .62s; }
@keyframes intro-grow { to { transform: scale(1); } }
/* the home hero waits under the opening, then comes in as usual */
html.intro-on .hero .eyebrow, html.intro-on .hero .lead, html.intro-on .hero-actions, html.intro-on .stats, html.intro-on .hero .slider,
html.intro-on .hero .slider .slide.is-on .slide-art img, html.intro-on .hero .slider .slide.is-on .slide-txt > *,
html.intro-on .hero-bg .mesh, html.intro-on .hero-bg::before, html.intro-on .hero .shapes { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } }

/* Drawings from Lottie files (lib/art): the questions next to the FAQ and the waving team on the People page.
   site.js marks them .in once they are in view; the parts play once (the team waves twice), then rest.
   Only transform and opacity; off with reduce motion; without JavaScript they simply show. */
.art { display: block; width: 100%; height: auto; overflow: visible; }
.art g[class] { transform-box: view-box; transform-origin: 0 0; }
.faq-art { width: min(220px, 60%); margin-top: 44px; }
.head-art { display: none; }
@media (min-width: 1000px) {
  .page-head .wrap:has(> .head-art) { position: relative; }
  .head-art { display: block; position: absolute; right: max(20px, env(safe-area-inset-right)); bottom: -84px; pointer-events: none; }
  .head-art-q { width: 190px; bottom: -64px; }
  .head-art-team { width: 330px; }
  .head-art-teamwork { width: 300px; bottom: -96px; }
  .head-art-report { width: 230px; bottom: -78px; }
  /* The FAQ page keeps its narrow column, so the heading lines up with the questions below; the drawing sits at its right edge */
  .faq-head:has(> .head-art) { padding-right: 210px; }
}
@keyframes q-pop-1 { 0% { transform: translate(0, -191px) rotate(-30deg) scale(0); } 70% { transform: rotate(15deg) scale(1.4); } 100% { transform: none; } }
@keyframes q-pop-2 { 0% { transform: translate(-89px, -191px) rotate(-30deg) scale(0); } 70% { transform: rotate(13deg) scale(1.2); } 100% { transform: none; } }
@keyframes q-pop-3 { 0% { transform: translate(0, -191px) rotate(-30deg) scale(0); } 70% { transform: rotate(15deg) scale(1.2); } 100% { transform: none; } }
.has-reveal .art-questions .qm-1-1 { animation: q-pop-1 .75s cubic-bezier(.3, 0, .2, 1) .1s both paused; }
.has-reveal .art-questions .qm-1-2 { animation: q-pop-2 .75s cubic-bezier(.3, 0, .2, 1) .32s both paused; }
.has-reveal .art-questions .qm-1-3 { animation: q-pop-3 .75s cubic-bezier(.3, 0, .2, 1) .2s both paused; }
@keyframes team-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes w-arm { 50% { transform: rotate(34deg); } }
@keyframes w-head-l { 50% { transform: rotate(-6deg); } }
@keyframes w-head-r { 50% { transform: rotate(6deg); } }
@keyframes w-shoulder { 50% { transform: rotate(-16deg); } }
@keyframes w-hand { 22%, 74% { transform: rotate(19deg); } 50% { transform: none; } }
@keyframes w-sule { 24%, 74% { transform: rotate(42deg); } 47% { transform: none; } }
@keyframes w-bag { 50% { transform: rotate(5deg); } }
@keyframes w-begum { 22%, 74% { transform: rotate(-24deg); } 51% { transform: none; } }
.has-reveal .art-team { animation: team-in .6s var(--soft) both paused; }
.has-reveal .art-team [class^="ow-"] { animation: 2.5s cubic-bezier(.45, 0, .55, 1) .5s 2 paused; }
.has-reveal .art-team .ow-1-7 { animation-name: w-arm; }
.has-reveal .art-team .ow-1-12, .has-reveal .art-team .ow-1-50 { animation-name: w-head-l; }
.has-reveal .art-team .ow-1-25, .has-reveal .art-team .ow-1-36 { animation-name: w-head-r; }
.has-reveal .art-team .ow-1-24 { animation-name: w-shoulder; }
.has-reveal .art-team .ow-1-23 { animation-name: w-hand; }
.has-reveal .art-team .ow-1-30 { animation-name: w-sule; }
.has-reveal .art-team .ow-1-37 { animation-name: w-bag; }
.has-reveal .art-team .ow-1-41 { animation-name: w-begum; }
.has-reveal .art.in, .has-reveal .art.in [class^="ow-"], .has-reveal .art.in [class^="qm-"] { animation-play-state: running; }
/* Projects: the colleagues' speech bubbles pop up, heads nod, the plants sway (twice), then rest */
@keyframes ce-bub-r { from { transform: rotate(-61deg) scale(0); } }
@keyframes ce-bub-l { from { transform: rotate(39deg) scale(0); } }
@keyframes ce-nod-r { 50% { transform: rotate(10deg); } }
@keyframes ce-nod-l { 50% { transform: rotate(-10deg); } }
@keyframes ce-hand { 50% { transform: rotate(23deg); } }
@keyframes ce-sway-r { 50% { transform: rotate(7deg); } }
@keyframes ce-sway-l { 50% { transform: rotate(-7deg); } }
.has-reveal .art-teamwork { animation: team-in .6s var(--soft) both paused; }
.has-reveal .art-teamwork [class^="ce-"] { animation: 2.5s cubic-bezier(.45, 0, .55, 1) .4s 2 paused; }
.has-reveal .art-teamwork .ce-1-14 { animation: ce-bub-r .6s cubic-bezier(.3, 1.4, .5, 1) .5s both paused; }
.has-reveal .art-teamwork .ce-1-15 { animation: ce-bub-l .6s cubic-bezier(.3, 1.4, .5, 1) .75s both paused; }
.has-reveal .art-teamwork .ce-1-5 { animation-name: ce-nod-r; }
.has-reveal .art-teamwork .ce-1-19, .has-reveal .art-teamwork .ce-1-8 { animation-name: ce-nod-l; }
.has-reveal .art-teamwork .ce-1-2 { animation-name: ce-hand; }
.has-reveal .art-teamwork .ce-1-22, .has-reveal .art-teamwork .ce-1-24 { animation-name: ce-sway-r; }
.has-reveal .art-teamwork .ce-1-23, .has-reveal .art-teamwork .ce-1-25, .has-reveal .art-teamwork .ce-1-26 { animation-name: ce-sway-l; }
/* Departments: the report settles, the checklist tips in, the magnifier glides over it and the ticks pop (once) */
@keyframes rp-page { from { opacity: 0; transform: rotate(-10deg) scale(.8); } }
@keyframes rp-todo { from { opacity: 0; transform: rotate(10deg) scale(1.2); } }
@keyframes rp-glass { from { opacity: 0; transform: translate(120px, -110px) scale(1.4); } }
@keyframes rp-tick { from { opacity: 0; transform: scale(0); } }
.has-reveal .art-report [class^="rp-"] { animation: .7s cubic-bezier(.3, 1.25, .5, 1) both paused; }
.has-reveal .art-report .rp-21 { animation-name: rp-page; animation-delay: .1s; }
.has-reveal .art-report .rp-26 { animation-name: rp-todo; animation-delay: .3s; }
.has-reveal .art-report .rp-4 { animation-name: rp-glass; animation-duration: 1.1s; animation-delay: .6s; }
.has-reveal .art-report .rp-20 { animation-name: rp-tick; animation-delay: 1.2s; }
.has-reveal .art-report .rp-19 { animation-name: rp-tick; animation-delay: 1.4s; }
.has-reveal .art-report .rp-15 { animation-name: rp-tick; animation-delay: 1.7s; }
.has-reveal .art.in [class^="ce-"], .has-reveal .art.in [class^="rp-"] { animation-play-state: running; }

/* Drawn for the site (lib/art): a cap on a person's page, a rocket on a live product's page. Played once when in view. */
.head-art-cap { width: 132px; }
.head-art-rocket { width: 128px; }
@media (min-width: 1000px) { .person-head .head-art-cap { top: 18px; bottom: auto; } .head-art-rocket { bottom: -20px; } }
.art-cap .cp-board { fill: #e4dfff; }
.art-cap .cp-skull { fill: #9d90f0; }
.art-cap .cp-button, .art-cap .cp-tassel path:last-child { fill: var(--green); }
.art-cap .cp-tassel path:first-child { stroke: var(--green); }
.art-cap .cp-shadow { fill: rgba(0, 0, 0, .25); }
.art-cap .cp-star { fill: #f5b400; } .art-cap .cp-s2 { fill: #7c6cff; }
.art-rocket .rk-body { fill: #f1efff; } .art-rocket .rk-nose { fill: #e9212a; } .art-rocket .rk-fin { fill: #e9212a; }
.art-rocket .rk-window { fill: #5b4bd6; stroke: #c9c1ff; stroke-width: 2.5; } .art-rocket .rk-nozzle { fill: #c9c1ff; }
.art-rocket .rk-smoke { fill: rgba(201, 193, 255, .45); } .art-rocket .rk-star { fill: #ffe28a; }
.art-cap g, .art-cap path, .art-cap ellipse, .art-rocket g, .art-rocket path, .art-rocket circle { transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes cp-toss { 0% { transform: none; } 38% { transform: translateY(-34px) rotate(-12deg); } 68% { transform: rotate(4deg); } 82% { transform: translateY(-4px); } 100% { transform: none; } }
@keyframes cp-shadow { 38% { transform: scale(.55); opacity: .5; } }
@keyframes cp-tassel { 30% { transform: rotate(-16deg); } 60% { transform: rotate(10deg); } 80% { transform: rotate(-4deg); } }
@keyframes pop-star { 0% { opacity: 0; transform: scale(0) rotate(-40deg); } 60% { opacity: 1; transform: scale(1.25); } 100% { transform: none; } }
.has-reveal .art-cap .cp-cap { animation: cp-toss 1.4s cubic-bezier(.45, 0, .3, 1) .2s both paused; }
.has-reveal .art-cap .cp-shadow { animation: cp-shadow 1.4s cubic-bezier(.45, 0, .3, 1) .2s both paused; }
.has-reveal .art-cap .cp-tassel { transform-origin: 0 0; animation: cp-tassel 1.4s var(--soft) .2s both paused; }
.has-reveal .art-cap .cp-star { animation: pop-star .5s var(--soft) both paused; }
.has-reveal .art-cap .cp-s1 { animation-delay: .7s; } .has-reveal .art-cap .cp-s2 { animation-delay: .85s; } .has-reveal .art-cap .cp-s3 { animation-delay: 1s; }
@keyframes rk-rise { 0% { opacity: 0; transform: translateY(46px); } 70% { opacity: 1; transform: translateY(-5px); } 100% { transform: none; } }
@keyframes rk-flame { 0%, 100% { transform: scaleY(1); } 25%, 75% { transform: scaleY(1.35); } 50% { transform: scaleY(.85); } }
@keyframes rk-smoke { 0% { opacity: 0; transform: scale(.3); } 40% { opacity: 1; } 100% { opacity: .35; transform: scale(1.15); } }
.has-reveal .art-rocket .rk-ship { animation: rk-rise 1.2s cubic-bezier(.2, .8, .3, 1) .15s both paused; }
.has-reveal .art-rocket .rk-flame { transform-origin: 50% 0; animation: rk-flame .5s ease-in-out .15s 3 both paused; }
.has-reveal .art-rocket .rk-smoke { animation: rk-smoke 1.3s var(--soft) .25s both paused; }
.has-reveal .art-rocket .rk-star { animation: pop-star .5s var(--soft) both paused; }
.has-reveal .art-rocket .rk-s1 { animation-delay: .9s; } .has-reveal .art-rocket .rk-s2 { animation-delay: 1.05s; } .has-reveal .art-rocket .rk-s3 { animation-delay: 1.2s; }
.has-reveal .art.in .cp-cap, .has-reveal .art.in .cp-shadow, .has-reveal .art.in .cp-tassel, .has-reveal .art.in .cp-star,
.has-reveal .art.in .rk-ship, .has-reveal .art.in .rk-flame, .has-reveal .art.in .rk-smoke, .has-reveal .art.in .rk-star { animation-play-state: running; }
/* More drawings (lib/art), played once when in view: a handshake for people available for hire, a route from the
   world to Italy next to "How the internship works", and a page tree on the sitemap. */
.art-hire .hs-sleeve-l { fill: #c9c1ff; } .art-hire .hs-sleeve-r { fill: #29af4b; }
.art-hire .hs-skin { fill: #f2c39d; } .art-hire .hs-skin2 { fill: #dba27a; } .art-hire .hs-line { stroke: #c98d65; }
.art-hire .hs-star { fill: #ffe28a; }
.art-hire g, .art-hire path { transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes hs-in-l { from { opacity: 0; transform: translateX(-34px); } }
@keyframes hs-in-r { from { opacity: 0; transform: translateX(34px); } }
@keyframes hs-shake { 0%, 100% { transform: none; } 25%, 75% { transform: translateY(-5px) rotate(-2deg); } 50% { transform: translateY(3px) rotate(1deg); } }
.has-reveal .art-hire .hs-l { animation: hs-in-l .7s var(--soft) .1s both paused; }
.has-reveal .art-hire .hs-r { animation: hs-in-r .7s var(--soft) .1s both paused; }
.has-reveal .art-hire .hs-both { animation: hs-shake .9s ease-in-out .8s both paused; }
.has-reveal .art-hire .hs-star { animation: pop-star .5s var(--soft) both paused; }
.has-reveal .art-hire .hs-s1 { animation-delay: 1.5s; } .has-reveal .art-hire .hs-s2 { animation-delay: 1.65s; } .has-reveal .art-hire .hs-s3 { animation-delay: 1.8s; }

.steps-art { display: none; }
@media (min-width: 900px) { .steps-section .section-head { align-items: center; } .steps-art { display: block; width: 132px; margin: 0 auto 0 32px; } }
.art-route .rt-sea { fill: var(--indigo); } .art-route .rt-land { fill: #29af4b; }
.art-route .rt-dash { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 5; stroke-linecap: round; }
.art-route .rt-pin path { fill: #e9212a; } .art-route .rt-pin circle { fill: var(--paper); } .art-route .rt-plane { fill: var(--ink); }
.art-route g, .art-route path { transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes rt-spin { from { transform: rotate(-35deg); } }
@keyframes rt-fade { from { opacity: 0; } }
@keyframes rt-pin { 0% { opacity: 0; transform: translateY(-16px); } 60% { opacity: 1; transform: translateY(2px); } 100% { transform: none; } }
@keyframes rt-fly { 0% { opacity: 0; transform: translate(-70px, 14px) rotate(-30deg); } 20% { opacity: 1; } 50% { transform: translate(-36px, -8px) rotate(-8deg); } 100% { transform: none; } }
.has-reveal .art-route .rt-globe { animation: rt-spin 1s var(--soft) .1s both paused; }
.has-reveal .art-route .rt-d1 { animation: rt-fade .4s linear .5s both paused; }
.has-reveal .art-route .rt-d2 { animation: rt-fade .4s linear .85s both paused; }
.has-reveal .art-route .rt-plane { animation: rt-fly 1.1s var(--soft) .4s both paused; }
.has-reveal .art-route .rt-pin { transform-origin: 50% 100%; animation: rt-pin .6s cubic-bezier(.3, 1.4, .5, 1) 1.3s both paused; }

.head-art-tree { width: 150px; }
@media (min-width: 1000px) { .wrap.narrow:has(> .head-art-tree) { position: relative; } .head-art-tree { right: 0; bottom: -60px; } }
.art-tree .tr-line { fill: none; stroke: #c9c1ff; stroke-width: 2; stroke-linecap: round; }
.art-tree .tr-box { fill: #f1efff; } .art-tree .tr-root { fill: #5b4bd6; } .art-tree .tr-c1 { fill: #29af4b; } .art-tree .tr-c3 { fill: #e9212a; }
.art-tree .tr-dot { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 2; stroke-linecap: round; }
.art-tree path, .art-tree rect { transform-box: fill-box; transform-origin: 50% 0; }
@keyframes tr-drop { from { opacity: 0; transform: translateY(-12px); } }
@keyframes tr-grow { from { opacity: 0; transform: scaleY(0); } }
@keyframes tr-pop { from { opacity: 0; transform: scale(.4); } }
.has-reveal .art-tree .tr-root { animation: tr-drop .5s var(--soft) .1s both paused; }
.has-reveal .art-tree .tr-l1 { animation: tr-grow .45s var(--soft) .45s both paused; }
.has-reveal .art-tree .tr-c { transform-origin: 50% 50%; animation: tr-pop .45s cubic-bezier(.3, 1.4, .5, 1) both paused; }
.has-reveal .art-tree .tr-c1 { animation-delay: .8s; } .has-reveal .art-tree .tr-c2 { animation-delay: .92s; } .has-reveal .art-tree .tr-c3 { animation-delay: 1.04s; }
.has-reveal .art-tree .tr-l2 { animation: tr-grow .4s var(--soft) 1.2s both paused; }
.has-reveal .art-tree .tr-g { transform-origin: 50% 50%; animation: tr-pop .45s cubic-bezier(.3, 1.4, .5, 1) both paused; }
.has-reveal .art-tree .tr-g1 { animation-delay: 1.5s; } .has-reveal .art-tree .tr-g2 { animation-delay: 1.62s; }
.has-reveal .art-tree .tr-dot { animation: rt-fade .4s linear 1.8s both paused; }
.has-reveal .art.in g, .has-reveal .art.in path, .has-reveal .art.in rect { animation-play-state: running; }
.head-art-hire { width: 170px; }
