/* Hall Group site
   UT Austin brand: burnt orange #BF5700 (solid only, never tinted), white, charcoal #333F48,
   limestone #D6D2C4, tangerine #F8971F for small accents. Web typeface: Libre Franklin.
   Presentation inspired by Apple product pages: big centered type, generous space,
   rounded tiles, a thin frosted menu bar, gentle fade-in on scroll. */

:root {
  --orange: #bf5700;
  --orange-dark: #9c4700;   /* hover state only (a shade, not a tint) */
  --charcoal: #333f48;
  --night: #161c21;         /* charcoal, darkened, for dark sections */
  --night-tile: #222a31;
  --limestone: #d6d2c4;
  --stone-bg: #f5f3ee;      /* limestone, screened */
  --tangerine: #f8971f;
  --ink: #1d2328;
  --ink-2: #47525b;
  --ink-3: #6e777e;
  --line: #e4e1d9;
  --font: "Libre Franklin", Arial, Helvetica, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1000px;
  --wrap-wide: 1200px;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(.25,.1,.25,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .45em; color: var(--charcoal); line-height: 1.1; letter-spacing: -0.022em; font-weight: 700; }
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.032em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 21px; }
h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 1.6em 0 .6em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .85em; background: var(--stone-bg); padding: .12em .4em; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
.eyebrow, .kicker { font-size: 15px; font-weight: 700; color: var(--orange); margin: 0 0 12px; letter-spacing: -0.005em; }
.kicker a { color: inherit; }

/* Header: thin frosted bar with the UT logo */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.07); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 56px; max-width: var(--wrap-wide); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand:hover { text-decoration: none; }
.brand-ut { height: 30px; width: auto; }
.brand-ut-white { display: none; }
.brand-rule { width: 1px; height: 24px; background: var(--limestone); }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.025em; color: var(--charcoal); }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { font-size: 13px; font-weight: 500; color: rgba(29,35,40,.82); padding: 0 11px; line-height: 56px; transition: color .2s; }
.site-nav a:hover { color: var(--orange); text-decoration: none; }
.site-nav a[aria-current] { color: var(--orange); font-weight: 600; }
.site-nav a.nav-cta { background: var(--orange); color: #fff; line-height: 1; padding: 8px 15px; border-radius: 999px; margin-left: 10px; font-weight: 600; }
.site-nav a.nav-cta:hover { background: var(--orange-dark); color: #fff; }
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--charcoal); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 16px; } .nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* Buttons and links */
.btn { display: inline-block; background: var(--orange); color: #fff; font-size: 17px; font-weight: 600; padding: 12px 24px; border-radius: 999px; border: 0; transition: background .2s, color .2s; }
.btn:hover { background: var(--orange-dark); color: #fff; text-decoration: none; }
.btn-ghost, .btn-outline { background: transparent; color: var(--charcoal); box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.btn-ghost:hover, .btn-outline:hover { background: var(--charcoal); color: #fff; }
.btn-white { background: #fff; color: var(--orange); }
.btn-white:hover { background: var(--night); color: #fff; }
.link-arrow { font-size: 17px; font-weight: 600; color: var(--orange); white-space: nowrap; }
.link-arrow::after { content: " ›"; font-size: 1.2em; line-height: 0; position: relative; top: 1px; transition: margin-left .2s; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow.on-orange { color: #fff; }

/* Fade-up on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Hero */
.hero { padding: 88px 0 72px; background: linear-gradient(180deg, #fff 0%, #fff 45%, var(--stone-bg) 100%); overflow: hidden; }
.hero .eyebrow { font-size: 17px; }
.hero-title { font-size: clamp(48px, 8vw, 92px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; margin-bottom: 22px; }
.hero-title .accent { color: var(--orange); }
.hero-sub { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.4; color: var(--ink-3); max-width: 720px; margin: 0 auto 30px; letter-spacing: -0.015em; }
.hero-actions { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-film { margin: 64px auto 0; max-width: 1080px; }
.hero-film video { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--r-xl); box-shadow: 0 4px 10px rgba(29,35,40,.06), 0 40px 80px rgba(29,35,40,.20); }
.hero-film figcaption { font-size: 13px; color: var(--ink-3); margin-top: 14px; text-align: center; }
.hero-funders { text-align: center; font-size: 14px; color: var(--ink-3); margin: 28px 0 0; letter-spacing: .01em; }
.hero-funders strong { color: var(--charcoal); font-weight: 700; }

/* Sections */
.panel { padding: 112px 0; }
.panel-stone { background: var(--stone-bg); }
.section-title { font-size: clamp(38px, 5.6vw, 56px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; text-align: center; margin-bottom: 14px; }
.section-title.left { text-align: left; margin: 0; }
.section-title.on-dark { color: #fff; }
.section-sub { font-size: 21px; line-height: 1.4; color: var(--ink-3); max-width: 700px; margin: 0 auto 56px; text-align: center; letter-spacing: -0.015em; }
.section-sub.on-dark { color: #a7b0b6; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.row-head h2 { margin: 0; }

/* Results (dark) */
.stats { background: var(--night); padding: 112px 0; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat { display: flex; flex-direction: column; background: var(--night-tile); border-radius: var(--r-xl); padding: 40px 38px 34px; color: #fff; transition: transform .4s var(--ease), background .4s var(--ease); }
.stat:hover { text-decoration: none; transform: scale(1.015); background: #27313a; }
.stat-q { font-size: 19px; font-weight: 600; color: #fff; }
.stat-big { font-size: clamp(44px, 6vw, 68px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 12px 0 14px; color: var(--orange); white-space: nowrap; }
.stat:nth-child(even) .stat-big { color: #fff; }
.stat-a { font-size: 16px; color: #a7b0b6; line-height: 1.45; }
.stat-src { font-size: 12.5px; color: #7d878e; margin-top: auto; padding-top: 22px; }

/* Bento tiles */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { grid-column: span 3; background: #fff; border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.tile:hover { text-decoration: none; transform: scale(1.012); box-shadow: 0 24px 60px rgba(29,35,40,.10); }
.tile-3, .tile-4, .tile-5 { grid-column: span 2; }
.tile-6 { grid-column: span 6; flex-direction: row; }
.tile-text { padding: 34px 34px 20px; }
.tile-text h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.tile-text p { color: var(--ink-3); font-size: 16px; margin-bottom: 12px; }
.tile-text .link-arrow { font-size: 16px; }
.tile-img { margin-top: auto; aspect-ratio: 16/10; overflow: hidden; background: #111; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-3 .tile-text, .tile-4 .tile-text, .tile-5 .tile-text { padding: 28px 26px 16px; }
.tile-3 h3, .tile-4 h3, .tile-5 h3 { font-size: 22px; }
.tile-6 .tile-text { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px; }
.tile-6 .tile-img { flex: 1.2; aspect-ratio: auto; min-height: 340px; margin: 0; }

/* Covers */
.covers { display: flex; gap: 44px; justify-content: center; margin: 0 auto 44px; perspective: 1400px; }
.covers a { flex: 0 1 290px; }
.covers img { border-radius: 10px; box-shadow: 0 30px 60px rgba(29,35,40,.20), 0 8px 18px rgba(29,35,40,.08); transition: transform .7s var(--ease); }
.covers a:first-child img { transform: rotateY(9deg); }
.covers a:last-child img { transform: rotateY(-9deg); }
.covers a:hover img { transform: none; }

/* Placement */
.place-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.place-tile { background: #fff; border-radius: var(--r-xl); padding: 44px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.place-count { font-size: 104px; font-weight: 800; line-height: .95; letter-spacing: -0.05em; color: var(--orange); }
.place-where { font-size: 23px; font-weight: 700; color: var(--charcoal); margin-top: 12px; letter-spacing: -0.02em; }
.place-note { font-size: 14px; color: var(--ink-3); margin-top: 6px; }

/* News cards */
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: var(--stone-bg); border-radius: var(--r-lg); padding: 30px; color: var(--ink); display: flex; flex-direction: column; transition: transform .4s var(--ease); }
.news-card:hover { text-decoration: none; transform: translateY(-4px); }
.news-meta { font-size: 12px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.news-card h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.02em; }
.news-card p { font-size: 15px; color: var(--ink-3); margin: 0; }

/* CTA */
.cta { background: var(--orange); padding: 128px 0; color: #fff; }
.cta-title { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; color: #fff; margin-bottom: 20px; }
.cta-sub { font-size: 21px; line-height: 1.4; max-width: 640px; margin: 0 auto 32px; color: #fff; }

/* Inner page head */
.page-head { padding: 96px 0 64px; text-align: center; }
.page-head h1 { font-size: clamp(44px, 7vw, 76px); letter-spacing: -0.04em; margin: 0 auto 18px; max-width: 13em; }
.lede { font-size: clamp(19px, 2vw, 23px); line-height: 1.4; color: var(--ink-3); max-width: 720px; margin: 0 auto; letter-spacing: -0.015em; }
.page-body { padding-bottom: 120px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 8px; }
.chip { font-family: inherit; font-size: 14px; font-weight: 600; padding: 9px 17px; border: 0; border-radius: 999px; background: var(--stone-bg); color: var(--charcoal); cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { background: var(--limestone); text-decoration: none; }
.chip.is-on { background: var(--charcoal); color: #fff; }
.chip span { color: var(--ink-3); font-weight: 500; margin-left: 3px; }
.chip.is-on span { color: #b9c1c6; }

/* Research page */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 80px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 72px; }
.area:nth-of-type(even) .area-img { order: 2; }
.area-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-xl); background: #111; }
.area-text h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.area-text > p { color: var(--ink-2); }
.area-text h4 { color: var(--orange); }
.mini-pubs { list-style: none; padding: 0; margin: 0; }
.mini-pubs li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; }
.mini-pubs a { color: var(--charcoal); font-weight: 600; }
.mini-pubs a:hover { color: var(--orange); text-decoration: none; }
.mini-pubs .muted { display: block; margin-top: 3px; font-size: 13.5px; }
.area-lab { padding: 100px 0 40px; text-align: center; }
.area-lab h2, .heritage h2 { font-size: clamp(34px, 4.6vw, 48px); font-weight: 800; letter-spacing: -0.035em; }
.lab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 40px 0; text-align: left; }
.lab-grid figure { margin: 0; background: var(--stone-bg); border-radius: var(--r-xl); overflow: hidden; }
.lab-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #111; }
.lab-grid figcaption { font-size: 17px; font-weight: 700; color: var(--charcoal); padding: 20px 26px 24px; line-height: 1.3; }
.area-lab > .muted { max-width: 720px; margin: 0 auto; }
.heritage { padding: 64px 0 0; text-align: center; }
.heritage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; text-align: left; }
.heritage-grid > div { background: var(--stone-bg); border-radius: var(--r-lg); padding: 28px; }
.heritage-grid h3 { font-size: 19px; }
.heritage-grid p { font-size: 15px; color: var(--ink-3); margin: 0; }

/* People */
.pi { display: grid; grid-template-columns: 240px 1fr; gap: 52px; align-items: start; background: var(--stone-bg); border-radius: var(--r-xl); padding: 48px; }
.pi h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.035em; }
.pi .kicker { font-size: 14px; }
.pi-title { font-size: 17px; font-weight: 600; color: var(--charcoal); }
.pi > div > p { color: var(--ink-2); }
.pi-contact { font-size: 15px; }
.honors { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.honors li { font-size: 13px; font-weight: 600; color: var(--charcoal); background: #fff; border-radius: 999px; padding: 6px 14px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--charcoal); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 23px; flex: none; overflow: hidden; letter-spacing: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 240px; height: 240px; border-radius: var(--r-xl); font-size: 72px; background: var(--orange); }
.people-group { padding: 80px 0 0; }
.people-group > h2 { text-align: center; font-size: 40px; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 32px; }
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; background: var(--stone-bg); border-radius: var(--r-lg); padding: 32px 22px; }
.person h3 { margin: 0 0 4px; font-size: 19px; }
.person h3 a { color: var(--charcoal); }
.person p { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.4; }
.alumni { width: 100%; border-collapse: collapse; font-size: 15px; }
.alumni th { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--limestone); }
.alumni td { padding: 12px; border-bottom: 1px solid var(--line); }
.alumni td:first-child { font-weight: 600; color: var(--charcoal); }
.people-group > .muted { text-align: center; margin-top: 24px; font-size: 14px; }

/* Publications */
.pub-tools { position: sticky; top: 56px; z-index: 5; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); padding: 18px 0 14px; margin-bottom: 8px; text-align: center; }
#pub-search { width: 100%; max-width: 560px; font: inherit; font-size: 17px; padding: 12px 20px; border: 0; border-radius: var(--r-md); background: var(--stone-bg); margin-bottom: 14px; }
#pub-search:focus { outline: 3px solid rgba(191,87,0,.35); }
.pub-year h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--charcoal); margin: 56px 0 8px; }
.pubs { list-style: none; padding: 0; margin: 0; }
.pub { display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pub-type { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding-top: 3px; }
.t-journal { color: var(--orange); }
.pub-title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.pub-title a { color: var(--charcoal); }
.pub-title a:hover { color: var(--orange); text-decoration: none; }
.pub-authors { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.pub-authors b { color: var(--charcoal); font-weight: 700; }
.pub-venue { font-size: 14px; color: var(--ink-3); }
.badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; vertical-align: 1px; letter-spacing: .01em; }
.badge-cover { background: var(--orange); color: #fff; }
.badge-award { background: var(--charcoal); color: #fff; }
.badge-migrated { background: var(--stone-bg); color: var(--ink-2); }
.badge-needs-check { background: var(--tangerine); color: var(--ink); }
.note { margin-top: 48px; text-align: center; font-size: 14px; }

/* Join */
.join-grid { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
.join-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 76px; }
.deadline { background: var(--orange); color: #fff; border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column; text-align: center; }
.deadline .kicker { color: #fff; font-size: 14px; opacity: .9; }
.deadline-date { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 2px 0 8px; }
.placement { background: var(--night); color: #fff; border-radius: var(--r-xl); padding: 28px; }
.placement h3 { font-size: 19px; text-align: center; color: #fff; }
.placement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin-top: 16px; }
.placement-grid > div { display: flex; flex-direction: column; align-items: center; }
.p-count { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--orange); }
.p-where { font-size: 13px; font-weight: 600; margin-top: 6px; line-height: 1.25; color: #dfe4e7; }
.equip { background: var(--stone-bg); border-radius: var(--r-xl); padding: 28px; }
.equip h3 { font-size: 19px; }
.equip ul { margin: 0; padding-left: 1.1em; font-size: 15px; color: var(--ink-2); }
.equip li { margin-bottom: 4px; }
.side-film { margin: 0; }
.side-film video { width: 100%; aspect-ratio: 16/9; border-radius: var(--r-lg); background: #000; }
.side-film figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; text-align: center; }
.steps li { margin-bottom: .6em; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.place { background: var(--stone-bg); border-radius: var(--r-xl); padding: 40px; }
.place .kicker { font-size: 14px; }
.place h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.place ol, .place ul { padding-left: 1.2em; color: var(--ink-2); }
.place .btn-ghost { margin-top: 8px; font-size: 15px; padding: 9px 18px; }
.facilities { padding: 100px 0 20px; scroll-margin-top: 72px; }
.facilities > h2 { text-align: center; font-size: 44px; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 36px; }
.fac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fac-grid > div { border-top: 1px solid var(--limestone); padding-top: 20px; }
.fac-grid h3 a { color: var(--charcoal); }
.fac-grid h3 a:hover { color: var(--orange); }
.fac-grid p { color: var(--ink-3); font-size: 15px; }
.contact-box { margin-top: 60px; padding: 48px; border-radius: var(--r-xl); background: var(--night); color: #dfe4e7; text-align: center; }
.contact-box h2 { color: #fff; }
.contact-box a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-box .muted { color: #a7b0b6; margin: 0; }

/* Prose */
.prose { max-width: 700px; }
.prose h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 1.2em 0 1.8em; display: block; overflow-x: auto; }
.prose th { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); text-align: left; border-bottom: 1px solid var(--limestone); padding: 10px 12px; white-space: nowrap; }
.prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.prose blockquote { margin: 1.4em 0; padding: 18px 22px; border-radius: var(--r-md); background: var(--stone-bg); color: var(--ink-2); }
.prose blockquote p { margin: 0; }
.prose pre { background: var(--night); color: #e6eaed; padding: 18px 20px; border-radius: var(--r-md); overflow-x: auto; font-size: 13px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0 1.2em; }

/* Wiki: docs style */
.wiki-head { padding: 72px 0 40px; text-align: left; border-bottom: 1px solid var(--line); }
.wiki-head .wrap { max-width: var(--wrap-wide); }
.wiki-head h1 { margin: 0 0 12px; max-width: none; font-size: clamp(36px, 5vw, 52px); }
.wiki-head .lede { margin: 0; max-width: 680px; font-size: 21px; }
.wiki-head .kicker { font-size: 14px; }
.wiki-meta { font-size: 13px; color: var(--ink-3); margin: 18px 0 0; }
.wiki-grid { max-width: var(--wrap-wide); display: grid; grid-template-columns: 240px 1fr; gap: 64px; padding-top: 48px; padding-bottom: 120px; }
.wiki-side { position: sticky; top: 80px; align-self: start; font-size: 14px; }
.wiki-side h4 { margin: 1.6em 0 .4em; color: var(--charcoal); font-size: 12px; }
.wiki-side h4:first-child { margin-top: 0; }
.wiki-side ul { list-style: none; padding: 0; margin: 0; }
.wiki-side a { display: block; padding: 6px 12px; color: var(--ink-3); border-radius: 8px; }
.wiki-side a:hover { color: var(--charcoal); background: var(--stone-bg); text-decoration: none; }
.wiki-side a[aria-current] { color: var(--orange); background: var(--stone-bg); font-weight: 700; }
.wiki-foot { font-size: 14px; color: var(--ink-3); }
.wiki-index { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wiki-cat { background: var(--stone-bg); border-radius: var(--r-xl); padding: 36px; }
.wiki-cat h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: .2em; }
.wiki-cat > .muted { font-size: 15px; }
.wiki-list { list-style: none; padding: 0; margin: 12px 0 0; }
.wiki-list li { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid var(--limestone); }
.wiki-list a { font-weight: 700; font-size: 17px; color: var(--charcoal); }
.wiki-list a:hover { color: var(--orange); text-decoration: none; }
.wiki-list span { font-size: 14px; color: var(--ink-3); }
.wiki-list .wiki-li-meta { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.empty { font-size: 14px; color: var(--ink-3); background: #fff; padding: 16px 18px; border-radius: var(--r-sm); margin-top: 14px; }
.callout { margin-top: 20px; padding: 36px; border-radius: var(--r-xl); background: var(--night); color: #a7b0b6; }
.callout h3 { color: #fff; }
.callout strong { color: #fff; }
.callout p { margin: 0; }
.callout-note { background: var(--stone-bg); color: var(--ink-2); margin: 0 0 2em; padding: 16px 20px; font-size: 14px; border-radius: var(--r-md); }
.callout-note strong { color: var(--charcoal); }

/* News page */
.news-full { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; }
.news-full li { display: grid; grid-template-columns: 1fr 140px; grid-template-areas: "when thumb" "main thumb"; column-gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: center; }
.news-when { grid-area: when; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.news-when .news-date { font-size: 14px; color: var(--ink-3); }
.news-when .news-tag { font-size: 12px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; }
.news-main { grid-area: main; }
.news-thumb { grid-area: thumb; width: 140px; height: 105px; object-fit: cover; border-radius: var(--r-md); }
.news-main h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.news-main h3 a { color: var(--charcoal); }
.news-main h3 a:hover { color: var(--orange); text-decoration: none; }
.news-main p { margin: 0; color: var(--ink-3); }

/* Footer */
.site-footer { background: var(--night); color: #a7b0b6; padding: 64px 0 28px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; max-width: var(--wrap-wide); }
.footer-brand img { height: 42px; width: auto; margin-bottom: 18px; }
.footer-brand p { line-height: 1.6; margin: 0; }
.footer-brand strong { color: #fff; font-size: 15px; }
.site-footer h4 { color: #fff; margin: 4px 0 14px; letter-spacing: .08em; }
.footer-grid a, .footer-grid span { display: block; color: #dfe4e7; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--tangerine); text-decoration: none; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: #7d878e; max-width: var(--wrap-wide); }
.footer-base a { color: #dfe4e7; }

/* Responsive */
@media (max-width: 1000px) {
  .site-nav a { padding: 0 8px; }
  .tile, .tile-3, .tile-4, .tile-5 { grid-column: span 3; }
  .tile-6 { grid-column: span 6; }
  .area { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; }
  .area:nth-of-type(even) .area-img { order: 0; }
  .area-img img { aspect-ratio: 16/10; }
  .heritage-grid { grid-template-columns: 1fr 1fr; }
  .join-grid { grid-template-columns: 1fr; gap: 40px; }
  .join-side { position: static; }
  .wiki-grid { grid-template-columns: 1fr; gap: 32px; }
  .wiki-side { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 28px; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .pi { grid-template-columns: 1fr; gap: 28px; padding: 36px; }
  .avatar-lg { width: 160px; height: 160px; font-size: 52px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; height: calc(100vh - 56px); flex-direction: column; align-items: stretch; gap: 0; background: rgba(255,255,255,.98); padding: 16px 32px; }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 28px; font-weight: 700; line-height: 1.2; padding: 10px 0; color: var(--charcoal); letter-spacing: -0.03em; }
  .site-nav a.nav-cta { background: none; color: var(--orange); padding: 10px 0; margin: 0; border-radius: 0; font-weight: 700; }
}
@media (max-width: 734px) {
  .brand-ut { height: 26px; }
  .brand-name { font-size: 17px; }
  .hero { padding: 56px 0 48px; }
  .hero-title br { display: none; }
  .hero-film { margin-top: 40px; }
  .hero-film video { border-radius: var(--r-lg); }
  .panel, .stats { padding: 80px 0; }
  .cta { padding: 96px 0; }
  .section-sub { font-size: 19px; margin-bottom: 40px; }
  .stat-grid, .news-cards, .visit-grid, .fac-grid, .wiki-index, .heritage-grid, .lab-grid, .people-grid { grid-template-columns: 1fr; }
  .stat { padding: 32px 26px 28px; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile-3, .tile-4, .tile-5, .tile-6 { grid-column: auto; flex-direction: column; }
  .tile-6 .tile-text { padding: 28px 26px 16px; }
  .tile-6 .tile-img { aspect-ratio: 16/10; min-height: 0; }
  .covers { gap: 16px; }
  .place-grid { gap: 10px; }
  .place-tile { padding: 26px 8px; border-radius: var(--r-lg); }
  .place-count { font-size: 56px; }
  .place-where { font-size: 15px; }
  .place-note { display: none; }
  .row-head { flex-direction: column; gap: 8px; }
  .page-head { padding: 64px 0 44px; }
  .pub { grid-template-columns: 1fr; gap: 4px; }
  .place { padding: 28px; }
  .contact-box { padding: 32px 24px; }
  .news-full li { grid-template-columns: 1fr; grid-template-areas: "when" "main"; }
  .news-thumb { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .alumni th:nth-child(3), .alumni td:nth-child(3) { display: none; }
}

/* Filtering: the hidden attribute must win over display rules like .pub { display: grid } */
[hidden] { display: none !important; }

/* Prof. Hall's earlier (pre-UT) work */
.pub-early { margin-top: 72px; border-top: 1px solid var(--line); }
.pub-early > summary { cursor: pointer; list-style: none; padding: 28px 0 8px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--charcoal); }
.pub-early > summary::-webkit-details-marker { display: none; }
.pub-early > summary::before { content: "+"; display: inline-block; width: 28px; color: var(--orange); font-weight: 800; }
.pub-early[open] > summary::before { content: "–"; }
.pub-early > summary span { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-left: 6px; }
.pub-early .pub-year h2 { font-size: 26px; margin-top: 36px; }

/* Brand: group name with "Hall Lab" underneath */
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name small { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); margin-top: 2px; }
.on-dark .brand-name small { color: rgba(255,255,255,.7); }
@media (max-width: 520px) {
  .brand-ut { width: 84px; height: auto; }
  .brand-name { font-size: 14px; white-space: nowrap; }
  .brand-name small { font-size: 11px; }
}

/* Small credit line just above the footer */
.site-credit { padding: 0 0 32px; background: #fff; }
.site-credit p { margin: 0 auto; text-align: left; font-size: 12px; color: var(--ink-3); }
.credit-name { color: var(--orange); font-weight: 600; }

/* Gallery: albums of photo tiles, a larger lead photo per album, full-screen viewer */
.gallery-chips { margin-bottom: 56px; }
.album { scroll-margin-top: 80px; }
.album + .album { margin-top: 88px; }
.album-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.album-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.album-head p { margin: 0; font-size: 15px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo { position: relative; display: block; aspect-ratio: 3/2; overflow: hidden; border-radius: var(--r-lg); background: var(--stone-bg); cursor: zoom-in; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform .9s var(--ease); }
.photo:hover img { transform: scale(1.04); }
.photo:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.has-lead .photo:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; border-radius: var(--r-xl); }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 18px 14px; font-size: 14px; font-weight: 600; line-height: 1.3; color: #fff; background: linear-gradient(180deg, rgba(22,28,33,0) 0%, rgba(22,28,33,.78) 100%); pointer-events: none; }
.photo-cap { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.has-lead .photo:first-child .photo-cap { font-size: 17px; padding: 64px 26px 22px; }
.gallery-empty { text-align: center; background: var(--stone-bg); border-radius: var(--r-xl); padding: 88px 28px; max-width: var(--wrap); margin: 0 auto; }
.gallery-empty h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.gallery-empty p { max-width: 520px; margin: 0 auto; }
.gallery-note { margin-top: 72px; }

.lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14,18,21,.96); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(14,18,21,.96); }
.lightbox:not([open]) { display: none; }
.lb-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; margin: 0; padding: 64px 76px 28px; }
.lb-stage img { flex: 0 1 auto; min-height: 0; max-width: 100%; max-height: calc(100% - 44px); object-fit: contain; border-radius: var(--r-sm); background: #000; }
.lb-stage figcaption { display: flex; gap: 14px; align-items: baseline; justify-content: center; flex-wrap: wrap; min-height: 22px; font-size: 15px; text-align: center; }
.lb-cap { font-weight: 600; }
.lb-count { color: #a7b0b6; font-size: 13px; font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font: inherit; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-btn:focus-visible { outline: 2px solid var(--tangerine); outline-offset: 2px; }
.lb-close { top: 14px; right: 16px; font-size: 24px; }
.lb-prev { left: 16px; top: 50%; margin-top: -22px; }
.lb-next { right: 16px; top: 50%; margin-top: -22px; }
.lb-btn[hidden] { display: none; }
@media (max-width: 734px) {
  .gallery-chips { margin-bottom: 40px; }
  .album + .album { margin-top: 64px; }
  .album-head h2 { font-size: 28px; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .photo { border-radius: var(--r-md); }
  .has-lead .photo:first-child { grid-row: auto; aspect-ratio: 3/2; border-radius: var(--r-lg); }
  .photo-cap { font-size: 12.5px; padding: 30px 12px 10px; }
  .has-lead .photo:first-child .photo-cap { font-size: 15px; padding: 48px 16px 14px; }
  .gallery-empty { padding: 64px 22px; }
  .lb-stage { padding: 64px 12px 84px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; margin: 0; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}
@media (prefers-reduced-motion: reduce) { .photo img { transition: none; } .photo:hover img { transform: none; } }
