/* ═══════════════════════════════════════════════════════════════════════
   Tyrrell Lab — shared base

   Everything here is used by all six pages. The hero (index.html) keeps its
   own inline stylesheet for the stage, the scene and the liquid-metal
   controls; this file owns the brand, the type, and the chrome that the
   content pages are built from.

   The content pages deliberately do NOT use the hero's --u design unit.
   That unit scales every dimension with the viewport, which is right for a
   fixed 1600x880 composition and wrong for pages people actually read —
   body copy has to hold a sane measure and a sane size at every width.
   ═══════════════════════════════════════════════════════════════════════ */

@font-face{
  font-family:'Lexend';
  src:url('../vendor/lexend-latin.woff2') format('woff2');
  font-weight:100 900; font-style:normal; font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  /* ── UAB brand ──────────────────────────────────────────────────────
     Primary   UAB Green #1a5632 (PMS 357) · UAB Gold #fdb913 (PMS 7549)
     Secondary Dragon's Lair #033319 · Campus Green #90d408
               Ever Loyal Evergreen #17b045 · Bham Sky Blue #42caf0      */
  --uab-green:      #1a5632;
  --uab-gold:       #fdb913;
  --dragon:         #033319;
  --campus:         #90d408;
  --evergreen:      #17b045;
  --sky:            #42caf0;

  /* ── the ground ramp ──────────────────────────────────────────────
     One colour in six steps. Fourteen of these were loose literals until
     August 2026, eyeballed one surface at a time; sorted by lightness they
     turned out to already be a ramp, so naming it only made that visible.
     Nothing moved more than 0.018 in OKLCH in the change, and most of it
     moved less than 0.008.

     Written in OKLCH because that is where the relationship is legible:
     chroma tracks lightness at a fixed 0.187, which is the ratio the two
     original values already had, so the steps desaturate as they darken
     instead of going muddy. The hex on the line above each one is the
     fallback for engines without oklch(); this project has no build step
     to add one later.

     The spacing is deliberately uneven. -lift sits a hair above the ground
     because that is all a techgrid tile needs to separate from its gutter,
     while the recesses below drop in real steps. Pick a step by what the
     surface is doing, not by how dark it looks:

       -hi     raised ground, the hero
       -lift   a panel sitting above the page
        ground the page itself
       -sunk   what shows behind a photograph
       -deep   a recess
       -pit    the floor                                                  */
  --ground-hi:      #174d34;
  --ground-hi:      oklch(.3771 .0714 159.7);
  --ground-lift:    #103a27;
  --ground-lift:    oklch(.313 .0585 160);
  --ground:         #0d3524;
  --ground:         oklch(.2956 .0545 161.7);
  --ground-sunk:    #0a2c1c;
  --ground-sunk:    oklch(.262 .049 160);
  --ground-deep:    #062114;
  --ground-deep:    oklch(.222 .0415 160);
  --ground-pit:     #03180d;
  --ground-pit:     oklch(.186 .0348 160);

  /* Not pure white. On a saturated dark ground #fff halates: the letterforms
     bloom a little and thin strokes smear, which is why long passages here
     were tiring to read even though the contrast was 13.5:1 and no audit tool
     ever complained. This is the same hue as the ground ramp, 160, at a
     chroma of 0.008, which is inside the 0.005 to 0.01 that reads as "tinted
     neutral" rather than as a colour.

     The soft and faint steps carry the same tint at alpha so they keep
     adapting to whatever they sit on. Faint went from .56 to .58 to hold the
     margin it had: tinting costs a little contrast, and that step is the one
     that has to clear 4.5:1 against three different backgrounds.          */
  --ink:            #eef4f1;
  --ink:            oklch(.962 .008 160);
  --ink-soft:       rgba(238,244,241,.62);
  --ink-faint:      rgba(238,244,241,.58);
  --rule:           rgba(255,255,255,.055);

  --card:           #f4f3ec;
  --card-ink:       #0b2417;
  --card-label:     #5f6c61;
  /* Green ink on the cream card. Not part of the ground ramp: these sit on
     paper, and their job is contrast against it rather than depth.        */
  --card-link-hover:#0f3b22;
  --chip-ink:       #1d4d33;
  --note-ink:       #6a4d02;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --shell: 1180px;

  /* ── the type scale ───────────────────────────────────────────────
     Eight steps, each 1.25 times the one below it, from a 16px root. The
     rem values are the powers themselves: 1.25^-2, 1.25^-1, 1, 1.25, and
     so on, so the ratio is not a claim in a comment, it is the number.

     There were fifteen static sizes before this and eleven fluid ones,
     running 10, 10.5, 11, 11.5, 12, 12.5, 13, 13.5, 14, 14.5, 15, 16.5,
     17, 19, 21. Neighbours were 1.03 to 1.13 apart, which is under the
     threshold where an eye reads two sizes as different, so fifteen steps
     did the work of about four and the page read as one flat texture.
     Five of the clamps differed from each other by a single pixel.

     The four small steps are static. Display sizes are fluid, because a
     72px headline has to survive a 375px phone and body copy does not.
     Every clamp's ends are steps on this same ladder.

     Pick a step by what the text is, not by how big you want it. If a
     size does not exist here, the answer is almost never to add one.   */
  --t-micro:    0.64rem;                                 /* 10.24px */
  --t-label:    0.8rem;                                  /* 12.8px  */
  --t-body:     1rem;                                    /* 16px    */
  --t-lead:     1.25rem;                                 /* 20px    */
  --t-title:    clamp(1.25rem, 2.2vw, 1.5625rem);        /* 20 to 25   */
  --t-section:  clamp(1.5625rem, 2.9vw, 1.9531rem);      /* 25 to 31.25 */
  --t-page:     clamp(2.4414rem, 5.4vw, 3.8147rem);      /* 39 to 61   */
  --t-display:  clamp(3.0518rem, 7.6vw, 4.7684rem);      /* 48.8 to 76.3 */

  --hdr-h: 68px;
  --ftr-h: 46px;
  /* The bottom bar exists only below 900px. Declaring it as 0 here and
     raising it in that one media query lets every rule that has to make
     room for it just read the token, with no second media query each. */
  --btm-h: 0px;
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
/* Buttons do not inherit type by default, so every icon button on the site was
   sitting at the user agent's 13.333px, a size that is on no ladder anywhere.
   Nothing rendered text at it, which is why it never showed, but it meant any
   future button copy would have landed off the scale by accident.          */
button{ font:inherit; }

html{ background:var(--ground); -webkit-text-size-adjust:100%; }
/* the slim footer anchors to this */
body{ position:relative; }
body{
  font-family:'Lexend',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  /* 350, not 300. Lexend is an open face already and 300 on a dark ground is
     thinner than it looks on paper. This is half a step, and it is the
     difference between body copy that reads and body copy that shimmers.  */
  font-weight:350;
  color:var(--ink);
  background:var(--ground);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
/* No overflow-x:hidden here on purpose. It used to sit on body and was hiding
   two real bugs: the featured-publication grid and the Green Lab block both
   had tracks with a min-content floor that blew past the viewport at 280px.
   Both are fixed at the source (minmax(0,1fr)), so the next regression should
   be allowed to show itself rather than be swallowed. Hiding it also breaks
   position:sticky on the header in some engines. */

/* ═══ content-page chrome ═══════════════════════════════════════════════
   Only loaded meaningfully by the content pages; the hero overrides the
   header with its own dock. Scoped under .doc so nothing here can reach
   into index.html's stage.                                              */

.doc{ min-height:100svh; display:flex; flex-direction:column; }

/* ── header ─────────────────────────────────────────────────────────── */
.hdr{
  position:sticky; top:0; z-index:40;
  background:linear-gradient(180deg, rgba(6,32,20,.94), rgba(6,32,20,.82));
  border-bottom:1px solid var(--rule);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
}
.hdr-in{
  max-width:var(--shell); margin:0 auto;
  padding:0 clamp(20px,4vw,40px);
  height:var(--hdr-h); display:flex; align-items:center; gap:24px;
}
.brand{
  display:flex; align-items:center; gap:11px;
  color:var(--ink); text-decoration:none; flex:none;
  font-size:var(--t-label); font-weight:500; letter-spacing:2.4px; text-transform:uppercase;
  white-space:nowrap;
  /* the mark and wordmark are only 21px tall; the padding is what carries the
     link past the 24px minimum target size without moving anything */
  padding:4px 0;
}
.brand svg{ width:30px; height:21px; fill:currentColor; flex:none; }
.brand:hover{ opacity:.75; }

.mainnav{ margin-left:auto; display:flex; align-items:center; gap:2px; }
.mainnav a{
  display:inline-flex; align-items:center; height:38px; padding:0 13px;
  border-radius:9px;
  color:var(--ink-faint); text-decoration:none;
  font-size:var(--t-label); font-weight:500; letter-spacing:1.4px; text-transform:uppercase;
  white-space:nowrap;
  transition:color .18s var(--ease), background .18s var(--ease);
}
.mainnav a:hover{ color:var(--ink); background:rgba(255,255,255,.06); }
.mainnav a[aria-current="page"]{ color:var(--card-ink); background:var(--card); }

/* the menu button only exists below the nav's breakpoint */
.navtoggle{
  margin-left:auto; display:none;
  width:42px; height:42px; border:1px solid rgba(255,255,255,.16);
  border-radius:10px; background:rgba(255,255,255,.05);
  color:var(--ink); cursor:pointer;
  align-items:center; justify-content:center;
}
.navtoggle svg{ width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; }

/* 900, not 820: seven nav items no longer fit a 1180px header below ~880px */
@media (max-width:900px){
  .mainnav{
    position:absolute; left:0; right:0; top:100%;
    flex-direction:column; align-items:stretch; gap:0;
    padding:8px clamp(20px,4vw,40px) 16px;
    background:var(--ground-sunk);
    box-shadow:0 18px 34px rgba(2,14,7,.44);
    border-bottom:1px solid var(--rule);
    display:none;
  }
  .mainnav.open{ display:flex; }
  .mainnav a{ height:48px; padding:0 12px; font-size:var(--t-label); letter-spacing:1.6px; }
  .navtoggle{ display:inline-flex; }
}

/* ── bottom navigation ───────────────────────────────────────────────
   Five destinations within thumb reach, below 900px only. The header is
   sticky, so this is not about reaching navigation at all; it is about
   reaching it without stretching to the top right corner of a large phone,
   and about the five pages being visible rather than folded behind a tap.

   It carries five of the seven. Home is the brand mark in the header, and
   Gallery stays in the menu, which keeps all seven reachable there. The
   menu is the overflow, not a duplicate.

   Sentence case, not the header's uppercase. "PUBLICATIONS" with the
   header's 1.4px tracking is 85px of text in a 75px cell at 375px, so the
   uppercase treatment cannot survive five items on a small phone. */
.btmnav{ display:none; }

@media (max-width:900px){
  :root{
    /* 54px of bar plus whatever the device reserves for its home indicator.
       viewport-fit=cover is already on every page, so env() resolves. */
    --btm-h: calc(54px + env(safe-area-inset-bottom, 0px));
  }
  /* In normal flow, not fixed: it is the last thing on the page and you
     reach it by scrolling to the end, rather than it standing over the
     content the whole way down. */
  .btmnav{
    /* space-between, not equal columns. Six equal cells hand "News" (28px of
       text) the same room as "Publications" (64px), which squeezed the
       smallest gap to 8.2px at 375 and made the row collide at 320.
       Distributing the slack by need gives an even 13.7px at 375, 12px at
       360, and only runs out below about 350. */
    display:flex; justify-content:space-between;
    padding-left:clamp(20px,4vw,40px); padding-right:clamp(20px,4vw,40px);
    height:var(--btm-h);
    padding-bottom:env(safe-area-inset-bottom, 0px);
    background:linear-gradient(180deg, rgba(6,32,20,.93), rgba(6,32,20,.985));
    border-top:1px solid var(--rule);
    backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  }
  .btmnav a{
    position:relative; flex:none;
    display:flex; align-items:center; justify-content:center;
    /* 6px a side is the space between labels, and it also keeps the
       narrowest target ("News", 28px of text) 40px wide. */
    padding:0 6px;
    color:var(--ink-faint); text-decoration:none;
    font-size:var(--t-micro); font-weight:500; letter-spacing:.2px;
    line-height:1.25; text-align:center;
    transition:color .18s var(--ease);
  }
  /* The whole cell is the target: 75px wide and 54px tall at 375px, well
     past the 24px floor, and the text inside it is not the hit area. */
  /* The two ends pin to the same gutter the footer above uses, and the
     middle three stay centred in their cells. Without this the first
     label's edge is (viewport / 5 - label width) / 2, which slides from
     8px at 320 to 26px at 500 and crosses the footer's fixed 20px on the
     way, so it reads as misaligned at every width except one. The cells
     stay full width, so the tap targets do not change. */
  /* The bar's own padding is the gutter now, so the ends drop their outer
     6px and land exactly on it. */
  .btmnav a:first-child{ padding-left:0; }
  .btmnav a:last-child { padding-right:0; }

  .btmnav a[aria-current="page"]{ color:var(--ink); }
  /* The rule marks the label, so on the two end cells it has to sit over
     the text rather than over the middle of the cell. */
  .btmnav a[aria-current="page"]::before{
    content:''; position:absolute; top:0; left:50%;
    width:24px; height:2px; margin-left:-12px;
    background:var(--uab-gold);
  }
  .btmnav a:focus-visible{ outline-offset:-3px; }

  /* The landing page's one-line credit comes off here. The bar is doing the
     work at the foot of the page on a phone, and the institution line sits
     on every content page's full .ftr, which the bar links to. */
  .ftr-slim{ display:none; }

}

/* Below 350px six labels and their gaps no longer fit one row, so the bar
   becomes a list instead. It is in normal flow already, so this costs nothing
   but its own height. --btm-h has to be restated because .ftr-slim is
   positioned off it: if a seventh item is ever added, change the 6 here. */
@media (max-width:349px){
  :root{ --btm-h: calc(6 * 44px + env(safe-area-inset-bottom, 0px)); }
  .btmnav{
    flex-direction:column;
    padding-left:0; padding-right:0;
  }
  .btmnav a,
  .btmnav a:first-child,
  .btmnav a:last-child{
    height:44px; width:100%;
    justify-content:flex-start;
    padding:0 clamp(20px,4vw,40px);
    border-top:1px solid var(--rule);
  }
  .btmnav a:first-child{ border-top:0; }
  /* a rule down the left edge, not a tick above a left-aligned label */
  .btmnav a[aria-current="page"]::before{
    left:0; top:0; width:2px; height:100%; margin-left:0;
  }
}

/* .ftr-slim is hidden below 900px (see the bar's media query above), so it
   never has to clear the bottom bar and bottom:0 is right at every width. */

/* ── page hero band ─────────────────────────────────────────────────── */
.phero{
  position:relative; overflow:hidden;
  /* Every content page starts its body at the same y. The heroes carry
     different amounts of copy (one- or two-line headlines, some with a sub,
     some without), so without this the first block of content jumped by up
     to 79px between pages and navigation read as unstable. The value tracks
     the tallest hero at each width: 259px at 375, 337px from 1265 up. The
     copy is centred so the slack splits above and below instead of pooling
     under the text. */
  min-height:clamp(259px, calc(201px + 10.9vw), 337px);
  display:flex; align-items:center;
  background:
    radial-gradient(70% 120% at 18% 0%, rgba(255,238,190,.10) 0%, rgba(255,238,190,0) 62%),
    radial-gradient(80% 130% at 96% 10%, rgba(3,20,10,.30) 0%, rgba(3,20,10,0) 60%),
    var(--ground-hi);
  border-bottom:1px solid var(--rule);
}
/* ── page hero with a cover image (contact.html) ─────────────────────
   The picture is atmosphere, not subject. Three things keep it there: the
   band is shorter than a normal .phero, the image is knocked back with a
   filter, and a two-axis veil sits over it so the type has a flat, dark
   field to sit on while the right edge keeps a little of the picture.
   The downstream content is what the page is for.                        */
.phero--cover{ isolation:isolate; }
.phero--cover .phero-bg{ position:absolute; inset:0; z-index:-2; }
.phero--cover .phero-bg img{
  width:100%; height:100%; object-fit:cover; object-position:64% 46%;
  display:block; filter:saturate(.72) brightness(.66);
}
.phero--cover::after{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:
    linear-gradient(90deg, rgba(9,40,26,.95) 0%, rgba(9,40,26,.88) 46%, rgba(9,40,26,.58) 100%),
    linear-gradient(180deg, rgba(6,28,18,.60) 0%, rgba(6,28,18,.24) 46%, rgba(6,28,18,.72) 100%);
}
/* research.html's plate arrives already dark on the left and bright only on
   the right, so it needs far less knocking back than contact's does. Lighter
   filter, lighter veil, and the gold branching survives to be seen. */
.phero--cover.phero--research .phero-bg img{
  object-position:58% 48%; filter:saturate(.88) brightness(.88);
}
.phero--cover.phero--research::after{
  background:
    linear-gradient(90deg, rgba(9,40,26,.90) 0%, rgba(9,40,26,.74) 44%, rgba(9,40,26,.26) 100%),
    linear-gradient(180deg, rgba(6,28,18,.40) 0%, rgba(6,28,18,.08) 45%, rgba(6,28,18,.56) 100%);
}

/* people.html's plate carries its bright spheres further left than research's
   branching does, so the veil holds its strength to 54% before it opens. */
.phero--cover.phero--people .phero-bg img{
  object-position:56% 50%; filter:saturate(.86) brightness(.84);
}
.phero--cover.phero--people::after{
  background:
    linear-gradient(90deg, rgba(9,40,26,.93) 0%, rgba(9,40,26,.84) 40%, rgba(9,40,26,.60) 54%, rgba(9,40,26,.24) 100%),
    linear-gradient(180deg, rgba(6,28,18,.40) 0%, rgba(6,28,18,.10) 45%, rgba(6,28,18,.56) 100%);
}

/* publications.html's plate is the most demanding of the three: it is flat
   dark to 48% and then steps hard into edge-lit glass, and the headline runs
   to 53%. So the veil holds full strength past the step and only opens at
   58%, rather than easing off from 44% the way the others do. */
.phero--cover.phero--pubs .phero-bg img{
  object-position:50% 50%; filter:saturate(.94) brightness(.94);
}
.phero--cover.phero--pubs::after{
  background:
    linear-gradient(90deg, rgba(9,40,26,.93) 0%, rgba(9,40,26,.88) 42%, rgba(9,40,26,.52) 56%, rgba(9,40,26,.14) 100%),
    linear-gradient(180deg, rgba(6,28,18,.34) 0%, rgba(6,28,18,.06) 45%, rgba(6,28,18,.50) 100%);
}

/* news.html's plate ramps gently rather than stepping, and its band of light
   sits low in the frame at 60-70% height, so the crop drops to match it and
   the veil eases off in proportion to the ramp rather than holding a wall. */
.phero--cover.phero--news .phero-bg img{
  object-position:50% 65%; filter:saturate(.92) brightness(.92);
}
.phero--cover.phero--news::after{
  background:
    linear-gradient(90deg, rgba(9,40,26,.90) 0%, rgba(9,40,26,.84) 46%, rgba(9,40,26,.58) 62%, rgba(9,40,26,.18) 100%),
    linear-gradient(180deg, rgba(6,28,18,.34) 0%, rgba(6,28,18,.06) 45%, rgba(6,28,18,.48) 100%);
}

@media (max-width:720px){
  /* on a narrow column the veil has to do more, there is no width left to
     fade across */
  .phero--cover::after{
    background:linear-gradient(180deg, rgba(9,40,26,.74) 0%, rgba(9,40,26,.86) 100%);
  }
  .phero--cover .phero-bg img{ object-position:58% 42%; filter:saturate(.72) brightness(.60); }
  /* research's own rule out-specifies the one above, so it needs restating
     here or the phone would keep the desktop veil. The crop also shifts left
     so the type lands on the plate's dark side rather than on the branches. */
  .phero--cover.phero--research::after{
    background:linear-gradient(180deg, rgba(9,40,26,.66) 0%, rgba(9,40,26,.84) 100%);
  }
  .phero--cover.phero--research .phero-bg img{
    object-position:40% 48%; filter:saturate(.88) brightness(.74);
  }
  .phero--cover.phero--people::after{
    background:linear-gradient(180deg, rgba(9,40,26,.70) 0%, rgba(9,40,26,.86) 100%);
  }
  .phero--cover.phero--people .phero-bg img{
    object-position:34% 50%; filter:saturate(.86) brightness(.70);
  }
  /* the headline runs to 94% of the band here, straight across the glass,
     so the veil covers the whole width rather than fading */
  .phero--cover.phero--pubs::after{
    background:linear-gradient(180deg, rgba(9,40,26,.78) 0%, rgba(9,40,26,.88) 100%);
  }
  .phero--cover.phero--pubs .phero-bg img{
    object-position:50% 50%; filter:saturate(.90) brightness(.66);
  }
  /* the headline crosses the whole width here, and at this size almost the
     full plate is visible, so the veil covers rather than fades */
  .phero--cover.phero--news::after{
    background:linear-gradient(180deg, rgba(9,40,26,.76) 0%, rgba(9,40,26,.88) 100%);
  }
  .phero--cover.phero--news .phero-bg img{
    object-position:62% 64%; filter:saturate(.92) brightness(.70);
  }
}

/* Below 360px the copy wraps onto more lines, so the heroes get taller as the
   viewport gets narrower. That runs opposite to the clamp above, which cannot
   express a non-monotonic curve, so this step covers 280-359 where the
   tallest hero reaches 308px. */
@media (max-width:359px){
  .phero{ min-height:308px; }
}

.phero-in{
  width:100%; max-width:var(--shell); margin:0 auto;
  /* Tightened from 86/72: the band is an introduction, not a stage. Every
     content page uses this, so the five heroes stay the same height. */
  padding:clamp(36px,4.6vw,58px) clamp(20px,4vw,40px) clamp(28px,3.6vw,44px);
}
.kicker{
  font-size:var(--t-label); font-weight:500; letter-spacing:2.6px; text-transform:uppercase;
  color:var(--uab-gold); margin-bottom:16px;
}
.phero h1{
  font-size:var(--t-page); line-height:1.04;
  font-weight:300; letter-spacing:-.5px; color:var(--ink);
  max-width:16ch;
}
.phero p.sub{
  margin-top:20px; max-width:56ch;
  font-size:var(--t-lead); line-height:1.62; color:var(--ink-soft);
}

/* ── body ───────────────────────────────────────────────────────────── */
main.body{ flex:1; }
.wrap{
  max-width:var(--shell); margin:0 auto;
  padding:clamp(40px,6vw,72px) clamp(20px,4vw,40px);
}

.sheet{
  background:var(--card); color:var(--card-ink);
  border-radius:28px; padding:clamp(26px,4vw,46px);
  box-shadow:0 30px 70px rgba(2,18,9,.34);
}
.sheet + .sheet{ margin-top:24px; }

h2.sec{
  font-size:var(--t-section); line-height:1.18;
  font-weight:400; letter-spacing:-.3px; color:var(--ink);
  margin-bottom:8px;
}
/* the 8px above is measured to sit tight against a .sec-note, which then
   supplies the real gap. A section with no note has to supply it itself, or
   the heading ends up 8px off its own content. Falls back to the tight gap
   where :has() is unsupported, which is degraded rather than broken. */
h2.sec:not(:has(+ .sec-note)){ margin-bottom:26px; }
.sheet h2, .sheet h3{ color:var(--card-ink); }
/* 69ch, not 62: the Green Lab line measures 630px set solid and 62ch caps at
   569, which left "research." stranded on a line of its own. Still inside the
   65-75ch measure. */
.sec-note{ color:var(--ink-soft); font-size:var(--t-body); line-height:1.65; margin-bottom:26px; max-width:69ch; }
.research-atlas .tool-section .sec-note{ white-space:nowrap; }

/* ── section divider ────────────────────────────────────────────────────
   Four segments, because the section below it is four lines of work. The
   mark counts the content instead of decorating it, which is the whole
   reason it is not a single rule: add a fifth project and you add a fifth
   <i>, or the divider stops being true.

   It is deliberately hairline. On this ground a rule at full strength
   reads as a border and starts fencing the section off from the page,
   which is the opposite of what a divider is for.

   aria-hidden: the heading above already names the section, so this is
   typography rather than information.                                    */
.sdiv{ display:flex; gap:12px; margin:0 0 30px; }
.sdiv i{ flex:1; height:1px; background:rgba(255,255,255,.17); }
@media (max-width:560px){
  .sdiv{ gap:8px; margin-bottom:22px; }
}

.prose p{ font-size:var(--t-body); line-height:1.72; margin-bottom:1em; }
.prose p:last-child{ margin-bottom:0; }
.prose a{ color:var(--uab-green); text-decoration:underline; text-underline-offset:2px; }
.prose a:hover{ color:var(--card-link-hover); }
.prose strong{ font-weight:600; }

/* ── people ─────────────────────────────────────────────────────────── */
.people{ display:grid; gap:22px; }
.person{
  background:var(--card); color:var(--card-ink);
  border-radius:26px; overflow:hidden;
  display:grid; grid-template-columns:224px 1fr;
  box-shadow:0 24px 56px rgba(2,18,9,.30);
}
/* A fixed portrait ratio, top-aligned. Letting the figure stretch to the row
   made the PI's photo a 224x603 sliver — the taller the bio, the worse the
   crop, which is exactly backwards. */
.person > figure{
  position:relative; background:var(--ground-sunk);
  aspect-ratio:3/4; align-self:start; overflow:hidden;
}
.person > figure img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:50% 18%; display:block;
}
.person-b{ padding:clamp(22px,3vw,32px); min-width:0; }
.person h2, .person h3{ font-size:var(--t-lead); font-weight:500; letter-spacing:-.2px; line-height:1.25; }
.person .role{ margin-top:5px; color:var(--card-label); font-size:var(--t-label); font-weight:400; letter-spacing:.3px; }
.person .bio{ margin-top:15px; font-size:var(--t-body); line-height:1.68; }
.person .bio p + p{ margin-top:.85em; }
.links{ margin-top:16px; display:flex; flex-wrap:wrap; gap:8px; }
.links a{
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 13px; border-radius:999px;
  background:rgba(26,86,50,.09); border:1px solid rgba(26,86,50,.18);
  color:var(--uab-green); text-decoration:none;
  font-size:var(--t-label); font-weight:500; letter-spacing:.2px;
  transition:background .18s var(--ease), border-color .18s var(--ease);
}
.links a:hover{ background:rgba(26,86,50,.16); border-color:rgba(26,86,50,.34); }
@media (max-width:720px){
  .person{ grid-template-columns:1fr; }
  /* A portrait stays a portrait. This used to be a fixed 264px band, which
     turned a full-width slot into a 1.27:1 letterbox and then asked cover()
     to fit portrait photographs into it. Every one of the five was cut, and
     the more portrait the source the worse it got: 37% off the bottom of a
     933x1400 headshot, which is the chin and the mouth. 4/5 is wide enough
     that the squarer photographs only lose their sides, and tall enough
     that the tall ones keep a face.

     If you add someone whose photo is more portrait than 4/5, check them
     here before shipping. The frame does not warn you, it just crops.     */
  .person > figure{ aspect-ratio:4/5; }
  .person > figure img{ object-position:50% 28%; }
}

/* alumni */
.alumni{ list-style:none; display:grid; gap:2px; }
.alumni li{
  display:flex; flex-wrap:wrap; gap:4px 12px; align-items:baseline;
  padding:13px 2px; border-bottom:1px solid rgba(11,36,23,.10);
  font-size:var(--t-body);
}
.alumni li:last-child{ border-bottom:0; }
.alumni .who{ font-weight:500; }
.alumni .what{ color:var(--card-label); font-size:var(--t-label); }

/* ═══ research page ══════════════════════════════════════════════════
   This page carries two kinds of image and they need opposite treatment.

   FIGURES — schematics, plots, anything with a label on it — must be shown
   whole. The old grid forced every image into one 2.38:1 box with
   object-fit:cover, which kept 42% of a square confocal frame and 52% of the
   blood-brain-barrier schematic. Cropping a photograph is a style choice;
   cropping a diagram deletes the labels, so these never crop.

   MICROGRAPHS are atmospheric and tolerate any framing, but they still look
   wrong squeezed to a common shape. They go in a masonry column at their own
   native ratio with height:auto, so nothing is cropped anywhere on the page.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── the lead claim ─────────────────────────────────────────────────── */
.lead{
  font-size:var(--t-section); line-height:1.4; font-weight:300;
  letter-spacing:-.3px; color:var(--ink); max-width:24ch;
}
.lead b{ font-weight:400; color:var(--uab-gold); }
.lead-note{ margin-top:18px; max-width:54ch; font-size:var(--t-body); line-height:1.75; color:var(--ink-soft); }

/* ── a figure shown whole ───────────────────────────────────────────── */
.rfig{
  background:var(--card); color:var(--card-ink);
  border-radius:26px; overflow:hidden;
  box-shadow:0 26px 60px rgba(2,18,9,.32);
}
.rfig img{
  display:block; width:100%; height:auto;   /* native ratio — never cropped */
  padding:clamp(12px,1.8vw,20px);
}
.rfig figcaption{
  padding:0 clamp(18px,2.4vw,26px) 20px;
  font-size:var(--t-label); line-height:1.6; color:var(--card-label);
}
.rfig figcaption b{ display:block; color:var(--card-ink); font-weight:500; font-size:var(--t-label); margin-bottom:4px; }

/* ── publications ───────────────────────────────────────────────────── */
.pubs{ list-style:none; counter-reset:pub; }
.pubs li{
  position:relative; padding:20px 0 20px 52px;
  border-bottom:1px solid rgba(11,36,23,.10);
  font-size:var(--t-body); line-height:1.66;
}
.pubs li:last-child{ border-bottom:0; }
.pubs li::before{
  counter-increment:pub; content:counter(pub);
  position:absolute; left:0; top:22px;
  width:34px; text-align:right;
  font-size:var(--t-label); font-weight:500; color:var(--card-label);
  font-variant-numeric:tabular-nums;
}
/* The title is the one part of a citation that is not authors or journal, and
   the landing page's latest-publication block reads it by this class. Wrap it
   on every new entry or that block falls back to the whole citation. */
.pubs .ti{ font-weight:500; }
.pubs .lab{ font-weight:600; }
.pubs .meta{ display:block; margin-top:6px; font-size:var(--t-label); color:var(--card-label); }
.pubs .meta a{ color:var(--uab-green); text-decoration:underline; text-underline-offset:2px; }
.pubs .note{
  display:inline-block; margin-top:8px; padding:5px 11px; border-radius:999px;
  background:rgba(253,185,19,.16); border:1px solid rgba(253,185,19,.34);
  font-size:var(--t-label); color:var(--note-ink);
}
@media (max-width:560px){
  .pubs li{ padding-left:0; }
  .pubs li::before{ position:static; display:block; text-align:left; width:auto; margin-bottom:6px; }
}

/* ── news feed ────────────────────────────────────────────────────────
   A year spine down the left gutter: a rule the whole feed hangs off, the
   year sitting ON it as a marker that breaks the line, and every post a node.
   Same gutter geometry as .pubyear so the two list pages read as one system,
   but drawn as a chronology, which is what news is.

   Posts come in three tiers. The old page gave a $3M R01 and a ten-word
   "presented at X" note the same card, and inflated a lone photo to 540px —
   four posts near the bottom were ~580px each for almost no content.        */
.yrjump{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:clamp(24px,3.4vw,38px); }
.yrjump a{
  padding:7px 15px; border-radius:999px;
  border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.05);
  color:var(--ink-soft); text-decoration:none;
  font-size:var(--t-label); font-weight:500; letter-spacing:1.4px;
  font-variant-numeric:tabular-nums;
  transition:color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.yrjump a:hover{ color:var(--ink); background:rgba(255,255,255,.11); border-color:rgba(255,255,255,.3); }

/* Topic filter. Same pill as the year jump, so the two rows read as one
   control block; the pressed state is the only thing that separates them.
   Both .yr and .post set a display, which beats the [hidden] UA rule outright,
   hence the explicit hide below — without it the filter does nothing at all. */
.kindfilter{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.kindfilter button{
  padding:7px 15px; border-radius:999px;
  border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.05);
  color:var(--ink-soft); font-family:inherit;
  font-size:var(--t-label); font-weight:500; letter-spacing:1.4px;
  cursor:pointer;
  transition:color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.kindfilter button:hover{ color:var(--ink); background:rgba(255,255,255,.11); border-color:rgba(255,255,255,.3); }
.kindfilter button[aria-pressed="true"]{
  color:var(--uab-gold); border-color:rgba(255,199,44,.55); background:rgba(255,199,44,.08);
}
.kindfilter .n{ margin-left:7px; opacity:.5; font-variant-numeric:tabular-nums; }
.kindfilter-live{
  margin:0 0 clamp(24px,3.4vw,38px); min-height:1em;
  color:var(--ink-soft); font-size:var(--t-label); letter-spacing:.4px;
}
.kindfilter-live:empty{ margin-bottom:0; }
.feed .yr[hidden], .feed .post[hidden], .yrjump a[hidden]{ display:none; }
.yr.is-last::before{ bottom:auto; height:calc(100% - 46px); }

.feed{ --gut:128px; --spine:44px; }
.yr{ display:grid; grid-template-columns:var(--gut) minmax(0,1fr); position:relative; }
.yr::before{                                   /* the spine */
  content:""; position:absolute; top:0; bottom:0;
  left:var(--spine); width:1px; background:rgba(255,255,255,.13);
}
.yr:last-child::before{ bottom:auto; height:calc(100% - 46px); }
.yr-mark{
  grid-column:1; grid-row:1; align-self:start; z-index:2;
  position:sticky; top:calc(var(--hdr-h) + 20px);
  display:flex; align-items:center; justify-content:center;
  width:88px; height:34px; border-radius:999px;
  background:var(--ground); border:1px solid rgba(255,255,255,.18);
  color:var(--uab-gold); font-size:var(--t-label); font-weight:500; letter-spacing:1.8px;
  font-variant-numeric:tabular-nums;
}
.yr-posts{ grid-column:2; grid-row:1; display:grid; gap:20px; padding-bottom:28px; }
.yr + .yr .yr-posts{ padding-top:8px; }

.post{
  position:relative;
  background:var(--card); color:var(--card-ink);
  border-radius:24px; overflow:hidden;
  box-shadow:0 20px 48px rgba(2,18,9,.28);
}
.post::before{                                 /* the node on the spine */
  content:""; position:absolute; top:30px;
  left:calc(-1 * var(--gut) + var(--spine) - 4px);
  width:8px; height:8px; border-radius:50%;
  background:var(--uab-gold); box-shadow:0 0 0 5px var(--ground);
}
.post-b{ padding:clamp(22px,3vw,32px); }
.post-meta{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.post-meta time{
  font-size:var(--t-label); font-weight:500; letter-spacing:2px; text-transform:uppercase;
  color:var(--card-label);
}
.kind{
  padding:3px 10px; border-radius:999px;
  background:rgba(26,86,50,.10); border:1px solid rgba(26,86,50,.20);
  color:var(--uab-green);
  font-size:var(--t-micro); font-weight:600; letter-spacing:1.6px; text-transform:uppercase;
}
.post h2, .post h3{ margin-top:10px; font-size:var(--t-title); font-weight:500; letter-spacing:-.2px; line-height:1.28; }
.post p:not(.post-meta){ margin-top:12px; font-size:var(--t-body); line-height:1.68; }
.post p a{ color:var(--uab-green); text-decoration:underline; text-underline-offset:2px; }
.chip{
  display:inline-flex; align-items:center; gap:8px; margin-top:16px;
  padding:9px 16px; border-radius:999px;
  background:rgba(26,86,50,.09); border:1px solid rgba(26,86,50,.20);
  color:var(--uab-green); text-decoration:none;
  font-size:var(--t-label); font-weight:500;
  transition:background .18s var(--ease), border-color .18s var(--ease);
}
.chip:hover{ background:rgba(26,86,50,.17); border-color:rgba(26,86,50,.36); }
.chip svg{ width:14px; height:14px; flex:none; }

/* photo tiles: a row of figures whose flex-grow is each one's own aspect
   ratio, so every width is r*k and every height is k — the row bottoms line
   up exactly and nothing is cropped to make that happen */
.grow{ display:flex; gap:4px; }
.grow + .grow{ margin-top:4px; }
.post .shot{ flex:var(--r) 1 0; min-width:0; margin:0; }
.post .shot > button{
  display:block; width:100%; padding:0; border:0; background:var(--ground-sunk);
  cursor:zoom-in; line-height:0; overflow:hidden;
}
.post .shot img{ display:block; width:100%; height:auto; transition:transform .5s var(--ease-out); }
.post .shot > button:hover img{ transform:scale(1.035); }
.post .shot > button:focus-visible{ outline:2px solid var(--uab-gold); outline-offset:-3px; }

/* ── tier: lead ───────────────────────────────────────────────────── */
.post--lead .post-b{ padding-bottom:clamp(18px,2.4vw,24px); }
.post--lead h2, .post--lead h3{ font-size:var(--t-section); font-weight:400; letter-spacing:-.6px; line-height:1.14; }
.post--lead > .post-b > p{ font-size:var(--t-body); max-width:62ch; }
/* NOT .gallery — research.html already owns that name for its column-count
   masonry, and the lead's rows were inheriting column-count:2. */
.post--lead .sheetshots{ padding:0 4px 4px; }

/* ── tier: story ──────────────────────────────────────────────────── */
.post--story{ display:grid; grid-template-columns:minmax(0,1fr) 300px; align-items:center; gap:0; }
/* the photo keeps its own ratio and the taller of the two columns sets the
   card height. Stretching it to match the text meant object-fit:cover, and
   cover in a 300px column throws away a third of a landscape frame. */
.post--story .post-media{ align-self:center; display:flex; flex-direction:column; gap:3px; }
.post--story .post-media img{ width:100%; height:auto; }
/* Flipping with order:-1 moved the photo into the 1fr column and squeezed
   the prose into the 300px one. Swap the track sizes instead, so the text
   always gets the wide column whichever side the photo is on. */
.post--story.post--flip{ grid-template-columns:300px minmax(0,1fr); }
.post--story.post--flip .post-media{ order:-1; }
.post--story:not(:has(.post-media)){ grid-template-columns:1fr; }

.pullquote{
  margin-top:18px; padding:2px 0 2px 18px;
  border-left:3px solid var(--uab-gold);
  font-size:var(--t-lead); line-height:1.5; font-weight:300; letter-spacing:-.1px;
  color:var(--card-ink);
}
/* the marks go on the quote's own <p>: on the blockquote, ::after landed
   after the <cite> and hung a stray closing quote below the attribution */
.pullquote > p{ margin-top:0; font-size:inherit; line-height:inherit; }
.pullquote > p::before{ content:"\201C"; }
.pullquote > p::after{ content:"\201D"; }
.pullquote cite{
  display:block; margin-top:9px;
  font-size:var(--t-label); font-style:normal; font-weight:500;
  letter-spacing:1.8px; text-transform:uppercase; color:var(--card-label);
}
.pullquote cite::before{ content:"\2014\00a0"; }

/* three or more photos will not fit a 300px side column without either
   cropping them or making the card absurdly tall, so they run as a sheet
   under the text at full width, the same as the lead's */
.post--sheet{ display:block; }
.post--sheet .sheetshots{ padding:0 4px 4px; }

/* ── tier: brief ──────────────────────────────────────────────────── */
.post--brief{ display:grid; grid-template-columns:132px minmax(0,1fr); align-items:stretch; }
.post--brief.post--nothumb{ grid-template-columns:1fr; }
.post--brief .brief-thumb{ overflow:hidden; }
.post--brief .brief-thumb .shot{ height:100%; }
.post--brief .brief-thumb button{ height:100%; }
.post--brief .brief-thumb img{ height:100%; object-fit:cover; }
.post--brief .post-b{ padding:18px clamp(18px,2.4vw,26px); align-self:center; }
.post--brief h2, .post--brief h3{ margin-top:7px; font-size:var(--t-lead); font-weight:500; line-height:1.34; }
.post--brief::before{ top:22px; }

@media (max-width:820px){
  .feed{ --gut:74px; --spine:26px; }
  .yr-mark{ width:52px; height:28px; font-size:var(--t-label); letter-spacing:1.2px; }
  .post--story{ grid-template-columns:minmax(0,1fr) 232px; }
  .post--story.post--flip{ grid-template-columns:232px minmax(0,1fr); }
}
@media (max-width:640px){
  /* the spine costs more than it gives at this width: one column, year on top */
  .feed{ --gut:0px; }
  .yr{ grid-template-columns:1fr; }
  .yr::before{ display:none; }
  .yr-mark{ grid-column:1; grid-row:auto; position:static; margin-bottom:14px; }
  .yr-posts{ grid-column:1; grid-row:auto; }
  .post::before{ display:none; }
  .post--story, .post--story.post--flip{ grid-template-columns:1fr; }
  .post--story .post-media{ flex-direction:row; order:-1; }
  .post--story.post--flip .post-media{ order:-1; }
  .post--story .post-media img{ height:auto; object-fit:contain; }
  .post--brief{ grid-template-columns:104px minmax(0,1fr); }
  .post--brief.post--nothumb{ grid-template-columns:1fr; }
  /* Thirteen photos across a 375px card is a 60px-wide thumbnail. The rows
     collapse into one horizontal filmstrip instead: display:contents drops
     the row wrappers so every shot becomes a child of the scroller, keeps
     its own ratio at a fixed height, and nothing is cropped. */
  .post--lead .sheetshots, .post--sheet .sheetshots{
    display:flex; gap:4px; overflow-x:auto; padding:0 0 10px;
    scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
  }
  .post--lead .grow, .post--sheet .grow{ display:contents; }
  .post--lead .shot, .post--sheet .shot{ flex:0 0 auto; scroll-snap-align:start; }
  .post--lead .shot > button, .post--sheet .shot > button{ width:auto; }
  .post--lead .shot img, .post--sheet .shot img{ height:180px; width:auto; max-width:none; }
}
@media (prefers-reduced-motion:reduce){
  .post .shot img{ transition:none; }
  .post .shot > button:hover img{ transform:none; }
}

/* ── PI portrait ────────────────────────────────────────────────────── */
/* ── contact: photo beside the details ──────────────────────────────
   The photo used to run full width under a 460px max-height with
   object-fit:cover, which threw away 37% of the frame. Shown whole at full
   width it would be 733px tall and push every contact detail below the fold,
   so it sits beside them instead: whole, and about 385px tall. */
/* stretch, not start: the two cards share a row height. The photo keeps its
   own ratio and the caption sits under it; whatever paper is left over falls
   below, which is what squares the two cards off against each other. */
.cmain{ display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:stretch; }
.cmain > *{ min-height:100%; }
.pi-photo{ display:flex; flex-direction:column; }
@media (max-width:820px){ .cmain{ grid-template-columns:minmax(0,1fr); } }
.cmain .cgrid{ grid-template-columns:minmax(0,1fr); gap:28px; }

.pi-photo{
  border-radius:28px; overflow:hidden; margin-bottom:0;
  background:var(--card); color:var(--card-ink);
  box-shadow:0 30px 70px rgba(2,18,9,.34);
}
.pi-photo img{
  display:block; width:100%; height:auto;   /* native ratio — never cropped */
}
.pi-photo figcaption{
  padding:20px clamp(22px,3vw,32px);
  display:flex; flex-direction:column; gap:5px;
}
.pi-photo .who{ font-size:var(--t-lead); font-weight:500; letter-spacing:-.2px; }
.pi-photo .what{ font-size:var(--t-label); line-height:1.55; color:var(--card-label); }

/* ── contact ────────────────────────────────────────────────────────── */
.cgrid{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
@media (max-width:720px){ .cgrid{ grid-template-columns:minmax(0,1fr); } }
.cblock h2, .cblock h3{ font-size:var(--t-label); font-weight:500; letter-spacing:2px; text-transform:uppercase; color:var(--card-label); }
.cblock .big{ margin-top:12px; font-size:var(--t-body); line-height:1.62; overflow-wrap:anywhere; }
.cblock a{ color:var(--uab-green); text-decoration:underline; text-underline-offset:2px; }

/* ── callout ────────────────────────────────────────────────────────── */
.callout{
  margin-top:26px; border-radius:24px; padding:clamp(24px,3.4vw,36px);
  background:
    radial-gradient(80% 140% at 12% 0%, rgba(253,185,19,.12), rgba(253,185,19,0) 60%),
    rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.10);
}
.callout h2, .callout h3{ font-size:var(--t-title); font-weight:400; letter-spacing:-.2px; color:var(--ink); }
.callout p{ margin-top:11px; font-size:var(--t-body); line-height:1.73; color:var(--ink-soft); max-width:62ch; }
.callout a.cta{
  display:inline-flex; align-items:center; gap:9px; margin-top:20px;
  padding:13px 22px; border-radius:999px;
  background:var(--card); color:var(--card-ink); text-decoration:none;
  font-size:var(--t-label); font-weight:500;
  transition:transform .3s var(--ease-out), background .3s var(--ease);
}
.callout a.cta:hover{ transform:translateY(-2px); background:var(--ink); }

/* ── footer ─────────────────────────────────────────────────────────── */
.ftr{ border-top:1px solid var(--rule); background:rgba(3,20,10,.42); }
.ftr-in{
  max-width:var(--shell); margin:0 auto;
  padding:44px clamp(20px,4vw,40px);
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:32px;
}
@media (max-width:720px){ .ftr-in{ grid-template-columns:1fr; gap:26px; } }
/* minmax(0,132px), not a bare 132px: at a large reader font size the prose
   column needs every pixel, and a rigid logo column made this block the last
   thing on the site that could still push a phone sideways. The mark shrinks
   before the words do.                                                      */
.glab{ display:grid; grid-template-columns:minmax(0,132px) minmax(0,1fr); gap:28px; align-items:start; }
.glab img{ width:100%; max-width:132px; height:auto; display:block; }
/* Below this the fixed logo column and the prose cannot both hold a sane
   measure, so the mark goes above the text rather than squeezing it.

   In em, not px, and deliberately: this breakpoint exists to protect a text
   measure, so it has to answer to the reader's font size and not only to the
   viewport. 22.4375em is 359px at the default, so nothing changed; at a 32px
   reader default it fires at 718px, which is what stops this block being the
   one thing on the site that still overflows a phone at 200% text.          */
@media (max-width:22.4375em){
  .glab{ grid-template-columns:minmax(0,1fr); gap:18px; }
}

.ftr h2{
  font-size:var(--t-label); font-weight:500; letter-spacing:2px; text-transform:uppercase;
  color:var(--ink-faint); margin-bottom:13px;
}
.ftr p, .ftr a{ font-size:var(--t-label); line-height:1.66; color:var(--ink-soft); }
.ftr a{ text-decoration:none; display:block; padding:3px 0; }
.ftr a:hover{ color:var(--ink); }
.ftr .fbrand{
  display:flex; align-items:center; gap:10px; margin-bottom:13px;
  color:var(--ink); font-size:var(--t-label); font-weight:500; letter-spacing:2.2px; text-transform:uppercase;
}
.ftr .fbrand svg{ width:28px; height:20px; fill:currentColor; }
.legal{
  border-top:1px solid var(--rule);
  padding:18px clamp(20px,4vw,40px);
  max-width:var(--shell); margin:0 auto;
  font-size:var(--t-label); color:var(--ink-faint);
  display:flex; flex-wrap:wrap; gap:6px 18px; justify-content:space-between;
}

/* The build credit sits in the legal bar and in the landing page's slim bar.
   `.ftr a` is a block, which is correct for the three columns above but not
   for a name inside a sentence, thus the link goes back to inline here. The
   colour is inherited, so the credit keeps the 4.5:1 of its own bar and the
   underline, not a second colour, marks the link. */
.legal a, .ftr-slim-in a{
  display:inline; padding:0; color:inherit;
  text-decoration:underline; text-underline-offset:2px;
}
.legal a:hover, .ftr-slim-in a:hover{ color:var(--ink); }

/* ── latest publication and news (narrow only) ────────────────────────
   The landing page says what the lab studies but carries no evidence that it
   is active, which is the first thing a prospective trainee and a peer each
   want. This block answers both: one paper, two posts.

   It is filled by assets/js/latest.js from the real pages, so editing
   news.html or publications.html is all it takes to update it. The section
   ships `hidden` and the script removes that only once it has content, so a
   failed fetch leaves no empty box.

   Narrow only. The wide landing page is sized to be exactly one screen and
   this would end that; see NOTES.md. */
.latest{ display:none; }

@media (max-width:900px){
  .latest:not([hidden]){
    display:grid;
    padding:0 clamp(20px,4vw,40px) 34px;
    /* No background, deliberately. .hero paints its own --ground-hi
       (#174d34) base and the body underneath is --ground (#0d3524), so the
       hero's bottom edge steps down onto a darker page. That step was read
       as a seam and blended out once; it is wanted. It is what separates
       this block from the hero, and it is why the text here sits on its own
       darker ground while the line above it floats over the scene. Leave it
       transparent and let the page's own colour do the work. */
  }
  /* No plate under these. The two cards above are the page's cream objects
     and giving these the same treatment made four stacked slabs; on the
     ground with a rule between them they read as a footnote to the cards
     rather than as more of them. The rule matches .sdiv's. */
  /* More room above a rule than below it, so the rule groups with the
     kicker it introduces rather than clinging to the text it follows. It was
     22px above and 2px below, which put the news rule almost on the last
     line of the publication title. */
  .lblock{
    padding:20px 0 30px;
    border-top:1px solid rgba(255,255,255,.17);
  }
  .lblock:last-child{ padding-bottom:4px; }
  .lblock-k{
    font-size:var(--t-micro); font-weight:500; letter-spacing:1.6px;
    text-transform:uppercase; color:var(--ink-faint);
  }
  /* Same size as a news headline. They are the same kind of thing here, one
     recent item each, and setting the paper larger made it read as the more
     important of the two rather than simply the first. */
  .lblock-t{
    margin-top:11px;
    font-size:var(--t-body); font-weight:300; line-height:1.38;
    color:var(--ink);
  }
  .lnews{ list-style:none; margin-top:14px; display:grid; gap:15px; }
  .lnews li{ display:grid; gap:3px; }
  .lnews-d{
    font-size:var(--t-micro); color:var(--ink-faint);
    font-variant-numeric:tabular-nums;
  }
  .lnews-t{
    font-size:var(--t-body); font-weight:300; line-height:1.38;
    color:var(--ink);
  }
}

/* ── slim footer ─────────────────────────────────────────────────────
   The landing page is meant to be one screen. A full three-column footer
   there pushes it past the fold and forces a scroll for nothing, so index
   gets this single line instead; the content pages, which scroll anyway,
   keep the full .ftr. */
.ftr-slim{
  /* Absolute, so it takes no layout height and the scene can bleed all the
     way to the bottom edge instead of being cut off by a bar. Anchored to
     the body: on the landing page the body is exactly one viewport, so this
     lands at the bottom of the screen; on a scrolling page it lands at the
     end of the document. Same rule, both cases, no media query. */
  position:absolute; left:0; right:0; bottom:0; z-index:30;
  height:var(--ftr-h);
  background:linear-gradient(180deg,
    rgba(3,20,10,0) 0%, rgba(3,20,10,.42) 38%, rgba(3,20,10,.80) 100%);
  pointer-events:none;
}
.ftr-slim a{ pointer-events:auto; }
.ftr-slim-in{
  max-width:var(--shell); margin:0 auto; height:100%;
  padding:0 clamp(20px,4vw,40px);
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  font-size:var(--t-label); color:var(--ink-faint); white-space:nowrap;
}
.ftr-slim-in strong{ font-weight:500; color:var(--ink-soft); }
.ftr-slim-in .r{ overflow:hidden; text-overflow:ellipsis; }
@media (max-width:560px){
  .ftr-slim{ height:auto; }
  .ftr-slim-in{
    padding:10px clamp(20px,4vw,40px);
    flex-direction:column; align-items:flex-start; gap:2px;
    white-space:normal; line-height:1.5;
  }
}

/* ── focus ──────────────────────────────────────────────────────────── */
a:focus-visible, button:focus-visible{
  outline:2px solid var(--uab-gold); outline-offset:3px; border-radius:6px;
}
.skip{
  position:absolute; left:-9999px; top:0; z-index:60;
  background:var(--card); color:var(--card-ink);
  padding:12px 18px; border-radius:0 0 12px 0; font-size:var(--t-label); font-weight:500;
}
.skip:focus{ left:0; }

@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
}

/* ═══ campus gallery (campus.html) ══════════════════════════════════════
   The gallery breaks from the shared .phero/.sheet rhythm on purpose: it
   opens on a full-bleed photograph and then runs as justified photo bands.

   A band is a flex row. Each figure carries its own aspect ratio as --r
   (width/height) and takes flex:var(--r) 1 0. With flex-basis 0 the free
   space is split in proportion to --r, so every width is r*k and every
   height is k — the row bottoms line up exactly, and no image is ever
   cropped to make that happen. Change an image and you change one number.
   ═══════════════════════════════════════════════════════════════════════ */

.chero{ position:relative; overflow:hidden; background:var(--ground-pit); line-height:0; }
.chero button{
  display:block; width:100%; padding:0; border:0; background:none;
  cursor:zoom-in; line-height:0;
}
.chero img{
  display:block; width:100%; height:auto;
  aspect-ratio:12/5; object-fit:cover; object-position:50% 62%;
}
.chero-veil{
  position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(180deg, rgba(4,20,11,.50) 0%, rgba(4,20,11,0) 30%),
    linear-gradient(0deg,   rgba(4,20,11,.90) 0%, rgba(4,20,11,.28) 44%, rgba(4,20,11,0) 74%);
}
.chero-cap{
  position:absolute; left:0; right:0; bottom:0; pointer-events:none;
  max-width:var(--shell); margin:0 auto; line-height:1.5;
  padding:0 clamp(20px,4vw,40px) clamp(24px,4vw,52px);
}
.chero-cap h1{
  font-size:var(--t-display); line-height:.98;
  font-weight:300; letter-spacing:-1.4px; color:var(--ink);
}
.chero-cap p{
  margin-top:14px; max-width:46ch;
  font-size:var(--t-body); line-height:1.6; color:rgba(255,255,255,.78);
}
/* the opener is the one cropped frame on the page, so it carries the only
   hint that the lightbox will show the full plate */
.chero-note{
  position:absolute; left:0; right:0; bottom:0; pointer-events:none;
  max-width:var(--shell); margin:0 auto; text-align:right; line-height:1.4;
  padding:0 clamp(20px,4vw,40px) calc(clamp(24px,4vw,52px) + 6px);
  font-size:var(--t-micro); letter-spacing:1.8px; text-transform:uppercase;
  color:rgba(255,255,255,.5);
}
@media (max-width:820px){
  .chero img{ aspect-ratio:4/3; }
  .chero-note{ display:none; }
}

/* ── bands ──────────────────────────────────────────────────────────── */
.gal{
  --gap:clamp(8px,1.1vw,14px);
  max-width:var(--shell); margin:0 auto;
  /* the bottom value was sized for a page that ended on a photo row and
     needed room to breathe. It now ends on the credit line, which is a
     footnote and wants to sit close to the footer, not float above it. */
  padding:0 clamp(20px,4vw,40px) clamp(26px,3vw,40px);
}
/* Photo credit, closing the gallery. Set as a quiet footnote: the rule above
   it separates it from the last band without needing a heading, and it sits
   at caption weight so it reads as provenance rather than as content. */
.gal-credit{
  /* Deliberately quiet. The rule that used to sit above this line was doing
     more to announce it than the colour was: a full-width border reads as a
     section break. It is gone, the tracking is closed up, and the line is at
     --t-micro, so the credit trails off the page instead of introducing
     itself. Presence is spacing, size and tracking here, not contrast. */
  margin-top:clamp(34px,4vw,52px);
  font-size:var(--t-micro); letter-spacing:0; line-height:1.6;
  /* 4.52:1 on --ground, measured with a canvas. This is the floor: DESIGN.md
     promises 4.5:1 on every text token and this is small text, so a lower
     alpha would break the contract. Fade further only by amending that. */
  color:rgba(238,244,241,.53); text-align:right;
}

.chap{ padding-top:clamp(44px,6.2vw,80px); }
.chap-hd{
  display:flex; align-items:baseline; gap:clamp(14px,2vw,22px);
  padding-bottom:clamp(16px,2.2vw,24px);
  border-bottom:1px solid var(--rule); margin-bottom:var(--gap);
}
.chap-hd .n{
  font-size:var(--t-label); font-weight:500; letter-spacing:2.6px;
  color:var(--uab-gold); flex:none;
}
.chap-hd h2{
  font-size:var(--t-section); line-height:1.1;
  font-weight:300; letter-spacing:-.4px; color:var(--ink);
}

.band{ display:flex; gap:var(--gap); margin-top:var(--gap); }
.chap-hd + .band{ margin-top:0; }

.shot{ flex:var(--r) 1 0; min-width:0; margin:0; }
.shot > button{
  position:relative; display:block; width:100%; padding:0; border:0;
  background:var(--ground-sunk); border-radius:14px; overflow:hidden;
  cursor:zoom-in; line-height:0; color:inherit;
}
.shot img{
  display:block; width:100%; height:auto;
  transition:transform .55s var(--ease-out), filter .4s var(--ease);
  filter:saturate(.94);
}
.shot > button:hover img,
.shot > button:focus-visible img{ transform:scale(1.04); filter:saturate(1.06); }
.shot > button:focus-visible{ outline:2px solid var(--uab-gold); outline-offset:3px; }

/* stacked */
@media (max-width:720px){
  .band{ flex-direction:column; }
  .chap-hd{ flex-wrap:wrap; }
}

/* ── lightbox ───────────────────────────────────────────────────────── */
.lbox{
  width:100vw; max-width:100vw; height:100svh; max-height:100svh;
  padding:0; border:0; overflow:hidden;
  /* painted on the dialog itself as well as ::backdrop — the dialog fills
     the viewport, so the page never ghosts through even where ::backdrop
     is unsupported or composited differently */
  background:rgba(4,20,12,.965);
}
.lbox::backdrop{ background:rgba(3,15,9,.965); }
.lbox-in{
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:16px; padding:clamp(52px,7vw,74px) clamp(14px,7vw,86px);
}
.lbox img{
  max-width:100%; max-height:100%; width:auto; height:auto;
  object-fit:contain; border-radius:10px;
  box-shadow:0 40px 90px rgba(0,0,0,.55);
}
.lbox figcaption{
  flex:none; max-width:62ch; text-align:center;
  font-size:var(--t-label); line-height:1.55; color:rgba(255,255,255,.76);
}
.lbox figcaption b{
  display:block; font-size:var(--t-micro); font-weight:500; letter-spacing:2.2px;
  text-transform:uppercase; color:var(--uab-gold); margin-bottom:7px;
}
/* With no caption under it the kicker's bottom margin is just a gap above the
   counter, so it comes off when the description is empty. */
.lbox figcaption:has(span:empty) b{ margin-bottom:0; }
.lb-btn{
  position:absolute; z-index:2; display:inline-flex; align-items:center; justify-content:center;
  width:46px; height:46px; border-radius:50%; cursor:pointer;
  border:1px solid rgba(255,255,255,.18); background:rgba(8,32,20,.72);
  color:var(--ink); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  transition:background .18s var(--ease), border-color .18s var(--ease);
}
.lb-btn:hover{ background:rgba(26,86,50,.9); border-color:rgba(255,255,255,.34); }
.lb-btn:focus-visible{ outline:2px solid var(--uab-gold); outline-offset:3px; }
.lb-btn svg{ width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.lb-close{ top:clamp(12px,2vw,20px); right:clamp(12px,2vw,20px); }
.lb-prev{ left:clamp(10px,1.6vw,22px);  top:50%; transform:translateY(-50%); }
.lb-next{ right:clamp(10px,1.6vw,22px); top:50%; transform:translateY(-50%); }
.lb-count{
  position:absolute; top:clamp(16px,2.2vw,24px); left:clamp(16px,2.4vw,28px);
  font-size:var(--t-label); letter-spacing:2px; color:rgba(255,255,255,.5);
}
@media (max-width:640px){
  .lbox-in{ padding:60px 12px 96px; }
  .lb-prev{ left:14px;  top:auto; bottom:20px; transform:none; }
  .lb-next{ right:14px; top:auto; bottom:20px; transform:none; }
}
@media (prefers-reduced-motion:reduce){
  .shot img{ transition:none; }
  .shot > button:hover img{ transform:none; }
}

/* ── software card (research.html, project 04) ──────────────────────────
   Projects 01-03 put a micrograph or a schematic in the figure column.
   Project 04's output is a program, not an experiment, so the column holds
   an app card instead: same footprint and radius as .rfig, but dark rather
   than paper, so a tool does not read as one more figure.               */
.swcard{
  background:linear-gradient(168deg, var(--ground-lift) 0%, var(--ground-deep) 60%, var(--ground-pit) 100%);
  border:1px solid rgba(255,255,255,.09);
  border-radius:26px; overflow:hidden;
  box-shadow:0 26px 60px rgba(2,18,9,.42);
  color:var(--ink);
}
/* the mark is navy line art on white, so it needs its own light plate —
   composited straight onto the card it would all but disappear */
.swcard-mark{ background:var(--ink); padding:clamp(18px,2.6vw,26px) clamp(20px,3vw,32px); }
.swcard-mark img{ display:block; width:100%; height:auto; }
.swcard-bar{
  display:flex; align-items:center; gap:8px;
  padding:12px 18px;
  background:rgba(255,255,255,.035);
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.swcard-bar span{
  font-size:var(--t-micro); letter-spacing:2.1px; text-transform:uppercase;
  color:var(--ink-faint);
}
.swcard-bar em{
  margin-left:auto; font-style:normal;
  font-size:var(--t-micro); letter-spacing:1.5px; padding:3px 8px;
  border-radius:6px; border:1px solid rgba(255,255,255,.17); color:var(--ink-soft);
}
.swcard-b{ padding:clamp(20px,2.6vw,28px); }
.swcard-b > p{ margin-top:0; font-size:var(--t-body); line-height:1.7; color:var(--ink-soft); }
.swcard-feat{
  margin-top:20px; display:grid; gap:1px;
  background:rgba(255,255,255,.08); border-radius:12px; overflow:hidden;
}
.swcard-feat div{ background:var(--ground-sunk); padding:11px 15px; font-size:var(--t-label); line-height:1.5; color:var(--ink-soft); }
.swcard-feat b{ display:block; color:var(--ink); font-weight:500; font-size:var(--t-micro); letter-spacing:1.6px; text-transform:uppercase; margin-bottom:3px; }
.swcard-links{ margin-top:20px; display:flex; flex-wrap:wrap; gap:8px; }
.swcard-links a{
  display:inline-flex; align-items:center; gap:7px;
  padding:8px 14px; border-radius:999px;
  border:1px solid rgba(255,255,255,.17); background:rgba(255,255,255,.05);
  color:var(--ink); text-decoration:none; font-size:var(--t-label); letter-spacing:.2px;
  transition:background .18s var(--ease), border-color .18s var(--ease);
}
.swcard-links a:hover{ background:rgba(255,255,255,.11); border-color:rgba(255,255,255,.3); }
.swcard-links a:focus-visible{ outline:2px solid var(--uab-gold); outline-offset:2px; }
.swcard-links svg{ width:13px; height:13px; flex:none; }
.swcard-cite{
  margin-top:18px; padding-top:15px; border-top:1px solid rgba(255,255,255,.08);
  font-size:var(--t-label); line-height:1.6; color:var(--ink-faint);
}
.swcard-cite a{ color:var(--ink-soft); }

/* ── featured publications (publications.html) ───────────────────────── */
.feat{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.feat > article{
  display:flex; flex-direction:column; min-width:0; overflow-wrap:anywhere;
  background:var(--card); color:var(--card-ink);
  border-radius:22px; border-top:3px solid var(--uab-gold);
  padding:clamp(22px,2.8vw,30px);
  box-shadow:0 24px 56px rgba(2,18,9,.30);
}
/* an odd one out takes the whole row rather than sitting in half of one —
   this is why the block reads the same whether there are four or five */
.feat > article:last-child:nth-child(odd){ grid-column:1 / -1; }
.feat .venue{
  font-size:var(--t-micro); font-weight:500; letter-spacing:2.1px; text-transform:uppercase;
  color:var(--uab-green);
}
.feat .venue span{ color:var(--card-label); }
.feat .venue span::before{ content:"\00a0\00b7\00a0"; }
.feat h3{
  margin-top:11px; font-size:var(--t-title);
  font-weight:500; line-height:1.34; letter-spacing:-.2px;
}
.feat .au{ margin-top:12px; font-size:var(--t-label); line-height:1.62; color:var(--card-label); }
.feat .au .lab{ font-weight:600; color:var(--card-ink); }
.feat .au sup{ font-size:.72em; vertical-align:super; line-height:0; }
.feat .meta{
  margin-top:auto; padding-top:16px;
  font-size:var(--t-label); line-height:1.6; color:var(--card-label);
}
.feat .meta a{ color:var(--uab-green); text-decoration:underline; text-underline-offset:2px; }
.feat .note{
  align-self:start; margin-top:12px;
  padding:6px 12px; border-radius:999px;
  background:rgba(253,185,19,.16); border:1px solid rgba(253,185,19,.34);
  font-size:var(--t-label); line-height:1.45; color:var(--note-ink);
}
.feat .note a{ color:var(--note-ink); }

/* ── the list, grouped by year ───────────────────────────────────────
   The year lives in its own gutter column and sticks while its papers
   scroll past, so you always know which year you are reading. It replaces
   the old running 1..30 counter, which stopped meaning anything once the
   list was no longer one flat sequence. */
.pubyear{ display:grid; grid-template-columns:96px 1fr; gap:0 24px; }
.pubyear + .pubyear{ border-top:1px solid rgba(11,36,23,.10); }
.pubyear > h3{
  grid-column:1; align-self:start;
  position:sticky; top:calc(var(--hdr-h) + 20px);
  padding-top:21px;
  font-size:var(--t-section); font-weight:300; letter-spacing:-.6px;
  color:var(--card-ink); font-variant-numeric:tabular-nums;
}
.pubyear > .pubs{ grid-column:2; counter-reset:none; }
.pubyear > .pubs li{ padding-left:0; }
.pubyear > .pubs li::before{ content:none; }
.pubyear:last-child > .pubs li:last-child{ border-bottom:0; }

@media (max-width:720px){
  /* minmax(0,...) rather than a bare 1fr: a plain fr track is floored at
     min-content, and a long unbroken title or DOI pushed the card past the
     viewport on very narrow screens. */
  .feat{ grid-template-columns:minmax(0,1fr); }
  .feat > article:last-child:nth-child(odd){ grid-column:auto; }
  .pubyear{ grid-template-columns:1fr; gap:0; }
  .pubyear > h3{ position:static; grid-column:1; padding-top:22px; padding-bottom:2px; }
  .pubyear > .pubs{ grid-column:1; }
}

/* ═══ target size (WCAG 2.2 SC 2.5.8) ═══════════════════════════════════
   Three link groups sat under the 24px minimum: publication metadata at
   17px, the chip link at the foot of a featured publication at 16px, and
   the contact block at 22px.

   Vertical padding on a non-replaced *inline* box grows the hit area
   without touching the line box, so these are all at least 24px tall now
   and nothing on any page moved. The links carry no background, so there
   is nothing visible to give the padding away either.

   The one paired change is the line-height on the two .meta rows. They run
   at 21.6px, so a 25px target would have overlapped the row above it
   whenever the metadata wrapped, and overlapping targets defeat the point.
   26px keeps consecutive rows clear of each other.

   The news link this also catches (.post-b p a) sits mid-sentence and is
   covered by the inline exception, so it did not have to be fixed. It was
   two pixels short and the padding is free, so it was.

   If you restyle any of these, re-measure. What the rule constrains is the
   height of the <a> itself, not of the chip or the paragraph around it.  */
.pubs .meta,
.feat .meta{
  /* 1.625rem is 26px at the default, so this did not change; in rem it grows
     with the reader's font size, which the 24px-target padding below needs it
     to do. overflow-wrap because a DOI is one unbreakable 30-character token
     and at a large reader default it pushed the whole list past the viewport. */
  line-height:1.625rem; overflow-wrap:anywhere;
}
.pubs .meta a,
.feat .meta a{ padding-block:4px; }        /* 17 -> 25 */
.note a{ padding-block:5px; }              /* 16 -> 26, fills the chip */
.cblock .big a{ padding-block:2px; }       /* 22 -> 26, inside a 27.5px line */
.post-b p a{ padding-block:3px; }          /* 19.5 -> 25.5 */

/* ═══ research atlas ════════════════════════════════════════════════════
   Hallmark redesign: research-atlas · audience: prospective trainees
   · purpose: make the lab's aging-specific questions scannable

   The research page uses one visible spine for its projects. Figures keep
   their paper treatment, but the rows themselves are not cards: the number,
   question, focus tags and figure form one editorial reading path.            */
.research-atlas .wrap{
  padding-top:clamp(52px,7vw,86px);
  padding-bottom:0;
}
.research-atlas .atlas-premise{
  display:grid;
  grid-template-columns:minmax(0,.52fr) minmax(0,1fr);
  gap:clamp(28px,5vw,64px);
  align-items:center;
}
.research-atlas .atlas-premise-copy{ min-width:0; }
.research-atlas .atlas-premise .lead{
  margin-top:24px; max-width:30ch;
  font-size:var(--t-title); line-height:1.38;
}
.research-atlas .atlas-premise .lead-note{
  margin-top:18px; max-width:42ch;
  font-size:var(--t-body); line-height:1.72;
}
.research-atlas .atlas-premise-figure{ min-width:0; }
.research-atlas .research-scope{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px; margin-top:32px; padding:17px 0 16px;
  border-top:1px solid var(--rule); border-bottom:1px solid var(--rule);
}
.research-atlas .research-scope div{ min-width:0; }
.research-atlas .research-scope dt{
  font-size:var(--t-micro); font-weight:500; letter-spacing:1.7px;
  line-height:1.35; text-transform:uppercase; color:var(--uab-gold);
}
.research-atlas .research-scope dd{
  margin-top:6px; font-size:var(--t-label); line-height:1.45; color:var(--ink);
}

.research-atlas .atlas-index{ padding-top:clamp(60px,8vw,104px); }
.research-atlas .research-index{
  list-style:none; display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid var(--rule); border-bottom:1px solid var(--rule);
}
.research-atlas .research-index li{ min-width:0; }
.research-atlas .research-index li + li{ border-left:1px solid var(--rule); }
.research-atlas .research-index a{
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:14px;
  align-items:start; min-height:100%; padding:22px 20px 24px;
  color:var(--ink); text-decoration:none;
  transition:background .18s var(--ease), color .18s var(--ease);
}
.research-atlas .research-index li:first-child a{ padding-left:0; }
.research-atlas .research-index li:last-child a{ padding-right:0; }
.research-atlas .research-index a:hover{ background:rgba(255,255,255,.035); }
.research-atlas .index-no{
  padding-top:2px; font-size:var(--t-label); font-weight:500;
  color:var(--uab-gold); font-variant-numeric:tabular-nums;
}
.research-atlas .index-copy{ min-width:0; }
.research-atlas .index-copy strong{
  display:block; font-size:var(--t-title); line-height:1.25;
  font-weight:400; letter-spacing:-.2px; overflow-wrap:anywhere;
}
.research-atlas .index-copy span{
  display:block; margin-top:9px; font-size:var(--t-label);
  line-height:1.5; color:var(--ink-soft);
}
.research-atlas .index-arrow{
  padding-top:1px; color:var(--ink-faint); font-size:var(--t-lead);
  line-height:1; transition:transform .18s var(--ease), color .18s var(--ease);
}
.research-atlas .research-index a:hover .index-arrow{
  color:var(--uab-gold); transform:translateX(3px);
}
.research-atlas .index-tool{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 20px;
  margin-top:16px; font-size:var(--t-label); line-height:1.5;
  color:var(--ink-faint);
}
.research-atlas .index-tool a{
  padding-block:3px; color:var(--ink); text-decoration:underline; text-underline-offset:3px;
}
.research-atlas .index-tool a:hover{ color:var(--uab-gold); }

.research-atlas .projects-atlas{ padding-top:clamp(62px,8vw,108px); }
.research-atlas .project-list{ margin-top:28px; }

.research-atlas .tool-section{ padding-top:clamp(62px,8vw,108px); }
.research-atlas .tool-panel{
  display:grid; grid-template-columns:minmax(0,1fr);
  min-width:0; overflow:hidden; border:1px solid rgba(255,255,255,.10);
  border-radius:26px; background:var(--ground-deep);
  box-shadow:0 26px 60px rgba(2,18,9,.42);
}
.research-atlas .tool-mark{
  display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:24px;
  min-width:0; padding:clamp(22px,3.5vw,42px);
  background:var(--ink); color:var(--card-ink);
}
.research-atlas .tool-mark img{ display:block; width:min(100%,560px); height:auto; }
.research-atlas .tool-mark p{
  flex:none;
  font-size:var(--t-micro); font-weight:500; letter-spacing:1.8px;
  line-height:1.4; text-transform:uppercase; color:var(--card-label);
}
.research-atlas .tool-copy{
  min-width:0; padding:clamp(24px,4vw,46px); background:var(--ground-lift);
}
.research-atlas .tool-copy h3{
  color:var(--ink); font-size:var(--t-title); line-height:1.25;
  font-weight:400; letter-spacing:-.2px; overflow-wrap:anywhere;
}
.research-atlas .tool-copy > p{
  margin-top:14px; max-width:58ch; color:var(--ink-soft);
  font-size:var(--t-body); line-height:1.7;
}
.research-atlas .tool-links{
  display:flex; flex-wrap:wrap; gap:8px; margin-top:24px;
}
.research-atlas .tool-link{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  min-height:40px; padding:9px 14px; border:1px solid rgba(255,255,255,.18);
  border-radius:999px; background:rgba(255,255,255,.045);
  color:var(--ink); text-decoration:none; font-size:var(--t-label);
  line-height:1.25; transition:background .18s var(--ease), border-color .18s var(--ease);
}
.research-atlas .tool-link:hover{ background:rgba(255,255,255,.11); border-color:rgba(255,255,255,.32); }
.research-atlas .tool-link--primary{ background:var(--card); border-color:var(--card); color:var(--card-ink); }
.research-atlas .tool-link--primary:hover{ background:var(--ink); border-color:var(--ink); }
.research-atlas .tool-link:focus-visible{ outline:2px solid var(--uab-gold); outline-offset:3px; }
.research-atlas .tool-link svg{ width:14px; height:14px; flex:none; }
.research-atlas .why-section{ padding-top:clamp(62px,8vw,108px); }
.research-atlas .why-panel{
  padding:clamp(26px,4vw,46px); border-radius:26px;
  background:var(--card); color:var(--card-ink);
  box-shadow:0 26px 60px rgba(2,18,9,.30);
}
.research-atlas .why-lede{
  font-size:var(--t-lead); line-height:1.55;
  font-weight:400; letter-spacing:-.1px; color:var(--card-ink);
}
.research-atlas .why-copy{
  margin-top:clamp(24px,3.6vw,40px);
  padding-top:clamp(24px,3.6vw,40px);
  border-top:1px solid rgba(11,36,23,.10);
}
.research-atlas .why-copy p{
  font-size:var(--t-body); line-height:1.7; color:var(--card-ink);
}
.research-atlas .why-copy p + p{ margin-top:1em; }

.phero--research{
  min-height:clamp(220px, calc(170px + 9vw), 280px);
}

.research-atlas .kicker{ margin-bottom:12px; }

/* project cards: full-width paper chapters */
.research-atlas .project-card{
  /* inherits .sheet background, radius, padding and shadow */
}
.research-atlas .project-card + .project-card{ margin-top:28px; }
.research-atlas .project-card-hd{
  display:flex; flex-direction:column; align-items:flex-start; gap:10px;
}
.research-atlas .project-card-no{
  font-size:var(--t-page); font-weight:300; line-height:1;
  color:var(--card-label);
}
.research-atlas .project-card-hd h3{
  font-size:var(--t-section); line-height:1.15;
  font-weight:400; letter-spacing:-.3px; color:var(--card-ink);
}
.research-atlas .project-card-lede{
  margin-top:18px; max-width:66ch;
  font-size:var(--t-body); line-height:1.7; color:var(--card-ink);
}
.research-atlas .project-card .chips{ margin-top:18px; }
.research-atlas .project-card .rfig{ margin-top:28px; }
.research-atlas .project-card .rfig img{ padding:8px; }

/* technique chips */
.chips{
  display:flex; flex-wrap:wrap; gap:8px;
  list-style:none; margin:0; padding:0;
}
.chips li{
  padding:6px 12px; border-radius:999px;
  background:rgba(26,86,50,.08); border:1px solid rgba(26,86,50,.16);
  color:var(--chip-ink);
  font-size:var(--t-label); line-height:1.35;
}

/* tool panel: horizontal on desktop */
.research-atlas .tool-panel{
  grid-template-columns:minmax(0,.42fr) minmax(0,1fr);
  align-items:stretch;
}
.research-atlas .tool-mark{
  flex-direction:column; justify-content:center; align-items:flex-start;
}
.research-atlas .tool-mark p{ margin-top:12px; }

/* gallery as a responsive grid, native ratios */
.research-atlas .microscope-section{ padding-top:clamp(62px,8vw,108px); }
.research-atlas .research-gallery{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px;
}
.research-atlas .rg-shot{
  min-width:0; margin:0; overflow:hidden; border-radius:14px;
  background:var(--ground-deep); box-shadow:0 22px 50px rgba(2,18,9,.34);
}
.research-atlas .rg-shot--wide{ grid-column:1 / -1; }
.research-atlas .rg-shot img{ display:block; width:100%; height:auto; }

@media (max-width:900px){
  .research-atlas .atlas-premise{
    grid-template-columns:minmax(0,1fr); gap:30px; align-items:start;
  }
  .research-atlas .atlas-premise-figure{ max-width:760px; }
}

@media (max-width:820px){
  .research-atlas .research-index{ grid-template-columns:minmax(0,1fr); }
  .research-atlas .research-index li + li{ border-top:1px solid var(--rule); border-left:0; }
  .research-atlas .research-index a,
  .research-atlas .research-index li:first-child a,
  .research-atlas .research-index li:last-child a{ padding:18px 0 20px; }
  .research-atlas .tool-panel{ grid-template-columns:minmax(0,1fr); }
  .research-atlas .tool-mark img{ max-width:420px; }
}

@media (max-width:560px){
  .research-atlas .research-scope{ grid-template-columns:minmax(0,1fr); gap:12px; }
  .research-atlas .research-scope dd{ margin-top:3px; }
  .research-atlas .index-copy strong{ font-size:var(--t-lead); }
  .research-atlas .tool-section .sec-note{ white-space:normal; }
  .research-atlas .tool-mark{ flex-direction:column; align-items:flex-start; gap:16px; }
  .research-atlas .research-gallery{ grid-template-columns:minmax(0,1fr); gap:16px; }
  .research-atlas .rg-shot--wide{ grid-column:auto; }
}
