/* =============================================================================
   CEDIS Lab — css/projects.css
   -----------------------------------------------------------------------------
   Project cards, the home-page projects carousel, the project pages
   (sepes/, sgs/, bases/, v2x/, e-mobility/, vpp/, sox/), the drawings used
   for projects without photos, and the publication list. Loaded after
   components.css and before responsive.css; its own phone rules are at the end.
   ============================================================================= */

/* Project card: black tile with a cover (photo or drawing), years, name,
   one line, and a link. Used by the carousel and the Projects page grid. */
.pcard { display: grid; grid-template-rows: auto 1fr; height: 100%; background: var(--black); color: var(--white); border-radius: 24px; overflow: hidden; text-decoration: none; border: 1px solid #1C1C1F; transition: transform .25s ease, box-shadow .25s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .7), 0 0 0 1px rgba(var(--sig-rgb), .35); }
.pcard:focus-visible { outline-offset: 4px; }
.pcard .cover { position: relative; aspect-ratio: 15 / 13; max-width: 100%; background: var(--tile); overflow: hidden; }
.pcard .cover img, .pcard .cover svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.pcard .cover::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); pointer-events: none; }
.pcard .yr { position: absolute; left: 16px; bottom: 12px; z-index: 1; font: 500 .78rem var(--f-mono); color: #E5E5EA; letter-spacing: .02em; }
.pcard .pc-b { display: grid; gap: 8px; align-content: start; padding: 18px 20px 22px; }
.pcard h3 { font-size: 1.35rem; line-height: 1.12; letter-spacing: -0.025em; }
.pcard .full { font-size: .8rem; font-weight: 600; color: var(--gray); }
.pcard p { color: var(--gray); font-size: .92rem; line-height: 1.42; }
.pcard .more { margin-top: 4px; color: var(--sig); font-size: .92rem; font-weight: 500; }

/* Home: the projects carousel. A row of tall cards that scrolls sideways
   (swipe on touch screens). The arrows sit at either end; js/lab.js moves it
   on by one card every 3 seconds, loops back to the first, and pauses while
   it is hovered or focused, when it is off screen, or when Pause is pressed.
   With reduced motion it starts paused. */
.carousel { position: relative; }
.car-track { list-style: none; margin: 0; padding: 4px 2px 18px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > li { position: relative; scroll-snap-align: start; min-width: 0; } /* relative: hidden headings stay inside their card */
.car-btn { position: absolute; top: calc(50% - 46px); z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(22, 22, 24, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--white); cursor: pointer; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .7); transition: background-color .2s ease, transform .2s ease; }
.car-btn:hover { background: #000000; transform: scale(1.05); }
.car-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.car-btn.prev { left: -12px; }
.car-btn.next { right: -12px; }
.car-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 10px; }
.car-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #C7C7CC; background: transparent; color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 500 .85rem var(--f); cursor: pointer; }
.car-toggle:hover { border-color: var(--ink); }
.car-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.car-toggle .i-play { display: none; }
.car-toggle[aria-pressed="true"] .i-play { display: block; }
.car-toggle[aria-pressed="true"] .i-pause { display: none; }
.car-count { font: 500 .85rem var(--f-mono); color: var(--ink-2); }

/* Projects page: the grid of project cards */
.proj-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* Project pages */
.pp-head .meta { font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 600; color: var(--gray); margin-top: -8px; }
.pp-head .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; max-width: 980px; }
.pp-head h1 { max-width: 14em; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--gray); text-decoration: none; font-size: .9rem; font-weight: 500; }
.back:hover { color: var(--white); }
.fig { margin: 0; display: grid; gap: 12px; min-width: 0; }
.fig .frame { border-radius: 28px; overflow: hidden; background: var(--tile); border: 1px solid var(--hair); }
.light .fig .frame, .white .fig .frame { border-color: transparent; box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .55); }
.fig img, .fig svg { display: block; width: 100%; height: auto; max-width: 100%; }
.fig figcaption { color: var(--fg-2); font-size: .9rem; max-width: 60em; }
.fig.tall { max-width: 520px; margin-inline: auto; }
.fig-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pp-two { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.pp-col { display: grid; gap: 22px; align-content: start; min-width: 0; }
.topics.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.topics.cols li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
.cases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cases li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 18px; background: var(--surface); }
.cases b { font-size: 1rem; font-weight: 600; }
.cases span { color: var(--fg-2); font-size: .88rem; }
.outcome { display: grid; gap: 14px; max-width: 46em; }
.outcome p { color: var(--fg-2); font-size: 1.05rem; }
.outcome p strong { color: var(--fg); font-weight: 600; }
.chips a { color: inherit; text-decoration: none; }
.chips li:has(a):hover { border-color: var(--link); }
.pub-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.pub-mini li { padding: 14px 0; border-top: 1px solid var(--line); }
.pub-mini li:last-child { border-bottom: 1px solid var(--line); }
.pub-mini a { color: var(--fg); text-decoration: none; font-weight: 600; }
.pub-mini a:hover { color: var(--link); }
.pub-mini span { display: block; color: var(--fg-2); font-size: .9rem; }
.next-proj { display: inline-flex; align-items: center; gap: 8px; color: var(--sig); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.next-proj:hover { text-decoration: underline; }

/* Research page: related-work card for a project (no wordmark) */
.rel-card.proj { grid-template-columns: minmax(0, 1fr); }
.rel-card.proj b { font-size: 1.02rem; }

/* Drawings for projects without photos (E-Mobility, VPP, SoX). Lines and
   labels take these classes; colours come from the tokens. */
.dw { background: var(--tile); }
.dw .ln { fill: none; stroke: rgba(245, 245, 247, .55); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dw .ln.f { stroke: rgba(245, 245, 247, .22); }
.dw .gd { fill: none; stroke: var(--sig); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(var(--sig-rgb), .55)); }
.dw .gd.dash { stroke-dasharray: 6 7; filter: none; stroke-width: 1.8; }
.dw .fl { fill: rgba(var(--sig-rgb), .12); stroke: var(--sig); stroke-width: 2; }
.dw .bx { fill: #161618; stroke: rgba(245, 245, 247, .4); stroke-width: 1.6; }
.dw .hub { fill: #000000; stroke: var(--sig); stroke-width: 2.4; filter: drop-shadow(0 0 10px rgba(var(--sig-rgb), .6)); }
.dw .wht { fill: #F5F5F7; }
.dw .t { fill: rgba(245, 245, 247, .82); font: 500 15px var(--f); }
.dw .t.s { font-size: 12.5px; fill: rgba(245, 245, 247, .6); }
.dw .t.g { fill: var(--sig); font: 600 14px var(--f-mono); letter-spacing: .06em; }
.dw .t.b { font-weight: 700; font-size: 17px; fill: #FFFFFF; }
.dw .pk { fill: var(--sig); }

/* People: the director's portrait is a photo on a light studio backdrop */
.portrait.photo { aspect-ratio: 3 / 4; background: var(--paper); border-color: transparent; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .6); }

/* Publications: jump chips, entries, citations */
.pub-sec .head { margin-bottom: clamp(28px, 4vw, 44px); }
.pub .venue { color: var(--fg-2); }
.pub .venue i { color: var(--fg); }
details.cite-d { border-top: 1px solid var(--line); padding-top: 10px; }
details.cite-d > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; color: var(--link); font-weight: 500; }
details.cite-d > summary::-webkit-details-marker { display: none; }
details.cite-d > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s ease; }
details.cite-d[open] > summary::before { transform: rotate(45deg); }
details.cite-d .cite { border-top: 0; padding-top: 12px; }
.pub-count { font: 500 .9rem var(--f-mono); color: var(--fg-2); }

/* Footer: the page links in the bottom bar */
.foot .bot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Phones and tablets */
@media (max-width: 1000px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .pp-two { grid-template-columns: minmax(0, 1fr); }
  .pp-head .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .proj-grid { grid-template-columns: minmax(0, 1fr); }
  .fig-row { grid-template-columns: minmax(0, 1fr); }
  .topics.cols { grid-template-columns: minmax(0, 1fr); }
  .topics.cols li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .car-track { grid-auto-columns: 78%; }
  .car-btn { width: 44px; height: 44px; top: calc(50% - 44px); }
  .car-btn.prev { left: -6px; }
  .car-btn.next { right: -6px; }
}
@media (max-width: 420px) { .pp-head .facts { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pcard, .car-btn { transition: none; } .pcard:hover { transform: none; } }

/* Alignment fixes: rows of facts, topics and case studies start at the top */
.facts div, .topics li, .cases li { align-content: start; }
.fig.draw { max-width: 760px; margin-inline: auto; }
.car-btn { top: 100px; }

/* Projects page grid: three cards on the first row and four on the second,
   so no card sits alone; on tablets the last card runs the full width with
   its cover beside the text. */
.proj-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.proj-grid > li { grid-column: span 3; min-width: 0; }
.proj-grid > li:nth-child(-n+3) { grid-column: span 4; }
@media (max-width: 1000px) {
  .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj-grid > li, .proj-grid > li:nth-child(-n+3) { grid-column: auto; }
  .proj-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .proj-grid > li:last-child:nth-child(odd) .pcard { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; }
  .proj-grid > li:last-child:nth-child(odd) .cover { aspect-ratio: auto; height: 100%; min-height: 240px; }
}
@media (max-width: 640px) {
  .proj-grid { grid-template-columns: minmax(0, 1fr); }
  .proj-grid > li:last-child:nth-child(odd) .pcard { grid-template-columns: none; grid-template-rows: auto 1fr; }
  .proj-grid > li:last-child:nth-child(odd) .cover { aspect-ratio: 15 / 13; height: auto; min-height: 0; }
}

/* Projects page, More projects: the grid above on computers and tablets; a
   carousel on small phones (520 px and under), one card with the next one
   peeking, arrows, Pause and count below. js/lab.js runs it; while every
   card fits (the grid), it adds "fits" and the controls stay hidden. */
.more-car .proj-grid { grid-auto-flow: row; overflow: visible; scroll-snap-type: none; padding: 0; }
.more-car.fits .car-foot { display: none; }
@media (min-width: 521px) { .more-car .car-btn, .more-car .car-foot { display: none; } }
@media (max-width: 520px) {
  .more-car { display: grid; grid-template-columns: 42px 42px minmax(0, 1fr); grid-template-areas: "track track track" "prev next foot"; align-items: center; column-gap: 10px; }
  .more-car .proj-grid { grid-area: track; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 4px 2px 18px; }
  .more-car .proj-grid > li, .more-car .proj-grid > li:nth-child(-n+3), .more-car .proj-grid > li:last-child:nth-child(odd) { grid-column: auto; display: grid; }
  .more-car .car-btn { position: static; width: 42px; height: 42px; box-shadow: none; }
  .more-car .car-btn.prev { grid-area: prev; }
  .more-car .car-btn.next { grid-area: next; }
  .more-car .car-foot { grid-area: foot; justify-content: flex-start; gap: 12px 16px; margin: 0 0 0 6px; }
}

/* Publications: the papers timeline. A vertical line with the date on its
   left and the paper on its right; each paper hangs from a node on the line
   by a short connector. Gold nodes are journal articles, blue nodes are
   conference papers (the key above the timeline says so). */
.tl { --tl-d: 112px; --tl-n: 52px; --tl-gap: 22px; list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: clamp(28px, 4vw, 44px); max-width: 980px; }
.tl::before { content: ""; position: absolute; left: calc(var(--tl-d) + var(--tl-gap) + var(--tl-n) / 2 - 1px); top: 10px; bottom: 0; width: 2px; background: linear-gradient(var(--hair-l), var(--hair-l) 92%, transparent); }
.tl::after { content: ""; position: absolute; left: calc(var(--tl-d) + var(--tl-gap) + var(--tl-n) / 2 - 6px); bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--hair-l); }
.tl-i { --c: var(--sig-deep); --c-fill: var(--sig); --c-ink: var(--sig-ink); position: relative; display: grid; grid-template-columns: var(--tl-d) var(--tl-n) minmax(0, 1fr); column-gap: var(--tl-gap); align-items: start; scroll-margin-top: 72px; }
.tl-i.conf { --c: #0B63CE; --c-fill: #0B63CE; --c-ink: #FFFFFF; }
.tl-d { display: grid; justify-items: end; text-align: right; padding-top: 6px; }
.tl-d .y { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1 var(--f); letter-spacing: -0.03em; color: var(--c); font-variant-numeric: tabular-nums; }
.tl-d .m { margin-top: 6px; font: 500 .85rem var(--f-mono); color: var(--ink-2); }
.tl-n { position: relative; z-index: 1; display: grid; place-items: center; width: var(--tl-n); height: var(--tl-n); border-radius: 50%; background: var(--c-fill); color: var(--c-ink); box-shadow: 0 0 0 6px #FFFFFF, 0 10px 22px -12px rgba(0, 0, 0, .5); }
.tl-n svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tl-b { position: relative; display: grid; gap: 10px; min-width: 0; padding: 4px 0 0 18px; border-left: 3px solid var(--c); }
.tl-b::before { content: ""; position: absolute; left: calc(-1 * var(--tl-gap) - 3px); top: calc(var(--tl-n) / 2 - 1px); width: var(--tl-gap); height: 2px; background: var(--c); }
.tl-b .tag { justify-self: start; color: var(--c); border-color: currentColor; }
.tl-b h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.25; letter-spacing: -0.02em; }
.tl-b .pub-links { gap: 6px 20px; }
.tl-b details.cite-d { border-top: 0; padding-top: 0; }
.tl-b .cite pre { background: var(--paper); border-color: transparent; }
.tl-key { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--ink-2); }
.tl-key span { display: inline-flex; align-items: center; gap: 8px; }
.tl-key i { width: 12px; height: 12px; border-radius: 50%; background: var(--sig); }
.tl-key .conf i { background: #0B63CE; }
@media (max-width: 600px) {
  .tl { --tl-d: 54px; --tl-n: 34px; --tl-gap: 12px; }
  .tl-d { padding-top: 2px; }
  .tl-d .y { font-size: 1.05rem; }
  .tl-d .m { font-size: .72rem; margin-top: 3px; }
  .tl-n { box-shadow: 0 0 0 4px #FFFFFF; }
  .tl-b { padding-left: 12px; }
}

/* People: a smaller portrait */
.director { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); }
.portrait.photo { max-width: 250px; }
@media (max-width: 760px) { .director { grid-template-columns: minmax(0, 1fr); } .portrait.photo { max-width: 200px; } }
.tl-b .pub-links .link { min-width: 0; overflow-wrap: anywhere; }

/* People: the director's post-nominals sit beside the name, smaller */
.director .h2 .cred { font-size: .42em; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); white-space: nowrap; }

/* Research: related work shown as tiles, two to a row (KERNEL spans the row) */
.rel-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rel-tiles .rel-card { align-content: start; align-items: start; height: 100%; }
.rel-tiles .rel-card:not(.proj) { grid-column: 1 / -1; align-items: center; }
/* Research, "Related work from the lab": the tiles above on computers and
   tablets; a carousel on phones (520 px and under) with one tile and the
   next one peeking, moving on every 3 seconds, arrows, Pause and count
   below (js/lab.js). With one tile, or while all fit, the controls hide. */
.relw .rel-tiles { grid-auto-flow: row; overflow: visible; scroll-snap-type: none; padding: 0; }
.relw .rel-tiles > * { position: relative; }
.relw.fits .car-foot { display: none; }
@media (min-width: 521px) { .relw .car-btn, .relw .car-foot { display: none; } }
@media (max-width: 520px) {
  .relw { display: grid; grid-template-columns: 42px 42px minmax(0, 1fr); grid-template-areas: "track track track" "prev next foot"; align-items: center; column-gap: 10px; }
  .relw .rel-tiles { grid-area: track; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 4px 2px 14px; }
  .relw .rel-tiles > .rel-card, .relw .rel-tiles > .rel-card:not(.proj) { grid-column: auto; scroll-snap-align: start; min-width: 0; }
  .relw .car-btn { position: static; width: 42px; height: 42px; box-shadow: none; }
  .relw .car-btn.prev { grid-area: prev; }
  .relw .car-btn.next { grid-area: next; }
  .relw .car-foot { grid-area: foot; justify-content: flex-start; gap: 12px 16px; margin: 0 0 0 6px; }
}

/* Project pages: live-demo button under "What was built" */
.demo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.pill-btn.demo-soon, .white .pill-btn.demo-soon, .light .pill-btn.demo-soon {
  background: transparent; color: var(--fg); border: 1px dashed #C7C7CC; cursor: default; gap: 12px; padding: 12px 14px 12px 22px;
}
.pill-btn.demo-soon:hover { filter: none; box-shadow: none; }
.demo-soon .soon { font: 600 .7rem/1 var(--f); letter-spacing: .05em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: rgba(var(--sig-rgb), .2); color: var(--sig-deep); }
/* The narrowest phones: the demo button may wrap onto two lines. */
@media (max-width: 380px) { .pill-btn.demo-soon { white-space: normal; flex-wrap: wrap; text-align: center; line-height: 1.25; max-width: 100%; } }
@media (max-width: 520px) { .rel-tiles .rel-card:not(.proj) { grid-template-columns: minmax(0, 1fr); gap: 10px; } .rel-tiles .rel-card .kw { grid-row: auto; } }

/* People: member and partner cards (photo and name on top, profile below) */
/* Release carousels (Home: latest releases; Projects: release tools). One
   tool per view; the arrows, Pause and count below the slides. They move on
   every 3 seconds (js/lab.js), starting paused with reduced motion. */
.rel-car { display: grid; grid-template-columns: 42px 42px minmax(0, 1fr); grid-template-areas: "track track track" "prev next foot"; align-items: center; column-gap: 10px; }
.rel-car .car-track { grid-area: track; grid-auto-columns: 100%; gap: 32px; padding: 4px 2px 40px; }
.rel-car .car-track > li { display: grid; }
.rel-car .car-btn { position: static; width: 42px; height: 42px; box-shadow: none; }
.rel-car .car-btn.prev { grid-area: prev; }
.rel-car .car-btn.next { grid-area: next; }
.rel-car .car-foot { grid-area: foot; justify-content: flex-start; gap: 12px 16px; margin: 0 0 0 6px; }
.rel-car.fits .car-foot { display: none; }
.head.rel-head { margin-bottom: clamp(14px, 2vw, 22px); } /* Home: the "Release" eyebrow sits close above the cards */
.night.feature { padding: clamp(24px, 4vw, 56px); }
.rel-car .night { box-shadow: 0 24px 36px -26px rgba(0, 0, 0, .5); }
/* Small phones: each release card ends with its two buttons; the second row
   of links, the facts and the research areas are left off. */
@media (max-width: 520px) {
  .rel-car .facts, .rel-car .related, .rel-car .proj-main > .btn-row + .btn-row { display: none; }
  /* the two buttons stay on one line: card padding, button padding and text
     size follow the screen width (e.g. "Visit KERNEL" and "Source on GitHub") */
  .rel-car .night, .rel-car .night.feature { padding: min(24px, 5vw); }
  .rel-car .btn-row { flex-wrap: nowrap; gap: 12px; }
  .rel-car .btn-row .pill-btn, .rel-car .btn-row .ghost-btn { font-size: min(1.0625rem, calc(5.7vw - 4.9px)); padding: 13px 16px; }
  .rel-car .btn-row .link { font-size: min(1.1rem, calc(5.7vw - 4.9px)); white-space: nowrap; }
}

/* People: members and partners carousel. Uses the carousel above with no
   autoplay: two cards per view on wide screens, one (with the next peeking)
   on smaller ones. With only as many cards as fit, the arrows hide. */
.people-car { margin-bottom: clamp(40px, 6vw, 64px); }
.people-car .car-track { grid-auto-columns: calc((100% - 16px) / 2); }
.people-car .car-track > li { display: grid; }
.people-car .car-foot { justify-content: flex-start; min-height: 0; }
.carousel.fits .car-btn, .carousel.fits .car-count { display: none; }
.people-car.fits .car-foot { display: none; }
.person { display: grid; gap: 20px; align-content: start; padding: clamp(20px, 2.6vw, 30px); border-radius: 28px; background: var(--card); border: 1px solid var(--hair-l); }
.person-top { display: flex; align-items: center; gap: 18px; }
.person .person-ph { flex: none; width: 96px; aspect-ratio: 1; border-radius: 20px; background: var(--paper); border-color: transparent; }
.person-id { display: grid; gap: 4px; min-width: 0; }
.person-name { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.15; }
.person-name .cred { font-size: .7em; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.person .profile { gap: 10px 20px; font-size: .95rem; }
.person .profile dt { font-size: .82rem; }
.person .chips { gap: 6px; }
.person .chips li { font-size: .8rem; padding: 5px 11px; }
#members .head { margin-bottom: 18px; }
h2.eyebrow { margin: 0; }
.more-room { margin-bottom: clamp(20px, 3vw, 28px); }
@media (max-width: 1000px) {
  /* Narrower screens: one card with the next peeking; the arrows move below
     the cards, beside the count, so they never cover a card's text. */
  .people-car { display: grid; grid-template-columns: 42px 42px minmax(0, 1fr); grid-template-areas: "track track track" "prev next foot"; align-items: center; column-gap: 10px; }
  .people-car .car-track { grid-area: track; grid-auto-columns: min(86%, 560px); }
  .people-car .car-btn { position: static; width: 42px; height: 42px; box-shadow: none; }
  .people-car .car-btn.prev { grid-area: prev; }
  .people-car .car-btn.next { grid-area: next; }
  .people-car .car-foot { grid-area: foot; margin: 0 0 0 6px; }
}
@media (max-width: 420px) { .person .person-ph { width: 76px; } }
