/* Shared design system for the Ahmed Lab site — typography, spacing, and component styles
   layered on top of the original Weebly theme without touching its core files.
   Editorial-minimalist palette + structural language (flat dark hero, stats band,
   bordered card grids, dark multi-column footer) per DESIGN.md: one surgical
   purple accent, flat surfaces, borders instead of shadows, 8px radius cap. */

:root{
  --color-accent:#4FC3B5;
  --color-accent-dark:#66D6C8;
  --color-accent-soft:rgba(79, 195, 181, 0.14);
  --color-secondary:#4FC3B5;
  --color-hero-text:#F4F7FA;
  --color-hero-text-rgb:244,247,250;
  --color-hero-text-secondary:#B6C0CC;
  --color-hero-text-muted:#8995A3;
  --color-hero-border:#66717F;
  --color-button-text:#071815;
  --color-usc-cardinal:#E8455A;
  --color-usc-gold:#FFC72C;
  --color-usc-cardinal-onlight:#C41E3A;
  --color-usc-gold-onlight:#8C6D00;
  --header-bg:rgba(7, 10, 17, 0.82);
  --color-dark:#0f0f14;
  --color-ink:#0f0f14;
  --color-text:#0f0f14;
  --color-muted:#6b6b76;
  --color-dim:#8995A3;
  --color-border:#e4e4e7;
  --color-border-strong:#d4d4d8;
  --color-bg-alt:#fafafa;
  --color-surface:#f4f4f5;
  --color-bg-dark:#0f0f14;
  --color-surface-dark:#1a1a20;
  --container-width:clamp(1100px, 90vw, 1200px);
  --space-xs:8px;
  --space-sm:16px;
  --space-md:24px;
  --space-lg:48px;
  --space-xl:64px;

  --font-mono:ui-monospace,"SF Mono",Menlo,monospace;
  --radius-sm:6px;
  --radius-md:8px;
  --radius-lg:8px;
  --radius-pill:8px;
  --shadow-sm:none;
  --shadow-md:none;
  --shadow-lg:0 2px 8px rgba(0,0,0,0.04);
  --ease-out:cubic-bezier(.22,.9,.32,1);

  /* ---- Homepage redesign palette (sections below the hero video) ---- */
  --bg-dark:#080b11;
  --navy:#111b2b;
  --paper:#f4f6f7;
  --surface:#ffffff;
  --text:#17202d;
  --muted:#697382;
  --teal:#42c6bc;
  --usc-red:#990000;
  --usc-gold:#ffcc00;
}

html{
  scroll-behavior:smooth;
}
body{
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ---- Home page banner: dark gradient, bold display type, molecule motif ---- */
.hero-simple{
  display:block !important;
  width:100% !important;
  height:100vh !important;
  min-height:100vh;
  background:radial-gradient(ellipse 1000px 800px at 76% 48%, #21213e 0%, var(--color-bg-dark) 60%) !important;
  border-bottom:none;
  position:relative;
  overflow:hidden;
}
.hero-simple::after{
  content:none;
}
.hero-simple:before{
  content:none !important;
}
.hero-simple .wsite-section-content{
  position:static;
  height:100%;
}
.hero-simple .container,
.hero-simple .banner{
  display:flex !important;
  align-items:center;
  width:100%;
  min-width:0;
  height:100% !important;
  padding:0 !important;
  position:static !important;
}
.hero-simple__inner{
  position:relative;
  z-index:1;
  max-width:min(1000px, 100%);
  margin:0;
  padding:48px;
  box-sizing:border-box;
  text-align:left;
}
.hero-simple__brand{
  display:flex;
  align-items:center;
  gap:16px;
  font-family:"Inter",sans-serif;
  font-weight:800;
  font-size:clamp(1.75rem, 3.2vw, 2.75rem);
  line-height:1.05;
  letter-spacing:-0.6px;
  color:var(--color-hero-text);
  margin:0 0 26px 0;
}
.hero-simple__brand-accent{
  color:var(--color-accent);
}
.usc-red{
  color:var(--color-usc-cardinal);
}
.usc-gold{
  color:var(--color-usc-gold);
}
.usc-red-onlight{
  color:var(--color-usc-cardinal-onlight);
}
.usc-gold-onlight{
  color:var(--color-usc-gold-onlight);
}
.hero-simple__eyebrow{
  display:flex;
  align-items:center;
  gap:10px;
  text-transform:uppercase;
  letter-spacing:1.5px;
  font-family:"Inter",sans-serif;
  font-weight:500;
  font-size:11px;
  color:var(--color-usc-gold);
  margin:0 0 18px 0;
}
.hero-simple__eyebrow::before{
  content:"";
  width:26px;
  height:2px;
  background:var(--color-usc-cardinal);
  flex:none;
}
.hero-simple__eyebrow-text{
  text-wrap:balance;
}
.hero-simple__title{
  font-family:"Inter",sans-serif;
  font-weight:600;
  font-size:clamp(2.5rem, 4.5vw, 4rem);
  line-height:0.98;
  letter-spacing:-1px;
  color:var(--color-hero-text);
  margin:0 0 16px 0;
  text-wrap:balance;
}
.hero-simple__title-accent{
  color:var(--color-accent);
}
.hero-simple__tagline{
  font-family:"Inter",sans-serif;
  font-weight:400;
  font-size:16px;
  line-height:1.65;
  color:var(--color-hero-text-secondary) !important;
  margin:0 0 18px 0;
  max-width:520px;
}
.hero-simple__actions{
  display:flex;
  justify-content:flex-start;
  gap:14px;
  flex-wrap:wrap;
}
.hero-video{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}
.hero-video video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:0.45;
  filter:contrast(1.4);
}
.hero-scrim{
  position:absolute;
  inset:0;
  z-index:0;
  background:linear-gradient(
    to right,
    rgba(15,15,20,0.94) 0%,
    rgba(15,15,20,0.86) 22%,
    rgba(15,15,20,0.6) 45%,
    rgba(15,15,20,0.26) 68%,
    rgba(15,15,20,0) 90%
  );
  pointer-events:none;
}
/* Clean, minimal seam between the hero video and the dark research section
   that follows it — no gradient/fog washing out the video. */
.hero-simple{
  border-bottom:1px solid rgba(66,198,188,0.18);
}
.hero-scroll-cue{
  position:absolute;
  left:50%;
  bottom:36px;
  z-index:1;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  color:var(--color-hero-text-muted);
  text-decoration:none !important;
  transition:color .2s var(--ease-out);
}
.hero-scroll-cue:hover{
  color:var(--color-hero-text);
}
.hero-scroll-cue__label{
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:1.5px;
  text-transform:uppercase;
}
.hero-scroll-cue svg{
  width:18px;
  height:18px;
  animation:hero-scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes hero-scroll-bounce{
  0%,100%{ transform:translateY(0); opacity:1; }
  50%{ transform:translateY(6px); opacity:0.55; }
}
@media (prefers-reduced-motion:reduce){
  .hero-scroll-cue svg{
    animation:none;
  }
}
@media (max-width:900px){
  .hero-video,
  .hero-scrim{
    display:none;
  }
}
@media (max-width:760px){
  .hero-simple__inner{
    padding:var(--space-lg) 24px;
    text-align:center;
  }
  .hero-simple__brand{
    justify-content:center;
  }
  .hero-simple__eyebrow{
    justify-content:center;
  }
  .hero-simple__eyebrow::before{
    display:none;
  }
  .hero-simple__title{
    font-size:clamp(2.25rem, 9vw, 2.75rem);
  }
  .hero-simple__actions{
    justify-content:center;
  }
}

/* ---- Header: floats transparently over the hero; logo left, minimal nav right ---- */
.header-wrap{
  position:relative;
  z-index:20;
  background:transparent;
}
.header-wrap .nav-wrap{
  position:absolute !important;
  top:0;
  left:0;
  right:0;
  z-index:30;
  background:var(--header-bg) !important;
  background-image:none !important;
  border-bottom:none !important;
}
.banner-wrap{
  padding-top:0 !important;
}
.wsite-page-index .header-wrap #logo{
  display:none !important;
}
.wsite-page-index .header-wrap .nav-wrap{
  justify-content:flex-end !important;
}
.header-wrap #logo,
.header-wrap .wsite-logo{
  text-align:left !important;
}
.header-wrap .wsite-logo{
  padding:16px 0 !important;
}
.header-wrap #logo{
  padding:0 24px !important;
}
.site-logo-link{
  display:inline-flex !important;
  align-items:center;
  gap:12px;
  text-decoration:none !important;
}
.logo-mark{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
  width:38px;
  height:38px;
  border-radius:var(--radius-md);
  background:var(--color-surface-dark);
  border:1px solid rgba(79,195,181,0.4);
  color:var(--color-accent);
}
.logo-mark svg{
  width:20px;
  height:20px;
}
.logo-mark--lg{
  width:56px;
  height:56px;
  border-radius:var(--radius-lg);
}
.logo-mark--lg svg{
  width:30px;
  height:30px;
}
.site-logo-lockup{
  display:block;
  max-width:none !important;
}
.site-logo-lockup .site-logo-main{
  display:block;
  font-family:"Inter",sans-serif !important;
  font-size:22px !important;
  font-weight:600;
  letter-spacing:-0.4px !important;
  text-transform:none !important;
  color:var(--color-hero-text);
  line-height:1.2;
}
.site-logo-lockup .site-logo-accent{
  color:var(--color-accent);
  font-family:"Inter",sans-serif !important;
  font-weight:600 !important;
}
.site-logo-lockup .site-logo-sub{
  display:block;
  font-family:var(--font-mono) !important;
  font-size:10.5px !important;
  font-weight:500;
  letter-spacing:0.2px !important;
  text-transform:none !important;
  color:var(--color-hero-text-muted);
  line-height:1.4;
  margin-top:4px;
}

.header-wrap .menu{
  font-weight:500 !important;
}
.header-wrap .menu .wsite-menu-default li a{
  color:var(--color-hero-text-secondary) !important;
  border-bottom:2px solid transparent !important;
  padding-bottom:6px !important;
  font-family:"Inter",sans-serif;
  transition:color .2s var(--ease-out), border-bottom-color .2s var(--ease-out);
}
.header-wrap .menu .wsite-menu-default li a:hover,
.header-wrap .menu .wsite-menu-default li#active a{
  color:var(--color-hero-text) !important;
  border-bottom-color:var(--color-accent) !important;
}
.header-wrap .hamburger span,
.header-wrap .hamburger span:before,
.header-wrap .hamburger span:after{
  background:var(--color-hero-text) !important;
}

@media screen and (min-width: 993px){
  .header-wrap .nav-wrap{
    display:flex;
    align-items:center;
    justify-content:space-between;
    text-align:left !important;
  }
  .header-wrap .menu{
    border-top:none;
    text-align:right !important;
  }
  .header-wrap .menu .container{
    max-width:none;
    width:auto;
    margin:0;
    padding:0 24px;
    box-sizing:border-box;
  }
  .header-wrap .nav-wrap ul{
    padding:0;
  }
  .header-wrap .menu .wsite-menu-default{
    display:inline-flex;
    align-items:center;
    gap:30px;
  }
  .header-wrap .menu .wsite-menu-default li{
    list-style:none;
  }
  .header-wrap .menu .wsite-menu-default li a{
    display:block;
    padding:8px 0 6px 0 !important;
    font-size:14px;
  }
}

.site-container{
  max-width:var(--container-width);
  margin:0 auto;
  padding:0 24px;
  box-sizing:border-box;
}


.site-section{
  padding:var(--space-xl) 0;
}

.site-section--alt{
  background:var(--color-bg-alt);
}

.site-section--intro{
  padding:var(--space-lg) 0 0;
}
.site-section--intro .site-rule{
  margin-bottom:var(--space-sm);
}

/* ---- Dark page-header band (non-home pages), mirrors the homepage hero treatment ---- */
.page-header{
  background:var(--color-bg-dark) !important;
}
.page-header .site-section--intro{
  padding:148px 0 var(--space-xl);
}
.page-header .site-eyebrow{
  color:var(--color-dim);
}
.page-header .site-eyebrow::before,
.page-header .site-eyebrow::after{
  background:var(--color-dim);
}
.page-header .site-heading{
  color:var(--color-hero-text);
}
.page-header .site-heading__accent{
  color:var(--color-accent);
}
.page-header .site-rule{
  background:var(--color-accent);
}
.page-header .site-tagline{
  color:var(--color-hero-text-secondary);
}

/* ---- Standalone custom sections outside #main-wrap (e.g. page intros, footer)
   inherit a stale table-cell display + fixed height from the base theme grid;
   force them back to normal block flow. ---- */
.site-block{
  display:block !important;
  height:auto !important;
}

.site-heading{
  text-align:center;
  letter-spacing:-0.3px;
  font-family:"Inter",sans-serif;
  font-weight:600;
  color:var(--color-ink);
  font-size:28px;
  margin:0 0 var(--space-sm) 0;
}

.site-heading--lg{
  font-size:36px;
  line-height:1.25;
  letter-spacing:-0.4px;
}

.site-heading__accent{
  color:var(--color-accent);
}

.site-eyebrow{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-transform:uppercase;
  letter-spacing:1.5px;
  font-family:var(--font-mono);
  font-weight:500;
  font-size:11px;
  color:var(--color-muted);
  margin:0 0 var(--space-xs) 0;
}
.site-eyebrow::before,
.site-eyebrow::after{
  content:"";
  width:22px;
  height:1px;
  background:var(--color-border-strong);
  opacity:1;
  flex:none;
}

.site-subtext{
  text-align:center;
  color:var(--color-muted);
  font-family:"Inter",sans-serif;
  font-size:17px;
  line-height:1.7;
  max-width:760px;
  margin:0 auto var(--space-lg) auto;
}

.site-tagline{
  text-align:center;
  color:var(--color-muted);
  font-family:"Inter",sans-serif;
  font-weight:400;
  font-size:17px;
  line-height:1.6;
  max-width:640px;
  margin:0 auto;
}

.site-rule{
  width:48px;
  height:3px;
  background:var(--color-accent);
  border-radius:2px;
  margin:var(--space-sm) auto var(--space-lg) auto;
}

.btn-site{
  display:inline-block;
  padding:11px 20px;
  border:1px solid var(--color-border);
  border-radius:var(--radius-sm);
  color:var(--color-text) !important;
  letter-spacing:0.1px;
  font-size:14px;
  font-family:"Inter",sans-serif;
  font-weight:500;
  text-decoration:none !important;
  background:var(--color-bg-alt);
  transition:background .2s var(--ease-out),color .2s var(--ease-out),border-color .2s var(--ease-out);
}

.btn-site:hover{
  background:var(--color-surface);
  border-color:var(--color-border-strong);
  color:var(--color-text) !important;
}

.btn-site--accent{
  background:var(--color-accent);
  border-color:var(--color-accent);
  color:var(--color-button-text) !important;
}
.btn-site--accent:hover{
  background:var(--color-accent-dark);
  border-color:var(--color-accent-dark);
  color:var(--color-button-text) !important;
}

.btn-site--light{
  background:transparent;
  border-color:var(--color-hero-border);
  color:var(--color-hero-text) !important;
}
.btn-site--light:hover{
  background:var(--color-accent-soft);
  border-color:var(--color-hero-text-secondary);
  color:var(--color-hero-text) !important;
}

/* ---- Two-column intro / hero blurb ---- */
.intro-grid{
  display:flex;
  align-items:center;
  gap:var(--space-lg);
  flex-wrap:wrap;
}
.intro-grid__text{
  flex:1 1 380px;
  font-family:"Inter",sans-serif;
  font-size:18px;
  line-height:1.8;
  color:var(--color-text);
}
.intro-grid__image{
  flex:1 1 380px;
}
.intro-grid__image img{
  width:100%;
  height:auto;
  display:block;
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
}

/* ---- Research focus cards ---- */
.focus-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--space-md);
  margin-top:var(--space-lg);
}
.focus-card{
  background:var(--color-bg-alt);
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
  padding:var(--space-md);
  transition:border-color .2s var(--ease-out);
}
.focus-card:hover{
  border-color:var(--color-border-strong);
}
.focus-card__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:var(--radius-sm);
  background:var(--color-surface);
  border:1px solid var(--color-border);
  color:var(--color-text);
  margin-bottom:18px;
}
.focus-card__icon svg{
  width:20px;
  height:20px;
}
.focus-card__title{
  font-family:"Inter",sans-serif;
  font-weight:600;
  font-size:16px;
  color:var(--color-ink);
  margin:0 0 8px 0;
}
.focus-card__desc{
  font-family:"Inter",sans-serif;
  font-size:14px;
  line-height:1.65;
  color:var(--color-muted);
  margin:0;
}
@media (max-width:760px){
  .focus-grid{grid-template-columns:1fr;}
}

/* ---- CTA band ---- */
.cta-band{
  background:var(--color-bg-dark);
  border-radius:var(--radius-lg);
  padding:var(--space-lg) var(--space-md);
  text-align:center;
}
#wsite-content .cta-band__title{
  font-family:"Inter",sans-serif;
  font-weight:600;
  font-size:28px;
  letter-spacing:-0.3px;
  color:var(--color-hero-text) !important;
  margin:0 0 12px 0;
}
.cta-band__text{
  font-family:"Inter",sans-serif;
  font-size:16px;
  line-height:1.6;
  color:var(--color-hero-text-secondary);
  max-width:520px;
  margin:0 auto 28px auto;
}

/* ---- Latest updates preview (home page, shown before the gallery) ---- */
.updates-preview-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  align-items:start;
  gap:var(--space-md);
  margin-bottom:var(--space-md);
}
.update-card{
  display:flex;
  flex-direction:column;
  background:var(--color-bg-alt);
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  transition:border-color .2s var(--ease-out);
}
.update-card:hover{
  border-color:var(--color-border-strong);
}
.update-card--no-thumb{
  border-top:3px solid var(--color-accent);
}
.update-card--no-thumb .update-card__body{
  padding-top:var(--space-md);
}
.update-card__thumb{
  width:100%;
  height:200px;
  object-fit:cover;
  display:block;
}
.update-card__body{
  padding:var(--space-md);
  display:flex;
  flex-direction:column;
  flex:1;
}
.update-card__date{
  display:block;
  color:var(--color-muted);
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:0.3px;
  margin-bottom:8px;
}
.update-card__title{
  font-family:"Inter",sans-serif;
  font-weight:600;
  font-size:18px;
  line-height:1.4;
  color:var(--color-ink);
  margin:0 0 10px 0;
}
.update-card__excerpt{
  font-family:"Inter",sans-serif;
  font-size:15px;
  line-height:1.7;
  color:var(--color-muted);
  margin:0 0 var(--space-sm) 0;
  flex:1;
}
.update-card__link{
  align-self:flex-start;
  color:var(--color-secondary);
  font-family:"Inter",sans-serif;
  font-weight:600;
  font-size:14px;
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .2s ease, border-bottom-color .2s ease;
}
.update-card__link:hover{
  color:var(--color-accent-dark);
  border-bottom-color:var(--color-accent-dark);
}
.updates-preview__footer{
  text-align:center;
  margin-top:var(--space-sm);
}
@media (max-width:760px){
  .updates-preview-grid{grid-template-columns:1fr;}
}

/* ---- Gallery mosaic (home page): editorial bento grid, click any tile to
   enlarge it in the lightbox (see gallery.js) ---- */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  grid-auto-rows:130px;
  grid-auto-flow:dense;
  gap:14px;
}
.gallery-grid > *{
  position:relative;
  border-radius:var(--radius-md);
  border:1px solid var(--color-border);
  overflow:hidden;
  cursor:pointer;
}
.gallery-grid img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.gallery-grid > *::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(15,15,20,0.35);
  opacity:0;
  transition:opacity .2s var(--ease-out);
  pointer-events:none;
}
.gallery-grid > *:hover::after{
  opacity:1;
}
.gallery-grid > *:focus-visible{
  outline:2px solid var(--color-accent);
  outline-offset:2px;
}

.gallery-grid__feature{
  grid-column:span 2;
  grid-row:span 2;
}
.gallery-grid__tile:nth-child(2){ grid-column:span 2; }
.gallery-grid__tile:nth-child(11){ grid-column:span 2; }

@media (max-width:900px){
  .gallery-grid{grid-template-columns:repeat(2,1fr); grid-auto-rows:150px;}
  .gallery-grid__feature{grid-column:span 2; grid-row:span 2;}
  .gallery-grid__tile{grid-column:span 1; grid-row:span 1;}
  .gallery-grid__tile:nth-child(2),
  .gallery-grid__tile:nth-child(11){grid-column:span 2;}
}

/* ---- Site footer: dark, multi-column ---- */
.site-footer{
  display:block !important;
  height:auto !important;
  background:var(--color-bg-dark) !important;
  background-color:var(--color-bg-dark) !important;
  background-image:none !important;
  padding:56px 0 22px;
}
.site-footer__grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1.2fr;
  gap:var(--space-lg);
  padding-bottom:32px;
  border-bottom:1px solid rgba(255,255,255,0.12);
}
.site-footer__brand{
  display:block;
  font-family:"Inter",sans-serif;
  font-weight:600;
  font-size:18px;
  letter-spacing:-0.3px;
  color:var(--color-hero-text);
  margin-bottom:10px;
}
.site-footer__tagline{
  font-family:"Inter",sans-serif;
  font-size:14px;
  line-height:1.7;
  color:var(--color-hero-text-muted);
  margin:0;
  max-width:320px;
}
.site-footer__heading{
  display:block;
  font-family:var(--font-mono);
  font-weight:500;
  font-size:12px;
  letter-spacing:0.5px;
  text-transform:uppercase;
  color:var(--color-accent);
  margin-bottom:14px;
}
.site-footer__nav{
  display:flex;
  flex-direction:column;
  gap:10px;
  font-family:"Inter",sans-serif;
  font-size:14.5px;
}
.site-footer__nav a{
  color:var(--color-hero-text-secondary);
  text-decoration:none;
  transition:color .2s ease;
}
.site-footer__nav a:hover{
  color:var(--color-accent);
}
.site-footer__address{
  font-style:normal;
  font-family:"Inter",sans-serif;
  font-size:14.5px;
  line-height:1.85;
  color:var(--color-hero-text-secondary);
}
.site-footer__address a{
  color:var(--color-hero-text);
  text-decoration:none;
}
.site-footer__address a:hover{
  color:var(--color-accent);
}
.site-footer__copyright{
  text-align:center;
  font-family:var(--font-mono);
  font-size:11.5px;
  color:var(--color-hero-text-muted);
  padding-top:18px;
}
@media (max-width:760px){
  .site-footer__grid{
    grid-template-columns:1fr;
    gap:var(--space-md);
    text-align:center;
  }
  .site-footer__tagline{
    max-width:none;
    margin:0 auto;
  }
}

/* ---- Filter pills (members.html) ---- */
.filter-pills{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 var(--space-lg) 0;
}
.filter-pill{
  display:inline-block;
  padding:7px 16px;
  border-radius:var(--radius-sm);
  border:1px solid var(--color-border);
  background:var(--color-bg-alt);
  color:var(--color-muted);
  font-family:"Inter",sans-serif;
  font-weight:500;
  font-size:13.5px;
  cursor:pointer;
  transition:background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.filter-pill:hover{
  border-color:var(--color-border-strong);
  color:var(--color-ink);
}
.filter-pill.is-active{
  background:var(--color-accent);
  border-color:var(--color-accent);
  color:var(--color-button-text);
}
.member-group-heading{
  font-family:"Inter",sans-serif;
  font-weight:600;
  font-size:20px;
  letter-spacing:-0.2px;
  color:var(--color-ink);
  text-transform:none !important;
  border-bottom:2px solid var(--color-border);
  padding-bottom:14px;
  margin:0 0 var(--space-md) 0 !important;
}

/* ---- PI profile card (members.html) ---- */
.member-card--pi{
  display:flex;
  align-items:flex-start;
  gap:var(--space-lg);
  padding:var(--space-lg);
  margin-bottom:var(--space-md);
  border-radius:var(--radius-lg);
  border:1px solid var(--color-border);
  background:var(--color-bg-alt);
  transition:border-color .2s var(--ease-out);
}
.member-card--pi:hover{
  border-color:var(--color-border-strong);
}
.member-card--pi .member-photo{
  flex:none;
}
.member-card--pi .member-photo img{
  display:block;
  width:230px;
  height:230px;
  object-fit:cover;
  border-radius:50%;
  background:var(--color-bg-alt);
}

.member-bio{
  font-family:"Inter",sans-serif;
  color:var(--color-text);
  min-width:0;
}
.member-bio .member-name{
  font-family:"Inter",sans-serif;
  font-weight:600;
  font-size:22px;
  letter-spacing:-0.2px;
  color:var(--color-ink);
  display:block;
  margin-bottom:6px;
}
.member-bio .member-role{
  display:block;
  color:var(--color-text);
  font-family:"Inter",sans-serif;
  font-weight:500;
  font-size:16px;
  margin-bottom:8px;
}
.member-credentials{
  display:block;
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--color-muted);
  margin-bottom:18px;
}
.member-bio__text{
  max-width:68ch;
  line-height:1.8;
}
.member-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:20px;
}
.member-tag{
  padding:5px 12px;
  border-radius:var(--radius-sm);
  border:1px solid var(--color-border);
  background:var(--color-surface);
  color:var(--color-text);
  font-family:"Inter",sans-serif;
  font-weight:500;
  font-size:12px;
}
.member-email{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:18px;
  color:var(--color-accent);
  font-family:"Inter",sans-serif;
  font-weight:500;
  font-size:14.5px;
  text-decoration:none;
}
.member-email svg{
  width:16px;
  height:16px;
  flex:none;
}
.member-email:hover{
  text-decoration:underline;
}

@media (max-width:640px){
  .member-card--pi{
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding:var(--space-md);
  }
  .member-card--pi .member-photo img{
    width:180px;
    height:180px;
  }
  .member-tags{
    justify-content:center;
  }
}

/* ---- Compact team grid (everyone but the PI) ---- */
.team-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:var(--space-md);
}
.team-card{
  background:var(--color-bg-alt);
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  cursor:pointer;
  transition:border-color .2s var(--ease-out);
}
.team-card:hover,
.team-card:focus-visible{
  border-color:var(--color-border-strong);
}
.team-card:focus-visible{
  outline:2px solid var(--color-accent);
  outline-offset:2px;
}
.team-card__photo{
  aspect-ratio:4 / 5;
  overflow:hidden;
}
.team-card__photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.team-card__body{
  padding:20px 22px 24px;
}
.team-card__name{
  display:block;
  font-family:"Inter",sans-serif;
  font-weight:600;
  font-size:16px;
  letter-spacing:-0.1px;
  color:var(--color-ink);
  margin-bottom:5px;
}
.team-card__role{
  display:block;
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:0.1px;
  color:var(--color-muted);
}

/* ---- Contact page ---- */
.contact-card{
  display:flex;
  flex-direction:column;
  gap:var(--space-sm);
  background:var(--color-bg-alt);
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
  padding:var(--space-md);
  font-family:"Inter",sans-serif;
  color:var(--color-text);
  font-size:16px;
  line-height:1.7;
  transition:border-color .2s var(--ease-out);
}
.contact-card:hover{
  border-color:var(--color-border-strong);
}
.contact-card__row{
  display:flex;
  align-items:flex-start;
  gap:var(--space-sm);
  text-align:left;
}
.contact-card__row--center{
  align-items:center;
}
.contact-card__row--center .contact-card__text{
  padding-top:0;
}
.contact-card__row--map{
  justify-content:space-between;
  flex-wrap:wrap;
  row-gap:var(--space-sm);
}
.contact-card__map-heading{
  flex:1;
  min-width:200px;
  font-weight:500;
  font-size:17px;
}
.contact-card__map-btn{
  flex:none;
}
.contact-card__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
  width:36px;
  height:36px;
  border-radius:var(--radius-sm);
  border:1px solid var(--color-border);
  background:var(--color-surface);
  color:var(--color-accent);
}
.contact-card__icon svg{
  width:17px;
  height:17px;
}
.contact-card__text{
  padding-top:7px;
}
.contact-card a:not(.btn-site){
  color:var(--color-accent);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .2s ease, border-bottom-color .2s ease;
}
.contact-card a:not(.btn-site):hover{
  color:var(--color-accent-dark);
  border-bottom-color:var(--color-accent-dark);
}
@media (max-width:640px){
  .contact-card__row--map{
    flex-direction:column;
    align-items:flex-start;
  }
  .contact-card__map-btn{
    margin-left:52px;
  }
}

/* ---- Updates / posts page ---- */
.post-card{
  background:var(--color-bg-alt);
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
  padding:var(--space-lg) var(--space-md);
  margin-bottom:var(--space-lg);
  transition:border-color .2s var(--ease-out);
}
.post-card:hover{
  border-color:var(--color-border-strong);
}
.post-card__title{
  font-family:"Inter",sans-serif;
  font-weight:600;
  letter-spacing:-0.3px;
  font-size:22px;
  line-height:1.3;
  color:var(--color-ink);
  margin:0 0 var(--space-md) 0;
}
#wsite-content .post-card__title{
  text-transform:none !important;
  letter-spacing:-0.4px !important;
  color:var(--color-ink) !important;
}
.post-card__meta{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.post-card__date{
  display:block;
  color:var(--color-muted);
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:0.2px;
}
.post-card__gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  align-items:start;
  gap:16px;
  margin-bottom:var(--space-md);
}
.post-card__gallery img{
  width:100%;
  height:auto;
  max-height:480px;
  object-fit:contain;
  display:block;
  border:1px solid var(--color-border);
  border-radius:var(--radius-sm);
  background:#fff;
  transition:border-color .2s var(--ease-out);
}
.post-card__gallery img:hover{
  border-color:var(--color-border-strong);
}
.post-card__gallery--featured{
  grid-template-columns:1fr 1fr;
  grid-template-rows:1fr 1fr;
  align-items:stretch;
  height:600px;
}
.post-card__gallery--featured img{
  width:100%;
  height:100%;
  max-height:none;
  object-fit:cover;
}
.post-card__gallery--featured img:first-child{
  grid-row:1 / 3;
}
@media (max-width:640px){
  .post-card__gallery--featured{
    grid-template-columns:1fr;
    grid-template-rows:none;
    height:auto;
  }
  .post-card__gallery--featured img{
    height:auto;
    max-height:480px;
    object-fit:contain;
  }
  .post-card__gallery--featured img:first-child{
    grid-row:auto;
  }
}
.post-card__body{
  font-family:"Inter",sans-serif;
  font-size:17px;
  line-height:1.8;
  color:var(--color-text);
}

/* ---- Team member bio modal (opened by clicking a compact team card) ---- */
body.member-modal-open{
  overflow:hidden;
}
.member-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.member-modal[hidden]{
  display:none;
}
.member-modal__overlay{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,0.62);
}
.member-modal__panel{
  position:relative;
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  width:100%;
  max-width:480px;
  max-height:85vh;
  overflow-y:auto;
  padding:32px;
  box-sizing:border-box;
}
.member-modal__close{
  position:absolute;
  top:16px;
  right:16px;
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid var(--color-border);
  background:#fff;
  color:var(--color-muted);
  font-size:18px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:border-color .2s ease, color .2s ease;
}
.member-modal__close:hover{
  border-color:var(--color-accent);
  color:var(--color-accent);
}
.member-modal__header{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:22px;
  padding-right:28px;
}
.member-modal__photo{
  width:72px;
  height:72px;
  border-radius:50%;
  object-fit:cover;
  flex:none;
  background:var(--color-bg-alt);
}
.member-modal__name{
  display:block;
  font-family:"Inter",sans-serif;
  font-weight:600;
  font-size:19px;
  letter-spacing:-0.2px;
  color:var(--color-ink);
  margin-bottom:4px;
}
.member-modal__role{
  display:block;
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:0.1px;
  color:var(--color-muted);
}
.member-modal__bio{
  font-family:"Inter",sans-serif;
  font-size:15px;
  line-height:1.75;
  color:var(--color-text);
}

/* ---- Gallery lightbox (opened by clicking a mosaic tile) ---- */
body.lightbox-open{
  overflow:hidden;
}
.lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox[hidden]{
  display:none;
}
.lightbox__overlay{
  position:absolute;
  inset:0;
  background:rgba(9,14,26,0.9);
}
.lightbox__stage{
  position:relative;
  z-index:1;
  max-width:min(92vw, 1100px);
  max-height:88vh;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox__image{
  display:block;
  max-width:100%;
  max-height:88vh;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-lg);
}
.lightbox__close,
.lightbox__nav{
  position:fixed;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.25);
  background:rgba(255,255,255,0.08);
  color:var(--color-hero-text);
  font-size:20px;
  line-height:1;
  cursor:pointer;
  transition:background .2s ease, border-color .2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover{
  background:rgba(255,255,255,0.18);
  border-color:rgba(255,255,255,0.5);
}
.lightbox__close{
  top:24px;
  right:24px;
}
.lightbox__nav--prev{
  left:24px;
  top:50%;
  transform:translateY(-50%);
}
.lightbox__nav--next{
  right:24px;
  top:50%;
  transform:translateY(-50%);
}
@media (max-width:700px){
  .lightbox__nav{width:38px; height:38px; font-size:17px;}
  .lightbox__nav--prev{left:10px;}
  .lightbox__nav--next{right:10px;}
  .lightbox__close{top:14px; right:14px;}
}

/* ---- Updates page: search + year-filter sidebar ---- */
.updates-layout{
  display:grid;
  grid-template-columns:240px 1fr;
  gap:var(--space-lg);
  align-items:start;
}
.updates-sidebar{
  position:sticky;
  top:24px;
  display:flex;
  flex-direction:column;
  gap:var(--space-lg);
}
.updates-search{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border:1px solid var(--color-border);
  border-radius:var(--radius-sm);
  background:#fff;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.updates-search:focus-within{
  border-color:var(--color-accent);
  box-shadow:0 0 0 2px rgba(94,106,210,0.15);
}
.updates-search svg{
  width:16px;
  height:16px;
  flex:none;
  color:var(--color-muted);
}
.updates-search input{
  border:none;
  outline:none;
  width:100%;
  font-family:"Inter",sans-serif;
  font-size:14px;
  color:var(--color-text);
  background:transparent;
}
.updates-filter__label{
  display:block;
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:0.5px;
  text-transform:uppercase;
  color:var(--color-muted);
  margin-bottom:12px;
}
.updates-filter__list{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.updates-filter__list .filter-pill{
  border:none;
  background:transparent;
  text-align:left;
  border-radius:var(--radius-sm);
  padding:8px 12px;
}
.updates-filter__list .filter-pill:hover{
  background:var(--color-bg-alt);
  border-color:transparent;
}
.updates-filter__list .filter-pill.is-active{
  background:var(--color-accent);
  color:var(--color-button-text);
}
.updates-year-heading{
  font-family:"Inter",sans-serif;
  font-weight:600;
  font-size:20px;
  letter-spacing:-0.2px;
  color:var(--color-ink);
  margin:0 0 var(--space-md) 0;
}
.updates-year-group:not(:first-child) .updates-year-heading{
  margin-top:var(--space-lg);
}
.updates-empty{
  font-family:"Inter",sans-serif;
  color:var(--color-muted);
  font-size:15px;
}
.update-tag{
  display:inline-block;
  padding:4px 12px;
  border-radius:var(--radius-sm);
  border:1px solid var(--color-border);
  font-family:"Inter",sans-serif;
  font-weight:500;
  font-size:11.5px;
  letter-spacing:0.2px;
  background:var(--color-surface);
  color:var(--color-muted);
}
.update-tag--grant{
  background:rgba(66,198,188,0.08);
  border-color:rgba(66,198,188,0.35);
  color:#1f7f78;
}
.update-tag--award{
  background:rgba(255,204,0,0.12);
  border-color:rgba(255,204,0,0.45);
  color:#8a6d00;
}
.update-tag--publication{
  background:rgba(153,0,0,0.06);
  border-color:rgba(153,0,0,0.3);
  color:var(--usc-red);
}
@media (max-width:820px){
  .updates-layout{
    grid-template-columns:1fr;
  }
  .updates-sidebar{
    position:static;
    flex-direction:row;
    flex-wrap:wrap;
  }
  .updates-search{
    flex:1 1 220px;
  }
  .updates-filter__list{
    flex-direction:row;
    flex-wrap:wrap;
  }
}

/* =========================================================================
   Homepage redesign — sections below the hero video
   Scoped to body.wsite-page-index so members/contact/updates pages, which
   share .site-section/.site-container/.site-heading, are left untouched.
   ========================================================================= */

body.wsite-page-index .site-section{
  padding-block:clamp(72px, 8vw, 112px);
  background:var(--paper);
}
body.wsite-page-index .site-section--alt{
  background:var(--paper);
}
body.wsite-page-index .site-container{
  max-width:1220px;
}
body.wsite-page-index .cta-section{
  padding-block:clamp(48px, 6vw, 80px);
}

/* ---- Dark continuation of the hero: research intro, cards, and spotlight
   all live on this section so the page reads as one cinematic-to-editorial
   flow, rather than a hard cut from video to a white section. The transition
   to the light "Fresh From the Lab" section happens at the very bottom of
   this section only (see ::after below) — nothing here touches the hero. ---- */
body.wsite-page-index .site-section--dark{
  position:relative;
  background:#0b1018;
  color:var(--paper);
}
body.wsite-page-index .site-section--dark::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:48px;
  background:linear-gradient(to bottom, rgba(11,16,24,0) 0%, var(--paper) 100%);
  pointer-events:none;
}

/* ---- Section header primitives ---- */
body.wsite-page-index .site-eyebrow--left{
  justify-content:flex-start;
  color:var(--teal);
}
body.wsite-page-index .site-eyebrow--left::before,
body.wsite-page-index .site-eyebrow--left::after{
  content:none;
}
body.wsite-page-index .site-eyebrow--onnavy{
  color:var(--teal);
}
body.wsite-page-index .site-tagline--left{
  text-align:left;
  margin:0;
}

/* ---- 1. Research introduction: left-aligned editorial intro, on dark ---- */
.research-intro{
  max-width:720px;
  margin-bottom:clamp(36px, 5vw, 56px);
}
#wsite-content .research-intro__heading{
  text-align:left;
  margin:10px 0 14px 0;
  color:var(--paper) !important;
}
.research-intro__lede{
  text-align:left;
  margin:0;
  max-width:62ch;
  line-height:1.7;
  color:#a9b4c2 !important;
}

/* ---- 2. Research-area cards: asymmetric editorial grid, dark surfaces ---- */
body.wsite-page-index .focus-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  grid-template-rows:repeat(2, 1fr);
  gap:20px;
  margin-top:0;
}
.focus-card{
  position:relative;
  background:#111925;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;
  padding:28px;
  overflow:hidden;
  transition:transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
.focus-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 30px rgba(0,0,0,0.45);
  border-color:rgba(66,198,188,0.35);
}
.focus-card::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:radial-gradient(circle, rgba(244,246,247,0.9) 1px, transparent 1.4px);
  background-size:20px 20px;
  opacity:0.04;
  pointer-events:none;
  z-index:0;
}
.focus-card--featured{
  grid-column:1;
  grid-row:1 / span 2;
  padding:36px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:320px;
}
.focus-card--featured::after{
  content:"";
  position:absolute;
  right:-70px;
  bottom:-70px;
  width:240px;
  height:240px;
  border:1px solid var(--teal);
  border-radius:50%;
  opacity:0.08;
  pointer-events:none;
}
.focus-card:nth-of-type(2){
  grid-column:2;
  grid-row:1;
}
.focus-card:nth-of-type(3){
  grid-column:2;
  grid-row:2;
}
.focus-card__index{
  position:relative;
  z-index:1;
  display:block;
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:600;
  letter-spacing:1px;
  color:var(--teal);
  margin-bottom:14px;
}
.focus-card__icon{
  position:relative;
  z-index:1;
  background:rgba(66,198,188,0.12);
  border-color:rgba(66,198,188,0.35);
  color:var(--teal);
}
.focus-card__title{
  position:relative;
  z-index:1;
  color:var(--paper) !important;
}
.focus-card__desc{
  position:relative;
  z-index:1;
  color:#a9b4c2 !important;
}
.focus-card--featured .focus-card__title{
  font-size:22px;
}
.focus-card--featured .focus-card__desc{
  font-size:15.5px;
  max-width:44ch;
}
@media (max-width:900px){
  body.wsite-page-index .focus-grid{
    grid-template-columns:1fr;
    grid-template-rows:none;
  }
  .focus-card--featured,
  .focus-card:nth-of-type(2),
  .focus-card:nth-of-type(3){
    grid-column:1;
    grid-row:auto;
  }
  .focus-card--featured{
    min-height:0;
  }
}

/* ---- 3. Research spotlight panel: navy card connecting back to the hero ---- */
.research-spotlight{
  margin-top:clamp(40px, 6vw, 64px);
  background:var(--navy);
  border-radius:18px;
  padding:clamp(32px, 4vw, 56px);
  display:grid;
  grid-template-columns:minmax(220px, 360px) 1fr;
  gap:clamp(32px, 5vw, 64px);
  align-items:center;
  position:relative;
  overflow:hidden;
}
.research-spotlight__visual{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}
.research-spotlight__glow{
  position:absolute;
  inset:-25%;
  background:radial-gradient(circle, rgba(66,198,188,0.32) 0%, rgba(66,198,188,0) 65%);
  pointer-events:none;
  z-index:0;
}
.research-spotlight__plate{
  position:relative;
  z-index:1;
  background:#ffffff;
  border-radius:14px;
  padding:20px;
  width:100%;
  max-width:340px;
  box-shadow:0 20px 44px rgba(0,0,0,0.35);
}
.research-spotlight__plate img{
  width:100%;
  height:auto;
  object-fit:contain;
  display:block;
}
.research-spotlight__content{
  position:relative;
  z-index:1;
}
#wsite-content .research-spotlight__heading{
  font-family:"Inter",sans-serif;
  font-weight:600;
  font-size:clamp(22px, 2.6vw, 30px);
  line-height:1.3;
  letter-spacing:-0.3px;
  color:var(--paper) !important;
  margin:10px 0 16px 0;
  max-width:32ch;
}
.research-spotlight__text{
  font-family:"Inter",sans-serif;
  font-size:16px;
  line-height:1.75;
  color:#a9b4c2;
  max-width:65ch;
  margin:0 0 26px 0;
}
@media (max-width:820px){
  .research-spotlight{
    grid-template-columns:1fr;
    text-align:left;
  }
  .research-spotlight__visual{
    order:-1;
  }
  .research-spotlight__plate{
    max-width:280px;
    margin:0 auto;
  }
}

/* ---- 4. Fresh From the Lab: editorial split header + asymmetric cards ---- */
.section-header--split{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  flex-wrap:wrap;
  margin-bottom:clamp(36px, 5vw, 56px);
}
.section-header__link{
  color:var(--teal);
  font-family:"Inter",sans-serif;
  font-weight:600;
  font-size:14.5px;
  text-decoration:none;
  border-bottom:1px solid transparent;
  white-space:nowrap;
  padding-bottom:2px;
  transition:border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.section-header__link:hover{
  border-bottom-color:currentColor;
}
@media (max-width:640px){
  .section-header--split{
    flex-direction:column;
    align-items:flex-start;
  }
}

body.wsite-page-index .updates-preview-grid{
  display:grid;
  grid-template-columns:1.6fr 1fr;
  align-items:stretch;
  gap:24px;
  margin-bottom:0;
}
body.wsite-page-index .update-card{
  background:var(--surface);
  border-radius:16px;
  text-decoration:none !important;
  color:inherit;
  transition:transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
body.wsite-page-index .update-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 30px rgba(23,32,45,0.10);
  border-color:var(--color-border-strong);
}
body.wsite-page-index .update-card:focus-visible{
  outline:2px solid var(--teal);
  outline-offset:2px;
}
body.wsite-page-index .update-card__thumb{
  height:auto;
  aspect-ratio:16/10;
}
body.wsite-page-index .update-card--featured .update-card__thumb{
  aspect-ratio:16/9;
}
body.wsite-page-index .update-card--featured .update-card__title{
  font-size:22px;
}
body.wsite-page-index .update-card--compact .update-card__title{
  font-size:17px;
}
body.wsite-page-index .update-card__excerpt{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
body.wsite-page-index .update-card--compact .update-card__excerpt{
  -webkit-line-clamp:2;
}
body.wsite-page-index .update-card__link{
  pointer-events:none;
}
@media (max-width:760px){
  body.wsite-page-index .updates-preview-grid{
    grid-template-columns:1fr;
  }
}

/* ---- 5. Behind the Bench: distinct heading treatment (left rule, not the
   eyebrow/rule/centered-heading formula used elsewhere on the page) ---- */
.bench-heading{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:16px 28px;
  padding-left:20px;
  border-left:3px solid var(--teal);
  margin-bottom:clamp(36px, 5vw, 56px);
}
.bench-heading__title{
  font-family:"Inter",sans-serif;
  font-weight:600;
  font-size:clamp(26px, 3vw, 34px);
  letter-spacing:-0.3px;
  color:var(--text);
  margin:0;
  flex:0 0 auto;
}
.bench-heading__text{
  color:var(--muted);
  font-family:"Inter",sans-serif;
  font-size:16px;
  line-height:1.7;
  max-width:52ch;
  margin:0;
}
@media (max-width:700px){
  .bench-heading{
    flex-direction:column;
    gap:10px;
  }
}

/* ---- 6. Restrained scroll-reveal (see assets/js/scroll-reveal.js) ---- */
[data-reveal],
[data-reveal-group] > *{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
[data-reveal].is-visible,
[data-reveal-group] > *.is-visible{
  opacity:1;
  transform:translateY(0);
}

@media (prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    scroll-behavior:auto !important;
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
  [data-reveal],
  [data-reveal-group] > *{
    opacity:1 !important;
    transform:none !important;
  }
}
