/* DRACONS — shared stylesheet
   Bold sans headings, square corners, image tiles, arrow markers and colour
   bands. Brand colour: Sapienza burgundy.                                   */
:root {
  --paper: #ffffff;
  --soft: #f5f5f6;
  --ink: #222222;
  --ink-soft: #4a4a4a;
  --muted: #777777;
  --line: #e3e3e6;
  --brand: #822433;
  --brand-dark: #5e1824;
  --brand-tint: #f6ecee;
  --dark: #333333;
  --green: #2f6b55;
  --green-tint: #e8f2ee;
  --wrap: 1560px;
  --head: 92px;
  --sans: "Roboto", "Open Sans", Helvetica, Arial, sans-serif;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23822433' d='M5 2h13v13h-4.2V9.2L5 18l-3-3 8.8-8.8H5z'/%3E%3C/svg%3E");
  --arrow-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23ffffff' d='M5 2h13v13h-4.2V9.2L5 18l-3-3 8.8-8.8H5z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 900; line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 96px); margin-inline: auto; }
.section { padding: 72px 0; }
.section.alt { background: var(--soft); }
.eyebrow { display: none; }
.section-head { max-width: 900px; margin-bottom: 36px; }
.section-head h2, .h-arrow {
  font-size: clamp(28px, 3.4vw, 40px); padding-left: 44px; position: relative;
}
.section-head h2::before, .h-arrow::before {
  content: ""; position: absolute; left: 0; top: .14em; width: 28px; height: 28px; background: var(--arrow) center/contain no-repeat;
}
.section-head p { color: var(--ink-soft); margin: 14px 0 0 44px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--head); background: rgba(130, 36, 51, .28); color: #fff; transition: background .25s; }
/* once the page is scrolled the bar becomes almost solid, so the text below does not show through */
.site-header.scrolled { background: rgba(130, 36, 51, .93); }
/* blur of what scrolls behind the bar: full on the left, slightly lighter towards the right */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); }
.site-header.scrolled::before { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.site-header.scrolled::after { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.site-header::after { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.35) 100%); mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.35) 100%); }
.site-header .bar { display: flex; align-items: stretch; justify-content: space-between; height: 100%; padding-inline: max(48px, calc((100vw - var(--wrap)) / 2)); }
.brand { display: flex; align-items: center; gap: 16px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 60px; width: auto; flex: none; }
.brand-name { font: 900 21px/1.1 var(--sans); letter-spacing: .08em; display: block; }
.brand-name sub { font-size: .62em; letter-spacing: 0; vertical-align: baseline; position: relative; top: .3em; }
.brand-sub { display: block; height: 24px; width: auto; margin-top: 5px; opacity: .92; }
.nav { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; display: flex; align-items: center; }
.nav > li > a { color: #fff; font: 700 13.5px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: 12px 18px; display: flex; align-items: center; gap: 8px; }
.nav > li > a:hover { text-decoration: none; opacity: .8; }
.nav .has-sub > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translateY(-2px); }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 280px; list-style: none; margin: 0; padding: 8px 0; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.18); border-top: 4px solid var(--brand-dark); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.nav > li:last-child .sub { left: auto; right: 0; }
.sub a { display: block; padding: 10px 20px; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.sub a:hover { background: var(--brand-tint); color: var(--brand-dark); text-decoration: none; }
.nav-toggle { display: none; align-self: center; background: none; border: 2px solid #fff; padding: 9px 12px; font: 700 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #fff; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border-radius: 0;
  font: 700 14.5px/1 var(--sans); padding: 14px 22px;
  border: 2px solid var(--brand); background: var(--brand); color: #fff;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand); color: #fff; }
.btn.light { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn.light:hover { background: transparent; color: #fff; }
.btn.outline-light { background: transparent; border-color: #fff; color: #fff; }
.btn.outline-light:hover { background: #fff; color: var(--brand-dark); }
.btn.small { padding: 10px 14px; font-size: 13.5px; }
.btn.disabled { opacity: .4; cursor: default; border-style: dashed; }
.btn.disabled:hover { background: transparent; color: var(--brand); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: linear-gradient(120deg, #4a101b 0%, var(--brand-dark) 45%, var(--brand) 100%); overflow: hidden; margin-top: calc(-1 * var(--head)); padding-top: var(--head); }
/* Home background photo: mos design on Unsplash (Unsplash License), https://unsplash.com/photos/1uvJa08dNfQ
   To change it, replace assets/web/hero-plant-night.jpg (keep the name) or change the path below. */
.hero::before { content: ""; position: absolute; inset: 0; background: url("assets/web/hero-plant-night.jpg") right 45% / cover no-repeat; }
/* burgundy veil: darker on the left so the title stays readable */
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(62,14,23,.93) 0%, rgba(98,22,36,.76) 34%, rgba(130,36,51,.26) 64%, rgba(130,36,51,.12) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 120px 0 0; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); max-width: 14ch; text-shadow: 0 2px 18px rgba(40,8,14,.7); }
.hero h1::after, .page-hero h1::after { content: ""; display: block; width: 96px; height: 4px; background: #fff; margin-top: 22px; }
.hero h1 em { font-style: normal; }
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: #fff; max-width: 52ch; margin: 22px 0 30px; text-shadow: 0 1px 12px rgba(40,8,14,.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 84px; background: rgba(40,8,14,.72); backdrop-filter: blur(4px); }
.stat { padding: 22px 24px; border-left: 1px solid rgba(255,255,255,.18); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 900 34px/1.1 var(--sans); }
.stat span { font-size: 13.5px; color: rgba(255,255,255,.82); }

/* Inner page hero: colour gradient, centred title */
.page-hero, .hero.compact { position: relative; color: #fff; margin-top: calc(-1 * var(--head)); padding: calc(var(--head) + 72px) 0 84px; background: linear-gradient(110deg, var(--brand-dark) 0%, var(--brand) 55%, #a8485a 100%); overflow: hidden; }
.hero.compact::before, .hero.compact::after { display: none; }
.hero.compact .wrap { padding: 0; }
.page-hero .wrap, .hero.compact .wrap { max-width: 1080px; position: relative; z-index: 1; }
.page-hero h1, .hero.compact h1 { font-size: clamp(32px, 4.4vw, 50px); max-width: none; }
.page-hero h1::after, .hero.compact h1::after { width: 100%; max-width: 420px; height: 3px; margin-top: 14px; }
.page-hero .lead, .hero.compact p.lead { font-size: 17px; font-weight: 500; color: #fff; margin: 20px 0 0; max-width: 62ch; }
.page-hero .hero-actions, .hero.compact .hero-actions { margin-top: 28px; }
.page-hero::before, .page-hero::after { content: ""; position: absolute; width: 34px; height: 34px; background: var(--arrow-white) center/contain no-repeat; opacity: .22; bottom: 60px; }
.page-hero::before { left: 8%; transform: rotate(90deg); }
.page-hero::after { right: 12%; transform: rotate(180deg); }
.crumbs { font-size: 13.5px; color: rgba(255,255,255,.8); margin-bottom: 18px; }
.crumbs a { color: #fff; text-decoration: underline; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); padding: 26px; position: relative; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; }
.bar-card { padding-bottom: 40px; }
.bar-card::after { content: ""; position: absolute; left: 26px; bottom: 0; width: 88px; height: 9px; background: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.chip { font: 500 12.5px/1 var(--sans); padding: 6px 10px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-soft); white-space: nowrap; }
.card .chip { background: #fff; }
.chip.brand { background: var(--brand-tint); border-color: transparent; color: var(--brand-dark); }
.chip.green { background: var(--green-tint); border-color: transparent; color: var(--green); }
.chip.grey { background: #ececec; border-color: transparent; color: var(--muted); }

/* ---------- Image tiles (research themes) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 26px 24px 44px; color: #fff; background: var(--dark) center/cover no-repeat; overflow: hidden; isolation: isolate; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,20,22,.35) 0%, rgba(20,20,22,.82) 70%); transition: background .2s; }
.tile::after { content: ""; position: absolute; left: 24px; bottom: 0; width: 96px; height: 10px; background: var(--brand); transition: width .2s; }
.tile:hover { text-decoration: none; color: #fff; }
.tile:hover::before { background: linear-gradient(180deg, rgba(94,24,36,.55) 0%, rgba(94,24,36,.9) 70%); }
.tile:hover::after { width: 100%; left: 0; }
.tile h3 { font-size: 23px; margin-bottom: 14px; }
.tile p { margin: 0; padding-left: 14px; border-left: 2px solid #fff; font-size: 14.5px; line-height: 1.55; color: #fff; }
.tile .more { color: #fff; margin-top: 16px; }
.more { font: 700 13.5px/1 var(--sans); color: var(--brand); display: inline-block; }
.tiles.c3 { grid-template-columns: repeat(3, 1fr); }
.tiles.c3 .tile { min-height: 300px; }

/* ---------- Split panel (dark box overlapping an image) ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; align-items: stretch; }
.split figure { margin: 0; position: relative; min-height: 320px; }
.split figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split .panel { background: var(--dark); color: #fff; padding: 48px; }
.panel h3 { font: 700 15px/1.3 var(--sans); letter-spacing: 0; margin: 26px 0 10px; }
.panel h3:first-child { margin-top: 0; }
.panel p { color: rgba(255,255,255,.9); font-size: 15px; text-align: justify; }
.arrow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.arrow-list li { position: relative; padding-left: 30px; font-weight: 700; font-size: 15px; }
.arrow-list li::before { content: ""; position: absolute; left: 0; top: .32em; width: 13px; height: 13px; background: var(--arrow-white) center/contain no-repeat; }
.arrow-list li span { display: block; font-weight: 400; font-size: 14px; color: rgba(255,255,255,.8); }
.panel .btn { margin-top: 28px; }
.arrow-list.dark li::before { background-image: var(--arrow); }
.arrow-list.dark li span { color: var(--ink-soft); }

/* ---------- Projects ---------- */
.project { display: flex; flex-direction: column; }
.project .acr { font: 900 14px/1 var(--sans); letter-spacing: .12em; color: var(--brand); margin-bottom: 10px; }
.project h3 { font-size: 18px; font-weight: 700; }
.project p { margin-bottom: 18px; }
.project .fund { margin-top: auto; font-size: 13.5px; color: var(--muted); }

/* ---------- Publications ---------- */
.pubs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 1180px; }
.pub { display: grid; grid-template-columns: 26px 1fr; gap: 0; padding: 16px 0; border-bottom: 1px solid var(--line); position: relative; }
.pub::before { content: ""; width: 12px; height: 12px; margin-top: 6px; background: var(--arrow) center/contain no-repeat; }
.pub .y { display: none; }
.pub h3 { font: 500 16.5px/1.4 var(--sans); letter-spacing: 0; color: var(--brand); }
.pub h3 a { color: inherit; }
.pub p { font-size: 13.5px; color: var(--ink-soft); margin: 6px 0 0; }
.pub p i { color: var(--ink); }
.pub-themes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pub-themes .chip:hover { text-decoration: none; background: #efdcdf; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Team ---------- */
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.band[id] { scroll-margin-top: var(--head); }
.member { display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: start; background: #fff; border: 1px solid var(--line); color: var(--ink); position: relative; padding: 20px 20px 34px; transition: box-shadow .15s, transform .15s; }
.member::after { content: ""; position: absolute; left: 20px; bottom: 0; width: 88px; height: 9px; background: var(--brand); transition: width .2s, left .2s; }
a.member:hover { text-decoration: none; box-shadow: 0 10px 28px rgba(0,0,0,.12); transform: translateY(-2px); }
a.member:hover::after { width: 100%; left: 0; }
.member .ph { width: 104px; height: 130px; object-fit: cover; object-position: center top; background: #ddd; }
.member .ph.blank { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: rgba(255,255,255,.9); font: 900 30px/1 var(--sans); letter-spacing: .04em; }
.member .body { padding: 0; min-width: 0; }
.member h3 { font-size: 18px; margin-bottom: 10px; }
.member .info { border-left: 1px solid #bdbdbd; padding-left: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); display: grid; gap: 5px; word-break: break-word; }
.member .info b { color: var(--ink); font-weight: 700; }
.member .more { margin: 12px 0 0 12px; }
.director { display: grid; grid-template-columns: 300px 1fr 1fr; gap: 0; padding: 0; margin-bottom: 26px; }
.director .ph { width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: center top; }
.director > div, .director > ul { padding: 30px; }
.director h3 { font-size: 28px; }
.role { font: 700 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 6px 0 14px; display: block; }
.facts { list-style: none; margin: 0; display: grid; gap: 10px; align-content: start; font-size: 14.5px; color: var(--ink-soft); border-left: 1px solid var(--line); }
.facts li { padding-left: 24px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .42em; width: 11px; height: 11px; background: var(--arrow) center/contain no-repeat; }
.subhead { font: 900 22px/1.2 var(--sans); margin: 48px 0 20px; }
.subhead.first { margin-top: 0; }

/* round avatars (co-supervisor picker, side lists) */
.person { display: flex; gap: 14px; align-items: flex-start; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark); display: grid; place-items: center; font: 700 15px/1 var(--sans); }
.avatar.photo { width: 64px; height: 64px; object-fit: cover; object-position: center 12%; background: #eee; }
.avatar.mini { width: 36px; height: 36px; font-size: 12px; }
.person h3 { font: 700 16px/1.3 var(--sans); letter-spacing: 0; margin: 0; }
.person p { font-size: 14px; margin: 4px 0 0; }

/* ---------- Bands ---------- */
.band { background: var(--brand); color: #fff; text-align: center; padding: 64px 0; display: block; }
a.band:hover { text-decoration: none; background: var(--brand-dark); }
.band::before { content: ""; display: block; width: 46px; height: 30px; margin: 0 auto 14px; background: var(--arrow-white) right center/26px no-repeat, var(--arrow-white) left center/26px no-repeat; }
.band h2 { font-size: clamp(26px, 3vw, 34px); }
.band p { color: rgba(255,255,255,.88); margin: 10px auto 0; max-width: 56ch; }
.cta { background: var(--brand); color: #fff; padding: 56px 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); max-width: 22ch; }
.cta p { color: rgba(255,255,255,.88); margin-top: 10px; max-width: 52ch; }

/* ---------- Contact + footer ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact h3 { font-size: 20px; margin-bottom: 12px; }
.contact address { font-style: normal; color: var(--ink-soft); }
.contact ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.uni { text-align: center; padding: 44px 0 36px; }
.uni b { display: block; font: 900 26px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.uni span { display: block; color: var(--ink-soft); font-weight: 500; margin-top: 4px; }
.site-footer { background: var(--soft); color: var(--ink-soft); padding: 18px 0; font-size: 13.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink); font-weight: 500; }

/* ---------- Detail pages (theme, person) ---------- */
.narrow { width: min(1080px, 100% - 96px); margin-inline: auto; }
.block { padding: 56px 0 0; }
.block:last-of-type { padding-bottom: 72px; }
.block > .h-arrow { margin-bottom: 26px; }
.block .inner { padding-left: 44px; }
.intro { font-size: 16px; color: var(--ink-soft); }
.sub-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.sub-items li { position: relative; padding-left: 30px; }
.sub-items li::before { content: ""; position: absolute; left: 0; top: .34em; width: 13px; height: 13px; background: var(--arrow) center/contain no-repeat; }
.sub-items b { display: block; font-size: 16.5px; }
.sub-items span { color: var(--ink-soft); font-size: 15px; }
.works { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ink-soft); font-size: 15px; }
.works li { padding-left: 16px; position: relative; }
.works li::before { content: "–"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.people-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.people-row a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 14.5px; }
.people-row a:hover { text-decoration: none; border-color: var(--brand); }
.todo { color: var(--muted); font-style: italic; font-size: 14.5px; }

.profile { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; padding: 56px 0 72px; }
.profile-card { border: 1px solid var(--line); position: sticky; top: calc(var(--head) + 20px); padding-bottom: 30px; }
.profile-card::after { content: ""; position: absolute; left: 22px; bottom: 0; width: 88px; height: 9px; background: var(--brand); }
.profile-card .ph { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; }
.profile-card .ph.blank { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; font: 900 72px/1 var(--sans); }
.profile-card .body { padding: 22px; display: grid; gap: 14px; font-size: 14px; }
.profile-card .body h4 { font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.profile-card a { word-break: break-word; }
.profile-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.theme-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.theme-links a { font-weight: 500; }
.profile .block:first-child { padding-top: 0; }
.profile .block:last-of-type { padding-bottom: 0; }
.profile .pubs { max-width: none; }

/* ---------- Thesis page ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 24px 24px 36px; border: 1px solid var(--line); background: #fff; counter-increment: step; position: relative; }
.step::before { content: "0" counter(step); font: 900 30px/1 var(--sans); color: var(--brand); }
.step::after { content: ""; position: absolute; left: 24px; bottom: 0; width: 88px; height: 9px; background: var(--brand); }
.step h3 { font-size: 20px; margin: 12px 0 8px; }
.step p { font-size: 15px; color: var(--ink-soft); }

.theme-card { display: flex; flex-direction: column; }
.theme-card .num { font: 900 15px/1 var(--sans); color: var(--brand); letter-spacing: .08em; margin-bottom: 14px; }
.theme-card h4 { font: 700 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 0; }
.pick { position: relative; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; border-radius: 0; transition: border-color .15s, box-shadow .15s; }
.pick:hover { border-color: var(--brand); }
.pick[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; background: #fffafb; }
.pick .tick { position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; border: 2px solid var(--line); background: #fff; }
.pick[aria-pressed="true"] .tick { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.6L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.pick.person-pick { padding: 18px 50px 18px 18px; }
.panel-title { font-size: 22px; margin: 44px 0 6px; }
.panel-hint { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.theme-more { margin: 28px 0 -24px; font-weight: 700; font-size: 14.5px; }
.selection-bar { margin-top: 28px; padding: 18px 22px; background: var(--dark); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.selection-bar p { margin: 0; font-size: 15px; color: rgba(255,255,255,.88); }
.selection-bar b { color: #fff; }

.notice { font-size: 13.5px; padding: 10px 14px; background: #fff6dc; border: 1px solid #ecd9a0; color: #6b5310; margin-bottom: 22px; }
.notice.warn { background: #fdf0ee; border-color: #e9b9b3; border-left: 6px solid var(--brand); color: #7a2018; font-size: 14.5px; margin: 28px 0 0; }
.form .notice.warn { margin: 0; }

.topic { display: flex; flex-direction: column; padding-bottom: 34px; }
.topic::after { content: ""; position: absolute; left: 26px; bottom: 0; width: 88px; height: 9px; background: var(--brand); }
.topic .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.topic h3 { font-size: 19px; font-weight: 700; }
.topic .foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.topic .foot b { color: var(--ink-soft); font-weight: 500; }
.topic.assigned { opacity: .6; }
.topic.assigned::after { background: #bbb; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; }
.filter { font: 500 13.5px/1 var(--sans); padding: 10px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer; border-radius: 0; }
.filter:hover { border-color: var(--brand); }
.filter[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.search { flex: 1 1 240px; min-width: 200px; }

input, select, textarea { width: 100%; font: 400 15px/1.4 var(--sans); color: var(--ink); padding: 11px 13px; border: 1px solid #cfcfd4; border-radius: 0; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
textarea { min-height: 120px; resize: vertical; }
label { display: block; font: 700 13px/1.3 var(--sans); color: var(--ink-soft); margin-bottom: 6px; }
label small { font-weight: 400; color: var(--muted); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 13.5px; color: var(--muted); margin: 0; }
.apply-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.apply-layout h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; padding-left: 44px; position: relative; }
.apply-layout h2::before { content: ""; position: absolute; left: 0; top: .14em; width: 28px; height: 28px; background: var(--arrow) center/contain no-repeat; }
.apply-layout .side p { color: var(--ink-soft); }

.archive { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.thesis { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.thesis .n { font: 700 13.5px/1.7 var(--sans); color: var(--brand); font-variant-numeric: tabular-nums; }
.thesis h3 { font: 500 16px/1.45 var(--sans); letter-spacing: 0; }
.thesis .by { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.thesis details { margin-top: 10px; }
.thesis summary { cursor: pointer; font: 700 13.5px/1 var(--sans); color: var(--brand); }
.thesis details p { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); max-width: 78ch; }
.count { font-size: 13.5px; color: var(--muted); margin-left: auto; }
.empty { padding: 28px 0; color: var(--muted); }
.more-row { margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .members { grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 300px; }
  .director { grid-template-columns: 240px 1fr; }
  .director .facts { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .grid.c4, .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .members { grid-template-columns: repeat(2, 1fr); }
  .apply-layout, .profile { grid-template-columns: 1fr; gap: 32px; }
  .profile-card { position: relative; top: 0; max-width: 360px; }
  .split { grid-template-columns: 1fr; }
  .split figure { min-height: 0; aspect-ratio: 4/3; }
  .split .panel { padding: 36px 28px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: var(--head); left: 0; right: 0; flex-direction: column; background: var(--brand-dark); padding: 8px 0 18px; max-height: calc(100vh - var(--head)); overflow: auto; }
  .nav.open { display: flex; }
  .nav > li { flex-direction: column; align-items: stretch; }
  .nav > li > a { padding: 14px 24px; }
  .nav .has-sub > a::after { display: none; }
  .sub { display: block; position: static; background: transparent; box-shadow: none; border: 0; padding: 0 0 6px; }
  .sub a { color: rgba(255,255,255,.85); padding: 8px 24px 8px 40px; font-weight: 400; }
  .sub a:hover { background: rgba(255,255,255,.1); color: #fff; }
}
@media (max-width: 680px) {
  :root { --head: 72px; }
  .section { padding: 52px 0; }
  .grid.c2, .grid.c3, .grid.c4, .steps, .contact, .form, .tiles, .tiles.c3, .members { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .stat:nth-child(3) { border-left: 0; }
  .hero .wrap { padding-top: 72px; }
  .brand-logo { height: 46px; }
  .brand-sub { height: 15px; }
  .director { grid-template-columns: 1fr; }
  .director .ph { min-height: 0; aspect-ratio: 4/3; }
  .section-head h2, .h-arrow, .apply-layout h2 { padding-left: 36px; }
  .section-head h2::before, .h-arrow::before, .apply-layout h2::before { width: 22px; height: 22px; }
  .section-head p { margin-left: 0; }
  .block .inner { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Forms: checkbox group, contact form ---------- */
fieldset.checks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
fieldset.checks legend { font: 700 13px/1.3 var(--sans); color: var(--ink-soft); margin-bottom: 8px; padding: 0; }
fieldset.checks legend small { font-weight: 400; color: var(--muted); }
fieldset.checks label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 12px; border: 1px solid #cfcfd4; font-weight: 500; font-size: 14px; color: var(--ink); cursor: pointer; }
fieldset.checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
fieldset.checks input { width: auto; accent-color: var(--brand); }
.contact-form { max-width: 820px; }

/* ---------- Large screens: use the width ---------- */
@media (min-width: 1500px) {
  body { font-size: 17px; }
  .members { grid-template-columns: repeat(4, 1fr); }
  .tile { min-height: 420px; }
  .tile h3 { font-size: 26px; }
  .tile p { font-size: 15.5px; }
  .profile { grid-template-columns: 340px 1fr; }
}
/* tablets and phones keep narrow side margins */
@media (max-width: 980px) {
  .wrap { width: min(var(--wrap), 100% - 40px); }
  .narrow { width: min(1080px, 100% - 40px); }
  .site-header .bar { padding-inline: 20px; }
  .hero::after { background: linear-gradient(90deg, rgba(62,14,23,.9) 0%, rgba(98,22,36,.72) 100%); }
}

.send-label { font: 700 13px/1.3 var(--sans); color: var(--ink-soft); margin: 0 0 8px; }
.form-actions { gap: 10px; }
.form-actions + .form-note { margin-top: 12px; }
