/* ============================================================
   Finotello Lab — shared stylesheet
   Fonts self-hosted locally (no external CDN = GDPR-safe).
   ============================================================ */
@font-face{
  font-family:'MSCHNReg';
  src:url('fonts/MSCHN-S.woff2') format('woff2');
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'MSCHNBold';
  src:url('fonts/MSCHN-XL.woff2') format('woff2');
  font-weight:700;font-style:normal;font-display:swap;
}

:root{
  --indigo:#4D1EE7;
  --indigo-deep:#1F109A;
  --indigo-700:#3A16B0;
  --ink:#1a1a2e;
  --text:#2b2b3a;
  --muted:#5a5a6e;
  --white:#ffffff;
  --footer-bg:#f3f3f6;
  --maxw:1180px;
  --font-display:'MSCHNReg','Segoe UI','Helvetica Neue',Arial,system-ui,sans-serif;
  --font-display-xl:'MSCHNBold','Segoe UI','Helvetica Neue',Arial,system-ui,sans-serif;
  --font-body:'Segoe UI',-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font-display);color:var(--text);line-height:1.6;background:var(--white);-webkit-font-smoothing:antialiased}
a{color:inherit}
img{max-width:100%;display:block}
h1,h2,h3{font-family:var(--font-display)}
.overlay a,.menu-btn,.btn,.card .label,.hero .affil{font-family:var(--font-display)}

a:focus-visible,button:focus-visible{outline:3px solid #ffd200;outline-offset:3px}
.skip-link{position:absolute;left:-999px;top:0;background:var(--white);color:var(--indigo);padding:.7rem 1rem;z-index:1000;font-weight:700;border-radius:0 0 8px 0}
.skip-link:focus{left:0}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}

/* Header */
header.site{background:var(--indigo);color:var(--white);position:sticky;top:0;z-index:100}
.bar{display:flex;align-items:center;justify-content:space-between;height:84px;max-width:none;padding:0 40px 0 24px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand img{height:60px;width:auto;display:block}
.menu-btn{background:none;border:none;color:var(--white);font:inherit;font-size:1.4rem;font-weight:400;display:flex;align-items:center;gap:12px;cursor:pointer;padding:8px}
.menu-btn .ic{display:flex;flex-direction:column;gap:5px}
.menu-btn .ic i{display:block;width:30px;height:3px;background:var(--white);border-radius:2px}

/* Full-screen menu */
.overlay{position:fixed;inset:0;background:var(--indigo);z-index:200;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;opacity:0;visibility:hidden;transition:opacity .25s ease}
.overlay.open{opacity:1;visibility:visible}
.overlay a{color:var(--white);text-decoration:none;font-size:2.5rem;font-weight:400;padding:.25rem 1rem;letter-spacing:.5px;transition:opacity .15s}
.overlay a:hover{opacity:.75}
.overlay a[aria-current="page"]{font-weight:700;text-decoration:underline;text-underline-offset:6px}
.overlay .close{position:absolute;top:24px;right:24px;background:none;border:none;color:var(--white);font:inherit;font-size:1.15rem;font-weight:400;display:flex;align-items:center;gap:10px;cursor:pointer}
.overlay .close span{font-size:1.6rem;line-height:1}

/* Hero (home) */
.hero{position:relative;min-height:560px;display:flex;align-items:center;color:var(--white);background:#2a1a6e url('images/hero_bg.jpg') center/cover no-repeat;overflow:hidden}
.findout{display:flex;align-items:center;justify-content:space-between;gap:24px;
  background:var(--indigo);color:var(--white);text-decoration:none;
  padding:26px 24px;
  font-family:var(--font-display);font-weight:400;font-size:1.5rem;
  transition:background .2s}
.findout:hover{background:var(--indigo-deep)}
.findout svg{flex:0 0 auto;transition:transform .2s}
.findout:hover svg{transform:translateY(3px)}
html{scroll-behavior:smooth}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(30,16,90,.72) 0%,rgba(30,16,90,.35) 45%,rgba(30,16,90,.1) 100%);pointer-events:none}
.hero .wrap{position:relative;z-index:2;width:100%;margin-left:0}
.hero h1{animation:heroIn .8s ease both}
.hero .affil{animation:heroIn .8s ease .15s both}
@keyframes heroIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.hero h1,.hero .affil{animation:none}}
.hero h1{font-weight:400;font-size:clamp(2.6rem,6vw,4.8rem);line-height:1.05;letter-spacing:0;margin-bottom:1.6rem;text-align:left}
.hero .affil{font-size:1.05rem;line-height:1.9;text-align:left}
.hero .affil a{color:var(--white);text-decoration:underline;text-underline-offset:3px}

/* Page title band (sub-pages) */
.pagehead{position:relative;min-height:200px;display:flex;align-items:flex-start;color:var(--white);background:#2a1a6e url('images/dna_band.jpg') center/cover no-repeat;overflow:hidden}
.pagehead::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(30,16,90,.55),rgba(30,16,90,.2));pointer-events:none}
.pagehead .wrap{position:relative;z-index:2;width:100%}
.pagehead h1{font-weight:400;font-size:clamp(2.8rem,6vw,5rem);letter-spacing:0;text-align:left;padding:38px 0 0 0;margin-left:-.03em}

/* Intro (group leader) */
.intro{padding:72px 0}
.intro .lead-name{font-family:var(--font-display-xl);font-weight:700;font-size:2rem;line-height:1.2;color:var(--ink);margin:0 0 1.6rem}
.intro .grid{display:grid;grid-template-columns:1fr 490px;gap:48px;align-items:center}
.intro p{font-size:1.25rem;color:#000;margin-bottom:1.6rem;max-width:72ch;text-align:justify}
.intro a.inline{color:#000;text-decoration:underline;text-underline-offset:2px}
.btn{display:inline-flex;align-items:center;gap:10px;border:2px solid var(--indigo);color:var(--indigo);background:none;font:inherit;font-family:var(--font-display-xl);font-weight:700;letter-spacing:.5px;text-transform:uppercase;font-size:1rem;padding:14px 26px;border-radius:6px;text-decoration:none;cursor:pointer;transition:background .15s,color .15s}
.btn:hover,.btn:focus-visible{background:var(--indigo);color:var(--white)}
.btn svg{transition:transform .15s}
.btn:hover svg{transform:translateX(3px)}
.btn.light{border-color:var(--white);color:var(--white)}
.btn.light:hover,.btn.light:focus-visible{background:var(--white);color:var(--indigo)}
.portrait{width:300px;height:300px;border-radius:50%;object-fit:cover;margin:0 auto;background:#e6e6ef}
.portrait.blob{width:490px;height:508px;border-radius:0;
  background-color:#f0eef2;background-repeat:no-repeat;background-position:50% 30%;background-size:202%;
  -webkit-clip-path:url(#piBlobClip);clip-path:url(#piBlobClip)}
.portrait-fig{margin:0;position:relative}
.portrait-credit{position:absolute;top:50%;right:6px;
  transform:translateY(-50%);
  writing-mode:vertical-rl;writing-mode:sideways-lr;
  white-space:nowrap;font-size:.72rem;color:var(--muted);pointer-events:none}

/* Tagline band */
.tagline{background:var(--indigo-deep) url('images/noise_band.jpg') left top/cover no-repeat;color:var(--white);padding:64px 0;position:relative}
.tagline::before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(31,16,120,0) 0%,rgba(31,16,120,.15) 45%,rgba(20,10,70,.45) 100%)}
.tagline .wrap{position:relative;z-index:1}
.tagline p{font-size:clamp(1.7rem,3.5vw,2.5rem);font-weight:500;line-height:1.4;max-width:70ch;text-align:center;margin:0 auto}
.areas-light{margin-top:48px}
.areas-light .area img{filter:brightness(0) invert(1)}
.areas-light .area p{color:rgba(255,255,255,.92);font-size:1.15rem;max-width:36ch;margin:0 auto;line-height:1.6;text-align:justify}
.areas-light .area strong{color:#fff}

/* Card grid (home) */
.cards{padding:80px 0}
.grid-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.card{position:relative;border-radius:14px;overflow:hidden;min-height:230px;display:flex;align-items:flex-end;text-decoration:none;color:var(--white);isolation:isolate}
.card .bg{position:absolute;inset:0;background-size:cover;background-position:center;z-index:0}
.card .bg.light{opacity:0;transition:opacity .35s ease}
.card:hover .bg.light,.card:focus-visible .bg.light{opacity:1}
.card::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,10,60,.05),rgba(20,10,60,.55));z-index:1}
.card .label{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;width:100%;padding:22px 24px;font-size:1.35rem;font-weight:600;text-shadow:0 1px 6px rgba(0,0,0,.5)}
.card .label svg{flex:0 0 auto}

/* Generic content sections for sub-pages */
.section{padding:64px 0}
.section h2{font-size:clamp(1.7rem,3vw,2.4rem);font-weight:400;margin-bottom:1.4rem;color:var(--ink)}
.section h3{font-size:1.2rem;font-weight:400;margin:1.6rem 0 .4rem;color:var(--ink)}
.section p{margin-bottom:1rem;max-width:70ch}
.legal p{max-width:none}
.section a.inline{color:var(--indigo);text-decoration:underline;text-underline-offset:2px}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.two-col p{text-align:justify;hyphens:auto}
.band{background:var(--indigo-deep) url('images/noise_band.jpg') center/cover;color:var(--white);position:relative}
.band::before{content:"";position:absolute;inset:0;background:rgba(31,16,120,.55)}
.band .wrap{position:relative;z-index:1}
.band h2,.band h3{color:var(--white)}

/* Team grid */
.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:40px 32px}
.member{text-align:center}
.member .photo{position:relative;width:230px;height:230px;margin:0 auto 16px;border-radius:50%;overflow:hidden;background:#5126e0;isolation:isolate}
.member .photo img{width:100%;height:100%;object-fit:cover}
.member .reveal{position:absolute;inset:0;background:rgba(60,30,180,.92);color:var(--white);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;opacity:0;transition:opacity .25s;font-size:.86rem;line-height:1.45}
.member .photo:hover .reveal,.member .photo:focus-within .reveal{opacity:1}
.member .reveal .btn{padding:9px 16px;font-size:.72rem;background:var(--white);color:var(--indigo);border-color:var(--white)}
.member .name{font-family:var(--font-display);font-size:1.15rem;font-weight:700;color:var(--ink)}
.member.lead .name,.band .member .name{color:var(--white)}
/* Photo credit: vertical white label on the right of each member photo (individually editable) */
.member{position:relative}
.member .member-credit{position:absolute;top:115px;left:calc(50% + 123px);
  transform:translateY(-50%);
  writing-mode:vertical-rl;writing-mode:sideways-lr;
  white-space:nowrap;font-size:.62rem;color:rgba(255,255,255,.7);pointer-events:none}
.member .role{color:var(--muted);font-size:.95rem}
.band .member .role{color:rgba(255,255,255,.8)}
.member .ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:linear-gradient(135deg,#6a4cff,#3a1aa0);color:#fff;font-size:3rem;font-weight:700}

/* Publication cards — always side-by-side; blue panel width varies with image shape */
.pub{background:var(--indigo-deep);border-radius:14px;overflow:hidden;display:flex;flex-direction:row-reverse;color:var(--white);min-height:340px}
.pub .fig{background:#fff;padding:0;display:flex;align-items:center;justify-content:center;overflow:hidden;
  flex:0 0 var(--fig,46%);align-self:stretch}
.pub .fig img{display:block;width:100%;height:100%;object-fit:contain}
.pub .body{flex:1;min-width:0;padding:34px 38px;display:flex;flex-direction:column;gap:16px;justify-content:center}
.pub .body h3{font-size:1.32rem;font-weight:700;line-height:1.35;color:var(--white);
  padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.4)}
.pub .cite{font-size:.95rem;color:rgba(255,255,255,.82);line-height:1.55}
.pub .read{margin-top:6px;display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:.8rem;letter-spacing:.5px;text-transform:uppercase;text-decoration:none;color:var(--white)}
.pub .read svg{transition:transform .15s}
.pub:hover .read svg{transform:translateX(3px)}

/* Selected Publications — carousel (one card per view) */
.pub-carousel{position:relative;margin-top:1.4rem;padding:0 30px}
.pub-track{display:grid;grid-auto-flow:column;grid-auto-columns:100%;gap:0;
  overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  padding-bottom:6px;scrollbar-width:none}
.pub-track::-webkit-scrollbar{display:none}
.pub-track>.pub{scroll-snap-align:center}
.pub-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:5;
  width:46px;height:46px;border-radius:50%;border:none;cursor:pointer;
  background:var(--white);color:var(--indigo);box-shadow:0 4px 16px rgba(40,20,120,.22);
  display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s,opacity .15s}
.pub-arrow:hover{background:var(--indigo);color:var(--white)}
.pub-arrow:focus-visible{outline:3px solid #ffd200;outline-offset:3px}
.pub-arrow.prev{left:-8px}
.pub-arrow.next{right:-8px}
.pub-arrow[disabled]{opacity:.35;cursor:default}
.pub-dots{display:flex;justify-content:center;gap:10px;margin-top:20px}
.pub-dots button{width:11px;height:11px;border-radius:50%;border:none;cursor:pointer;
  background:#cfc9ef;padding:0;transition:background .15s,transform .15s}
.pub-dots button[aria-current="true"]{background:var(--indigo);transform:scale(1.15)}
.pub-dots button:focus-visible{outline:3px solid #ffd200;outline-offset:2px}

/* All Publications — text list */
.pub-list{list-style:none;margin-top:1.4rem}
.pub-list li{padding:26px 0;border-bottom:1px solid #e8e8ef}
.pub-list li:first-child{padding-top:8px}
.pub-list h3{font-family:var(--font-display);font-size:1.32rem;font-weight:400;line-height:1.3;color:var(--ink);margin-bottom:.5rem;max-width:62ch}
.pub-list .cite{font-size:.96rem;color:var(--muted);line-height:1.55;max-width:none;margin:0 0 .8rem}
.pub-list .cite strong,.pub-list .cite b{color:var(--text)}
.pub-list .read{display:inline-flex;align-items:center;gap:8px;float:right;
  font-family:var(--font-display-xl);font-weight:700;font-size:.8rem;letter-spacing:.5px;text-transform:uppercase;
  text-decoration:none;color:var(--indigo)}
.pub-list .read svg{transition:transform .15s}
.pub-list .read:hover svg{transform:translateX(3px)}
.pub-list li::after{content:"";display:block;clear:both}
.pub-list-status{font-size:.9rem;color:var(--muted);margin:1.2rem 0 0;text-align:center}
.pub-more-wrap{display:flex;justify-content:center;margin-top:1.4rem}
.pub-more-wrap .btn{cursor:pointer}

/* Alumni list */
.alumni-list{list-style:disc;margin-top:1rem;padding-left:1.4rem}
.alumni-list .alum{padding:4px 0;max-width:none;font-size:1.05rem;line-height:1.6;color:var(--text)}
.alumni-list .alum strong{color:var(--ink);font-weight:700}

/* Logo strips */
.logos{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:48px}
.logos img{height:96px;width:auto;object-fit:contain;filter:grayscale(.1)}
.logos .ph{height:96px;min-width:150px;display:flex;align-items:center;justify-content:center;border:1px dashed #bbb;color:#999;font-size:.85rem;border-radius:6px;padding:0 18px}

/* Software grid */
.soft-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.soft{display:flex;flex-direction:column;background:var(--white);color:var(--white);
  border-radius:18px;overflow:hidden;text-decoration:none;
  box-shadow:0 10px 30px rgba(40,20,120,.14);transition:transform .2s,box-shadow .2s}
.soft:hover,.soft:focus-visible{transform:translateY(-4px);box-shadow:0 18px 44px rgba(40,20,120,.26)}
/* All cards equal height in their row */
.soft-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;align-items:stretch}
.soft{display:flex;flex-direction:column;background:var(--white);color:var(--white);
  border-radius:18px;overflow:hidden;text-decoration:none;height:100%;
  box-shadow:0 10px 30px rgba(40,20,120,.14);transition:transform .2s,box-shadow .2s}
.soft:hover,.soft:focus-visible{transform:translateY(-4px);box-shadow:0 18px 44px rgba(40,20,120,.26)}
/* White top zone: fixed height so the purple split lines up on every card; logo enlarged */
.soft .logo{display:flex;align-items:center;justify-content:center;background:var(--white);
  height:320px;padding:16px 20px;flex:0 0 auto}
.soft .logo img{height:100%;width:auto;max-width:100%;object-fit:contain;margin:0}
/* Purple bottom zone: fills the remaining height equally across cards */
.soft .soft-body{display:flex;flex-direction:column;flex:1;background:var(--indigo);
  padding:26px 32px 30px;min-height:250px}
/* Tool name in the purple zone: white + bold, above the description */
.soft .soft-body h3{font-family:var(--font-display-xl);font-size:1.4rem;font-weight:700;color:var(--white);
  margin:0 0 12px}
.soft .soft-body p{font-size:.98rem;line-height:1.55;color:rgba(255,255,255,.92);margin:0 0 26px}
.soft .read{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:10px;
  font-family:var(--font-display-xl);font-weight:700;letter-spacing:.6px;text-transform:uppercase;
  font-size:.9rem;color:var(--white);text-decoration:none}
.soft .read svg{flex:0 0 auto;transition:transform .15s}
.soft:hover .read svg,.soft:focus-visible .read svg{transform:translateX(3px)}

/* Tables (teaching/funding) */
.tbl{width:100%;border-collapse:separate;border-spacing:0;margin:1.4rem 0;font-size:1.05rem;border-radius:10px;overflow:hidden}
.tbl th,.tbl td{text-align:left;padding:12px 14px;border-bottom:1px solid #eee;vertical-align:top}
.tbl thead th{background:var(--indigo);color:var(--white);font-weight:700;border-bottom:none}
.tbl tr:nth-child(even) td{background:#faf9ff}

/* Teaching: course listings */
.course-list{list-style:none;margin:1.2rem 0 0}
.course{padding:0}
.course + .course{margin-top:1.8rem;padding-top:1.8rem;border-top:1px solid #e8e8ef}
.course-title{display:inline-block;font-weight:700;color:var(--ink);text-decoration:underline;text-underline-offset:2px;margin-bottom:.35rem}
.course-affil{margin:.15rem 0 .5rem;color:var(--text)}
.course-icons{list-style:none;margin:.2rem 0 .2rem;padding:0}
.course-icons li{display:flex;align-items:center;gap:9px;padding:3px 0;line-height:1.5}
.course-icons li svg{flex:0 0 auto;width:15px;height:15px;color:var(--indigo)}
.course-icons .ic-gem{width:16px;height:16px}
.course-note{margin:.8rem 0 .2rem;color:var(--text)}
.course-divider{border:0;border-top:1px solid #e8e8ef;margin:1.8rem 0}

/* Collapsible schedule (teaching) — explicit button-style toggle */
.schedule-collapse{margin:1rem 0 .4rem}
.schedule-collapse>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:10px;
  padding:10px 16px;border:2px solid var(--indigo);border-radius:8px;
  font-family:var(--font-display-xl);font-weight:700;letter-spacing:.4px;
  color:var(--indigo);background:none;user-select:none;transition:background .15s,color .15s}
.schedule-collapse>summary::-webkit-details-marker{display:none}
.schedule-collapse>summary:hover,.schedule-collapse[open]>summary{background:var(--indigo);color:var(--white)}
.schedule-collapse>summary:focus-visible{outline:3px solid #ffd200;outline-offset:3px}
.schedule-collapse .sched-label{font-size:1rem}
.schedule-collapse .sched-hint{font-size:.72rem;text-transform:uppercase;letter-spacing:.6px;
  padding:2px 8px;border-radius:999px;background:rgba(77,30,231,.12);color:var(--indigo)}
.schedule-collapse>summary:hover .sched-hint,.schedule-collapse[open]>summary .sched-hint{background:rgba(255,255,255,.22);color:var(--white)}
.schedule-collapse .sched-chevron{width:15px;height:15px;transition:transform .2s ease}
.schedule-collapse[open]>summary .sched-chevron{transform:rotate(180deg)}
.schedule-content{padding-top:6px}
@media (prefers-reduced-motion:reduce){.schedule-collapse .sched-chevron{transition:none}}

/* Events list (LIGHT BACKGROUND version) */
.eventlist{
  margin-top: 1rem;
}

.event{
  padding: 18px 0;
  border-bottom: 1px solid #e8e8ef;
}

.event .evt-group{
  font-weight: 700;
  font-family: var(--font-display-xl);
  color: var(--ink);
  margin-bottom: 6px;
}

.event .evt-date{
  font-weight: 700;
  font-family: var(--font-display-xl);
  color: var(--ink);
  margin-bottom: 6px;
}

.event ul{
  padding-left: 18px;
}

.event li{
  color: var(--text);
}

.event a{
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Icons row (research areas) */
.areas{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-top:2rem;align-items:start}
.area{text-align:center}
.area img{height:90px;margin:24px auto 28px}
.area h3{font-size:1.12rem;font-weight:400;margin-bottom:.4rem}
.area p{font-size:.92rem;color:var(--muted);margin:0 auto}

/* Footer */
footer.site{background:var(--white);border-top:1px solid #eee;padding:56px 0 0}
.foot-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:32px;font-size:.95rem;color:var(--text)}
.foot-grid h2{font-family:var(--font-display);font-size:.98rem;font-weight:700;margin-bottom:.5rem}
.foot-grid a{color:var(--text);text-decoration:underline;text-underline-offset:2px}
.foot-grid .contact a,.foot-grid .social a{display:flex;align-items:center;gap:10px;margin-bottom:.55rem;text-decoration:none}
.foot-grid .contact a:hover,.foot-grid .social a:hover{text-decoration:underline}
.fi{width:16px;height:16px;flex:0 0 auto;color:#000}
.copyright{margin-top:48px;background:var(--footer-bg);padding:22px 0;font-size:.9rem;color:var(--muted)}
.copyright .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}
.copyright a{color:var(--muted)}

/* Responsive */
@media (max-width:880px){
  .intro .grid{grid-template-columns:1fr;text-align:center}
  .intro p{max-width:none}
  .portrait{order:-1}
  .portrait.blob{width:min(490px,86vw);height:auto;aspect-ratio:490/508}
  .grid-cards{grid-template-columns:1fr}
  .team-grid{grid-template-columns:1fr 1fr}
  .pub-track{grid-auto-columns:100%}
  .pub{flex-direction:column!important;min-height:0}
  .pub>.fig{flex:0 0 auto!important;width:100%}
  .pub>.fig img{max-height:300px}
  .pub>.body{padding:24px;width:100%}
  .pub .body h3{font-size:1.12rem}
  .pub-carousel{padding:0 14px}
  .pub-arrow.prev{left:-6px}
  .pub-arrow.next{right:-6px}
  .soft-grid{grid-template-columns:1fr 1fr}
  .two-col{grid-template-columns:1fr}
  .areas{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr 1fr}
  .hero{min-height:480px}
  .overlay a{font-size:1.9rem}
}
@media (max-width:520px){
  .foot-grid{grid-template-columns:1fr}
  .team-grid,.soft-grid{grid-template-columns:1fr}
  .bar{height:64px;padding:0 18px}
  .brand img{height:34px}
  .menu-btn{font-size:1.1rem}
  .menu-btn span.txt{display:none}
  .logos{gap:28px}
  .logos img{height:48px}
  .areas-light{margin-top:32px}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;scroll-behavior:auto!important}
  .reveal-on-scroll{opacity:1!important;transform:none!important}
}

/* Reveal-on-load / on-scroll: sections fade and rise into view */
.reveal-on-scroll{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .7s ease}
.reveal-on-scroll.is-visible{opacity:1;transform:none}
/* Stagger children when a container reveals (e.g. cards) */
.reveal-stagger.is-visible>*{animation:rise .6s ease both}
.reveal-stagger.is-visible>*:nth-child(2){animation-delay:.08s}
.reveal-stagger.is-visible>*:nth-child(3){animation-delay:.16s}
.reveal-stagger.is-visible>*:nth-child(4){animation-delay:.24s}
.reveal-stagger.is-visible>*:nth-child(5){animation-delay:.32s}
.reveal-stagger.is-visible>*:nth-child(6){animation-delay:.40s}
@keyframes rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .reveal-stagger.is-visible>*{animation:none!important}
}

/* Reveal-cascade: children start hidden, then rise in sequence when the
   container scrolls into view. Used by the team grid and the events list. */
.reveal-cascade>*{opacity:0;transform:translateY(24px)}
.reveal-cascade.is-visible>*{animation:rise .6s ease both}
.reveal-cascade.is-visible>*:nth-child(1){animation-delay:0s}
.reveal-cascade.is-visible>*:nth-child(2){animation-delay:.06s}
.reveal-cascade.is-visible>*:nth-child(3){animation-delay:.12s}
.reveal-cascade.is-visible>*:nth-child(4){animation-delay:.18s}
.reveal-cascade.is-visible>*:nth-child(5){animation-delay:.24s}
.reveal-cascade.is-visible>*:nth-child(6){animation-delay:.30s}
.reveal-cascade.is-visible>*:nth-child(7){animation-delay:.36s}
.reveal-cascade.is-visible>*:nth-child(8){animation-delay:.42s}
.reveal-cascade.is-visible>*:nth-child(9){animation-delay:.48s}
.reveal-cascade.is-visible>*:nth-child(10){animation-delay:.54s}
.reveal-cascade.is-visible>*:nth-child(11){animation-delay:.60s}
.reveal-cascade.is-visible>*:nth-child(n+12){animation-delay:.66s}
@media (prefers-reduced-motion:reduce){
  .reveal-cascade>*{opacity:1;transform:none}
  .reveal-cascade.is-visible>*{animation:none!important}
}
