/* Fonts are self-hosted (SIL Open Font License, see /fonts). */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* Layout: a dark CV with an image archive. Full-bleed photographs sit under a heavy warm multiply; type is white on top. Sections below follow a label rail + content grid. */
:root {
  --ground: #0F0F0E;
  --surface: #191917;
  --surface-2: #24231F;
  --ink: #F1EFEA;
  --ink-2: #ABA79F;
  --ink-3: #7A766E;
  --rule: #2D2C29;
  --wood: #D3AA79;
  --multiply: #4A4037;
  --multiply-deep: #352E28;
  --olive: #2F3529;
  --olive-light: #CCDCC1;
  --f-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --rail: 11rem;
  --max: 76rem;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
a { color: inherit; text-decoration-color: var(--wood); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--wood); }
a:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; text-wrap: balance; margin: 0; }
p { margin: 0; }
.label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.mono { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }

/* Photograph with a heavy warm multiply */
.shot { position: relative; overflow: hidden; background: #000; isolation: isolate; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.shot::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 7, 6, 0.78) 0%, rgba(8, 7, 6, 0.15) 60%, rgba(8, 7, 6, 0) 100%), var(--multiply);
  mix-blend-mode: multiply;
  transition: opacity 0.4s ease;
}
.shot.olive::after { background: linear-gradient(to top, rgba(8, 9, 7, 0.8) 0%, rgba(8, 9, 7, 0.1) 60%, rgba(8, 9, 7, 0) 100%), var(--olive); }
.shot.light::after { background: var(--multiply); opacity: 0.55; }

/* Placeholder for images still to be supplied */
.ph {
  position: relative; display: flex; align-items: flex-end; padding: 0.75rem;
  background: repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--surface-2) 12px 13px);
  color: var(--ink-3);
}
.ph span { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.04em; }

/* Hero */
.hero { position: relative; }
.hero .shot { position: absolute; inset: 0; }
.hero .shot::after { background: linear-gradient(to top, rgba(8, 7, 6, 0.8) 0%, rgba(8, 7, 6, 0.1) 55%, rgba(8, 7, 6, 0.35) 100%), var(--multiply); }
.hero .shot img { object-position: 60% 40%; }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6rem; padding-block: 1.5rem 3.5rem; }
.top { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: baseline; justify-content: space-between; }
.top .home { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.02em; text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.top nav a { font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.04em; text-decoration: none; color: var(--ink); opacity: 0.8; }
.top nav a:hover { opacity: 1; color: var(--wood); }
.hero h1 { font-size: clamp(3.6rem, 11vw, 9.5rem); line-height: 0.86; letter-spacing: -0.01em; }
.hero h1 span { display: block; }
.lead { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; max-width: 34ch; margin-top: 1.75rem; }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 0; margin: 2rem 0 0; padding: 0; list-style: none; }
.facts li { font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.02em; padding-right: 1.25rem; margin-right: 1.25rem; border-right: 1px solid rgba(241, 239, 234, 0.35); }
.facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-credit { position: absolute; z-index: 2; left: max(24px, env(safe-area-inset-left, 0px)); right: max(24px, env(safe-area-inset-right, 0px)); bottom: 1rem; text-align: right; font-family: var(--f-mono); font-size: 0.66rem; color: var(--ink-2); }

/* Sections */
section.block { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 2rem; padding-block: 4rem; border-top: 1px solid var(--rule); }
section.block:first-of-type { border-top: 0; }
section.block > header { display: flex; flex-direction: column; gap: 0.4rem; }
section.block h2 { font-size: 2rem; line-height: 1; }
.more { margin-top: 1.75rem; font-family: var(--f-mono); font-size: 0.78rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.subrow { margin-top: 3.5rem; margin-bottom: 1.1rem; display: flex; align-items: baseline; gap: 1rem; }
.subrow h3 { font-size: 1.5rem; }

/* Profile and practice cards: a subgrid keeps label, title, subtitle, text and link rows aligned across each pair */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(9rem, 1fr) repeat(5, auto); column-gap: 1.25rem; }
.card { position: relative; grid-row: span 6; display: grid; grid-template-rows: subgrid; row-gap: 0.55rem; padding: 1.75rem; min-height: 30rem; }
.card > :not(.shot) { position: relative; z-index: 2; }
.card .shot { position: absolute; inset: 0; z-index: 0; }
.card .label { grid-row: 2; align-self: end; color: var(--ink); opacity: 0.75; }
.card h3 { grid-row: 3; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 0.95; }
.card .sub { grid-row: 4; font-weight: 500; font-size: 1.05rem; line-height: 1.35; color: var(--wood); max-width: 40ch; }
.card .text { grid-row: 5; font-size: 0.98rem; line-height: 1.55; max-width: 46ch; color: var(--ink); }
.card .go { grid-row: 6; font-family: var(--f-mono); font-size: 0.78rem; margin-top: 0.4rem; text-decoration: none; justify-self: start; }
.card .go::before { content: ""; position: absolute; inset: 0; z-index: 3; }
.card { isolation: isolate; }
.card .go { position: static; }
.card .go span { position: relative; z-index: 2; text-decoration: underline; text-decoration-color: var(--wood); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.card:hover .shot img { transform: scale(1.03); }
.card:hover .shot::after { opacity: 0.86; }

/* Built */
.built { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
.built article { display: flex; flex-direction: column; gap: 0.9rem; }
.built .frame { aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--surface); }
.built .frame { margin: 0; }
.built .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.built .credit { font-family: var(--f-mono); font-size: 0.66rem; color: var(--ink-3); margin-top: -0.55rem; }
.built h3 { font-size: 1.9rem; line-height: 1; }
.built .where { color: var(--ink-2); }
.facts-dl { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0.25rem 0 0; font-size: 0.95rem; }
.facts-dl dt { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.2rem; }
.facts-dl dd { margin: 0; }

/* Career */
.career { list-style: none; margin: 0; padding: 0; }
.career li { display: grid; grid-template-columns: 8rem minmax(0, 1fr) auto; gap: 0.5rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--rule); align-items: start; }
.career li:first-child { border-top: 1px solid var(--rule); }
.career .when { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-2); padding-top: 0.35rem; font-variant-numeric: tabular-nums; }
.career .role { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; line-height: 1.05; }
.career .org { color: var(--wood); font-weight: 500; margin-top: 0.15rem; }
.career .org a { color: inherit; text-decoration-color: currentColor; }
.career .org a:hover { color: var(--ink); }
.career .line { color: var(--ink-2); margin-top: 0.5rem; max-width: 52ch; font-size: 0.98rem; }
.thumbs { display: flex; gap: 0.5rem; }
.thumbs > * { width: 8.5rem; height: 6.5rem; flex: none; max-width: 100%; }
.thumbs > img { object-fit: cover; display: block; }
.logo-tile { background: var(--olive); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.logo-tile img { width: 100%; height: auto; object-fit: contain; }
.edu { margin-top: 1.5rem; color: var(--ink-2); font-size: 0.98rem; max-width: 70ch; }

/* Research */
.research { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.research li { position: relative; display: flex; flex-direction: column; gap: 0.35rem; }
.research .shot { aspect-ratio: 3 / 2; max-width: 100%; margin-bottom: 0.5rem; }
.research a.t { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; line-height: 1.05; text-decoration: none; }
.research a.t::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.research li:hover .shot::after { opacity: 0.2; }
.research li:hover a.t { color: var(--wood); }
.research .meta { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); }
.research .note { font-size: 0.9rem; color: var(--ink-2); }

/* Publications and recognition */
.counts { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.counts li { display: flex; flex-direction: column; gap: 0.2rem; }
.counts b { font-family: var(--f-display); font-weight: 600; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.register { list-style: none; margin: 0; padding: 0; }
.register li { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 0.8fr); gap: 0.25rem 1.5rem; padding-block: 0.85rem; border-bottom: 1px solid var(--rule); align-items: baseline; }
.register li:first-child { border-top: 1px solid var(--rule); }
.register .when { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.register .what { font-weight: 500; }
.register .where { color: var(--ink-2); }
.register.pubs li { grid-template-columns: 4rem minmax(0, 1fr); }
.register.pubs .what { font-weight: 400; }
.register li.personal .what { color: var(--wood); }
.register li.personal .what a { color: inherit; text-decoration-color: currentColor; }

/* Contact */
.contact p { max-width: 52ch; color: var(--ink-2); }
.email { display: inline-block; margin-top: 0.75rem; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 4.5vw, 2.8rem); line-height: 1.1; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.contact .more { margin-top: 1.25rem; }

footer.foot { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 1rem 2rem; padding-block: 2rem 3rem; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 0.85rem; }
footer.foot p { max-width: 80ch; }

@media (prefers-reduced-motion: reduce) { .shot img, .shot::after { transition: none; } .card:hover .shot img { transform: none; } }
@media (max-width: 960px) {
  section.block, footer.foot { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .research { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .career li { grid-template-columns: 7rem minmax(0, 1fr); }
  .career .thumbs { grid-column: 2; }
}
@media (max-width: 760px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hero-credit { left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
  section.block, footer.foot { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-block: 3rem; }
  .hero-inner { gap: 4rem; padding-block: 1.25rem 3rem; }
  .cards, .built { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-rows: none; row-gap: 1.25rem; }
  .card { grid-row: auto; display: flex; flex-direction: column; justify-content: flex-end; min-height: 26rem; padding: 1.25rem; }
  .research { grid-template-columns: minmax(0, 1fr); }
  .career li { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .career .thumbs { grid-column: auto; margin-top: 0.75rem; }
  .thumbs > * { width: calc(50% - 0.25rem); height: auto; aspect-ratio: 4 / 3; }
  .register li { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .register .where { grid-column: 2; }
  .facts li { border-right: 0; margin-right: 0; padding-right: 1.25rem; }
}

/* Back-to-top arrow under each section heading */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.totop { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; margin-top: 0.6rem; margin-left: -0.3rem; color: var(--ink); opacity: 0.7; transition: opacity 0.2s ease, color 0.2s ease; }
.totop svg { width: 1.05rem; height: 1.05rem; display: block; }
.totop:hover { opacity: 1; color: var(--wood); }
.ext-icon { width: 0.75em; height: 0.75em; margin-left: 0.3em; vertical-align: -0.05em; display: inline-block; }

/* Home page: the hero text fades in over one second while the photo shows immediately */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fade-in 1s ease-out 0.15s both; }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } }

/* ---------- Shared base for the sub-pages (the home page gets these from the publish skeleton) ---------- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: var(--ground); padding: 0.5rem 0.75rem; font-family: var(--f-mono); font-size: 0.78rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* Sub-page headers */
.top nav a[aria-current="page"] { opacity: 1; color: var(--wood); }
.hero.sub .hero-inner { gap: 4.5rem; padding-block: 1.5rem 3rem; }
.hero.sub h1 { font-size: clamp(3.2rem, 8.5vw, 7rem); }
.intro { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; max-width: 46ch; margin-top: 1.25rem; }
.plainhead { border-bottom: 1px solid var(--rule); }
.plainhead .hero-inner { position: relative; display: flex; flex-direction: column; gap: 4.5rem; padding-block: 1.5rem 3rem; }
.plainhead h1 { font-size: clamp(3.2rem, 8.5vw, 7rem); line-height: 0.88; }

/* Shared photo credit line */
.credit { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.02em; color: var(--ink-3); }

/* Gallery thumbnails that open in the viewer */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.gallery a { display: block; aspect-ratio: 3 / 2; max-width: 100%; overflow: hidden; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease, opacity 0.3s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a:focus-visible { outline: 2px solid var(--wood); outline-offset: 2px; }

/* Built page */
.project-title { font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 0.95; }
.project .where { color: var(--ink-2); margin-top: 0.6rem; }
.lead-figure { margin: 0 0 1.75rem; }
.lead-figure a { display: block; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--surface); }
.lead-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead-figure figcaption { margin-top: 0.5rem; }
.project-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; margin-top: 1.5rem; align-items: start; }
.project-intro p { max-width: 54ch; }
.stage { margin-top: 3rem; }
.stage-h { display: flex; align-items: baseline; gap: 0.9rem; padding-bottom: 0.75rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--rule); }
.stage-h .num { font-family: var(--f-mono); font-size: 0.78rem; color: var(--wood); font-variant-numeric: tabular-nums; }
.stage-h h3 { font-size: 1.5rem; line-height: 1; }
.stage .credit { margin-top: 0.6rem; }

/* Research page */
.rindex { list-style: none; margin: 0; padding: 0; }
.rindex li { display: grid; grid-template-columns: 4.5rem minmax(0, 1.75fr) minmax(0, 1fr) minmax(0, 0.55fr); gap: 0.25rem 1.5rem; padding-block: 0.7rem; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rindex li:first-child { border-top: 1px solid var(--rule); }
.rindex .when { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rindex a { font-weight: 500; text-decoration: none; }
.rindex a:hover { text-decoration: underline; text-decoration-color: var(--wood); }
.rindex .where, .rindex .kind { color: var(--ink-2); font-size: 0.95rem; }
.rindex .kind { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.rproj > header .year { font-family: var(--f-display); font-weight: 600; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.rproj > header .label { line-height: 1.5; }
.rproj h2.rt { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1; }
.rproj .role { color: var(--wood); font-weight: 500; margin-top: 0.6rem; max-width: 60ch; }
.rproj .summary { margin-top: 0.9rem; max-width: 64ch; }
.rproj .awards { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rproj .awards li { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.02em; color: var(--ink); border: 1px solid var(--rule); padding: 0.25rem 0.5rem; }
.rproj .links { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-family: var(--f-mono); font-size: 0.78rem; }
.rproj .gallery { margin-top: 1.5rem; }
.rproj .credit { margin-top: 0.6rem; }
.top-link { margin-top: 1.25rem; font-family: var(--f-mono); font-size: 0.72rem; }
.top-link a { color: var(--ink-3); }

/* Publications page */
.pubgroup .register li { grid-template-columns: 3.5rem minmax(0, 1fr); }
.pubgroup .register .what { font-weight: 400; }
.pubgroup .register .what b { font-weight: 500; }
.pubgroup .register.exh li { grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1fr); }
.pubgroup .register.exh .what { font-weight: 500; }

/* Image viewer */
.lb-overlay { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(8, 7, 6, 0.95); color: var(--ink);
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(1rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lb-count { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lb-stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding-block: 0.75rem; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lb-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lb-cap { font-size: 0.9rem; color: var(--ink-2); max-width: 70ch; }
.lb-cap .credit { display: block; margin-top: 0.2rem; }
.lb-btn { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink); background: transparent; border: 1px solid var(--rule); padding: 0.5rem 0.8rem; cursor: pointer; }
.lb-btn:hover { border-color: var(--wood); color: var(--wood); }
.lb-btn:focus-visible { outline: 2px solid var(--wood); outline-offset: 2px; }
.lb-nav { display: flex; gap: 0.5rem; flex: none; }

@media (max-width: 960px) {
  .project-intro { grid-template-columns: minmax(0, 1fr); }
  .rindex li { grid-template-columns: 4rem minmax(0, 1fr); }
  .rindex .where, .rindex .kind { grid-column: 2; }
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero.sub .hero-inner, .plainhead .hero-inner { gap: 3rem; padding-block: 1.25rem 2.5rem; }
  .pubgroup .register.exh li { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .pubgroup .register.exh .where { grid-column: 2; }
  .lb-foot { flex-direction: column; align-items: stretch; }
  .lb-nav { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } .gallery a:hover img { transform: none; } }

:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
