/* IZI — quiet, editorial, institutional. Dark and light themes; green / blue / pink accents.
   Order: tokens → base → header/menu → type → layout → buttons → media → modules → footer → dialogs → motion. */

/* Body: Questrial. Headings: Russo One. Both have one weight and no italic. Self-hosted; latin + latin-ext. */
@font-face {
  font-family: 'Questrial'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/questrial-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Questrial'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/questrial-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Russo One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/russo-one-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Russo One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/russo-one-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  --bg: #0f1011; --surface: #17191a; --surface-2: #1e2122; --line: #26292a; --pill-line: #2f3334;
  --ink: #e8eaeb; --dim: #6f7579;
  --green: #3ddc97; --blue: #5b9bff; --pink: #ff5fa2; --on-accent: #0b0c0d;
  --grad: linear-gradient(90deg, var(--green), var(--blue), var(--pink));
  --shine: rgba(255, 255, 255, 0.06); --scrim: rgba(5, 6, 7, 0.72); --logo-filter: invert(1);

  --font: 'Questrial', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Russo One', 'Questrial', ui-sans-serif, system-ui, sans-serif;
  --container: 1480px;
  --gutter: clamp(16px, 3.2vw, 44px);
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2)); /* content stays centred; hairlines run full width */
  --radius: 12px;
  --header-h: 64px; --header-shade: 0.34;

  /* motion: one fast (hover), one medium (state change), one slow (entrance) */
  --t-fast: 160ms; --t-med: 320ms; --t-slow: 900ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f5f1; --surface: #ffffff; --surface-2: #e9e7e1; --line: #dfddd6; --pill-line: #d3d1c9;
  --ink: #131415; --dim: #6f7579;
  --green: #0a8754; --blue: #2459d6; --pink: #d01f6b; --on-accent: #ffffff;
  --header-shade: 0.09; --shine: rgba(0, 0, 0, 0.05); --scrim: rgba(240, 239, 234, 0.78); --logo-filter: none; color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f5f1; --surface: #ffffff; --surface-2: #e9e7e1; --line: #dfddd6; --pill-line: #d3d1c9;
    --ink: #131415; --dim: #6f7579;
    --green: #0a8754; --blue: #2459d6; --pink: #d01f6b; --on-accent: #ffffff;
    --header-shade: 0.09; --shine: rgba(0, 0, 0, 0.05); --scrim: rgba(240, 239, 234, 0.78); --logo-filter: none; color-scheme: light;
  }
}
[data-tint="green"] { --tint: var(--green); }
[data-tint="blue"] { --tint: var(--blue); }
[data-tint="pink"] { --tint: var(--pink); }
html.theme-anim, html.theme-anim *, html.theme-anim *::before { transition: background-color 300ms, border-color 300ms, color 300ms !important; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 clamp(16px, 0.5vw + 13.5px, 18px)/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
/* Russo One has a single weight: never let the browser fake a bolder one. */
h1, h2, h3, .mega, .display, .h2, .h3, .know-t, .nf-code, .avatar, .menu-list a, .foot-mail, .spark-q {
  font-family: var(--font-head); font-weight: 400; font-synthesis: none;
}
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--pink); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink); }
.small { font-size: 15px; }
.no-js .js-only { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; view-transition-name: site-header;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  box-shadow: 0 6px 20px rgb(0 0 0 / var(--header-shade));
  transition: box-shadow var(--t-med);
}
.site-header.is-scrolled { box-shadow: 0 10px 34px rgb(0 0 0 / calc(var(--header-shade) * 1.6)); }
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); padding-inline: var(--edge); }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { width: 46px; height: auto; filter: var(--logo-filter); }
.nav-inline { display: none; margin-left: clamp(16px, 3vw, 48px); }
.nav-inline ul { display: flex; gap: clamp(18px, 2.2vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav-inline a { color: var(--ink); padding: 10px 0 4px; font-size: 16px; }
.nav-inline a:hover, .nav-inline a[aria-current="page"] { color: var(--ink); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.no-js .nav-inline { display: block; overflow-x: auto; }
@media (min-width: 900px) { .nav-inline { display: block; } .js [data-menu-open] { display: none; } }
.only-sm { display: none; }
@media (max-width: 599px) { .hide-sm { display: none !important; } .only-sm { display: inline; } .bar, .bar-end { gap: 6px; } }
@media (max-width: 359px) { .bar .btn--glass { display: none; } } /* no room: the menu has the same link */
.lang { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; color: var(--ink); font-size: 15px; background-position: left calc(100% - 9px); }
.lang .lang-cur { font-weight: 700; }
.lang--big { font-size: 22px; }
.pill { min-height: 40px; padding: 6px 14px; border-radius: 8px; cursor: pointer; border: 1px solid var(--pill-line); background: color-mix(in srgb, var(--surface) 80%, transparent); }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid transparent; background: none; color: var(--ink); }
.theme-btn:hover { color: var(--ink); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: block; } :root[data-theme="light"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="dark"]) .theme-btn .i-moon { display: none; } }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; pointer-events: none; }
.progress.is-active { opacity: 1; animation: progress 8s cubic-bezier(.1,.7,.2,1) forwards; }
@keyframes progress { to { transform: scaleX(0.92); } }

/* ---------- gradient underline: appears on hover / focus / current page ---------- */
.u, .gl, .nav-inline a, .lang, .more, .menu-list a, .foot-nav a, .foot-mail a {
  background: var(--grad) left 100% / 0% 2px no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: 3px;
  transition: background-size 500ms var(--ease-out), color var(--t-fast);
}
.u:hover, .u:focus-visible, .nav-inline a:hover, .nav-inline a:focus-visible, .nav-inline a[aria-current="page"],
.lang:hover, .lang:focus-visible, .more:hover, a:hover .more, a:focus-visible .more,
.card-link:hover .gl, .card-link:focus-visible .gl, .know-row:hover .gl, .know-row:focus-visible .gl,
.foot-nav a:hover, .foot-nav a:focus-visible { background-size: 100% 2px; }
.menu-list a, .foot-mail a { background-size: 0% 3px; }
.menu-list a:hover, .menu-list a:focus-visible, .menu-list a[aria-current="page"], .foot-mail a:hover, .foot-mail a:focus-visible { background-size: 100% 3px; }

/* ---------- typography ---------- */
.mega { font-size: clamp(52px, 11.4vw, 176px); line-height: 0.95; letter-spacing: -0.02em; margin: clamp(20px, 4vw, 56px) 0 clamp(28px, 3.4vw, 48px); }
.mega--page { font-size: clamp(44px, 8.2vw, 124px); line-height: 0.95; }
.p { color: var(--pink); }
.line { display: block; overflow: clip; overflow-clip-margin: 0.04em; padding-block: 0.06em 0.14em; margin-block: -0.06em -0.14em; }
.line-in { display: block; }
/* headline line that runs from the text colour into blue, violet and pink; the first half of the background is plain, so the colours can sweep in. Inline, so a wrapped line carries the colours on. */
.sweep { padding-block: 0.1em 0.2em; }
@supports (background-clip: text) and (color: color-mix(in oklab, red, blue)) {
  .sweep {
    color: transparent; background: linear-gradient(90deg, var(--ink) 56%, var(--blue) 72%, color-mix(in oklab, var(--blue), var(--pink)) 84%, var(--pink) 97%) 100% 0 / 200% 100% no-repeat;
    background-clip: text;
  }
}
@media print { .sweep { background: none; color: var(--ink); } }
.display { font-size: clamp(30px, 4.3vw, 56px); line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }
.h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.005em; }
.h3 { font-size: clamp(20px, 1.5vw, 23px); line-height: 1.25; letter-spacing: 0; }
.statement { font-size: clamp(23px, 2.5vw, 34px); line-height: 1.3; letter-spacing: -0.01em; max-width: 32ch; text-wrap: balance; }
.page-head .statement { max-width: 36ch; }
.lead { max-width: 52ch; margin: 0; }
.eyebrow { font-size: 15px; color: var(--ink); margin: 0 0 12px; }
.tag { font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--tint, var(--ink)); margin: 0; font-weight: 500; }

/* ---------- layout ---------- */
.sec-first { padding: 8px var(--edge) clamp(40px, 5vw, 72px); }
.sec { border-top: 1px solid var(--line); padding: 28px var(--edge) clamp(72px, 9vw, 136px); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(40px, 5.5vw, 84px); }
.intro-grid { display: grid; gap: 12px; padding-top: 8px; }
.intro-r { max-width: 46ch; }
.two { display: grid; gap: 40px; }
.two--top { align-items: start; }
@media (min-width: 768px) {
  .sec-head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: clamp(24px, 4vw, 64px); }
  .intro-grid, .two { grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
}
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.page-head { padding-bottom: clamp(40px, 5vw, 72px); }
.hero-media { margin-top: clamp(40px, 5vw, 72px); }
.cta-band { display: grid; gap: 20px; }
.prose { max-width: 62ch; display: grid; gap: 8px; }
.prose h2 { margin-top: 24px; }
.anchor-alias { display: block; position: relative; top: -24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; font-weight: 500; line-height: 1.1; white-space: nowrap;
  transition: scale var(--t-fast) var(--ease-out), border-color var(--t-med), color var(--t-fast), filter var(--t-fast);
}
.btn:active { scale: 0.97; }
.btn .ico { width: 16px; height: 16px; transition: translate var(--t-med) var(--ease-out); }
.btn:hover .ico { translate: 3px 0; }
.btn--lg { min-height: 54px; padding: 14px 26px; }
.btn--sm { min-height: 38px; padding: 8px 15px; font-size: 15px; }
.btn--pink { background: var(--pink); color: var(--on-accent); }
.btn--blue { background: var(--blue); color: var(--on-accent); }
.btn--pink:hover { filter: brightness(1.08); }
.btn--glass {
  color: var(--ink); border-color: color-mix(in srgb, var(--ink) 22%, transparent); background: color-mix(in srgb, var(--surface) 40%, transparent);
  box-shadow: 0 4px 14px rgb(0 0 0 / var(--header-shade)), inset 0 1px 0 rgb(255 255 255 / 0.14);
}
.btn--ghost { border-color: var(--pill-line); background: var(--surface); }
.btn--text { padding-inline: 14px; color: var(--ink); }
.btn--text:hover { color: var(--ink); }
.btn[disabled], .btn[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.muted-inv { font-weight: 400; }
@media (max-width: 479px) { .btn { white-space: normal; text-align: center; } }
.chip { min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--pill-line); background: var(--surface); font-size: 14px; cursor: pointer; margin-left: 8px; vertical-align: middle; }
.chip.is-done, .btn.is-done { border-color: var(--green); color: var(--green); }
.spark-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--pill-line); background: var(--surface); color: var(--pink); cursor: pointer; display: grid; place-items: center; }
.spark-btn svg { width: 18px; height: 18px; }
.btn--ghost, .pill, .chip, .theme-btn, .spark-btn { transition: border-color var(--t-med), color var(--t-fast), scale var(--t-fast) var(--ease-out), rotate 600ms var(--ease-out); }
.btn--ghost:hover, .pill:hover, .chip:hover, .spark-btn:hover { border-color: transparent; }

/* gradient outline that draws itself around a button (not on pink buttons) */
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.btn, .pill, .chip, .theme-btn, .spark-btn { position: relative; isolation: isolate; }
.btn:not(.btn--pink)::after, .pill::after, .chip::after, .theme-btn::after, .spark-btn::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; padding: 2px; pointer-events: none;
  --sweep: 0deg;
  background: conic-gradient(from 200deg, var(--green) 0deg, var(--blue) calc(var(--sweep) * 0.5), var(--pink) var(--sweep), transparent var(--sweep));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: --sweep 650ms var(--ease-io);
}
.btn:not(.btn--pink):hover::after, .btn:not(.btn--pink):focus-visible::after, .pill:hover::after, .pill:focus-visible::after,
.chip:hover::after, .chip:focus-visible::after, .theme-btn:hover::after, .theme-btn:focus-visible::after,
.spark-btn:hover::after, .spark-btn:focus-visible::after { --sweep: 360deg; }
.btn:not(.btn--pink):focus-visible, .pill:focus-visible, .chip:focus-visible, .theme-btn:focus-visible, .spark-btn:focus-visible { outline: none; }

/* ---------- photos ---------- */
.media-fig { margin: 0; }
.media { position: relative; display: block; width: 100%; overflow: hidden; border-radius: var(--radius); isolation: isolate; padding: 0; border: 0; }
.media--wide { aspect-ratio: 16 / 9; } .media--card { aspect-ratio: 4 / 3; } .media--tile { aspect-ratio: 3 / 2; }
.media::before { content: ""; position: absolute; inset: -10%; z-index: -1; background: var(--lqip) center / cover no-repeat; filter: blur(20px); } /* blurred preview until the photo arrives */
.media picture { display: block; width: 100%; height: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.js .media img { opacity: 0; transition: opacity 700ms var(--ease-out), scale 1200ms var(--ease-out); }
.js .media.is-loaded img { opacity: 1; }
.media.is-error::after { content: "IZI"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: var(--ink); }
figcaption { margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--ink); }
@media (max-width: 599px) { .hero-media .media--wide { aspect-ratio: 4 / 3; } }
@media (min-width: 900px) {
  /* editorial hero: caption sits beside the photo, photo takes three quarters of the width */
  .hero-media .media-fig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
  .hero-media .media { grid-column: 2; } /* also without a caption */
  .hero-media figcaption { grid-area: 1 / 1; margin: 0; max-width: 24ch; }
}
.media-btn { cursor: zoom-in; }
.media-zoom { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 11, 12, 0.6); color: #fff; backdrop-filter: blur(8px); opacity: 0; transition: opacity var(--t-med), scale var(--t-med) var(--ease-out); scale: 0.8; }
.media-zoom svg { width: 16px; height: 16px; }
.media-btn:hover .media-zoom, .media-btn:focus-visible .media-zoom { opacity: 1; scale: 1; }
.no-js .media-zoom { display: none; } .no-js .media-btn { cursor: default; }
.gallery { display: grid; gap: 28px 16px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }

/* ---------- dithered background photos (drawn by dither.js): hero, page tops, footer ---------- */
.dither { position: absolute; inset: 0; z-index: -1; margin: 0; overflow: hidden; pointer-events: none; }
.dither img { position: absolute; inset: 0 0 0 auto; width: 64%; height: 100%; object-fit: cover; opacity: 0.3;
  -webkit-mask: linear-gradient(90deg, transparent, #000 45%); mask: linear-gradient(90deg, transparent, #000 45%); } /* without scripts: a faded photo */
/* with scripts: hidden until the dots draw, and shown faded if they have not started after 6s */
.js .dither img { opacity: 0; }
.js .dither:not([data-dither="foot"]) img { animation: dither-plain 600ms 6s forwards; }
.js .dither.is-plain img { opacity: 0.3; }
.js .dither.is-dithered img { animation: none; }
@keyframes dither-plain { to { opacity: 0.3; } }
.dither canvas { position: absolute; top: 0; left: 0; image-rendering: pixelated; }
.hero--photo, .page-head--photo { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; margin-top: calc(-1 * var(--header-h)); }
.hero--photo { padding-top: calc(var(--header-h) + 24px); min-height: clamp(620px, 100svh, 980px); }
.page-head--photo { padding-top: calc(var(--header-h) + 40px); min-height: clamp(520px, 66svh, 680px); }
@media (min-width: 760px) { .hero--photo .mega { max-width: 62vw; } .page-head--photo .statement { max-width: 30ch; } } /* leaves room for the photo's subject */
@media (max-width: 759px) {
  .hero--photo { min-height: max(680px, 100svh); }
  .page-head--photo { padding-top: 300px; min-height: 0; }
  .dither img { width: 100%; height: 66%; -webkit-mask: linear-gradient(#000 40%, transparent); mask: linear-gradient(#000 40%, transparent); }
  .dither[data-dither="foot"] img { inset: auto 0 0; height: 300px; -webkit-mask: linear-gradient(transparent, #000 60%); mask: linear-gradient(transparent, #000 60%); }
}
@media (forced-colors: active) { .dither { display: none; } }

/* ---------- accordion (principles) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; background: none; border: 0; padding: 22px 0; min-height: 68px; cursor: pointer; font-family: inherit; font-size: clamp(19px, 2vw, 25px); letter-spacing: 0; color: var(--ink); transition: color var(--t-med); }
.acc-btn:hover, .acc-btn[aria-expanded="true"] { color: var(--ink); }
.acc-n { font-size: 13px; color: var(--tint); font-variant-numeric: tabular-nums; }
.acc-ico { margin-left: auto; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--pill-line); position: relative; transition: rotate var(--t-med) var(--ease-io), background-color var(--t-med), border-color var(--t-med), color var(--t-med); }
.acc-ico::before, .acc-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.acc-ico::after { rotate: 90deg; transition: rotate var(--t-med) var(--ease-io); }
.acc-btn[aria-expanded="true"] .acc-ico { background: var(--tint); border-color: var(--tint); color: var(--on-accent); rotate: 180deg; }
.acc-btn[aria-expanded="true"] .acc-ico::after { rotate: 0deg; }
.acc-btn:hover .acc-ico { border-color: var(--tint); }
.acc-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 420ms var(--ease-io), visibility 0s 420ms; }
.acc-panel-in { overflow: hidden; min-height: 0; }
.acc-panel-in > p { margin: 0; padding: 0 44px 24px 36px; color: var(--ink); max-width: 54ch; }
.acc-item:has(.acc-btn[aria-expanded="true"]) .acc-panel, .no-js .acc-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 420ms var(--ease-io), visibility 0s; }
.acc--grid { display: grid; }
@media (min-width: 900px) { .acc--grid { grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); border-top: 0; align-items: start; } .acc--grid .acc-item:nth-child(-n+2) { border-top: 1px solid var(--line); } }


/* ---------- project cards ---------- */
.cards { display: grid; gap: 48px clamp(16px, 2.4vw, 32px); }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
.card-link { display: block; }
.card-body { padding-top: 18px; display: grid; gap: 8px; }
.card-body p { margin: 0; }
.card-body > p:not(.tag):not(.small) { max-width: 46ch; }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); margin-top: 8px; font-weight: 500; justify-self: start; }
.more .ico { flex: none; width: 16px; height: 16px; transition: translate var(--t-med) var(--ease-out); }
a:hover .more .ico { translate: 4px 0; }
.card.is-skel .card-body > * { color: transparent !important; justify-self: start; border-radius: 6px; pointer-events: none; background: linear-gradient(100deg, transparent 30%, var(--shine) 50%, transparent 70%) var(--surface-2); background-size: 220% 100%; }
.card.is-skel .card-body .gl, .card.is-skel .more .ico { visibility: hidden; }
.card .card-body > * { transition: color 400ms var(--ease-out), background-color 400ms var(--ease-out); }

/* ---------- knowledge ---------- */
.know-row { display: grid; gap: 8px; padding: clamp(22px, 3vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: translate var(--t-med) var(--ease-out), border-color var(--t-med); }
.know-row:hover { border-color: var(--pill-line); }
.know-t { font-size: clamp(28px, 4vw, 54px); letter-spacing: -0.01em; line-height: 1.05; }
.know-row--sm { margin-top: 16px; padding: 22px; } .know-row--sm .know-t { font-size: 26px; }
.know-item { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.know-item p { margin: 0; }
.dl-row { display: grid; gap: 14px; justify-items: start; }

/* ---------- chips, team ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--tint) 45%, var(--line)); background: color-mix(in srgb, var(--tint) 8%, transparent); font-size: 16px; }
.people { display: grid; gap: 48px clamp(16px, 2.4vw, 32px); }
@media (min-width: 768px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { display: grid; gap: 10px; align-content: start; }
.person p { margin: 0; }
.avatar { aspect-ratio: 4 / 3; border-radius: var(--radius); display: grid; place-items: center; font-size: clamp(56px, 8vw, 96px); letter-spacing: -0.05em; color: var(--tint); margin-bottom: 10px; background: radial-gradient(90% 90% at 20% 10%, color-mix(in srgb, var(--tint) 20%, transparent), transparent 70%), var(--surface); border: 1px solid var(--line); }
.nf-code { font-size: clamp(80px, 22vw, 260px); letter-spacing: -0.02em; line-height: 0.9; margin: 24px 0 0; color: var(--surface-2); font-weight: 600; }

/* ---------- donor strip ---------- */
.donors { margin: 0 0 clamp(48px, 6vw, 80px); border-radius: var(--radius); }
.donors-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.donors-head .eyebrow { margin: 0; }
.donors-head .chip { margin: 0; min-height: 36px; }
.marquee { display: flex; overflow-x: auto; background: #fff; color-scheme: light; }
.marquee-track { display: flex; flex: none; width: max-content; min-width: 100%; list-style: none; margin: 0; padding: 0; }
.marquee-copy { display: none; }
.donor { flex: 1 0 auto; width: clamp(190px, 19vw, 248px); height: 108px; padding: 12px 18px; display: grid; place-items: center; }
.donor img { grid-area: 1 / 1; max-width: min(100%, 190px); max-height: 84px; width: auto; height: auto; object-fit: contain; }
/* Darken the ministry wordmark on white, keeping the colored crest at the left. */
.donor-wordmark { clip-path: inset(0 0 0 22.5%); filter: brightness(0.12); }
.donor--name span { color: #131415; font-size: 16px; line-height: 1.25; font-weight: 500; text-align: center; }

/* ---------- "Support our work": a sentence with three blanks ---------- */
.support-wrap { margin-bottom: clamp(56px, 7vw, 104px); }
/* a pink panel with the colours turned around: --on is the text on pink, and filled blanks are pink on --on */
.support-form { --on: var(--on-accent); display: grid; gap: 22px; padding: clamp(24px, 3.4vw, 52px); border-radius: calc(var(--radius) * 1.6); background: var(--pink); color: var(--on); }
.support-form :is(.muted, .draft, .err) { color: var(--on); }
.support-form ::selection { background: var(--on); color: var(--pink); }
.support-text { margin: 0; max-width: 34em; font-size: clamp(21px, 2.3vw, 33px); line-height: 1.5; text-wrap: wrap; }
.nb { white-space: nowrap; }
.blank {
  position: relative; display: inline-block; max-width: calc(100% - 0.4em); min-width: 7.2em; line-height: 1.3; margin: 0.1em 0.1em 1.15em; border-radius: 6px 6px 0 0;
  background: linear-gradient(var(--on), var(--on)) 0 100% / 100% 2px no-repeat;
  transition: background-size 700ms var(--ease-out), background-color var(--t-med);
}
.blank::after { content: attr(data-value) " "; display: block; visibility: hidden; padding-inline: 0.3em; } /* sets the size; the last line is the baseline */
.blank textarea { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0 0.3em; border: 0; background: none; font: inherit; letter-spacing: inherit; color: inherit; outline: 2px solid transparent; resize: none; overflow: hidden; border-radius: 0; }
.blank::after, .blank textarea { white-space: pre-wrap; overflow-wrap: anywhere; }
.blank:hover { background-color: color-mix(in srgb, var(--on) 14%, transparent); }
.blank:is(:focus-within, .is-filled) { background-color: var(--on); color: var(--pink); }
.blank:focus-within { outline: 2px solid var(--pink); outline-offset: -4px; }
.blank-hint { position: absolute; left: 0; top: calc(100% + 5px); font: 400 13px/1.2 var(--font); color: var(--on); white-space: nowrap; pointer-events: none; }
.blank:has([aria-invalid="true"]):not(:focus-within) { background-image: repeating-linear-gradient(90deg, var(--on) 0 8px, transparent 8px 14px); }
.ways { display: flex; flex-wrap: wrap; gap: 8px; }
.ways .chip { margin: 0; min-height: 44px; padding: 8px 17px; font-size: 16px; color: var(--on); background: transparent; border-color: color-mix(in srgb, var(--on) 55%, transparent); transition: background-color var(--t-fast), color var(--t-fast); }
.ways .chip::after { content: none; }
.ways .chip::before { content: "+"; margin-right: 8px; }
.ways .chip:hover { border-color: var(--on); background: color-mix(in srgb, var(--on) 14%, transparent); }
.ways .chip:focus-visible { outline: 2px solid var(--on); outline-offset: 3px; }
.ways .chip[aria-pressed="true"] { border-color: var(--on); background: var(--on); color: var(--pink); }
.ways .chip[aria-pressed="true"]::before { content: "✓"; }
.support-note { margin: 0; padding-left: 14px; border-left: 2px solid var(--on); max-width: 60ch; }
.errs { display: grid; gap: 4px; }
.errs:not(:has(.err:not(:empty))) { margin-top: -22px; }
.btn--invert { background: var(--on); color: var(--pink); }
.support-form .btn--invert::after { content: none; }
.support-form .btn--invert:focus-visible { outline: 2px solid var(--on); outline-offset: 3px; }
.support-form .draft:not(:empty)::before { background: var(--on); }
@media (max-width: 599px) { .blank { min-width: 8.4em; } }
@media (forced-colors: active) { .blank { border-bottom: 2px solid; } .blank:focus-within { outline-color: Highlight; } }
.err { margin: 0; color: var(--pink); font-size: 15px; }
.err:not(:empty)::before { content: "! "; font-weight: 600; }
.note { font-size: 15px; margin: 0; }
.draft { margin: 0; font-size: 14px; }
.draft:not(:empty)::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 2px; }
.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
[aria-busy="true"] .spinner { display: inline-block; }
[aria-busy="true"] .ico { display: none; }
@keyframes caret { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes blank-in { from { opacity: 0; translate: 0 0.25em; } }
@keyframes spin { to { transform: rotate(360deg); } }
.ready { padding: 28px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--green) 50%, var(--line)); background: color-mix(in srgb, var(--green) 6%, var(--surface)); display: grid; gap: 12px; }
.ready p { margin: 0; }
.ready-badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--on-accent); font-weight: 600; }
.ready .h3:focus { outline: none; }
.preview { white-space: pre-wrap; word-break: break-word; font: 15px/1.5 ui-monospace, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 4px 0; max-height: 260px; overflow: auto; color: var(--ink); }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; margin: 0; }
.dl dt { color: var(--ink); font-size: 15px; }
.dl dd { margin: 4px 0 0; overflow-wrap: anywhere; }
@media (min-width: 900px) { .dl--contact { grid-template-columns: repeat(3, 1fr); } }

/* ---------- footer ---------- */
.site-footer { position: relative; isolation: isolate; border-top: 1px solid var(--line); padding: 28px var(--edge) 28px; overflow: clip; }
@media (max-width: 759px) { .site-footer { padding-bottom: 270px; } } /* room for the photo below the links */
.foot-mail { margin: clamp(32px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); font-size: clamp(26px, 6.2vw, 96px); letter-spacing: -0.015em; line-height: 1; overflow-wrap: anywhere; }
.foot-mail a { padding-bottom: 6px; }
.foot-copy { vertical-align: middle; font-size: 14px; letter-spacing: 0; }
.foot-grid { display: grid; gap: 16px; justify-items: start; } /* kept to the left, clear of the photo */
.foot-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
@media (min-width: 760px) { .foot-low nav { max-width: 46vw; } }
.foot-nav a { display: inline-block; padding: 8px 0 4px; font-size: 16px; }
.foot-end { display: flex; align-items: center; gap: 16px; }
.foot-mark { /* the IZI mark as a quiet signature */
  height: clamp(56px, 10vw, 150px); margin-top: clamp(36px, 5vw, 72px); background: var(--surface-2);
  -webkit-mask: url(/assets/brand/izi-mark.png) left center / contain no-repeat; mask: url(/assets/brand/izi-mark.png) left center / contain no-repeat;
}

/* ---------- dialogs: menu, spark, lightbox ---------- */
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { overflow: hidden; overscroll-behavior: contain; }
.menu, .spark, .lightbox {
  opacity: 0;
  transition-property: opacity, translate, display, overlay; transition-duration: var(--t-med); transition-timing-function: var(--ease-out);
  transition-behavior: allow-discrete;
}
.menu[open], .spark[open], .lightbox[open] { opacity: 1; @starting-style { opacity: 0; } }
.spark::backdrop, .lightbox::backdrop { background-color: transparent; transition-property: background-color, display, overlay; transition-duration: var(--t-med); transition-behavior: allow-discrete; }

.menu { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 0 var(--edge) var(--gutter); background: var(--bg); color: var(--ink); flex-direction: column; overflow-y: auto; }
.menu[open] { display: flex; }
.menu::backdrop { background: var(--bg); }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); flex: none; }
.menu-list { list-style: none; margin: 32px 0 0; padding: 0; }
.menu-list a { display: inline-block; font-size: clamp(36px, 10vw, 84px); line-height: 1.1; letter-spacing: -0.01em; padding: 4px 0; }
.menu-foot { margin-top: auto; padding-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }

.spark { width: min(640px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); padding: 36px 28px 28px; }
.spark[open]::backdrop { background-color: var(--scrim); backdrop-filter: blur(6px); @starting-style { background-color: transparent; } }
.spark-star { color: var(--pink); margin: 0 0 12px; } .spark-star svg { width: 28px; height: 28px; }
.spark .display { color: var(--ink); margin-bottom: 18px; }
.spark-q { font-size: clamp(22px, 3vw, 30px); letter-spacing: 0; line-height: 1.25; min-height: 3.75em; }
.spark-close { position: absolute; top: 14px; right: 14px; }

.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 14px var(--gutter) 18px; background: transparent; color: #e8eaeb; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.lightbox[open] { display: grid; }
.lightbox[open]::backdrop { background-color: rgba(8, 9, 10, 0.96); @starting-style { background-color: transparent; } }
.lightbox .pill { color: #e8eaeb; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); min-width: 48px; min-height: 44px; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; }
.lb-count { margin: 0; font-size: 14px; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.lb-fig { margin: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 12px; }
.lb-frame { width: min(100%, calc((100dvh - 210px) * var(--arn, 1.5))); aspect-ratio: var(--ar, 3 / 2); border-radius: var(--radius); overflow: hidden; background: var(--lb-lqip, none) center / cover no-repeat #17191a; align-self: center; }
.lb-frame picture { display: block; width: 100%; height: 100%; }
.lb-frame img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity var(--t-med); }
.lb-frame.is-loaded img { opacity: 1; }
.lb-fig figcaption { margin: 0; color: #fff; text-align: center; font-size: 15px; }
.lb-nav { display: flex; justify-content: center; gap: 10px; }

/* ---------- first-visit loader ---------- */
.loader { display: none; }
.js.is-loading { overflow: hidden; }
.js.is-loading .loader { display: grid; place-content: center; justify-items: center; gap: 22px; position: fixed; inset: 0; z-index: 200; background: var(--bg); animation: loader-failsafe 400ms 6s forwards; }
.loader.is-done { opacity: 0; transition: opacity 500ms var(--ease-out); pointer-events: none; }
.loader-mark { position: relative; width: clamp(110px, 22vw, 168px); aspect-ratio: 370 / 296; overflow: hidden; background: var(--surface-2); -webkit-mask: url(/assets/brand/izi-mark.png) center / contain no-repeat; mask: url(/assets/brand/izi-mark.png) center / contain no-repeat; }
.loader-fill { position: absolute; inset: auto 0 0 0; height: calc(var(--p, 0) * 1%); background: linear-gradient(0deg, var(--green), var(--blue) 55%, var(--pink)); }
.loader-count { margin: 0; font-size: 15px; letter-spacing: 0.08em; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: center; }
.loader-pct { margin-left: 1px; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }

/* ============================================================
   MOTION — everything that moves is opt-in. With "reduce motion" on,
   the page shows its final state and only colours and opacity change.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* page-to-page: quick cross-fade; a project's cover photo travels from its card to the project page */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 200ms ease-in both; }
  ::view-transition-new(root) { animation: vt-in 380ms var(--ease-out) 60ms both; }
  .media--vt { view-transition-class: cover; }
  ::view-transition-group(.cover) { animation-duration: 620ms; animation-timing-function: var(--ease-io); }
  ::view-transition-old(.cover), ::view-transition-new(.cover) { width: 100%; height: 100%; object-fit: cover; }

  /* entrances (started by site.js when an element scrolls into view) */
  .js .reveal { opacity: 0; translate: 0 22px; }
  .js .reveal.is-in { opacity: 1; translate: 0 0; transition: opacity var(--t-slow) var(--ease-out), translate var(--t-slow) var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
  .js .reveal-lines .line-in { translate: 0 112%; }
  .js .reveal-lines.is-in .line-in { translate: 0 0; transition: translate 1100ms var(--ease-out); transition-delay: calc(var(--li, 0) * 110ms); }
  .js .reveal-lines .sweep { background-position: 0 0; }
  .js .reveal-lines.is-in .sweep { background-position: 100% 0; transition: background-position 1800ms var(--ease-out) 500ms; }
  /* support form: the blanks draw themselves, then the first one blinks like a cursor for a moment */
  .js .support-form:not(.is-in) .blank { background-size: 0% 2px; }
  .js .support-form.is-in .blank:not(.is-filled, :focus-within) { transition: background-size 1100ms var(--ease-out) 400ms, background-color var(--t-med); }
  .nb:first-of-type .blank::before { content: ""; position: absolute; left: 0.3em; top: 14%; width: 2px; height: 68%; background: var(--on); opacity: 0; pointer-events: none; }
  .js .support-form.is-in .nb:first-of-type .blank:not(.is-filled, :focus-within)::before { animation: caret 1.1s steps(1) 1.4s 4; }
  .blank.is-swap textarea { animation: blank-in 420ms var(--ease-out); }
  .js .reveal-img .media { clip-path: inset(0 0 100% 0 round var(--radius)); }
  .js .reveal-img.is-in .media { clip-path: inset(0 0 0 0 round var(--radius)); transition: clip-path 1200ms var(--ease-io) 150ms; }
  .js .reveal-img figcaption { opacity: 0; }
  .js .reveal-img.is-in figcaption { opacity: 1; transition: opacity var(--t-slow) 700ms; }

  /* photos */
  .js .media img { scale: 1.06; }
  .js .media.is-loaded img { scale: 1; }
  .card-link:hover .media.is-loaded img, .media-btn:hover.is-loaded img { scale: 1.04; }
  .card.is-skel .card-body > * { animation: shimmer 1.3s linear infinite; }
  .know-row:hover { translate: 0 -3px; }
  .spark-btn:hover { rotate: 120deg; }
  .spark-star svg { animation: spin 9s linear infinite; }

  /* menu links rise in; dialogs settle */
  .menu[open] .menu-list li { animation: rise 520ms var(--ease-out) backwards; animation-delay: calc(var(--i) * 45ms + 80ms); }
  .spark { translate: 0 14px; }
  .spark[open] { translate: 0 0; @starting-style { translate: 0 14px; } }
  .spark-q.is-swap, .ready { animation: rise 320ms var(--ease-out); }
  .lb-frame.is-swap { animation: lb-swap 380ms var(--ease-out); }

  /* Each copy spans at least the strip width, so the loop stays filled at any viewport size. */
  .js .marquee { overflow: clip; }
  .js .marquee-copy { display: flex; }
  .js .marquee-track { animation: marquee 30s linear infinite; }
  .marquee.is-paused .marquee-track { animation-play-state: paused; }

  /* scroll-linked extras: decorative only, so browsers without support simply show the final state */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .media--parallax.is-loaded img { scale: 1.14; animation: drift linear both; animation-timeline: view(); animation-range: cover; }
    .foot-mark { animation: mark-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }
@keyframes lb-swap { from { opacity: 0; scale: 0.98; } }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes drift { from { translate: 0 -5%; } to { translate: 0 5%; } }
@keyframes mark-in { from { opacity: 0.2; translate: -3% 0; } }

@media (prefers-reduced-motion: reduce) {
  [data-marquee-toggle] { display: none; }
  .acc-panel, .acc-item:has(.acc-btn[aria-expanded="true"]) .acc-panel { transition-duration: 0s; transition-delay: 0s; }
  .btn::after, .pill::after, .chip::after, .theme-btn::after, .spark-btn::after { transition-duration: 0s; }
  .u, .gl, .nav-inline a, .lang, .more, .menu-list a, .foot-nav a, .foot-mail a { transition-duration: 0s; }
  .menu, .spark, .lightbox { transition-duration: 100ms; }
}

/* spacing utilities last so they win */
.mt { margin-top: 28px !important; } .mt-lg { margin-top: 56px !important; }

/* ---------- partnership project and activity pages ---------- */
.prose--body { max-width: 60ch; }
.prose--body p { margin: 0 0 1em; }
.media--full { aspect-ratio: auto; }
.programme-fig { max-width: 420px; }
.credits { margin: 24px 0 0; border-top: 1px solid var(--line); }
.credits div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.credits dt { font-size: 15px; }
.credits dd { margin: 0; font-size: 19px; }
.funding p { max-width: 60ch; }
.credits--meta { margin-top: 0; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- knowledge: rows on the homepage, op-ed articles ---------- */
.know-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .know-grid { grid-template-columns: 1fr 1fr; } .know-grid .know-t { font-size: clamp(26px, 2.4vw, 34px); } }
.mega--long { font-size: clamp(36px, 5.6vw, 84px); line-height: 1; }
.prose--article { font-size: clamp(18px, 0.5vw + 16px, 20px); line-height: 1.65; }
.prose--article p { margin: 0 0 1.15em; }
.article-note { margin-top: 2em !important; padding-top: 1.2em; border-top: 1px solid var(--line); line-height: 1.5; }

/* ---------- phones: cards sit two per row ---------- */
/* text follows each card's own width, so a card that spans the row keeps its full size */
.card, .person { container-type: inline-size; }
@container (max-width: 260px) {
  .card-body { padding-top: 12px; gap: 6px; font-size: 14px; }
  .person p { font-size: 14px; line-height: 1.45; }
  .person .tag { font-size: 11px; letter-spacing: 0.05em; line-height: 1.35; }
  .card-body .h3, .person .h3 { font-size: 17px; overflow-wrap: anywhere; }
  .avatar { font-size: 44px; margin-bottom: 4px; }
}
@media (max-width: 699px) {
  .cards, .gallery, .know-grid, .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cards, .people { row-gap: 32px; }
  .card-body > p { display: none; } /* photo, title and link only; the rest is one tap away */
  .card-body .more { margin-top: 0; }
  .gallery { row-gap: 20px; }
  .gallery figcaption { font-size: 13px; margin-top: 8px; }
  /* an odd last card fills the row instead of leaving a hole */
  .gallery > :last-child:nth-child(odd), .cards > :last-child:nth-child(odd), .people > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cards > :last-child:nth-child(odd) .card-link { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: center; }
  .cards > :last-child:nth-child(odd) .card-body { padding-top: 0; gap: 6px; font-size: 14px; }
  :is(.cards, .people) > :last-child:nth-child(odd) .h3 { font-size: 17px; overflow-wrap: anywhere; }
  .people > :last-child:nth-child(odd) .tag { font-size: 11px; letter-spacing: 0.05em; line-height: 1.35; }
  .people > :last-child:nth-child(odd) { grid-template: auto auto 1fr / repeat(2, minmax(0, 1fr)); column-gap: 12px; font-size: 14px; line-height: 1.45; }
  .people > :last-child:nth-child(odd) .avatar { grid-row: 1 / -1; align-self: start; font-size: 44px; }
  .know-grid .know-row { padding: 16px 14px; align-content: start; font-size: 14px; line-height: 1.45; }
  .know-grid .know-t { font-size: clamp(16px, 4.6vw, 20px); line-height: 1.2; letter-spacing: 0; overflow-wrap: anywhere; }
  .know-grid .know-sum { display: none; } /* the summary is on the publication's own page */
  .know-grid .tag { font-size: 11px; letter-spacing: 0.05em; line-height: 1.35; }
  .know-grid .more { align-self: end; margin-top: auto; padding-top: 8px; }
}

/* ---------- project facts ---------- */
.project-info > p { max-width: 60ch; }
.project-info .eyebrow { margin-top: 28px; }
.project-info .chips { margin-top: 32px; }
