/* Layout: a pale page on a 12-column grid. Text sits in narrow contained blocks; images break out at different scales,
   grow as they scroll into view, and full-bleed photo "windows" stay fixed while the page scrolls over them.
   Palette: chalky pastels, dusty blues and Martian maroons. Single light theme by choice. */
:root {
  --paper: #ffffff;
  --ink: #2f2a31;
  --soft: #6d6670;
  --hair: #e4dedb;
  --dust: #7f97a8;        /* dirty blue */
  --dust-deep: #4f6a7e;
  --dust-pale: #dde6ec;
  --maroon: #b5654a;      /* rusty Mars */
  --maroon-deep: #94503a;
  --rose: #f3e0d4;        /* pastel rust */
  --sand: #efe6dc;
  --head: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --fs-s: 0.9375rem;               /* captions, labels, small print: 15px */
  --fs-b: 1.125rem;                /* body: 18px */
  --fs-l: 1.5rem;                  /* lede, names, subheads: 24px */
  --fs-xl: clamp(2rem, 3.2vw, 2.5rem);   /* section headings: 32-40px */
  --fs-hero: clamp(3rem, 7vw, 5.5rem);   /* page titles on photos */
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--fs-b); line-height: 1.75; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--maroon); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--dust-deep); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
strong { font-weight: 700; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 50; }

/* ---------- Grid ---------- */
.grid { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); }
.grid > * { grid-column: 1 / -1; min-width: 0; }
.c-1-5 { grid-column: 1 / 6; } .c-1-6 { grid-column: 1 / 7; } .c-1-7 { grid-column: 1 / 8; } .c-1-8 { grid-column: 1 / 9; }
.c-2-6 { grid-column: 2 / 7; } .c-2-7 { grid-column: 2 / 8; } .c-2-8 { grid-column: 2 / 9; } .c-2-12 { grid-column: 2 / 12; }
.c-3-11 { grid-column: 3 / 11; } .c-4-10 { grid-column: 4 / 10; }
.c-6-13 { grid-column: 6 / 13; } .c-7-13 { grid-column: 7 / 13; } .c-7-12 { grid-column: 7 / 12; } .c-8-12 { grid-column: 8 / 12; } .c-8-13 { grid-column: 8 / 13; } .c-9-13 { grid-column: 9 / 13; }
.self-center { align-self: center; } .self-end { align-self: end; }

.section { padding-block: clamp(56px, 7vw, 96px); }
.section.tight { padding-block: clamp(36px, 4vw, 56px); }
.section + .section { padding-top: 0; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(247, 245, 242, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .3s, padding .3s; }
.site-head.scrolled { box-shadow: 0 1px 0 var(--hair); }
.head-in { max-width: 1440px; margin: 0 auto; padding: 16px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: padding .35s; }
.site-head.scrolled .head-in { padding-block: 9px; }
.mark { text-decoration: none; color: var(--ink); line-height: 1.2; display: flex; align-items: center; gap: 12px; }
.mark-logo { height: 46px; width: auto; transition: height .35s; }
.site-head.scrolled .mark-logo { height: 32px; }
.mark b { display: block; font-family: var(--head); font-size: var(--fs-l); letter-spacing: -0.02em; transition: font-size .35s; }
.site-head.scrolled .mark b { font-size: var(--fs-b); }
.mark-txt > span { display: block; font-size: var(--fs-s); color: var(--soft); white-space: nowrap; transition: opacity .3s, max-height .35s; max-height: 2em; overflow: hidden; }
.site-head.scrolled .mark-txt > span { opacity: 0; max-height: 0; }
.nav { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 4px 14px; font-family: var(--head); font-weight: 700; font-size: var(--fs-s); }
.nav a { color: var(--dust); text-decoration: none; padding-block: 4px; position: relative; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--maroon); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav a:hover { color: var(--maroon); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.icons { display: flex; gap: 12px; }
.icons a { color: var(--ink); display: grid; place-items: center; }
.icons svg { width: 17px; height: 17px; }
.head-right { display: flex; align-items: center; gap: 22px; }
.menu-btn { display: none; font: 700 var(--fs-s) var(--head); color: var(--ink); background: none; border: 1px solid var(--hair); border-radius: 999px; padding: 6px 16px; cursor: pointer; }
@media (max-width: 1200px) {
  .menu-btn { display: block; }
  .head-right { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--hair); flex-direction: column; align-items: flex-start; gap: 18px; }
  .head-right.open { display: flex; }
  .nav { flex-direction: column; flex-wrap: wrap; gap: 6px; font-size: var(--fs-b); }
}
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--maroon); transform-origin: left; transform: scaleX(var(--read, 0)); }

/* ---------- Fixed photo windows ---------- */
.window { position: relative; display: grid; align-items: end; min-height: var(--h, 70vh); background-image: var(--img); background-size: cover; background-position: center; background-attachment: fixed; background-color: #59656f; color: #fff; isolation: isolate; overflow: hidden; }
.window::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(40, 34, 44, 0) 35%, rgba(40, 34, 44, .55)); }
.window.flat::before { background: rgba(60, 70, 84, .16); }
.window .in { max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gutter) clamp(32px, 5vw, 64px); }
.window h1 { font-size: var(--fs-hero); letter-spacing: -0.035em; line-height: 0.95; }
.window .sub { font-family: var(--head); font-size: var(--fs-l); margin-top: 14px; opacity: .92; }
.window .tag { position: absolute; right: var(--gutter); bottom: clamp(32px, 5vw, 64px); font-size: var(--fs-s); opacity: .8; font-family: var(--head); }
.hero h1 { font-size: var(--fs-hero); transform-origin: left bottom; will-change: transform, opacity; }
.hero .sub { will-change: transform, opacity; }
@supports (-webkit-touch-callout: none) { .window { background-attachment: scroll; } }

/* ---------- Typographic pieces ---------- */
.lede { font-size: var(--fs-l); line-height: 1.55; font-weight: 400; }
.kicker { font-family: var(--head); font-weight: 700; font-size: var(--fs-b); color: var(--dust-deep); margin-bottom: 14px; display: block; }
.h2 { font-size: var(--fs-xl); margin-bottom: 22px; }
.h3 { font-size: var(--fs-l); margin-bottom: 10px; }
.drop::first-letter { font-family: var(--head); font-weight: 700; float: left; font-size: 3.3em; line-height: 0.85; margin: 0.08em 0.1em 0 0; color: var(--maroon); }
.muted { color: var(--soft); }
.small { font-size: var(--fs-s); }
.cap { font-size: var(--fs-s); color: var(--soft); margin-top: 10px; line-height: 1.5; }

/* ---------- River divider: draws itself on scroll ---------- */
.river { aspect-ratio: 1200 / 100; max-height: 120px; width: 100%; margin-block: 0; }
.river svg { width: 100%; height: 100%; display: block; overflow: visible; }
.river .bank, .river .water { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.river .bank { stroke: var(--dust-pale); stroke-width: 22; opacity: var(--bank, 0); transition: opacity .6s; }
.river .bank.thin { stroke-width: 13; }
.river .water { stroke: #9cc8ea; stroke-width: 13; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--flow, 0)); }
.river .water.thin { stroke-width: 6; }
.river .chevs { fill: #fff; opacity: calc(var(--flow, 0) * 0.95); }

/* ---------- Dropdown in the menu ---------- */
.drop { position: relative; }
.drop-top { display: inline-block; }
.drop-top span { font-size: 0.7em; }
.drop-menu { position: absolute; top: 100%; left: -16px; min-width: 190px; padding: 10px 16px; background: var(--paper); border: 1px solid var(--hair); border-radius: 12px; box-shadow: 0 12px 30px -18px rgba(47, 42, 49, .35); display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.drop:hover .drop-menu, .drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a { padding-block: 6px; }
.drop.on > .drop-top { color: var(--ink); }
.drop.on > .drop-top::after { transform: scaleX(1); }
.nav-contact { margin-left: 8px; }
@media (max-width: 1200px) {
  .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 2px 0 4px 16px; background: none; }
  .drop-top span { display: none; }
  .nav-contact { margin-left: 0; }
}

/* ---------- Teasers: one shape for every link card ---------- */
.teasers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.teaser { display: grid; grid-template-rows: auto auto 1fr auto; justify-items: center; text-align: center; gap: 12px; }
.teaser-pic { display: block; width: min(100%, 200px); }
.teaser .pic.round { width: 100%; }
.teaser h3 { font-size: var(--fs-l); margin-top: 6px; }
.teaser p { font-size: var(--fs-s); line-height: 1.6; color: var(--soft); max-width: 30ch; }
.teaser .btn { margin-top: 6px; }
@media (max-width: 880px) { .teasers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .teasers { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Globe with photo cutouts ---------- */
.globe-wrap { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; }
.globe-wrap { display: block; cursor: pointer; }
.globe-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .5s; }
.globe-wrap:hover canvas { transform: scale(1.03); }
.g-place { position: absolute; width: 30%; display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: var(--fs-s); text-align: center; line-height: 1.3; z-index: 2; }
.g-place .pic.round { width: 100%; box-shadow: 0 0 0 5px var(--paper), 0 10px 24px -14px rgba(47, 42, 49, .5); transition: transform .35s; }
.g-place:hover .pic.round, .g-place.lit .pic.round { transform: scale(1.07); }
.g-place b { display: block; font-family: var(--head); }
.g-place span { color: var(--soft); }
.g0 { left: -4%; top: -2%; }
.g1 { right: -4%; bottom: 2%; }

/* ---------- Fieldwork map and justified gallery ---------- */
.world { width: 100%; aspect-ratio: 2 / 1.15; }
.world svg { width: 100%; height: 100%; display: block; }
.world .land { fill: var(--rose); }
.world .sphere { fill: var(--dust-pale); }
.world .grat { fill: none; stroke: #fff; stroke-width: .5; opacity: .7; }
.world .mpin circle { fill: var(--maroon); stroke: var(--paper); stroke-width: 2; }
.world .mpin .halo { fill: var(--maroon); opacity: .25; stroke: none; animation: halo 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.world .mpin text { font-family: var(--head); font-weight: 700; font-size: 13px; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.world .mpin { cursor: pointer; }
@keyframes halo { from { transform: scale(.6); opacity: .45; } to { transform: scale(2.4); opacity: 0; } }
.pin-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pin-link { font-family: var(--head); font-weight: 700; font-size: var(--fs-s); text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--rose); color: var(--maroon-deep); }
.pin-link:hover { background: var(--maroon); color: #fff; }
.trip { scroll-margin-top: 80px; }
.jg { width: 100vw; margin: 36px calc(50% - 50vw) 0; }
.jg-item { padding: 0; border: 0; overflow: hidden; background: var(--dust-pale); cursor: zoom-in; display: block; }
.jg.cols { column-count: 3; column-gap: 4px; }
.jg.cols .jg-item { width: 100%; margin: 0 0 4px; break-inside: avoid; }
.jg.cols .jg-item img { height: auto; }
.jg.rect { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 8.5vw; grid-auto-flow: dense; gap: 4px; }
.jg.rect .jg-item { grid-column: span 2; grid-row: span 2; }
.jg.rect .jg-item.big { grid-column: span 4; grid-row: span 4; }
.jg.rect .jg-item.wide { grid-column: span 4; grid-row: span 2; }
.jg.rect .jg-item.tall { grid-column: span 2; grid-row: span 4; }
@media (max-width: 640px) { .jg.cols { column-count: 2; } .jg.rect { grid-auto-rows: 17vw; } }
.jg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.jg-item:hover img { transform: scale(1.03); }

/* ---------- Main themes and flip circles ---------- */
.mains { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.mains a { display: grid; gap: 14px; text-decoration: none; color: var(--ink); }
.mains .pic.round { max-width: 220px; width: 100%; }
.mains h3 { font-size: var(--fs-l); color: var(--maroon); }
.mains p { font-size: var(--fs-s); line-height: 1.6; color: var(--soft); }
.mains a:hover h3 { color: var(--maroon-deep); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
.center-head { text-align: center; margin-bottom: 48px; }
.flips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 36px clamp(20px, 3vw, 40px); }
.flip { width: min(100%, 250px); display: grid; gap: 14px; justify-items: center; text-align: center; scroll-margin-top: 100px; }
.flip-in { position: relative; width: 250px; max-width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; perspective: 900px; font: inherit; color: inherit; }
.flip .face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .7s cubic-bezier(.3, .7, .2, 1); }
.flip .front img { width: 100%; height: 100%; object-fit: cover; }
.flip .back { transform: rotateY(180deg); background: var(--rose); color: var(--maroon-deep); display: grid; place-items: center; padding: 30px; font-size: var(--fs-s); line-height: 1.5; }
.flip .back span { display: block; }
.flip:hover .front, .flip-in:focus-visible .front, .flip.on .front { transform: rotateY(-180deg); }
.flip:hover .back, .flip-in:focus-visible .back, .flip.on .back { transform: rotateY(0deg); }
.flip:nth-child(even) .back { background: var(--dust-pale); color: var(--dust-deep); }
.flip-name { font-family: var(--head); font-weight: 700; font-size: var(--fs-b); }
@media (max-width: 880px) { .mains { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 var(--fs-s) var(--body); text-decoration: none; color: #fff; background: var(--maroon); padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer; transition: background-color .25s, gap .25s; }
.btn:hover { background: var(--maroon-deep); gap: 14px; color: #fff; }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(3px); }
.btn.line { background: transparent; color: var(--maroon); box-shadow: inset 0 0 0 1.5px var(--maroon); }
.btn.line:hover { background: var(--maroon); color: #fff; }
.btn.light { background: var(--paper); color: var(--maroon); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Images ---------- */
.pic { position: relative; overflow: hidden; background: var(--dust-pale); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic.r { border-radius: 14px; }
.pic.round { border-radius: 50%; aspect-ratio: 1; }
.cutout { background: transparent; }
.cutout img { object-fit: contain; mix-blend-mode: multiply; }
[data-grow] { transform: scale(var(--g, 1)); transform-origin: center 70%; will-change: transform; }
[data-grow] img { transform: scale(var(--gi, 1)); }

/* ---------- Info blips ---------- */
.blips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.blip { border-top: 2px solid var(--maroon); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.blip .n { font-family: var(--head); font-weight: 700; font-size: var(--fs-xl); letter-spacing: -0.03em; line-height: 1; color: var(--maroon-deep); }
.blip .n small { font-size: var(--fs-s); letter-spacing: 0; margin-left: 4px; color: var(--soft); font-weight: 500; }
.blip p { font-size: var(--fs-s); line-height: 1.5; }
.blip a { font-size: var(--fs-s); color: var(--dust-deep); }

/* ---------- Compare slider ---------- */
.compare { position: relative; aspect-ratio: 4 / 3; user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .bar { position: absolute; top: 6%; bottom: 6%; left: var(--pos, 50%); width: 1.5px; background: var(--ink); pointer-events: none; }
.compare .bar::after { content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1.5px var(--ink); }
.compare .bar::before { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -52%); z-index: 1; font: 700 var(--fs-s) var(--head); color: var(--ink); white-space: nowrap; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ---------- Embeds ---------- */
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ink); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed .facade { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--ink); color: #fff; font: inherit; display: grid; place-items: center; }
.embed .facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s; }
.embed .facade:hover img { opacity: 1; transform: scale(1.02); }
.embed .facade span { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--paper); color: var(--maroon); transition: transform .25s; }
.embed .facade:hover span { transform: scale(1.08); }
.embed .facade svg { width: 24px; height: 24px; margin-left: 4px; }
.sound { display: inline-flex; align-items: center; gap: 12px; font: 700 var(--fs-s) var(--head); color: var(--ink); background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 18px 8px 10px; cursor: pointer; }
.sound i { width: 28px; height: 28px; border-radius: 50%; background: var(--dust-deep); display: grid; place-items: center; }
.sound i::after { content: ""; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.sound-frame { margin-top: 14px; border-radius: 12px; overflow: hidden; }
.sound-frame iframe { width: 100%; height: 152px; border: 0; display: block; }

/* ---------- Pinned horizontal photo strip ---------- */
.pin { position: relative; height: 320vh; background: var(--dust-pale); }
.pin-in { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3vw, 40px); padding-block: clamp(72px, 9vh, 110px) clamp(32px, 6vh, 64px); }
.pin-head { width: 100%; }
.pin-track { align-self: flex-start; flex: none; display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter); width: max-content; will-change: transform; transform: translate3d(var(--tx, 0px), 0, 0); }
.strip-ph { margin: 0; flex: none; height: clamp(220px, 46vh, 460px); position: relative; }
.strip-ph img { height: 100%; width: auto; border-radius: 12px; object-fit: cover; background: var(--rose); min-width: 200px; }
.strip-ph.s1 { height: clamp(180px, 36vh, 360px); align-self: flex-end; }
.strip-ph.s2 { height: clamp(200px, 40vh, 400px); align-self: flex-start; }
.strip-ph figcaption { font-size: var(--fs-s); color: var(--soft); margin-top: 8px; font-family: var(--head); }

/* ---------- Panels and cards ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.duo .card .pic { aspect-ratio: 3 / 2; }
.panel { background: var(--dust-pale); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.card { display: grid; gap: 14px; text-decoration: none; color: var(--ink); align-content: start; }
.card .pic { aspect-ratio: 4 / 5; border-radius: 14px; }
.card .pic img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card:hover .pic img { transform: scale(1.04); }
.card h3 { font-size: var(--fs-l); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 .arr { color: var(--maroon); transition: transform .25s; }
.card:hover h3 .arr { transform: translateX(4px); }
.card p { color: var(--soft); font-size: var(--fs-s); line-height: 1.6; }
.fig4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fig4 .pic { aspect-ratio: 1; border-radius: 50%; background: transparent; }

/* ---------- Dark band ---------- */
.night { background: #2f3946; color: #fff; text-align: center; }
.night .window { min-height: 560px; align-items: center; }
.night .window::before { background: rgba(47, 42, 56, .66); }
.night .in { padding-block: 64px; }
.night .kicker { color: var(--rose); }
.night h2 { font-size: var(--fs-xl); }
.night p { max-width: 54ch; margin: 18px auto 30px; }

/* ---------- Team ---------- */
.person { width: 100%; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: clamp(20px, 3.5vw, 48px); align-items: center; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); scroll-margin-top: 100px; }
.person .pic.round { max-width: 280px; width: 100%; justify-self: center; box-shadow: 0 0 0 10px var(--paper), 0 0 0 11px var(--hair); }
.person .pic.round img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.person:hover .pic.round img { transform: scale(1.05); }
.person h3 { font-size: var(--fs-l); text-align: center; color: var(--maroon); }
.person .since { font-family: var(--head); font-weight: 700; text-align: center; margin: 4px 0 16px; color: var(--dust-deep); }
.person .bio { text-align: justify; hyphens: auto; }
.person .actions { justify-content: center; }
.group-head { text-align: center; padding-block: 0 clamp(36px, 5vw, 64px); }
.group-head h2 { font-size: var(--fs-xl); }
.stack-people { display: grid; gap: clamp(64px, 8vw, 112px); }
.hiring { font-family: var(--head); font-weight: 700; text-align: center; padding: 18px 22px; background: var(--rose); border-radius: 14px; color: var(--maroon-deep); }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.ways > div { border-top: 2px solid var(--dust); padding-top: 16px; }
.alumni { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 40px 36px; }
.alum { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; }
.alum h3 { font-size: var(--fs-b); color: var(--maroon); }
.alum .role { font-family: var(--head); font-weight: 700; font-size: var(--fs-s); color: var(--dust-deep); margin: 2px 0 6px; }
.alum p { font-size: var(--fs-s); line-height: 1.6; }

/* ---------- Publications ---------- */
.yearnav { position: sticky; top: 64px; z-index: 5; background: rgba(247, 245, 242, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); }
.yearnav .in { max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter); display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; font-family: var(--head); font-weight: 700; }
.yearnav a { color: var(--dust); text-decoration: none; }
.yearnav a.on, .yearnav a:hover { color: var(--maroon); }
.yearnav input { margin-left: auto; font: inherit; font-weight: 400; font-family: var(--body); font-size: var(--fs-s); padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--hair); background: var(--paper); width: min(100%, 260px); }
.yearnav input:focus { border-color: var(--dust-deep); outline: none; }
.year { font-size: var(--fs-xl); color: var(--rose); letter-spacing: -0.04em; line-height: 1; margin: 0 0 24px; scroll-margin-top: 150px; }
.paper { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); padding-bottom: clamp(72px, 9vw, 120px); align-items: start; }
.paper .txt { position: sticky; top: 150px; display: grid; gap: 14px; }
.paper h3 { font-size: var(--fs-l); }
.paper h3 em { font-style: italic; font-weight: 500; color: var(--dust-deep); }
.paper .authors { font-family: var(--head); font-size: var(--fs-s); }
.paper .authors b { color: var(--maroon); }
.paper .sum { font-size: var(--fs-s); line-height: 1.7; text-align: justify; hyphens: auto; }
.figs { columns: 2 220px; column-gap: 14px; }
.figs button { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: var(--dust-pale); border-radius: 10px; overflow: hidden; cursor: zoom-in; break-inside: avoid; min-height: 80px; }
.figs img { width: 100%; transition: transform .6s; }
.figs button:hover img { transform: scale(1.03); }
.paper.nofig { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
[hidden] { display: none !important; }

/* ---------- Themes ---------- */
.theme { padding-block: clamp(56px, 8vw, 104px); scroll-margin-top: 90px; }
.theme-index { display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--head); font-weight: 700; }
.theme-index a { color: var(--dust); text-decoration: none; }
.theme-index a:hover { color: var(--maroon); }
.model canvas { width: 100%; aspect-ratio: 16 / 10; display: block; }

/* ---------- Media timeline ---------- */
.tl { position: relative; max-width: 1040px; margin: 0 auto; padding-inline: var(--gutter); }
.tl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: var(--hair); }
.tl-year { position: relative; text-align: center; margin: 0 auto 48px; width: max-content; background: var(--paper); padding: 4px 16px; font-size: var(--fs-xl); color: var(--dust-deep); scroll-margin-top: 100px; }
.tl-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; margin-bottom: 64px; }
.tl-item::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--maroon); box-shadow: 0 0 0 6px var(--paper); }
.tl-item:nth-of-type(even) .pic { order: 2; }
.tl-item .pic { aspect-ratio: 16 / 10; border-radius: 14px; }
.tl-item h3 { font-style: italic; font-weight: 500; font-size: var(--fs-l); margin: 14px 0 6px; }

/* ---------- Mosaics ---------- */
.mosaic { columns: 3 260px; column-gap: 14px; }
.mosaic button { display: block; width: 100%; padding: 0; border: 0; margin: 0 0 14px; border-radius: 10px; overflow: hidden; background: var(--dust-pale); cursor: zoom-in; break-inside: avoid; min-height: 120px; }
.mosaic img { width: 100%; transition: transform .7s; }
.mosaic button:hover img { transform: scale(1.03); }
.art { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.art figure { margin: 0; grid-column: span 4; }
.art figure:nth-child(5n + 1) { grid-column: span 7; }
.art figure:nth-child(5n + 2) { grid-column: span 5; align-self: end; }
.art button { padding: 0; border: 0; width: 100%; border-radius: 12px; overflow: hidden; background: var(--dust-pale); cursor: zoom-in; display: block; }
.art img { width: 100%; }

/* ---------- Lists ---------- */
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr) minmax(0, 3fr); gap: 24px; padding-block: 22px; border-top: 1px solid var(--hair); align-items: baseline; }
.row .k { font-family: var(--head); font-weight: 700; color: var(--maroon); }
.row h3 { font-size: var(--fs-b); }
.cite { font-size: var(--fs-s); padding: 14px 18px; background: var(--sand); border-radius: 10px; }

/* ---------- Contact ---------- */
.mail { font-family: var(--head); font-weight: 700; font-size: var(--fs-xl); letter-spacing: -0.03em; line-height: 1.1; word-break: break-word; color: var(--maroon-deep); }
.map { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--dust-pale); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.8) sepia(.15); }

/* ---------- Footer ---------- */
.site-foot { background: var(--rose); margin-top: clamp(48px, 8vw, 96px); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; font-size: var(--fs-s); color: var(--maroon-deep); }
.foot-in b { font-family: var(--head); color: var(--maroon-deep); font-size: var(--fs-b); }
.foot-in a { color: var(--maroon-deep); }

/* ---------- Lightbox ---------- */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 94vh; }
dialog.lb::backdrop { background: rgba(247, 245, 242, .96); }
dialog.lb img { max-height: 82vh; width: auto; margin: 0 auto; }
dialog.lb .lb-bar { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font: 700 var(--fs-s) var(--head); color: var(--ink); }
dialog.lb button { font: inherit; color: var(--ink); background: none; border: 0; cursor: pointer; padding: 4px 6px; }
dialog.lb button:hover { color: var(--maroon); }

/* ---------- Scroll reveals (applied by script only to content below the fold) ---------- */
.pre { opacity: 0; transform: translateY(36px); }
.in-view { transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }

/* ---------- Narrow screens ---------- */
@media (max-width: 880px) {
  .grid > [class*="c-"] { grid-column: 1 / -1; }
  .blips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio, .ways, .duo { grid-template-columns: minmax(0, 1fr); }
  .person { grid-template-columns: minmax(0, 1fr); }
  .person .pic.round { max-width: 220px; }
  .person > .pic.round:last-child { display: none; }
  .paper, .paper.nofig { grid-template-columns: minmax(0, 1fr); }
  .paper .txt { position: static; }
  .tl::before, .tl-item::after { display: none; }
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tl-item:nth-of-type(even) .pic { order: 0; }
  .art figure, .art figure:nth-child(5n + 1), .art figure:nth-child(5n + 2) { grid-column: 1 / -1; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .yearnav input { margin-left: 0; }
  .gap-m { margin-top: 32px; }
  .pin { height: 240vh; }
}
@media (prefers-reduced-motion: reduce) {
  .river .chevs { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .pre { opacity: 1; transform: none; }
  .window { background-attachment: scroll; }
  .river { --flow: 1; --bank: 1; }
  .pin { height: auto; }
  .pin-in { position: static; height: auto; }
  .pin-track { overflow-x: auto; width: auto; transform: none; }
}

/* ---------- Home: scroll stories ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; max-width: 1080px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) 24px; }
.story.intro { grid-template-columns: 5fr 6fr; }
.story-art.gif { max-width: 560px; }
.story-art.gif img { width: 100%; height: auto; display: block; }
.hero h1 { font-size: var(--fs-hero); max-width: 16ch; }
.hero .sub { max-width: 46ch; font-size: var(--fs-b); line-height: 1.6; }
.story.alt .story-art { order: 2; }
.story-art { position: relative; width: 100%; max-width: 400px; justify-self: center; }
.story-art .art-main { display: block; }
.story-art .sat { position: absolute; width: 34%; height: auto; aspect-ratio: 1; box-shadow: 0 0 0 6px var(--paper); }
.pic.round > img { position: absolute; inset: 0; }
.story-art .sat0 { right: -8%; bottom: -4%; }
.story-art .sat1 { left: -10%; top: 2%; width: 26%; }
.story-text { max-width: 440px; }
.story-text p { font-size: var(--fs-b); }
.story .globe-wrap { margin: 0 auto; }
@media (max-width: 760px) {
  .story, .story.intro { grid-template-columns: 1fr; gap: 40px; }
  .story-art.gif { max-width: 360px; }
  .story.alt .story-art { order: 0; }
  .story-art { max-width: 300px; }
}

.world .site { fill: var(--maroon); stroke: #fff; stroke-width: 1.5; }
.globe-wrap.big { width: min(100%, 560px); }
.field-intro { grid-template-columns: 5fr 6fr; }
.field-intro .story-art { max-width: 560px; }

/* ---------- Alumni faces ---------- */
.alumni-tiers { display: grid; gap: 40px; margin-top: 24px; }
.alum-row { text-align: center; }
.alum-faces { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 26px; }
.alum-face { position: relative; width: 96px; display: grid; justify-items: center; gap: 8px; cursor: default; outline: none; }
.alum-face .pic.round { width: 84px; transition: transform .3s; }
.alum-face:hover .pic.round, .alum-face:focus .pic.round { transform: scale(1.08); }
.alum-name { font-size: var(--fs-s); line-height: 1.3; }
.alum-card { position: absolute; bottom: calc(100% + 10px); left: 50%; width: 240px; transform: translate(-50%, 6px); background: #fff; border: 1px solid var(--hair); border-radius: 10px; box-shadow: 0 14px 30px -16px rgba(47,42,49,.45); padding: 14px 16px; display: grid; gap: 4px; text-align: left; font-size: var(--fs-s); line-height: 1.45; color: var(--soft); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 5; }
.alum-card b { color: var(--ink); font-family: var(--head); }
.alum-face:hover .alum-card, .alum-face:focus .alum-card { opacity: 1; transform: translate(-50%, 0); }
/* ---------- Globe hint ---------- */
.field-intro .story-art { position: relative; }
.globe-hint { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); font-family: var(--head); font-weight: 700; color: var(--maroon); background: #fff; border-radius: 999px; padding: 6px 14px; box-shadow: 0 6px 16px -10px rgba(47,42,49,.5); animation: hint 1.6s ease-in-out infinite; pointer-events: none; white-space: nowrap; }
@keyframes hint { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Team layout ---------- */
.window.team-hero { background-attachment: scroll; background-position: center calc(82% + var(--by, 0px)); }
.opps-banner { background: linear-gradient(120deg, var(--dust-deep), var(--dust), var(--maroon), var(--dust-deep)); background-size: 300% 300%; animation: opps-drift 18s ease-in-out infinite; }
@keyframes opps-drift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.opps-in { max-width: 1080px; margin: 0 auto; padding: clamp(44px, 6vw, 72px) 24px; display: grid; gap: 28px; }
.opps-in .kicker, .opps-in .h2, .opps-in > div > p { color: #fff; }
.opps-in > div > p { max-width: 60ch; }
.opps-in .hiring { display: inline-block; background: #fff; color: var(--ink) !important; border-left: 4px solid var(--maroon); padding: 12px 18px; border-radius: 8px; }
.opps-in .ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 !important; }
.opps-in .ways > div { background: rgba(255, 255, 255, .9); backdrop-filter: blur(6px); color: var(--ink); border-radius: 14px; padding: 22px 24px; transition: transform .35s; }
.opps-in .ways > div:hover { transform: translateY(-6px); }
@media (max-width: 760px) { .opps-in .ways { grid-template-columns: 1fr; } }
.alumni-sec { padding-top: 24px; }
.alumni-sec .alumni-tiers { gap: 26px; margin-top: 18px; }
.alumni-sec .alum-row .kicker { font-size: 12px; }
.alumni-sec .alum-face { width: 76px; }
.alumni-sec .alum-face .pic.round { width: 60px; }
.alumni-sec .alum-name { font-size: 13px; }

.wiggle { display: inline-flex; }
.wiggle span { display: inline-block; animation: wiggle 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * .12s); margin-right: .02em; }
@keyframes wiggle { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-.12em) rotate(-6deg); } 50% { transform: translateY(0) rotate(4deg); } 75% { transform: translateY(.05em) rotate(-2deg); } }
.opps-in { grid-template-columns: 1fr 1.25fr; align-items: center; column-gap: 48px; }
.opps-in .ways { grid-template-columns: 1fr; gap: 12px; }
.opps-in .ways > div { padding: 14px 20px; }
.opps-in .ways h3 { margin: 0 0 4px; }
.opps-in .ways p { margin: 0; font-size: var(--fs-s); }
@media (max-width: 860px) { .opps-in { grid-template-columns: 1fr; } }

/* ---------- Opportunities band ---------- */
.opps-in { grid-template-columns: minmax(0, 1fr) auto !important; padding: 36px 24px 40px !important; gap: 20px 56px !important; align-items: center !important; }
.opps-head .h2 { margin: 2px 0 8px; }
.opps-head p { margin: 0; max-width: 54ch; color: #fff; }
.ways-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.way { position: relative; outline: none; }
.way-btn { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: #fff; color: var(--ink); font-family: var(--head); font-weight: 700; padding: 11px 20px; border-radius: 999px; cursor: pointer; box-shadow: 0 8px 20px -14px rgba(0,0,0,.6); transition: transform .25s; }
.way-btn::after { content: "+"; color: var(--maroon); font-size: 1.2em; line-height: 1; transition: transform .25s; }
.way:hover .way-btn, .way:focus-within .way-btn { transform: translateX(-6px); }
.way:hover .way-btn::after, .way:focus-within .way-btn::after { transform: rotate(45deg); }
.way-bubble { position: absolute; right: calc(100% + 14px); top: 50%; width: min(380px, 70vw); transform: translate(-8px, -50%); background: #fff; color: var(--ink); border-radius: 14px; padding: 16px 20px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); font-size: var(--fs-s); line-height: 1.5; opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; z-index: 6; }
.way-bubble::before { content: ""; position: absolute; left: 100%; top: 0; bottom: 0; width: 20px; }
.way-bubble p { margin: 0 0 8px; color: var(--ink) !important; } .way-bubble p:last-child { margin: 0; }
.way-bubble a { color: var(--maroon); }
.way:hover .way-bubble, .way:focus-within .way-bubble { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.ticker { display: flex; align-items: stretch; background: var(--maroon-deep); color: #fff; font-size: var(--fs-s); height: 40px; overflow: hidden; }
.ticker-tag { flex: none; display: flex; align-items: center; padding: 0 16px; background: #fff; color: var(--maroon-deep); font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.ticker-win { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-track { display: flex; white-space: nowrap; animation: ticker 28s linear infinite; }
.ticker-track span { padding-right: 80px; }
.ticker-track a { color: #fff; text-decoration: underline; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 860px) { .opps-in { grid-template-columns: 1fr !important; } .way-bubble { position: static; transform: none; width: auto; display: none; margin-top: 8px; } .way:hover .way-bubble, .way:focus-within .way-bubble { display: block; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Alumni, final sizing ---------- */
.alumni-sec .group-head { padding-bottom: 28px; }
.alum-note { margin: 10px 0 0; color: var(--soft); font-size: var(--fs-b); }
.alumni-sec .alumni-tiers { max-width: 1000px; margin: 0 auto; gap: 48px; }
.alumni-sec .alum-row .kicker { display: block; font-size: var(--fs-b); text-align: center; margin: 0 0 18px; }
.alumni-sec .alum-faces { gap: 28px 36px; margin: 0; }
.alumni-sec .alum-face { width: 140px; gap: 10px; }
.alumni-sec .alum-face .pic.round { width: 120px; }
.alumni-sec .alum-name { font-size: var(--fs-b); font-weight: 600; text-align: center; }

/* ---------- Team members split open on scroll ---------- */
.person[data-split] > .pic:first-child { opacity: var(--s1, 1); transform: translateX(calc((1 - var(--s2, 1)) * 170%)) scale(calc(.85 + .15 * var(--s1, 1))); position: relative; z-index: 2; }
.person[data-split] > .pic:last-child { opacity: min(var(--s1, 1), calc(var(--s2, 1) * 4)); transform: translateX(calc((1 - var(--s2, 1)) * -170%)); }
.person[data-split] > div:nth-child(2) > :not(h3):not(.since) { opacity: var(--s2, 1); transform: translateY(calc((1 - var(--s2, 1)) * 24px)); }
@media (max-width: 760px), (prefers-reduced-motion: reduce) { .person[data-split] > * , .person[data-split] > div:nth-child(2) > * { opacity: 1 !important; transform: none !important; } }

/* ---------- Alumni photos flip between their two pictures ---------- */
.alum-flip { position: relative; width: 120px; aspect-ratio: 1; perspective: 700px; }
.alum-flip > .pic.round { position: absolute; inset: 0; width: 100% !important; backface-visibility: hidden; }

/* ---------- No rings around photos; alumni flip only on hover */
.person .pic.round { box-shadow: none; }
.alum-flip { transition: transform .3s; }
.alum-flip > .pic.round { background: transparent; animation: none; backface-visibility: visible; }
.alum-flip > .af-front { transform: rotateY(0); opacity: 1; transition: transform .28s ease-out .28s, opacity 0s .28s; }
.alum-flip > .af-back { transform: rotateY(-90deg); opacity: 0; transition: transform .28s ease-in, opacity 0s .28s; }
.alum-face:hover .pic.round, .alum-face:focus .pic.round { transform: none; }
.alum-face:hover .alum-flip, .alum-face:focus .alum-flip { transform: scale(1.06); }
.alum-face:hover .alum-flip:has(.af-back) > .af-front, .alum-face:focus .alum-flip:has(.af-back) > .af-front { transform: rotateY(90deg); opacity: 0; transition: transform .28s ease-in, opacity 0s .28s; }
.alum-face:hover .alum-flip > .af-back, .alum-face:focus .alum-flip > .af-back { transform: rotateY(0); opacity: 1; transition: transform .28s ease-out .28s, opacity 0s .28s; }

/* ---------- Research themes: circle, three drawn lines, numbered questions */
.window.shift { background-attachment: scroll; background-position: center calc(var(--bp, 50%) + var(--by, 0px)); }
.theme-row { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 8vw, 120px); align-items: center; max-width: var(--max, 1180px); margin-inline: auto; padding-inline: var(--gutter); }
.theme-row.alt { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.theme-row.alt .theme-art { order: 2; }
.theme-art { position: relative; z-index: 1; }
.theme-art .pic.round { width: min(100%, 420px); margin-inline: auto; }
.theme-art .cap { text-align: center; }
.theme-txt { position: relative; z-index: 1; }
.theme-row.alt .theme-txt { text-align: right; }
.theme-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.theme-lines path { fill: none; stroke: #9cc8ea; stroke-width: 4; stroke-linecap: round; stroke-linejoin: miter; stroke-dasharray: 1; stroke-dashoffset: 1; }
.theme-lines circle { fill: #9cc8ea; opacity: 0; transition: opacity .2s; }
.tq { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 26px; }
.tq li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; align-items: start; }
.theme-row.alt .tq li { grid-template-columns: minmax(0, 1fr) 34px; }
.theme-row.alt .tq .qn { order: 2; }
.qn { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--maroon); background: var(--paper); color: var(--maroon); font: 700 var(--fs-s) var(--head); display: grid; place-items: center; margin-top: -4px; }
@media (prefers-reduced-motion: reduce) { .theme-lines path { stroke-dashoffset: 0; } .theme-lines circle { opacity: 1; } }
@media (max-width: 820px) {
  .theme-row, .theme-row.alt { grid-template-columns: 1fr; gap: 28px; }
  .theme-row.alt .theme-art { order: 0; }
  .theme-row.alt .theme-txt { text-align: left; }
  .theme-row.alt .tq li { grid-template-columns: 34px minmax(0, 1fr); }
  .theme-row.alt .tq .qn { order: 0; }
  .theme-lines { display: none; }
  .tq li { opacity: 1 !important; transform: none !important; }
}

/* ---------- Publications: year chips, figure strip that opens on hover */
.yearnav { top: 58px; background: rgba(255, 255, 255, .9); border-bottom: 0; transition: box-shadow .3s; }
.yearnav.stuck { box-shadow: 0 10px 24px -20px rgba(47, 42, 49, .5); }
.yearnav .in { padding: 14px var(--gutter); gap: 10px 18px; justify-content: center; }
.years { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--rose); }
.yearnav .years a { padding: 6px 14px; border-radius: 999px; color: var(--maroon-deep); font-size: var(--fs-s); transition: background .25s, color .25s; }
.yearnav .years a:hover { background: rgba(255, 255, 255, .7); color: var(--maroon-deep); }
.yearnav .years a.on { background: var(--maroon); color: #fff; }
.pub-find { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--rose); color: var(--maroon-deep); }
.pub-find svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.yearnav .pub-find input { margin: 0; border: 0; padding: 2px 0; background: transparent; width: 120px; font-size: var(--fs-s); color: var(--ink); transition: width .3s; }
.yearnav .pub-find input:focus { width: 200px; border: 0; }
#pub-count { min-width: 64px; }
.paper, .paper.nofig { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); align-items: center; }
.paper.nofig .txt { grid-column: 1 / -1; max-width: 760px; }
.paper .txt { position: static; gap: 10px; }
.paper .jr { font: 700 var(--fs-xs, .78rem) var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--dust-deep); margin: 0; }
.paper h3 em { font-style: normal; }
.figs { columns: auto; display: grid; gap: 10px; height: clamp(260px, 26vw, 360px); grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; transition: grid-template-columns .7s cubic-bezier(.22, .8, .25, 1), grid-template-rows .7s cubic-bezier(.22, .8, .25, 1); }
.figs button { position: relative; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(47, 42, 49, .06); cursor: zoom-in; }
.figs button.more { display: none; }
.figs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .7s cubic-bezier(.22, .8, .25, 1); }
.figs img.ct { object-fit: contain; opacity: 0; background: #fff; padding: 6px; }
.figs button:hover img:first-child, .figs button:focus-visible img:first-child { opacity: 0; transform: scale(1.04); }
.figs button:hover img.ct, .figs button:focus-visible img.ct { opacity: 1; }
/* four tiles: one large, one wide, two small */
.figs.n4 > button:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
.figs.n4 > button:nth-child(2) { grid-area: 1 / 3 / 2 / 5; }
.figs.n4 > button:nth-child(3) { grid-area: 2 / 3 / 3 / 4; }
.figs.n4 > button:nth-child(4) { grid-area: 2 / 4 / 3 / 5; }
.figs.n4:has(> button:nth-child(1):hover) { grid-template-columns: 2.4fr 2.4fr .6fr .6fr; }
.figs.n4:has(> button:nth-child(2):hover) { grid-template-columns: .6fr .6fr 2.4fr 2.4fr; grid-template-rows: 3fr 1fr; }
.figs.n4:has(> button:nth-child(3):hover) { grid-template-columns: .6fr .6fr 4fr .8fr; grid-template-rows: 1fr 3fr; }
.figs.n4:has(> button:nth-child(4):hover) { grid-template-columns: .6fr .6fr .8fr 4fr; grid-template-rows: 1fr 3fr; }
/* three tiles: one large, two stacked */
.figs.n3 > button:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
.figs.n3 > button:nth-child(2) { grid-area: 1 / 3 / 2 / 5; }
.figs.n3 > button:nth-child(3) { grid-area: 2 / 3 / 3 / 5; }
.figs.n3:has(> button:nth-child(1):hover) { grid-template-columns: 2.4fr 2.4fr .6fr .6fr; }
.figs.n3:has(> button:nth-child(2):hover) { grid-template-columns: .5fr .5fr 2fr 2fr; grid-template-rows: 3fr 1fr; }
.figs.n3:has(> button:nth-child(3):hover) { grid-template-columns: .5fr .5fr 2fr 2fr; grid-template-rows: 1fr 3fr; }
/* two tiles and one tile */
.figs.n2 > button { grid-row: 1 / 3; }
.figs.n2 > button:nth-child(1) { grid-column: 1 / 3; }
.figs.n2 > button:nth-child(2) { grid-column: 3 / 5; }
.figs.n2:has(> button:nth-child(1):hover) { grid-template-columns: 2fr 2fr .5fr .5fr; }
.figs.n2:has(> button:nth-child(2):hover) { grid-template-columns: .5fr .5fr 2fr 2fr; }
.figs.n1 > button { grid-area: 1 / 1 / 3 / 5; }
.figs button[data-more]::after { content: attr(data-more); position: absolute; z-index: 2; right: 8px; bottom: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--maroon-deep); font: 700 var(--fs-s) var(--head); transition: opacity .3s; }
.figs button[data-more]:hover::after { opacity: 0; }
@media (max-width: 820px) {
  .paper, .paper.nofig { grid-template-columns: minmax(0, 1fr); }
  .figs { height: 240px; }
  .yearnav .in { justify-content: flex-start; }
}

/* ---------- Publications banner: the title opens like a book, intro sits in the banner */
.window h1.book { display: inline-flex; perspective: 1400px; perspective-origin: 50% 40%; }
.book .pg { display: inline-block; backface-visibility: hidden; animation-duration: 1.6s; animation-timing-function: cubic-bezier(.2, .75, .2, 1); animation-fill-mode: both; }
.book .pg.l { transform-origin: 100% 50%; animation-name: page-l; }
.book .pg.r { transform-origin: 0 50%; animation-name: page-r; animation-delay: .12s; }
@keyframes page-l { 0% { transform: rotateY(88deg); opacity: 0; } 25% { opacity: 1; } 100% { transform: rotateY(0); opacity: 1; } }
@keyframes page-r { 0% { transform: rotateY(-88deg); opacity: 0; } 25% { opacity: 1; } 100% { transform: rotateY(0); opacity: 1; } }
.window .hero-lede { max-width: 62ch; margin-top: 18px; font-size: var(--fs-b); line-height: 1.6; color: #fff; text-shadow: 0 1px 14px rgba(20, 16, 24, .55); animation: lede-in 1s .9s both ease-out; }
.window .hero-lede strong { color: #fff; }
@keyframes lede-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .book .pg, .window .hero-lede { animation: none; } }

/* ---------- Teaching & Outreach */
.courses { display: grid; gap: 12px; margin-top: 22px; }
.course { display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: baseline; padding: 16px 20px; border-radius: 16px; background: var(--rose); }
.course .code { grid-row: 1 / 3; font: 700 var(--fs-l) var(--head); color: var(--maroon); letter-spacing: -0.02em; }
.course h3 { font-size: var(--fs-b); margin: 0; }
.sec-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sec-jump a { padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: var(--maroon-deep); font: 700 var(--fs-s) var(--head); text-decoration: none; transition: background .25s; }
.sec-jump a:hover { background: #fff; }
#teaching, #talks, #media { scroll-margin-top: 70px; }

/* ---------- Contact: one compact section */
.contact .contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.contact .contact-row p { margin: 6px 0 12px; }
.contact-art { display: grid; gap: 18px; align-content: start; }
.contact-art .pic.cutout { max-width: 300px; justify-self: center; }
.contact .map { aspect-ratio: 1; height: auto; width: min(100%, 280px); justify-self: center; border-radius: 50%; }
@media (max-width: 820px) { .contact .contact-row { grid-template-columns: 1fr; } }

/* ---------- Animated logo on the home page: clouds drift and stars shoot across the sky band */
.logo-stage { display: grid; place-items: center; padding: clamp(56px, 8vw, 104px) var(--gutter) 0; }
.logo-anim { position: relative; width: min(78vw, 400px); animation: logo-bob 7s ease-in-out infinite; }
.logo-anim img { display: block; width: 100%; height: auto; }
.logo-sky { position: absolute; inset: 0; clip-path: ellipse(40.6% 42.6% at 50.4% 50%); pointer-events: none; }
.logo-sky .band { position: absolute; left: 0; right: 0; overflow: hidden; }
.logo-sky .stars { top: 6%; height: 7.5%; }
.logo-sky .clouds { top: 11.5%; height: 7.5%; }
.ss { position: absolute; top: 10%; left: -18%; width: 16%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); transform-origin: 100% 50%; opacity: 0; animation: shoot 9s linear infinite; }
.ss.s2 { top: 40%; left: 10%; animation-delay: 3.4s; animation-duration: 11s; }
.ss.s3 { top: 0; left: 35%; animation-delay: 6.8s; animation-duration: 13s; }
@keyframes shoot { 0% { transform: rotate(14deg) translateX(0); opacity: 0; } 1.5% { opacity: 1; } 8% { transform: rotate(14deg) translateX(420%); opacity: 0; } 100% { transform: rotate(14deg) translateX(420%); opacity: 0; } }
.cl { position: absolute; height: 55%; width: 14%; border-radius: 999px; background: #fff; opacity: .9; animation: drift 40s linear infinite; }
.cl::before { content: ""; position: absolute; left: 22%; top: -45%; width: 48%; height: 110%; border-radius: 50%; background: inherit; }
.cl.c1 { top: 30%; animation-delay: -6s; }
.cl.c2 { top: 45%; width: 10%; animation-duration: 55s; animation-delay: -30s; }
.cl.c3 { top: 25%; width: 12%; animation-duration: 48s; animation-delay: -18s; }
@keyframes drift { from { left: -16%; } to { left: 104%; } }
@keyframes logo-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .logo-anim, .ss, .cl { animation: none; } .ss { display: none; } }

.logo-orbit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
/* contact: tidy, aligned */
.contact .contact-grid { align-items: center; }
.contact-art { display: flex; gap: 28px; justify-content: center; align-items: center; }
.contact-art > .pic, .contact-art > .pic.cutout, .contact .map { width: 220px; height: 220px; max-width: none; aspect-ratio: 1; flex: 0 0 220px; border-radius: 50%; overflow: hidden; margin: 0; justify-self: auto; }
.contact-art > .pic img { width: 100%; height: 100%; object-fit: cover; }
.contact .map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact .contact-row { margin-top: 32px; align-items: start; }
@media (max-width: 820px) { .contact-art { margin-top: 32px; } .contact-art > .pic, .contact .map { width: 160px; height: 160px; flex-basis: 160px; } }
.contact .map { position: relative; }
.contact .map iframe { position: absolute; width: 170%; height: 170%; left: -35%; top: -35%; pointer-events: auto; }
/* gallery collage below the globe */
.trip-panel { padding: 56px 0 24px; scroll-margin-top: 70px; }
.trip-panel[hidden] { display: none; }
.trip-panel .jg { animation: fadeup .7s ease both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.jg.rect { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 7.5vw; gap: 6px; padding: 0 6px; }
.jg.rect .jg-item { border-radius: 4px; }
@media (max-width: 640px) { .jg.rect { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 22vw; } .jg.rect .jg-item.big { grid-column: span 4; grid-row: span 3; } .jg.rect .jg-item.wide { grid-column: span 4; } }

/* Mars globe on Resources */
.mars-wrap { width: min(100%, 380px); margin-inline: auto; }
.mars-wrap canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.mars-wrap figcaption { margin-top: 10px; }

/* LinkedIn follow block on Home */
.linkedin { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.linkedin .actions { justify-content: center; }
.li-badge { width: 96px; height: 96px; border-radius: 50%; background: var(--rose); color: var(--maroon); display: grid; place-items: center; transition: transform .4s; }
.li-badge:hover { transform: scale(1.06); }
.li-badge svg { width: 42px; height: 42px; }

/* Data & code banner: live wireframe of MOLA topography (Gale crater) */
.window.meshwin { background: #2b2a30; }
.window.meshwin::before { background: linear-gradient(180deg, rgba(40,34,44,0) 45%, rgba(40,34,44,.6)); z-index: 0; }
.window.meshwin .mesh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.window.meshwin h1 { position: relative; }

/* Theme image credits: subtle, on hover only */
.theme-art .credit { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); font-size: 12px; font-family: var(--head); color: #fff; background: rgba(47,42,49,.45); padding: 3px 10px; border-radius: 999px; text-decoration: none; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.theme-art:hover .credit, .theme-art .credit:focus { opacity: 1; }

/* Contact circles: same size at every width */
@media (max-width: 820px) { .contact-art > .pic.cutout { width: 160px; height: 160px; flex-basis: 160px; } }
/* Gallery: the globe section is the page banner */
.globe-hero { min-height: 60vh; display: grid; align-items: center; padding: 16px 0; color: #fff;
  background-color: #3a3940;
  background-image: radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.8) 50%, transparent 51%), radial-gradient(1px 1px at 27% 72%, rgba(255,255,255,.6) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 41% 33%, rgba(255,255,255,.7) 50%, transparent 51%), radial-gradient(1px 1px at 55% 86%, rgba(255,255,255,.5) 50%, transparent 51%), radial-gradient(1px 1px at 63% 12%, rgba(255,255,255,.7) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 78% 64%, rgba(255,255,255,.6) 50%, transparent 51%), radial-gradient(1px 1px at 88% 26%, rgba(255,255,255,.8) 50%, transparent 51%), radial-gradient(1px 1px at 94% 82%, rgba(255,255,255,.5) 50%, transparent 51%), radial-gradient(1px 1px at 6% 55%, rgba(255,255,255,.6) 50%, transparent 51%), radial-gradient(1px 1px at 35% 6%, rgba(255,255,255,.5) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 18% 90%, rgba(255,255,255,.6) 50%, transparent 51%), radial-gradient(1px 1px at 70% 44%, rgba(255,255,255,.4) 50%, transparent 51%);
  background-size: 240px 180px; }
.globe-hero h1 { color: #fff; }
.globe-hero p { color: rgba(255,255,255,.86); }
.globe-hero .story { margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
.globe-hero h1 { font-size: var(--fs-hero); letter-spacing: -0.035em; line-height: 0.95; margin-bottom: 18px; }
.globe-hero .globe-wrap.big { width: min(100%, 420px); }

/* Trip galleries: masonry of mixed shapes in three columns */
.jg.masonry { width: auto; max-width: var(--max); margin: 36px auto 0; padding: 0 var(--gutter); column-count: 3; column-gap: 10px; }
.jg.masonry .jg-item { width: 100%; margin: 0 0 10px; break-inside: avoid; border-radius: 2px; }
.jg.masonry .jg-item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .jg.masonry { column-count: 2; column-gap: 6px; } .jg.masonry .jg-item { margin-bottom: 6px; } }

/* One heading system: h2 for sections, h3.sub for small blocks inside a section */
h3.sub { font-family: var(--head); font-size: var(--fs-l); font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.trip-year { color: var(--soft); font-family: var(--head); margin-top: -6px; }

/* Logo badge: a large circle tucked into the top-left corner, same colour as the header, overlapping the banner */
.head-in { max-width: none; }
.mark { position: relative; padding-left: calc(var(--badge) - var(--gutter) - 26px); --badge: 200px; }
.mark-badge { position: absolute; left: calc(-1 * var(--gutter) - 22px); top: -50px; width: var(--badge); height: var(--badge); border-radius: 50%;
  background: rgb(247, 245, 242); display: grid; place-items: center; z-index: 1; transition: transform .35s; transform-origin: 22px 50px; }
.mark-badge .mark-logo { width: 146px; height: auto !important; display: block; transform: translateY(8px); }
.mark-txt { position: relative; z-index: 2; }
.site-head.scrolled .mark-badge { transform: scale(.62); }
@media (max-width: 820px) { .mark { --badge: 136px; } .mark-txt > span { display: none; } .mark-badge { top: -26px; left: calc(-1 * var(--gutter) - 14px); transform-origin: 14px 26px; } .mark-badge .mark-logo { width: 98px; transform: translateY(5px); } }

/* When the header shrinks on scroll, only the logo badge stays on the left */
.mark-txt { transition: opacity .3s; }
.site-head.scrolled .mark-txt { opacity: 0; visibility: hidden; }

/* Trip galleries: one packed collage. build.py cuts the block into nested rectangles that keep each photo's shape and end flush */
.jg.collage { width: auto; max-width: var(--max); margin: 36px auto 0; padding: 0 var(--gutter); }
.jg.collage .cg { position: relative; aspect-ratio: var(--ar); margin: -4px; }
.jg.collage .jg-item { position: absolute; box-sizing: border-box; border: 4px solid #fff; border-radius: 6px; background: #fff;
  left: var(--x); top: var(--y); width: var(--w); height: var(--h); }
.jg.collage .jg-item img { border-radius: 2px; }
@media (max-width: 640px) {
  .jg.collage .cg { aspect-ratio: var(--mar); margin: -2px; }
  .jg.collage .jg-item { border-width: 2px; left: var(--mx); top: var(--my); width: var(--mw); height: var(--mh); }
}

/* Every inner banner is exactly BANNER_H tall (60vh), Gallery's globe band included */
.window:not(.hero) { height: var(--h, 60vh); min-height: 0; }
.globe-hero { height: 60vh; min-height: 0; overflow: hidden; padding: 0; }
.globe-hero .globe-wrap.big { width: min(100%, 420px, calc(60vh - 90px)); }

/* Teaching: one text block per course, media on the right like other sections */
.courses { margin-top: 8px; }
.course-item + .course-item { margin-top: clamp(40px, 6vw, 72px); }
.course-code { color: var(--maroon); margin-right: 6px; }
/* Teaching: courses without media yet, two per row; stacked on phones */
@media (max-width: 880px) { .course-pair { row-gap: clamp(40px, 6vw, 72px); } }
.course-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: center; max-width: 440px; margin-inline: auto; }
.course-logos figure { margin: 0; }
.course-logos img { width: 100%; height: auto; display: block; }

/* Home: latest LinkedIn posts (official LinkedIn embeds, URNs in misc.linkedin_posts) */
.li-posts { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: var(--max); margin: 28px auto 8px; padding: 0 var(--gutter); text-align: left; }
.li-posts iframe { width: 100%; height: 620px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 var(--hair), 0 6px 24px rgba(40, 34, 44, .06); }
@media (max-width: 900px) { .li-posts { grid-template-columns: 1fr; max-width: 560px; } }
/* Teaching: placeholder where a course's photo, video or collage will go */
.media-soon { aspect-ratio: 16 / 9; border-radius: 16px; background: var(--dust-pale); display: grid; place-items: center; }
.media-soon span { font: 700 var(--fs-s) var(--head); color: var(--dust, #7f97a8); letter-spacing: .02em; }

.legoscape{display:block;width:100%;aspect-ratio:16/11;cursor:grab;touch-action:pan-y}
.legoscape:active{cursor:grabbing}
.legoscape-row{margin-top:24px}
/* Teaching: the media box on the right is exactly as tall as the course text on the left. */
@media (min-width: 901px) {
  .course-item .course-media { display: flex; flex-direction: column; align-self: stretch; }
  .course-media > .embed, .course-media > .media-soon, .course-media > .course-logos { flex: 1 1 0; min-height: 220px; aspect-ratio: auto; }
  .course-media > .course-logos { max-width: none; width: 100%; margin: 0; grid-template-rows: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .course-media > .course-logos figure { position: relative; min-height: 0; height: 100%; }
  .course-media > .course-logos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
  .course-media > .cap { margin-bottom: 0; }
}
/* Phones: hover cards and wide decorations must not make the page scroll sideways. */
html, body { overflow-x: clip; }
.alum-card { width: min(240px, 72vw); }
@media (max-width: 760px) { .window.shift.eng { background-position: 8% calc(var(--bp, 50%) + var(--by, 0px)); } }
@media (min-width: 881px) { .foot-in > div:last-child { text-align: right; } }
@media (max-width: 760px) {
  .river .water { stroke-width: 30; }
  .river .water.thin { stroke-width: 14; }
  .river .bank { stroke-width: 50; }
  .river .bank.thin { stroke-width: 30; }
  .river .chev use { transform: scale(2.3); }
}
.model-tools { margin-top: 12px; gap: 8px; }
.model-tools .btn { padding: 8px 15px; font-size: 14px; }
/* Phones: photo captions sit in their own line under the banner text. */
@media (max-width: 760px) { .window:has(.tag) .in { padding-bottom: 44px; } .window .tag { bottom: 14px; } }
.pin-chooser { position: absolute; z-index: 5; transform: translate(-50%, 12px); display: flex; flex-direction: column; gap: 6px; padding: 8px; background: #fff; border-radius: 18px; box-shadow: 0 6px 24px rgba(40, 30, 40, .18); }
.pin-chooser button { font: 700 var(--fs-s) var(--body); color: var(--maroon); background: transparent; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--maroon); padding: 7px 16px; cursor: pointer; white-space: nowrap; }
.pin-chooser button:hover { background: var(--maroon); color: #fff; }
/* Contact circles shrink with their column so the map is never cut off at mid widths. */
.contact-art { min-width: 0; }
.contact-art > .pic, .contact-art > .pic.cutout, .contact .map { width: min(220px, calc((100% - 28px) / 2)); height: auto; flex: 0 1 auto; aspect-ratio: 1; }
@media (max-width: 820px) { .contact-art > .pic, .contact-art > .pic.cutout, .contact .map { width: min(160px, calc((100% - 28px) / 2)); height: auto; flex-basis: auto; } }
/* Body text blocks are justified on every page, as on Team and Publications. Centred blocks keep their alignment. */
main p:not(.hero-lede):not(.cap):not(.since):not(.hiring), main li { text-align: justify; hyphens: auto; }
.teaser p, .center-head p, .flip p, .night p, .group-head p, .linkedin p, .alum-row p, .alum-row li, .theme-art p, .g-place p, .tl-year, .actions p { text-align: inherit; }
.theme-row.alt .theme-txt p, .theme-row.alt .theme-txt li { text-align-last: right; }
@media (max-width: 880px) { .theme-row.alt .theme-txt p, .theme-row.alt .theme-txt li { text-align-last: auto; } }
/* Map keeps one zoom at every circle size, centred on the marker. */
.contact .map iframe { width: 380px; height: 380px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
/* Address-style lines broken with <br> stay left aligned. */
main p:not(.hero-lede):not(.cap):not(.since):not(.hiring):has(br) { text-align: left; }
.hello { white-space: nowrap; }
/* Home: "Hello there!" letters ripple through the site palette with a small hop, every few seconds. */
.hello span { display: inline-block; animation: hello 5s ease-in-out infinite; animation-delay: calc(1.2s + var(--i) * .07s); }
@keyframes hello { 0%, 30%, 100% { color: #fff; transform: translateY(0); } 8% { color: #f3e0d4; transform: translateY(-.14em); } 15% { color: #9cc8ea; transform: translateY(0); } 22% { color: #e8a48c; } }
@media (prefers-reduced-motion: reduce) { .hello span { animation: none; } }

/* Gallery on phones: the dark band grows to hold the text and the whole globe below it, and the title clears the logo badge */
@media (max-width: 760px) {
  .globe-hero { height: auto; overflow: visible; }
  .globe-hero .story { padding: 84px var(--gutter) 40px; gap: 28px; }
  .globe-hero .field-intro .story-art { max-width: 100%; }
  .globe-hero .globe-wrap.big { width: min(100%, 360px); }
}

/* Phone menu: start the list below the logo badge so Home is visible */
@media (max-width: 820px) { .head-right { padding-top: 76px; } }
