/* Matematikus editorial theme. Keeps the official Pi artwork and uses one type family for headlines. */
:root {
  --navy: #172b48;
  --deep: #13243c;
  --blue: #285379;
  --cream: #f5f2eb;
  --paper: #fffdf8;
  --ink: #1b2d43;
  --muted: #5e6974;
  --line: #ccd2d2;
  --coral: #c96929;
}
body { background: var(--cream); }
.site-header { background: var(--paper); border-bottom: 1px solid #d9d9d2; }
.nav-item>a:hover, .header-cta:hover { color: var(--coral); border-color: var(--coral); }
.hero h1 em, .feature-heading h2 em, .inner-hero h1 em {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
.hero {
  background: var(--paper);
  color: var(--navy);
  min-height: 0;
}
.hero::before { display: none; }
.hero-grid {
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  min-height: 440px;
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 7% 34px 0;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 17px;
  color: #a24c1a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
}
.hero-eyebrow::before { content: ''; width: 27px; height: 2px; background: var(--coral); }
.hero h1 {
  max-width: 760px;
  margin: 0 0 15px;
  font: 800 clamp(43px, 5vw, 66px)/1.07 var(--display);
  letter-spacing: -3.5px;
  color: var(--navy);
  text-wrap: balance;
}
.hero-subtitle {
  max-width: 540px;
  border-left: 3px solid var(--coral);
  padding-left: 18px;
  margin: 0 0 12px;
  color: #354a61;
  font: 700 clamp(17px, 1.8vw, 23px)/1.4 var(--display);
  letter-spacing: -.5px;
}
.hero-lead { max-width: 510px; margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.hero-actions { gap: 25px; }
.hero-actions .button.light {
  min-height: 46px;
  padding: 13px 17px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
}
.hero-actions .button.light:hover { background: #2f496c; color: #fff; }
.hero-actions .under-link { color: var(--navy); border-color: #909ba5; padding-bottom: 4px; }
.hero-visual {
  height: auto;
  min-height: 440px;
  overflow: hidden;
  background: #e9a15e;
  border-left: 1px solid #dd9b61;
}
.hero-visual::before {
  display: block;
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 83px, #69331213 84px 85px),
              repeating-linear-gradient(0deg, transparent 0 83px, #69331213 84px 85px);
  pointer-events: none;
}
.hero-visual::after {
  content: '';
  position: absolute;
  width: 77%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #57361b3d;
  border-radius: 50%;
  pointer-events: none;
}
.hero-logo {
  z-index: 1;
  top: 50%;
  width: min(65%, 315px);
  padding: 0;
  background: transparent;
  filter: drop-shadow(6px 13px 9px #5b321435);
}
.hero-visual-top, .hero-visual-bottom {
  position: absolute;
  z-index: 2;
  left: 27px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #2e281e;
}
.hero-visual-top { top: 25px; }
.hero-visual-bottom { bottom: 25px; }
.hero-footer { height: 55px; border-top: 1px solid var(--line); color: #536170; }
.hero-footer a span { color: var(--coral); }

.feature-heading { margin-bottom: 31px; }
.feature-heading h2 { font-size: clamp(37px, 4.5vw, 58px); letter-spacing: -2.9px; line-height: 1.13; }
.feature-heading .kicker { margin-bottom: 17px; }
.section-intro { max-width: 620px; margin: 15px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.kicker.dark-text { color: #9d4b1b; }
.featured-publications { padding: 74px 0 78px; background: var(--paper); }
.featured-publications .feature-heading { margin-bottom: 33px; }
.featured-heading-actions { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.featured-track { gap: 25px; padding-bottom: 12px; }
.featured-item { flex-basis: calc((100% - 50px)/3); border-color: #708197; padding-top: 15px; }
.featured-media { height: 106px; margin-bottom: 10px; place-items: start; }
.featured-media img { height: 100%; width: auto; object-fit: contain; }
.featured-media>span { display: block; width: auto; height: auto; background: none; color: #bf7645; font: 800 74px/1 var(--display); letter-spacing: -6px; }
.featured-item h3 { font-size: clamp(18px, 1.85vw, 24px); min-height: 95px; margin: 12px 0 17px; line-height: 1.28; }
.carousel-controls button, .book-journal-controls button { cursor: pointer; }
.carousel-controls[hidden] { display: none; }

.book-journal-section { padding: 58px 0 65px; background: #ece8de; }
.book-journal-header { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 25px; }
.book-journal-header .kicker { margin-bottom: 13px; }
.book-journal-header h2 { margin: 0; color: var(--navy); font: 800 clamp(38px, 4.5vw, 58px)/1.1 var(--display); letter-spacing: -3px; }
.book-journal-header .section-intro { margin-top: 8px; }
.book-journal-actions { display: flex; flex-direction: column; align-items: end; gap: 23px; }
.book-journal-controls { display: flex; align-items: center; gap: 8px; }
.book-journal-controls span { margin-right: 11px; color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
.book-journal-controls button { width: 36px; height: 36px; border: 1px solid #8794a0; background: transparent; color: var(--navy); font-size: 18px; }
.book-journal-controls button:hover { background: var(--navy); color: white; }
.book-journal-controls button:disabled { opacity: .3; cursor: default; }
.book-journal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-top: 1px solid #8c979e; border-bottom: 1px solid #8c979e; }
.book-journal-track::-webkit-scrollbar { display: none; }
.book-journal-slide { display: grid; grid-template-columns: 240px minmax(0,1fr); align-items: center; gap: 45px; flex: 0 0 100%; min-width: 0; min-height: 225px; padding: 15px 0; scroll-snap-align: start; }
.book-journal-media { height: 195px; display: grid; place-items: center; padding: 0; background: transparent; }
.book-journal-media img { width: auto; height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(3px 7px 7px #172b4833); }
.book-journal-info { display: block; align-self: center; margin: 0; padding: 0; border: 0; }
.book-journal-info h3 { max-width: 750px; margin: 10px 0 12px; color: var(--navy); font: 800 clamp(22px, 2.5vw, 34px)/1.17 var(--display); letter-spacing: -1.3px; }
.book-journal-info p { margin: 0 0 18px; max-width: 650px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.book-journal-info .text-link { display: inline-block; }

.home-section { padding: 86px 0; }
.home-section.section-no-image .section-inner { display: block; max-width: 920px; }
.home-section.section-no-image .section-copy { max-width: 820px; }
.home-section.section-center .section-copy { max-width: none; }
.section-copy h2 { margin-bottom: 18px; font-size: clamp(36px, 4.3vw, 57px); letter-spacing: -2.5px; }
.section-subtitle { max-width: 680px; margin: 0 0 16px; color: var(--navy); font: 700 clamp(19px, 2.2vw, 27px)/1.4 var(--display); }
.section-summary { max-width: 680px; margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.section-dark .section-subtitle, .section-dark .section-summary { color: #e5ebf2; }
.section-center .section-subtitle, .section-center .section-summary { margin-left: auto; margin-right: auto; }
.section-copy .prose { font-size: 15px; line-height: 1.7; }
.section-no { border-color: var(--coral); }
.announcement-section { padding: 67px 0; background: #eee3d8; }
.announcement-item { min-height: 195px; }
.project-teaser { padding: 75px 0 83px; background: var(--deep); }
.project-teaser .feature-heading .section-intro { color: #c8d5e1; }
.project-teaser .teaser-card { grid-template-columns: 135px 1fr 130px; padding: 24px 0; }
.inner-hero { padding: 67px 0 74px; }
.inner-hero::after { display: none; }
.inner-hero h1 { font-size: clamp(42px, 5vw, 68px); letter-spacing: -3px; }
.inner-subtitle { max-width: 740px; margin: 17px 0 0; color: #fff; font: 700 clamp(20px, 2.2vw, 28px)/1.4 var(--display); }
.inner-hero .lead { margin-top: 13px; font-size: 16px; }
.inner-hero.has-art { isolation: isolate; min-height: 285px; }
.inner-hero.has-art .container { padding-right: clamp(185px, 21vw, 260px); }
.inner-hero.has-art::after { content: ''; display: block; position: absolute; top: 50%; right: max(18px, calc((100vw - 1280px) / 2 + 20px)); bottom: auto; width: clamp(160px, 18vw, 215px); height: clamp(160px, 18vw, 215px); transform: translateY(-50%); background: var(--hero-art) center / contain no-repeat; pointer-events: none; }
.inner-hero.art-book { --hero-art: url('pi_hero_book.png'); }
.inner-hero.art-gear { --hero-art: url('pi_hero_gear.png'); }
.inner-hero.art-academic { --hero-art: url('pi_hero_academic.png'); }
.inner-hero.art-contact { --hero-art: url('pi_hero_contact.png'); }
.inner-hero.art-computer { --hero-art: url('pi_hero_computer.png'); }
.inner-hero.art-team { --hero-art: url('pi_hero_team.png'); }
.inner-hero.art-research { --hero-art: url('pi_hero_research.png'); }
@media (max-width: 700px) {
  .inner-hero.has-art { padding-bottom: 105px; }
  .inner-hero.has-art .container { padding-right: 0; }
  .inner-hero.has-art::after { top: auto; right: 14px; bottom: -10px; width: 112px; height: 112px; transform: none; }
}
@media (max-width: 850px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; min-height: 420px; }
  .hero-copy { padding: 45px 20px 45px 0; }
  .hero h1 { font-size: clamp(38px, 5.8vw, 51px); letter-spacing: -2.5px; }
  .hero-visual { min-height: 420px; height: auto; }
  .hero-logo { width: 71%; }
  .hero-subtitle { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-wrap: wrap; gap: 14px 19px; }
  .book-journal-slide { grid-template-columns: 190px minmax(0,1fr); gap: 25px; }
}
@media (max-width: 700px) {
  .featured-item { flex-basis: min(75vw, 315px); }
  .book-journal-section { padding: 48px 0 55px; }
  .book-journal-header { align-items: start; }
  .book-journal-header h2 { font-size: 42px; }
  .book-journal-slide { grid-template-columns: 165px minmax(0,1fr); gap: 20px; min-height: 220px; }
  .book-journal-media { height: 175px; }
  .book-journal-info h3 { font-size: 22px; }
  .project-teaser .teaser-card { grid-template-columns: 95px 1fr; }
}
@media (max-width: 600px) {
  .container, .header-inner { width: min(100% - 36px, 620px); }
  .hero-grid { display: block; }
  .hero-copy { padding: 43px 0 39px; }
  .hero h1 { max-width: 500px; font-size: clamp(39px, 10.2vw, 55px); letter-spacing: -2.7px; }
  .hero-eyebrow { margin-bottom: 18px; }
  .hero-subtitle { font-size: 17px; margin-bottom: 14px; }
  .hero-lead { font-size: 14px; margin-bottom: 20px; }
  .hero-visual { min-height: 205px; height: 205px; border-left: 0; }
  .hero-logo { width: 150px; }
  .hero-visual-top, .hero-visual-bottom { left: 17px; font-size: 8px; }
  .hero-visual-top { top: 15px; }
  .hero-visual-bottom { bottom: 15px; }
  .hero-footer { font-size: 9px; gap: 15px; }
  .hero-footer span:first-child { max-width: 60%; }
  .feature-heading h2 { font-size: 38px; letter-spacing: -2px; }
  .featured-publications { padding: 60px 0; }
  .book-journal-header { display: block; margin-bottom: 18px; }
  .book-journal-actions { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 22px; }
  .book-journal-slide { grid-template-columns: 115px minmax(0,1fr); gap: 15px; min-height: 200px; }
  .book-journal-media { height: 160px; }
  .book-journal-info h3 { font-size: 18px; line-height: 1.26; letter-spacing: -.5px; }
  .book-journal-info p { display: none; }
  .book-journal-info .text-link { font-size: 11px; }
  .home-section { padding: 65px 0; }
  .project-teaser { padding: 62px 0; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 38px; }
  .book-journal-actions .text-link { font-size: 11px; }
  .book-journal-controls span { margin-right: 2px; }
  .book-journal-slide { grid-template-columns: 95px minmax(0,1fr); }
  .book-journal-media { height: 135px; }
}
.footer-admin-link { color: inherit; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.footer-admin-link:hover, .footer-admin-link:focus-visible { color: #fff; border-color: currentColor; }
.nav-label-row { display: flex; align-items: center; height: 100%; }
.nav-label-row > a, .nav-group-toggle { display: flex; align-items: center; gap: 8px; padding: 12px 13px; border: 0; background: transparent; color: var(--navy); font: 700 13px var(--body); white-space: nowrap; cursor: pointer; }
.nav-label-row > a:hover, .nav-group-toggle:hover, .nav-expand:hover { color: var(--blue); }
.nav-group-toggle .nav-chevron { font-size: 17px; line-height: 10px; }
.nav-expand { padding: 9px 5px; border: 0; background: transparent; color: var(--navy); cursor: pointer; font-size: 17px; }
.nav-item.menu-open > .subnav { display: block; }
.subnav .nav-label-row { height: auto; }
.subnav .nav-label-row > a, .subnav .nav-group-toggle { padding: 12px 14px; white-space: normal; }
.contact-section { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); gap: 10%; padding-top: 85px; padding-bottom: 110px; }
.contact-intro h2 { margin: 0 0 20px; color: var(--navy); font: 800 clamp(32px, 3.6vw, 54px)/1.1 var(--display); letter-spacing: -2px; }
.contact-intro > p:not(.kicker) { max-width: 390px; color: var(--muted); line-height: 1.7; }
.contact-panel { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3vw, 44px); }
.contact-panel form { display: grid; gap: 22px; }
.contact-panel label { display: grid; gap: 9px; color: var(--navy); font-size: 12px; font-weight: 800; }
.contact-panel label span { color: var(--muted); font-weight: 500; }
.contact-panel input, .contact-panel textarea { width: 100%; border: 1px solid #cbd2d6; background: #fafaf7; padding: 14px 15px; color: var(--ink); font: 400 15px var(--body); border-radius: 0; }
.contact-panel input:focus, .contact-panel textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-panel .button { width: max-content; border: 0; cursor: pointer; }
.contact-success, .contact-error { padding: 15px 18px; margin: 0 0 22px; line-height: 1.5; }
.contact-success { background: #e7f3e9; color: #14522a; }
.contact-error { background: #fff0ed; color: #9a2d19; }
.contact-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 1100px) { .nav-label-row > a, .nav-group-toggle { padding: 10px 8px; font-size: 12px; } }
@media (max-width: 1050px) {
  .nav-label-row { height: auto; }
  .nav-label-row > a, .nav-group-toggle { flex: 1; padding: 13px 8px; font-size: 14px; }
  .nav-expand { padding: 11px 14px; }
  .site-header .nav-item:not(.menu-open) > .subnav { display: none; }
  .site-header .nav-item.menu-open > .subnav { display: block; }
}
@media (max-width: 700px) { .contact-section { display: block; padding-top: 60px; padding-bottom: 75px; } .contact-intro { margin-bottom: 28px; } .contact-form-row { grid-template-columns: 1fr; } }

/* Independent homepage showcase and closing invitation. */
.home-showcase { padding: 30px 0 64px; background: #eae4d9; scroll-margin-top: 20px; }
.showcase-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; color: #4d5b66; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.showcase-controls { display: flex; align-items: center; gap: 7px; }
.showcase-controls [data-showcase-count] { margin-right: 14px; white-space: nowrap; }
.showcase-timer { display: block; width: 62px; height: 3px; margin-right: 9px; background: #b6b8b3; overflow: hidden; }
.showcase-timer[hidden] { display: none; }
.showcase-timer [data-showcase-progress] { display: block; width: 100%; height: 100%; background: var(--navy); transform: scaleX(1); transform-origin: left center; }
.showcase-controls button { width: 38px; height: 38px; background: transparent; border: 1px solid #9ca6a5; color: var(--navy); cursor: pointer; font-size: 20px; }
.showcase-controls button:hover { color: white; background: var(--navy); }
.showcase-controls button:disabled { opacity: .3; cursor: default; }
.showcase-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.showcase-track::-webkit-scrollbar { display: none; }
.showcase-slide { flex: 0 0 100%; min-width: 0; height: clamp(420px, 45vw, 580px); display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 66%); scroll-snap-align: start; background: #f9f7f1; }
.showcase-media { min-width: 0; min-height: 0; display: grid; place-items: center; background: #d9dcd9; overflow: hidden; }
.showcase-media img { display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.showcase-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(28px, 5vw, 76px); }
.showcase-copy .kicker { margin-bottom: 20px; }
.showcase-copy h2 { margin: 0 0 17px; color: var(--navy); font: 800 clamp(30px, 3.5vw, 51px)/1.1 var(--display); letter-spacing: -2px; }
.showcase-copy .showcase-description { max-width: 470px; color: #5c6970; font-size: 15px; line-height: 1.65; }
.showcase-link { display: inline-flex; gap: 40px; align-items: center; border-bottom: 1px solid var(--navy); margin-top: 20px; padding-bottom: 8px; color: var(--navy); font-size: 13px; font-weight: 800; }
.showcase-link:hover { color: var(--coral); border-color: var(--coral); }
.bottom-banner { background: #172b48; color: white; padding: 55px 0; }
.bottom-banner-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.bottom-banner-copy { max-width: 730px; }
.bottom-banner .kicker { color: #e5a16a; margin-bottom: 20px; }
.bottom-banner h2 { margin: 0 0 13px; font: 800 clamp(32px, 4.6vw, 62px)/1.08 var(--display); letter-spacing: -2.8px; }
.bottom-banner-copy > p:not(.kicker) { color: #cad4db; line-height: 1.6; }
.bottom-banner a { display: inline-flex; gap: 40px; margin-top: 18px; border-bottom: 1px solid #e7bd97; padding-bottom: 8px; font-weight: 800; font-size: 13px; }
.bottom-banner a:hover { color: #e7bd97; }
.bottom-banner img { display: block; width: min(23%, 250px); max-height: 230px; object-fit: contain; }

/* The full team stays visible in a compact wrapping grid. */
.team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 18px; overflow: visible; padding-bottom: 0; }
.person-card { min-width: 0; }
.person-media { width: min(100%, 150px); height: 150px; }
.person-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.person-card h2 { font-size: 16px; line-height: 1.25; margin: 13px 0 5px; }
.person-card p { font-size: 12px; line-height: 1.35; }
.person-card .text-link { font-size: 11px; }
.person-detail { grid-template-columns: 195px minmax(0, 1fr); }
.person-detail > img { max-width: 195px; }
@media (max-width: 1050px) { .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Compact navigation with a clear dropdown hierarchy. */
.site-header .nav-list:not(.subnav) { gap: 2px; }
.site-header .nav-list:not(.subnav) > .nav-item { padding: 0 3px; }
.site-header .nav-list:not(.subnav) > .nav-item > .nav-label-row { border-bottom: 2px solid transparent; }
.site-header .nav-list:not(.subnav) > .nav-item:hover > .nav-label-row,
.site-header .nav-list:not(.subnav) > .nav-item.menu-open > .nav-label-row { border-color: var(--coral); }
.site-header .nav-label-row > a,
.site-header .nav-group-toggle { font-size: 12px; letter-spacing: .15px; }
.site-header .subnav { min-width: 240px; padding: 9px; background: var(--paper); border: 1px solid #d6d4cd; border-top: 3px solid var(--coral); box-shadow: 0 22px 40px #14253c21; }
.site-header .subnav .nav-item { border-bottom: 1px solid #e6e4dd; }
.site-header .subnav .nav-item:last-child { border: 0; }
.site-header .subnav .nav-label-row > a,
.site-header .subnav .nav-group-toggle { width: 100%; padding: 13px 12px; font-size: 13px; font-weight: 700; }
.site-header .subnav .nav-label-row > a:hover,
.site-header .subnav .nav-group-toggle:hover { background: #eee9df; color: var(--navy); }
.site-header .nav-expand:hover { color: var(--coral); }
@media (max-width: 1050px) {
  .site-header nav { background: var(--navy); color: #f8f6ef; box-shadow: 0 24px 40px #14253c45; }
  .site-header .nav-list:not(.subnav) { padding: 14px 20px 24px; }
  .site-header .nav-list:not(.subnav) > .nav-item { padding: 0; border-bottom: 1px solid #ffffff25; }
  .site-header .nav-list:not(.subnav) > .nav-item > .nav-label-row { border: 0; }
  .site-header .nav-label-row > a,
  .site-header .nav-group-toggle { color: #fffaf2; padding: 17px 8px; font-size: 15px; }
  .site-header .nav-expand { color: #e9c2a4; padding: 15px; }
  .site-header .nav-label-row > a:hover,
  .site-header .nav-group-toggle:hover { color: #e9c2a4; }
  .site-header .subnav,
  .site-header .subnav .subnav { margin: 0 0 10px 10px; padding: 0 0 0 13px; min-width: 0; border: 0; border-left: 2px solid var(--coral); background: transparent; box-shadow: none; }
  .site-header .subnav .nav-item { border: 0; }
  .site-header .subnav .nav-label-row > a,
  .site-header .subnav .nav-group-toggle { color: #dce5ec; font-size: 13px; padding: 11px 8px; }
  .site-header .subnav .nav-label-row > a:hover,
  .site-header .subnav .nav-group-toggle:hover { color: #fff; background: transparent; }
}
@media (max-width: 700px) {
  .home-showcase { padding: 24px 0 45px; }
  .showcase-slide { display: flex; flex-direction: column; height: auto; }
  .showcase-media { height: clamp(300px, 95vw, 420px); min-height: 0; }
  .showcase-media img { max-height: none; }
  .showcase-copy { padding: 25px 24px 32px; }
  .showcase-copy h2 { font-size: 30px; }
  .showcase-controls [data-showcase-count] { margin-right: 3px; }
  .showcase-timer { width: 40px; margin-right: 4px; }
  .featured-publications .feature-heading { display: block; }
  .featured-heading-actions { justify-content: space-between; margin-top: 22px; }
  .bottom-banner { padding: 48px 0; }
  .bottom-banner img { width: 95px; align-self: flex-start; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 14px; }
  .person-media { width: min(100%, 145px); height: 145px; }
  .person-card h2 { font-size: 14px; }
  .person-detail > img { max-width: 170px; }
}
@media (max-width: 500px) { .bottom-banner-inner { gap: 20px; } .bottom-banner img { width: 65px; } .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .person-media { width: min(100%, 140px); height: 140px; } }
.project-cover { width: 100%; height: auto; max-height: none; object-fit: contain; }
.popup-dismiss-forever { display: block; width: max-content; max-width: 100%; margin-top: 18px; padding: 7px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: #53677e; font: 700 13px var(--body); cursor: pointer; }
.popup-dismiss-forever:hover,.popup-dismiss-forever:focus-visible { color: var(--blue); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 20px; }
.tool-item .tool-actions .text-link { margin-top: 0; }
.tool-back-link { display: inline-block; margin-top: 22px; border-bottom: 1px solid currentColor; color: var(--blue); font-size: 12px; font-weight: 800; }
.detail-aside p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.digital-tools-home { padding: 86px 0 94px; background: #e8edeb; scroll-margin-top: 20px; }
.digital-tools-home .feature-heading { align-items: end; margin-bottom: 39px; }
.digital-tools-home .feature-heading .text-link { flex-shrink: 0; }
.home-tool-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 175px 145px; gap: 24px; align-items: center; padding: 29px 0; border-top: 1px solid #aebbb9; }
.home-tool-row:last-child { border-bottom: 1px solid #aebbb9; }
.home-tool-row.no-media { grid-template-columns: 64px minmax(0, 1fr) 145px; }
.home-tool-number { align-self: start; color: #688180; font: italic 25px Georgia, serif; }
.home-tool-copy h3 { margin: 9px 0 7px; color: var(--navy); font: 800 clamp(23px, 2.4vw, 32px)/1.2 var(--display); letter-spacing: -1px; }
.home-tool-copy h3 a:hover { color: var(--blue); }
.home-tool-copy p { max-width: 610px; margin: 0; color: #526363; font-size: 14px; line-height: 1.55; }
.home-tool-media { display: block; width: 175px; height: 125px; min-width: 0; overflow: hidden; background: #d8e2df; }
.home-tool-media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center top; }
.home-tool-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.home-tool-actions a { border-bottom: 1px solid currentColor; padding-bottom: 4px; color: var(--navy); font-size: 12px; font-weight: 800; white-space: nowrap; }
.home-tool-actions a:hover { color: var(--blue); }
@media (max-width: 800px) { .home-tool-row,.home-tool-row.no-media { grid-template-columns: 48px minmax(0, 1fr); gap: 8px 18px; } .home-tool-number { grid-row: 1 / span 3; } .home-tool-media,.home-tool-actions { grid-column: 2; } .home-tool-media { width: 180px; max-width: 100%; height: 110px; justify-self: start; margin-top: 12px; } .home-tool-actions { flex-direction: row; flex-wrap: wrap; gap: 15px 24px; margin-top: 14px; } }
@media (max-width: 600px) { .digital-tools-home { padding: 68px 0 74px; } .digital-tools-home .feature-heading { display: block; } .digital-tools-home .feature-heading .text-link { display: inline-block; margin-top: 20px; } .home-tool-copy h3 { font-size: 24px; } }

.showcase-description > :first-child,.hero-lead > :first-child,.section-intro > :first-child,.inner-hero .lead > :first-child,.bottom-banner-text > :first-child { margin-top: 0; }
.showcase-description > :last-child,.hero-lead > :last-child,.section-intro > :last-child,.inner-hero .lead > :last-child,.bottom-banner-text > :last-child { margin-bottom: 0; }
.showcase-description a,.section-intro a,.hero-lead a,.bottom-banner-text a,.inner-hero .lead a { text-decoration: underline; text-underline-offset: 3px; }
.showcase-description h2,.showcase-description h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.4px; }
.showcase-description ul,.showcase-description ol { padding-left: 22px; }
.bottom-banner-text.prose,.bottom-banner-text.prose h2,.bottom-banner-text.prose h3 { color: #cad4db; font-size: 15px; line-height: 1.65; }
.contact-intro > .prose { max-width: 390px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.hero-lead.prose h2,.hero-lead.prose h3,.inner-hero .lead.prose h2,.inner-hero .lead.prose h3,.project-teaser .section-intro.prose h2,.project-teaser .section-intro.prose h3 { color: inherit; font-size: 20px; line-height: 1.35; letter-spacing: -.4px; }
.showcase-description img { max-height: 150px; width: auto; }

/* Soft surfaces keep the editorial layout while easing its sharp edges. */
:root {
  --surface-radius: 13px;
  --control-radius: 8px;
  --surface-shadow: 0 7px 24px rgba(18, 36, 60, .065);
  --surface-shadow-hover: 0 13px 32px rgba(18, 36, 60, .11);
}
.hero-visual { border-radius: 14px; }
.showcase-track { border-radius: 15px; box-shadow: var(--surface-shadow); }
.showcase-slide { border-radius: inherit; }
.featured-item,
.announcement-item,
.project-card,
.page-content-card,
.related-grid a,
.announcement-list-item,
.tool-item,
.home-tool-row,
.contact-panel,
.detail-aside {
  border: 1px solid rgba(37, 57, 78, .11);
  border-radius: var(--surface-radius);
  background: var(--paper);
  box-shadow: var(--surface-shadow);
}
.featured-item,
.announcement-item { padding: 19px; }
.featured-item { border-color: rgba(37, 57, 78, .15); }
.announcement-item { border-color: rgba(37, 57, 78, .12); }
.featured-item:hover,
.announcement-item:hover,
.project-card:hover,
.page-content-card:hover,
.related-grid a:hover,
.home-tool-row:hover { box-shadow: var(--surface-shadow-hover); }
.project-card { overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.project-card:hover { transform: translateY(-3px); }
.page-content-card,
.related-grid a { padding: 20px; }
.page-content-card img { border-radius: 9px; }
.announcement-list-item,
.tool-item { padding: 24px; margin-bottom: 14px; }
.announcement-list-item img,
.tool-item img { border-radius: 9px; }
.home-tool-row { padding: 20px; margin-bottom: 12px; }
.home-tool-row:last-child { border: 1px solid rgba(37, 57, 78, .11); }
.home-tool-media { border-radius: 9px; }
.person-media,
.person-detail > img,
.article-cover,
.section-image img { border-radius: 11px; }
.person-media,
.section-image img { box-shadow: var(--surface-shadow); }
.article-wrap > .article-cover,
.project-cover { border-radius: 12px; }
.project-teaser .teaser-card,
.project-teaser .teaser-card:hover {
  padding: 22px;
  margin-bottom: 11px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--surface-radius);
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 7px 22px rgba(2, 13, 31, .13);
}
.project-teaser .teaser-card:hover { background: rgba(255, 255, 255, .09); }
.site-header .subnav { border-radius: 10px; }
.site-header .subnav .nav-label-row > a,
.site-header .subnav .nav-group-toggle { border-radius: 6px; }
.button,
.publication-search button,
.filters a,
.carousel-controls button,
.book-journal-controls button,
.showcase-controls button,
.site-popup-close { border-radius: var(--control-radius); }
.publication-search input,
.publication-search select,
.contact-panel input,
.contact-panel textarea { border-radius: var(--control-radius); }
.site-popup-dialog { border-radius: 15px; }
.contact-success,
.contact-error { border-radius: var(--control-radius); }
.publication-row { border-radius: 10px; transition: background .2s ease; }
.publication-row:hover { background: rgba(255, 253, 248, .75); }
@media (max-width: 1050px) {
  .site-header .subnav { overflow: visible; border-radius: 0; }
}
@media (max-width: 600px) {
  .hero-visual { border-radius: 12px; }
  .announcement-list-item,
  .tool-item,
  .page-content-card { padding: 18px; }
}

/* Clearer navigation and a lighter mobile menu. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 80px;
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid rgba(23, 43, 72, .1);
  box-shadow: 0 5px 22px rgba(18, 36, 60, .055);
  backdrop-filter: blur(16px);
}
.site-header .header-inner { gap: clamp(16px, 2.3vw, 32px); }
.site-header .brand { gap: 10px; }
.site-header .brand-word { font-size: 20px; letter-spacing: -.9px; }
.site-header nav { min-width: 0; margin-left: auto; }
.site-header .nav-list:not(.subnav) { gap: 4px; }
.site-header .nav-list:not(.subnav) > .nav-item { padding: 0; }
.site-header .nav-list:not(.subnav) > .nav-item > .nav-label-row {
  height: auto;
  border: 0;
  border-radius: 9px;
  transition: background .18s ease;
}
.site-header .nav-list:not(.subnav) > .nav-item:hover > .nav-label-row,
.site-header .nav-list:not(.subnav) > .nav-item.menu-open > .nav-label-row,
.site-header .nav-list:not(.subnav) > .nav-item.is-active > .nav-label-row {
  border: 0;
  background: #eaece8;
}
.site-header .nav-list:not(.subnav) > .nav-item > .nav-label-row > a,
.site-header .nav-list:not(.subnav) > .nav-item > .nav-label-row > .nav-group-toggle {
  min-height: 39px;
  padding: 10px 12px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
}
.site-header .nav-list:not(.subnav) > .nav-item.is-active > .nav-label-row > a,
.site-header .nav-list:not(.subnav) > .nav-item.is-active > .nav-label-row > .nav-group-toggle { color: #9d4b1b; }
.site-header .nav-list:not(.subnav) > .nav-item.nav-contact > .nav-label-row,
.site-header .nav-list:not(.subnav) > .nav-item.nav-contact:hover > .nav-label-row,
.site-header .nav-list:not(.subnav) > .nav-item.nav-contact.is-active > .nav-label-row { background: var(--navy); }
.site-header .nav-list:not(.subnav) > .nav-item.nav-contact > .nav-label-row > a,
.site-header .nav-list:not(.subnav) > .nav-item.nav-contact.is-active > .nav-label-row > a { color: white; padding-inline: 16px; }
.site-header .nav-list:not(.subnav) > .nav-item.nav-contact:hover > .nav-label-row { background: #305072; }
.nav-chevron {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  margin: -3px 1px 0 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.nav-item.menu-open > .nav-label-row .nav-chevron { transform: rotate(225deg) translate(-2px, -2px); }
.site-header .nav-expand { display: grid; place-items: center; width: 34px; height: 34px; margin-right: 3px; padding: 0; border-radius: 7px; }
.site-header .subnav {
  top: calc(100% - 5px);
  min-width: 265px;
  padding: 9px;
  border: 1px solid rgba(23, 43, 72, .12);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(18, 36, 60, .15);
}
.site-header .subnav .subnav { top: -9px; left: calc(100% - 3px); }
.site-header .subnav .nav-item { border: 0; margin: 1px 0; }
.site-header .subnav .nav-label-row { border-radius: 7px; }
.site-header .subnav .nav-label-row > a,
.site-header .subnav .nav-group-toggle { flex: 1; padding: 11px 12px; color: var(--navy); font-size: 13px; line-height: 1.35; }
.site-header .subnav .nav-label-row:hover,
.site-header .subnav .nav-item.is-active > .nav-label-row { background: #f0eee7; }
.site-header .subnav > .nav-item:first-child > .nav-label-row { background: #f4f1e9; }
.site-header .subnav .nav-item.is-active > .nav-label-row > a { color: #9d4b1b; }
.site-header .nav-label-row > a:focus-visible,
.site-header .nav-label-row > button:focus-visible,
.site-header .mobile-toggle:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.site-header .mobile-toggle { gap: 10px; padding: 9px 12px; border: 1px solid rgba(23, 43, 72, .2); border-radius: 9px; }
.mobile-toggle-icon { display: grid; gap: 5px; width: 17px; }
.mobile-toggle-icon i { display: block; width: 17px; height: 1.5px; background: currentColor; transition: transform .18s ease; }
.mobile-toggle[aria-expanded="true"] .mobile-toggle-icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] .mobile-toggle-icon i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
@media (max-width: 1050px) {
  .site-header { height: 76px; }
  .site-header .mobile-toggle { display: inline-flex; align-items: center; }
  .site-header nav {
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    max-height: calc(100dvh - 100px);
    border: 1px solid rgba(23, 43, 72, .12);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 20px 45px rgba(18, 36, 60, .19);
  }
  .site-header .nav-list:not(.subnav) { padding: 10px; }
  .site-header .nav-list:not(.subnav) > .nav-item { border: 0; margin: 2px 0; }
  .site-header .nav-list:not(.subnav) > .nav-item > .nav-label-row { border: 0; }
  .site-header .nav-list:not(.subnav) > .nav-item > .nav-label-row > a,
  .site-header .nav-list:not(.subnav) > .nav-item > .nav-label-row > .nav-group-toggle {
    flex: 1;
    min-height: 46px;
    padding: 13px 14px;
    color: var(--navy);
    font-size: 15px;
  }
  .site-header .nav-list:not(.subnav) > .nav-item.nav-contact > .nav-label-row > a,
  .site-header .nav-list:not(.subnav) > .nav-item.nav-contact.is-active > .nav-label-row > a { color: white; }
  .site-header .subnav,
  .site-header .subnav .subnav {
    position: static;
    min-width: 0;
    margin: 2px 0 9px 17px;
    padding: 0 0 0 10px;
    border: 0;
    border-left: 2px solid #d6a57f;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .site-header .subnav .nav-label-row > a,
  .site-header .subnav .nav-group-toggle { color: var(--navy); padding: 11px 13px; font-size: 14px; }
  .site-header .subnav > .nav-item:first-child > .nav-label-row { background: transparent; }
  .site-header .subnav .nav-label-row:hover,
  .site-header .subnav .nav-item.is-active > .nav-label-row { background: #f0eee7; }
}
@media (max-width: 780px) {
  .site-header { height: 72px; }
}

/* Links rely on typography and one restrained row icon instead of arrow glyphs. */
.text-link,
.showcase-link,
.under-link,
.tool-back-link,
.bottom-banner a,
.home-tool-actions a,
.person-links a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color .18s ease, border-color .18s ease, border-width .18s ease;
}
.text-link:hover,
.showcase-link:hover,
.tool-back-link:hover,
.home-tool-actions a:hover,
.person-links a:hover { color: var(--coral); border-color: currentColor; border-bottom-width: 2px; }
.showcase-link,
.bottom-banner a { gap: 0; }
.related-grid a > span:last-child,
.announcement-item > span:last-child,
.project-teaser .teaser-card > span:last-child {
  width: max-content;
  max-width: 100%;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.project-teaser .teaser-card > span:last-child { justify-self: end; }
.footer-column a:hover { text-decoration: underline; text-underline-offset: 4px; }
a[target="_blank"].button::after,
a[target="_blank"].text-link::after,
a[target="_blank"].showcase-link::after,
.person-links a[target="_blank"]::after,
.home-tool-actions a[target="_blank"]::after,
.bottom-banner a[target="_blank"]::after,
.footer-column a[target="_blank"]::after,
.site-header .subnav a[target="_blank"]::after,
.announcement-item[target="_blank"] > span:last-child::after {
  content: '';
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  margin-left: 7px;
  background: currentColor;
  -webkit-mask: url('icon-external.svg') center / contain no-repeat;
  mask: url('icon-external.svg') center / contain no-repeat;
}
.row-arrow,
.list-link-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(23, 43, 72, .16);
  border-radius: 50%;
  background: #e9eeeb;
  color: var(--navy);
  font-size: 0;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.row-arrow::after,
.list-link-icon::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: -3px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.publication-row:hover .row-arrow,
.all-publications-list a:hover .list-link-icon {
  background: var(--navy);
  color: white;
  transform: translateX(2px);
}
@media (max-width: 700px) {
  .project-teaser .teaser-card > span:last-child { justify-self: start; }
}
