/* DiffNeuSim project page. Light theme first; dark through prefers-color-scheme. */

:root {
  --bg: #ffffff;
  --bg-tint: #f4f4f2;
  --plate: #efefef;          /* the renders' light floor, so videos sit flush */
  --ink: #1b1d1c;
  --ink-2: #474b49;
  --muted: #5f6361;
  --rule: rgba(27, 29, 28, 0.14);
  --card: #ffffff;
  --card-line: rgba(27, 29, 28, 0.08);
  --sig: #24735e;            /* the paper's sea green, darkened slightly for text contrast */
  --sig-soft: rgba(42, 127, 104, 0.12);
  --lab: #c8202f;            /* the Neu of the wordmark */
  --rigid: #3a5fc8;
  --code-bg: #f6f6f4;
  --pill: #ffffff;
  --pill-line: rgba(27, 29, 28, 0.18);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.06);
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 16px;
  --max: 1120px;
  --sec: clamp(72px, 11vw, 152px);
  --radius: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1110;
    --bg-tint: #161918;
    --ink: #eceeed;
    --ink-2: #c4c8c6;
    --muted: #a3a8a5;
    --rule: rgba(236, 238, 237, 0.16);
    --card: #1b1e1d;
    --card-line: rgba(236, 238, 237, 0.08);
    --sig: #5cc4a4;
    --sig-soft: rgba(92, 196, 164, 0.14);
    --lab: #ff5c68;
    --rigid: #8aa4ff;
    --code-bg: #171a19;
    --pill: #1b1e1d;
    --pill-line: rgba(236, 238, 237, 0.22);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

@media (min-width: 735px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--sig); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--sig); outline-offset: 3px; border-radius: 6px; }
b, strong { font-weight: 600; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; }
code, pre { font-family: var(--mono); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(780px + 2 * var(--gutter)); }

/* Wordmark: the Neu in the lab's red */
.wm { font-weight: 700; letter-spacing: -0.035em; color: var(--ink); text-decoration: none; }
.wm b { font-weight: 700; color: var(--lab); }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50; height: 52px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--rule);
}
.nav-in { height: 100%; max-width: calc(1280px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.nav .wm { font-size: 20px; }
.nav-links { display: none; gap: 22px; margin: 0 auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); }
.nav-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-content: center; gap: 5px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span { display: block; width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .25s ease; }
.nav-menu[open] summary span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav-menu[open] summary span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.nav-menu nav {
  position: absolute; right: 0; top: 46px; min-width: 220px; padding: 8px;
  background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.nav-menu nav a { padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.nav-menu nav a:hover { background: var(--bg-tint); }
@media (min-width: 1069px) {
  .nav-links { display: flex; }
  .nav-menu { display: none; }
  .nav-act { margin-left: 0; }
}
/* The 3D viewer's tab, in the accent colour with the viewer's cube, so the viewer is easy to find */
.nav-links a.nav-3d, .nav-menu nav a.nav-3d { color: var(--sig); }
.nav-links a.nav-3d:hover, .nav-links a.nav-3d[aria-current="true"] { color: color-mix(in srgb, var(--sig) 70%, var(--ink)); }
.nav-links a.nav-3d { display: inline-flex; align-items: center; gap: 5px; }
.nav-menu nav a.nav-3d { display: flex; align-items: center; gap: 8px; }
.nav-3d svg { flex: none; width: 13px; height: 13px; }
.nav-menu .nav-3d svg { width: 15px; height: 15px; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--pill-line); background: var(--pill); color: var(--ink);
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.pill:hover { border-color: var(--ink); text-decoration: none; }
.pill:active { transform: scale(.98); }
.pill svg { width: 14px; height: 14px; }
.pill.sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.pill.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill.dark .tag { background: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }
.pill .tag { font-size: 11.5px; font-weight: 600; padding: 3px 7px; border-radius: 999px; background: var(--sig-soft); color: var(--sig); letter-spacing: 0; }
.pill code { font-size: 13.5px; }
.pill.copy { position: relative; }
.copied { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); font: 500 12px/1 var(--sans); color: var(--sig); white-space: nowrap; pointer-events: none; }

/* Type */
.hx { font-size: clamp(40px, 7.2vw, 84px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.hm { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 12px; }
.kicker { font-size: 15px; font-weight: 600; color: var(--sig); margin-bottom: 14px; letter-spacing: 0; }
.lede { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.45; color: var(--ink-2); letter-spacing: -0.012em; max-width: 46em; margin-top: 26px; }
.fine { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.fine a { color: inherit; }

/* Sections */
.sec { padding: var(--sec) 0; }
.sec.tint { background: var(--bg-tint); }
.sec > .wrap > .hx + .lede { margin-bottom: 0; }
.hx + p:not(.lede) { margin-top: 20px; }
.copy .hx { font-size: clamp(36px, 5.4vw, 64px); margin-bottom: 26px; }
@media (min-width: 1069px) { .split .copy .hx { font-size: clamp(40px, 3.75vw, 54px); } }
.copy p { color: var(--ink-2); }
.sub { margin: clamp(64px, 9vw, 120px) 0 0; max-width: 52em; }
.sub .hm { margin-bottom: 24px; }
.sub p { font-size: 18px; color: var(--ink-2); }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 96px); }
.hero-head { text-align: center; }
.eyebrow { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 18px; }
.eyebrow b { color: var(--lab); font-weight: 700; }
.hero h1 { font-size: clamp(44px, 8.6vw, 104px); }
/* Phones: size the headline so its first line (about 9.4 em) fits the column. */
@media (max-width: 734px) { .hero h1 { font-size: min(calc((100vw - 2 * var(--gutter)) / 9.7), 44px); } }
.hero .lede { margin: 26px auto 0; max-width: 40em; text-wrap: pretty; }
.authors { margin: 18px 0 0; font-size: 15.5px; color: var(--muted); }
.authors .dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; vertical-align: middle; margin: 0 10px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px auto 0; max-width: 760px; }
/* A centred, contained video, well below its native width (phone 720 px, desktop 1600 px) so it stays sharp. */
.hero-media { position: relative; width: min(100% - 2 * var(--gutter), 320px); margin: clamp(36px, 5vw, 64px) auto 0; }
.hero-v { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: var(--plate); }
@media (min-width: 735px) {
  .hero-media { width: min(100% - 2 * var(--gutter), 960px); }
  .hero-v { aspect-ratio: 16 / 9; border-radius: var(--radius); }
}
.hero-media .vbtn { right: 12px; bottom: 12px; }
.hero-stat { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-top: 22px; color: var(--muted); font-size: 15px; text-align: center; }
.hero-stat b { color: var(--ink); }

/* Video play / pause */
.vbtn {
  position: absolute; right: max(var(--gutter), 16px); bottom: 16px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(27, 29, 28, 0.55); color: #fff; display: grid; place-items: center; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.vbtn svg { width: 16px; height: 16px; fill: currentColor; }
.vbtn .i-play, .vbtn.paused .i-pause { display: none; }
.vbtn.paused .i-play { display: block; }

/* Cards */
.cards { display: grid; gap: 16px; margin-top: clamp(36px, 5vw, 60px); grid-template-columns: 1fr; }
@media (min-width: 735px) { .cards { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1069px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.tint .card { box-shadow: none; }
.sec:not(.tint) .card { background: var(--bg-tint); border-color: transparent; }
.card h3 { margin-bottom: 14px; }
.card p { color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }
.big { font-size: clamp(48px, 7vw, 80px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; margin: 0 0 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.big small { font-size: .42em; letter-spacing: -0.02em; font-weight: 600; }
.big .approx { font-weight: 400; color: var(--muted); margin-right: .04em; }
.big.triple { display: flex; gap: clamp(18px, 3vw, 34px); }
.big.triple > span { display: flex; flex-direction: column; }
.big.triple small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 10px; line-height: 1.3; max-width: 7.5em; }
.cap { font-size: 16.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }

/* Stat rows */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin: clamp(48px, 6vw, 72px) 0; }
@media (min-width: 1069px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { border-top: 1px solid var(--rule); padding-top: 18px; }
.stats .big { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 10px; }
.stats .cap { font-size: 15px; }

/* Media */
figure { margin: 0; }
figcaption { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 12px; }
.wide { margin-top: clamp(40px, 5vw, 64px); }
.wide video { width: 100%; max-width: 1600px; margin: 0 auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--plate); }
@media (min-width: 1600px) { .wide video { border-radius: var(--radius); } }
.wide figcaption { text-align: left; }
.media video, .plate img, .chart img, .ghosts img { width: 100%; border-radius: 16px; background: var(--plate); }
.media video { aspect-ratio: 16 / 9; object-fit: cover; }
.chart img { background: #fff; padding: 10px; }
.plate { margin-top: clamp(32px, 4vw, 48px); }
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1069px) { .split { grid-template-columns: 5fr 6fr; gap: 64px; } .split.fig-split { grid-template-columns: 1fr 1fr; } }
.fig-split { margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.fig-split .chart { max-width: 440px; justify-self: center; }
.duo { display: grid; gap: 24px; margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 735px) { .duo { grid-template-columns: 1fr 1fr; } }
.trio { display: grid; gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio figcaption b { color: var(--ink); }
.trio + .fine { margin-top: 28px; }
/* Grid children may shrink below their content (long code lines scroll inside their own box). */
.cards > *, .stats > *, .split > *, .duo > *, .trio > *, .vs > *, .flow-row > * { min-width: 0; }
.fine a { overflow-wrap: anywhere; }
.strobes img + img { margin-top: 10px; }
.ghosts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 734px) { .ghosts { gap: 10px; } }

/* Elastic against rigid */
.vs { margin-top: clamp(40px, 5vw, 60px); display: grid; gap: 30px; }
@media (min-width: 1069px) { .vs { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.vs-k { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.bar { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 44px; margin-bottom: 8px; padding: 0 14px; border-radius: 12px; width: calc(var(--w) * 100%); min-width: 190px; color: #fff; font-size: 15px; }
.bar b { font-size: 19px; letter-spacing: -0.02em; }
.bar i { font-style: normal; font-size: 13px; opacity: .9; }
.bar.el { background: #24735e; }
.bar.ri { background: #3a5fc8; }
.js .vs .bar { transform-origin: left center; transform: scaleX(.001); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.js .vs .bar > * { opacity: 0; transition: opacity .4s ease .7s; }
.js .vs.in .bar { transform: none; }
.js .vs.in .bar > * { opacity: 1; }

/* How it works */
.flow { margin-top: clamp(40px, 5vw, 64px); }
.flow-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; counter-reset: step; }
@media (min-width: 1069px) { .flow-row { grid-template-columns: repeat(6, 1fr); } }
.flow-row li { position: relative; background: var(--bg-tint); border-radius: 16px; padding: 18px 16px 18px; counter-increment: step; }
.flow-row li::before { content: counter(step); display: block; font: 600 12px/1 var(--mono); color: var(--sig); margin-bottom: 10px; }
.flow-row li b { display: block; font-size: 16px; line-height: 1.25; margin-bottom: 6px; }
.flow-row li span { display: block; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
@media (min-width: 1069px) {
  .flow-row li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 8px; height: 8px; border-top: 1.5px solid var(--sig); border-right: 1.5px solid var(--sig); transform: translateY(-50%) rotate(45deg); z-index: 1; }
}
.flow-back { position: relative; margin-top: 14px; height: 30px; display: flex; align-items: center; justify-content: center; }
.flow-back::before { content: ""; position: absolute; left: 6px; right: 0; top: 50%; border-top: 1.5px dashed var(--lab); }
.flow-back::after { content: ""; position: absolute; left: 2px; top: 50%; width: 9px; height: 9px; border-left: 1.5px solid var(--lab); border-bottom: 1.5px solid var(--lab); transform: translateY(-50%) rotate(45deg); }
.flow-back span { position: relative; background: var(--bg); padding: 0 12px; font-size: 13.5px; font-weight: 500; color: var(--lab); }
.flow figcaption { max-width: 46em; }
#how .cards { margin-top: clamp(40px, 5vw, 64px); }

/* Code */
.code-duo { gap: 48px; }
.code-duo h3 { font-size: 24px; }
.code-duo > div > p { color: var(--ink-2); }
.code { position: relative; margin: 0 0 16px; }
.code pre { margin: 0; padding: 50px 20px 18px; background: var(--code-bg); border: 1px solid var(--card-line); border-radius: 14px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; color: var(--ink); tab-size: 2; }
.tint .code pre { background: var(--card); }
.code[data-lang]::before { content: attr(data-lang); position: absolute; top: 18px; left: 20px; font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: 0.02em; }
.copy-b { position: absolute; top: 10px; right: 10px; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--pill-line); background: var(--pill); color: var(--ink); font: 500 12.5px/1 var(--sans); cursor: pointer; }
.copy-b:hover { border-color: var(--ink); }

/* FAQ */
.faq { margin-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--ink-2); padding-right: 24px; }
#cite .code { margin-top: 28px; }

/* Footer */
.foot { padding: 56px 0 72px; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--muted); }
.foot .wm { font-size: 22px; margin-bottom: 8px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0; }
.foot .links a { color: var(--ink); text-decoration: none; }
.foot .links a:hover { text-decoration: underline; }

/* Film dialog */
dialog.film { width: min(1280px, 100vw); max-width: 100vw; max-height: 100vh; padding: 0; border: 0; background: #000; overflow: visible; }
dialog.film::backdrop { background: rgba(0, 0, 0, 0.86); }
dialog.film video { width: 100%; max-height: 90vh; background: #000; }
.film-x { position: absolute; right: 8px; top: -50px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.film-x svg { width: 14px; height: 14px; }
@media (max-width: 734px) { .film-x { top: auto; bottom: calc(100% + 8px); } }

/* Reveal on scroll */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .rv.in { opacity: 1; transform: none; transition: none; }
  .js .vs .bar, .js .vs .bar > * { transform: none; opacity: 1; transition: none; }
  .pill, .nav-menu summary span, .faq summary::after { transition: none; }
}

@media (max-width: 379px) {
  .pill { padding: 0 14px; font-size: 14px; }
  .big.triple { gap: 14px; }
  .bar { min-width: 0; }
}

/* The hero headline as the wordmark (the name in the lab colour, as in the nav) */
.hero .hx b { color: var(--lab); font-weight: inherit; }

/* Paper page: the paper's title, the embedded video, the abstract and the BibTeX */
.hero h1.ptitle { max-width: 21em; margin: 0 auto; font-size: clamp(30px, 4.1vw, 50px); line-height: 1.12; letter-spacing: -0.028em; text-wrap: balance; }
@media (max-width: 734px) { .hero h1.ptitle { font-size: clamp(25px, 7vw, 31px); } }
.ptitle b { color: var(--lab); font-weight: inherit; }
.paper-hero .authors { margin-top: 22px; font-size: 17px; }
/* The six links wrap in pairs: one row on a desktop, four and two on a tablet, two by two on a phone */
.paper-hero .cta { max-width: 880px; }
.cta-pair { display: flex; gap: 10px; }
.yt { margin-top: clamp(36px, 5vw, 60px); }
.yt-slot { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.yt-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
@media (max-width: 734px) { .yt-slot { border-radius: 14px; } }
.sec.tight { padding: clamp(56px, 8vw, 104px) 0; }
.sh { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 20px; }
.abstract p { font-size: 18px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
#bibtex .code { margin-top: 8px; }

/* Paper page, the story: one section per main-text figure, each with the paper's own figure on a white plate */
.figsec .hm { max-width: 20em; }
.figsec .sum { margin-top: 22px; max-width: 46em; font-size: 18px; color: var(--ink-2); }
.figsec .sum + .sum { margin-top: 0; }
.pfig { margin-top: clamp(28px, 4vw, 44px); }
.pfig-plate { background: #fff; color: #1b1d1c; border: 1px solid var(--card-line); border-radius: 16px; padding: clamp(12px, 2.6vw, 32px); }
.pfig.single .pfig-plate { max-width: 620px; margin: 0 auto; }
.pfig.single figcaption { max-width: 620px; margin-left: auto; margin-right: auto; }
.pfig-plate a { display: block; cursor: zoom-in; }
.pfig-plate img { width: 100%; height: auto; }
.prow { display: flex; align-items: flex-start; gap: clamp(14px, 2.4vw, 28px); }
.prow > * { flex: var(--f, 1) 1 0; min-width: 0; }
.pblock + .pblock, .pblock + .prow, .prow + .pblock, .prow + .prow { margin-top: clamp(16px, 2.6vw, 30px); }
.prow > .pblock + .pblock { margin-top: 0; }   /* side by side: the row's gap spaces them */
.figsec .duo + .fine { margin-top: 24px; max-width: 62em; }
.ph { margin: 0 0 8px; font-size: 13.5px; line-height: 1.35; font-weight: 500; color: #1b1d1c; }
.ph b { font-weight: 700; margin-right: .55em; }
.strobe { width: 90%; margin: 0 auto; }
.plabel { margin: 4px 0 14px; text-align: center; font-size: 12.5px; color: #474b49; }
.plabel:last-child { margin-bottom: 0; }
.pfig figcaption { max-width: 62em; margin-top: 14px; font-size: 14px; }
.pfig figcaption b { color: var(--ink); }
.pfig .src { display: block; margin-top: 6px; }
@media (max-width: 734px) { .prow { flex-direction: column; } .prow > * { flex: none; width: 100%; } .pblock.tall a { width: 62%; margin: 0 auto; } }
.figsec .duo, .figsec .trio { margin-top: clamp(32px, 4vw, 48px); }
.figsec .media figcaption b { color: var(--ink); }
.also { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--rule); }
.also .kicker { margin-bottom: 8px; }
.also h3 { font-size: clamp(21px, 2.2vw, 26px); }
.also .split { align-items: start; }
.also p { color: var(--ink-2); }
.rollouts p { color: var(--ink-2); max-width: 46em; }
