/* Hallmark · macrostructure: Ecosystem Index · theme: custom "Harbour"
   nav: N5 Floating pill · footer: Ft3 Index columns · enrichment: Tier-A hand-built SVG
   brief: Sydney Data Intelligence Lab — warm oat paper, logo-derived cobalt + cyan,
          rounded and low-aggression. Blues sampled from DIL_LOGO.png:
          #05549C -> oklch(47% 0.139 252) · #06C3F4 -> oklch(76% 0.143 224) */

/* ══════════════════════════════════════════════════════════════
   TOKENS
   Paper stays warm (oat cream). Accent family is the logo's blue.
   One warm amber pop survives so the page doesn't go cold.
   ══════════════════════════════════════════════════════════════ */
:root {
  /* paper — warm, unchanged from the approved preview */
  --color-paper:     oklch(96.5% 0.016 88);
  --color-paper-2:   oklch(93.8% 0.019 86);
  --color-paper-3:   oklch(90.5% 0.022 84);

  /* ink — deep navy-black, tied to the logo rather than pure black */
  --color-ink:       oklch(24%   0.028 254);
  --color-ink-2:     oklch(35%   0.030 254);
  --color-muted:     oklch(52%   0.024 250);
  --color-rule:      oklch(88%   0.014 92);    /* warm hairline — keeps the paper warm */
  --color-rule-2:    oklch(74%   0.028 240);

  /* accents — straight off the logo */
  --color-blue:      oklch(47%   0.139 252);   /* primary · the D and the head */
  --color-blue-2:    oklch(56%   0.147 247);   /* hover / links */
  --color-blue-soft: oklch(92%   0.036 250);   /* tint band */
  --color-cyan:      oklch(76%   0.143 224);   /* secondary · the graph nodes */
  --color-cyan-soft: oklch(93.5% 0.038 224);
  --color-amber:     oklch(66%   0.115 62);    /* the single warm pop, once per page */
  --color-amber-soft:oklch(93%   0.036 68);
  --color-accent-ink: oklch(97%  0.012 88);
  --color-focus:     var(--color-blue);

  --font-display: "Sentient", ui-serif, Georgia, serif;
  --font-body:    "Switzer", ui-sans-serif, system-ui, sans-serif;
  --font-label:   "Geist Mono", ui-monospace, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.0625rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-display:   clamp(2.5rem, 4.4vw + 1rem, 4.25rem);
  --text-display-s: clamp(1.75rem, 2vw + 1rem, 2.5rem);

  --tracking-display: -0.018em;
  --tracking-label:   0.13em;
  --lh-tight:  1.12;
  --lh-normal: 1.6;

  --space-2xs: 0.375rem;
  --space-xs:  0.625rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.25rem;
  --space-xl:  3.25rem;
  --space-2xl: 4.5rem;

  --page-max:    76rem;
  --page-gutter: clamp(1.25rem, 4vw, 3rem);
  --measure:     64ch;

  --radius-card:  20px;
  --radius-tile:  26px;
  --radius-pill:  999px;
  --rule-hair: 1px;

  --shadow-soft: 0 14px 40px -26px oklch(24% 0.03 254 / 0.32),
                 0 2px 5px -2px  oklch(24% 0.03 254 / 0.07);
  --shadow-lift: 0 22px 52px -28px oklch(24% 0.03 254 / 0.42),
                 0 3px 8px -3px  oklch(24% 0.03 254 / 0.10);
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ══════════════════════ base ══════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-tight);
  margin: 0;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--color-blue); color: var(--color-accent-ink);
  padding: 0.6rem 1rem; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--page-max); margin-inline: auto; padding-inline: var(--page-gutter); }
.wrap--narrow { max-width: 52rem; }

.label {
  font-family: var(--font-label); font-size: var(--text-xs);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--color-muted);
}
.muted { color: var(--color-muted); }
.measure { max-width: var(--measure); }

/* ══════════════════════ chips ══════════════════════ */
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-rule-2);
  background: transparent; color: var(--color-ink);
  font-size: var(--text-sm); text-decoration: none;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), transform 160ms var(--ease);
}
.chip:hover { border-color: var(--color-blue); background: var(--color-blue-soft); transform: translateY(-1px); }
.chip--fill { border-color: transparent; background: var(--color-blue); color: var(--color-accent-ink); }
.chip--fill:hover { background: var(--color-blue-2); color: var(--color-accent-ink); }

/* ══════════════════════ N5 · floating pill nav ══════════════════════ */
.nav {
  /* Centred WITHOUT left:50% + translateX. A shrink-to-fit fixed box positioned
     from left:50% only gets half the viewport as available width, so its children
     get squeezed and overflow. left/right:0 + margin auto gives it the full width. */
  position: fixed; top: var(--space-sm); left: 0; right: 0;
  margin-inline: auto; width: max-content;
  display: flex; align-items: center; gap: var(--space-lg);
  padding: 0.5rem 1.15rem;
  /* Frosted glass: mostly transparent, the blur does the legibility work.
     The inset highlight is what reads as "glass" rather than "tinted panel". */
  background: color-mix(in oklch, var(--color-paper) 42%, transparent);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: var(--rule-hair) solid color-mix(in oklch, var(--color-paper) 55%, transparent);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 34px -20px oklch(24% 0.03 254 / 0.30),
              inset 0 1px 0 oklch(100% 0 0 / 0.55);
  z-index: 30; line-height: 1;
  max-width: calc(100vw - 2 * var(--space-sm));
}
/* where the browser can't blur, fall back to an opaque-enough pill */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: color-mix(in oklch, var(--color-paper) 88%, transparent); }
}
.nav__mark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--text-lg);
  letter-spacing: -0.012em; text-decoration: none; white-space: nowrap;
  color: var(--color-blue);
}
.nav__mark img { width: 42px; height: auto; object-fit: contain; }

.nav__links { display: flex; align-items: center; gap: var(--space-lg); }
.nav__links a {
  font-size: var(--text-md); text-decoration: none; color: var(--color-ink-2);
  transition: color 140ms var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--color-blue); }
.nav__cta {
  font-size: var(--text-md); text-decoration: none;
  padding: 0.6rem 1.15rem; border-radius: var(--radius-pill);
  background: var(--color-blue); color: var(--color-accent-ink);
  white-space: nowrap;
  transition: transform 140ms var(--ease), background 140ms var(--ease);
}
.nav__cta:hover { transform: translateY(-1px); background: var(--color-blue-2); }

/* The pill must stay content-sized and visibly detached — so it sheds parts
   rather than being squeezed. Never let it approach full viewport width. */
@media (max-width: 76rem) {
  .nav { gap: var(--space-md); }
  .nav__links { gap: var(--space-md); }
  .nav__links a { font-size: var(--text-base); }
  .nav__mark { font-size: var(--text-md); }
  .nav__mark img { width: 36px; }
}
@media (max-width: 62rem) {
  .nav__links { display: none; }
}
@media (max-width: 36rem) {
  .nav__mark-text { display: none; }   /* the mark alone carries it */
}

/* ══════════════════════ opening ══════════════════════ */
.open { padding-top: clamp(7rem, 14vh, 10rem); padding-bottom: var(--space-2xl); }
.open__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.open h1 { font-size: var(--text-display); margin-bottom: var(--space-md); }
.open h1 em { font-style: normal; color: var(--color-blue); }
.open__lede { font-size: var(--text-lg); line-height: 1.55; color: var(--color-ink-2); max-width: 46ch; }
.open__row { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }

.scene {
  border-radius: var(--radius-tile); overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: var(--rule-hair) solid var(--color-rule);
}
.scene svg { width: 100%; height: auto; }

@media (max-width: 58rem) {
  .open__grid { grid-template-columns: 1fr; }
  .open__scene { order: -1; }
}

/* ══════════════════════ scroll-reveal hero ══════════════════════ */
.stage { position: relative; height: 260vh; }
.stage__pin {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
}

.stage__layer { position: relative; z-index: 1; align-self: center; width: 100%; }

/* invisible scroll target: full expansion is one viewport before the stage ends */
.stage__end {
  position: absolute; left: 0; width: 1px; height: 1px;
  top: calc(100% - 100svh);
  pointer-events: none;
}
.stage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.stage__copy { will-change: opacity, transform; }
.stage__copy h1 { font-size: var(--text-display); margin-bottom: var(--space-md); }
.stage__copy h1 em { font-style: normal; color: var(--color-blue); }
/* two tiers: the claim at reading-display size, the specifics small underneath */
.stage__lede {
  font-size: clamp(1.25rem, 1.05vw + 0.9rem, 1.6rem);
  line-height: 1.4;
  letter-spacing: -0.008em;
  color: var(--color-ink);
  max-width: 26ch;
}
/* an affiliation label, not a sentence — set it in the same mono the section
   labels and chips use, so it reads as metadata rather than body copy */
.stage__note {
  margin-top: var(--space-md);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 44ch;
}
.stage__row { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }

/* invisible — its only job is to report where the resting card sits */
.stage__anchor { aspect-ratio: 7 / 6; visibility: hidden; }

.stage__media {
  position: absolute; inset: 0; z-index: 2;
  overflow: hidden;
  /* resting state before JS measures, and the whole story under reduced-motion */
  clip-path: inset(0 round 0);
  will-change: clip-path;
  background: var(--color-paper-2);
}
.stage__art {
  position: relative;
  width: 100%; height: 100%;
  transform-origin: center;
  will-change: transform;
}
/* base artwork and glow layer are stacked and cropped identically */
.stage__art svg, .stage__art img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* the amber focal element breathing. Slow on purpose — a fast blink reads as a
   gimmick; this should register as "alive" only if you look at it. */
.stage__glow {
  opacity: 0.1;
  animation: cube-pulse 2.5s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes cube-pulse {
  from { opacity: 0.10; }
  to   { opacity: 0.70; }
}
@media (prefers-reduced-motion: reduce) {
  .stage__glow { animation: none; opacity: 0.34; }
}

/* placeholder artwork typography (the SVG is inlined, so it inherits the site fonts) */
.heroart .ha-label      { font-family: var(--font-display); font-weight: 500; font-size: 34px; fill: var(--color-ink); }
.heroart .ha-label--lead{ font-size: 46px; }
.heroart .ha-sub        { font-family: var(--font-label); font-size: 19px; fill: var(--color-muted); letter-spacing: 0.06em; }
.heroart .ha-stamp rect { fill: oklch(24% 0.028 254 / 0.08); }
.heroart .ha-stamp text { font-family: var(--font-label); font-size: 15px; letter-spacing: 0.14em;
                          fill: var(--color-ink-2); opacity: 0.65; }

/* area labels pinned over the expanded artwork */
.stage__labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.stage__label {
  position: absolute;
  transform: translate(-50%, -50%);
  opacity: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-pill);
  background: color-mix(in oklch, var(--color-paper) 82%, transparent);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: var(--rule-hair) solid color-mix(in oklch, var(--color-blue) 22%, transparent);
  box-shadow: 0 6px 20px -14px oklch(24% 0.03 254 / 0.4);
  white-space: nowrap;
  transition: opacity 220ms var(--ease);
}
.stage__label b {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(0.95rem, 1.1vw, 1.25rem);
  letter-spacing: -0.01em; color: var(--color-blue);
}
.stage__label i {
  font-style: normal;
  font-family: var(--font-label);
  font-size: clamp(0.63rem, 0.7vw, 0.82rem);
  letter-spacing: 0.05em; color: var(--color-ink-2);
}
@media (max-width: 58rem) {
  .stage__label { padding: 0.4rem 0.7rem; }
  .stage__label i { display: none; }
}

.stage__hint {
  position: absolute; z-index: 4;
  left: 50%; bottom: var(--space-lg); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  font-family: var(--font-label); font-size: var(--text-xs);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--color-muted);
  transition: opacity 200ms var(--ease);
}
.stage__hint svg { animation: hint-drift 2.4s var(--ease) infinite; }
@keyframes hint-drift {
  0%, 100% { transform: translateY(0);   opacity: 0.55; }
  50%      { transform: translateY(4px); opacity: 1; }
}

@media (max-width: 58rem) {
  .stage { height: 220vh; }
  .stage__grid { grid-template-columns: 1fr; }
  .stage__anchor { aspect-ratio: 16 / 11; }
}

/* no scroll choreography: show the artwork whole, in place, and collapse the stage */
@media (prefers-reduced-motion: reduce) {
  .stage { height: auto; }
  .stage__pin { position: static; height: auto; padding-block: var(--space-2xl); }
  .stage__media {
    position: relative; inset: auto; z-index: 0;
    grid-row: 1; margin-top: var(--space-xl);
    aspect-ratio: 16 / 9; border-radius: var(--radius-tile);
    border: var(--rule-hair) solid var(--color-rule);
  }
  .stage__anchor { display: none; }
  .stage__hint { display: none; }
  .stage__art { transform: none !important; }
}

/* ══════════════════════ topic map ══════════════════════ */
.tmap {
  --tmap-bg: oklch(94.5% 0.020 232);
  border-radius: var(--radius-tile);
  overflow: hidden;
  border: var(--rule-hair) solid var(--color-rule);
  box-shadow: var(--shadow-soft);
}
.tmap svg { width: 100%; height: auto; display: block; }

.tmap__orbit {
  fill: none;
  stroke: var(--color-blue);
  stroke-width: 1.2;
  stroke-dasharray: 3 7;
  opacity: 0.28;
}

.tmap__edge {
  stroke: var(--color-blue);
  stroke-width: 2;
  opacity: 0.35;
  transition: opacity 220ms var(--ease), stroke-width 220ms var(--ease);
}
.tmap__edge.is-lit { opacity: 1; stroke-width: 3.2; }

.tmap__disc--a { fill: var(--color-blue); }
.tmap__disc--b { fill: var(--color-blue-2); }
.tmap__pill    { fill: var(--color-cyan); }
.tmap__slab    { fill: oklch(66% 0.105 244); }

.tmap__disc, .tmap__pill, .tmap__slab {
  transition: transform 260ms var(--ease), filter 260ms var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}

.tmap__label {
  font-family: var(--font-body);
  font-weight: 600;
  text-anchor: middle;
}
.tmap__label--ondisc  { font-size: 19px; fill: var(--color-accent-ink); }
.tmap__sub--ondisc    { font-size: 13px; fill: var(--color-accent-ink); opacity: 0.72;
                        text-anchor: middle; font-family: var(--font-body); }
.tmap__label--onpill  { font-size: 15px; fill: oklch(26% 0.05 250); }
.tmap__label--onslab  { font-size: 16px; fill: var(--color-accent-ink); }

.tmap__tether {
  stroke: var(--color-amber);
  stroke-width: 2;
  stroke-dasharray: 4 6;
  opacity: 0;
  transition: opacity 220ms var(--ease);
}
.tmap__tether.is-on { opacity: 0.75; }

.tmap__dot { fill: var(--color-amber); transition: r 220ms var(--ease); }
.tmap__lane-label {
  font-family: var(--font-label);
  font-size: 13px;
  fill: var(--color-ink-2);
  opacity: 0.8;
  transition: opacity 220ms var(--ease);
}
.tmap__particle { fill: var(--color-cyan); }

/* nodes are interactive */
.tmap__node, .tmap__lane { cursor: pointer; outline: none; }
.tmap__node:focus-visible .tmap__disc,
.tmap__node:focus-visible .tmap__pill,
.tmap__node:focus-visible .tmap__slab,
.tmap__lane:focus-visible .tmap__dot {
  stroke: var(--color-ink); stroke-width: 2.5;
}

/* when one node is engaged, the rest recede */
.tmap.is-focused .tmap__disc,
.tmap.is-focused .tmap__pill,
.tmap.is-focused .tmap__slab { filter: saturate(0.45) opacity(0.55); }
.tmap.is-focused .tmap__lane-label { opacity: 0.35; }
.tmap.is-focused .is-active .tmap__disc,
.tmap.is-focused .is-active .tmap__pill,
.tmap.is-focused .is-active .tmap__slab { filter: none; transform: scale(1.05); }
.tmap.is-focused .is-active .tmap__lane-label { opacity: 1; }
.tmap__lane.is-active .tmap__dot { r: 15; }

.tmap__caption-text {
  font-family: var(--font-body);
  font-size: 14px;
  fill: var(--color-muted);
}
.tmap__caption-dot     { fill: var(--color-blue); opacity: 0.35; }
.tmap__caption-dot.is-memory       { fill: var(--color-blue);   opacity: 1; }
.tmap__caption-dot.is-coordination { fill: var(--color-blue-2); opacity: 1; }
.tmap__caption-dot.is-quality      { fill: var(--color-cyan);   opacity: 1; }
.tmap__caption-dot.is-graph        { fill: oklch(66% 0.105 244); opacity: 1; }
.tmap__caption-dot.is-biology,
.tmap__caption-dot.is-water,
.tmap__caption-dot.is-db,
.tmap__caption-dot.is-social       { fill: var(--color-amber);  opacity: 1; }

@media (max-width: 58rem) {
  .tmap__label--ondisc { font-size: 22px; }
  .tmap__lane-label    { font-size: 15px; }
  .tmap__caption-text  { font-size: 16px; }
}

/* ══════════════════════ rails ══════════════════════ */
.rail { padding-block: var(--space-2xl); scroll-margin-top: 6rem; }
.rail + .rail { padding-top: 0; }

.rail__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.rail__head h2 { font-size: var(--text-2xl); }
.rail__more {
  font-size: var(--text-sm); text-decoration: none; color: var(--color-ink-2);
  white-space: nowrap; display: inline-flex; gap: 0.35rem;
  transition: color 140ms var(--ease), gap 140ms var(--ease);
}
.rail__more:hover { color: var(--color-blue); gap: 0.6rem; }

/* ── research tiles — irregular spans, never three equal cards ── */
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.area {
  display: flex; flex-direction: column; gap: var(--space-sm);
  padding: var(--space-lg);
  border-radius: var(--radius-tile);
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-2);
  text-decoration: none;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.area:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); background: var(--color-paper); }
.area--wide { grid-column: span 2; flex-direction: row; align-items: center; gap: var(--space-lg); }
.area--wide .area__spot { flex: none; width: 190px; }
.area--wide .area__body { flex: 1; min-width: 0; }
/* a full-width tile gets a full-width measure — otherwise half the tile sits empty */
.area--wide .area__body p { max-width: 88ch; }
.area__spot { width: 108px; border-radius: 18px; overflow: hidden; background: var(--color-paper-3); }
.area h3 { font-size: var(--text-xl); margin-bottom: 0.4rem; }
.area p { font-size: var(--text-sm); color: var(--color-ink-2); max-width: 52ch; }

@media (max-width: 52rem) {
  .areas { grid-template-columns: 1fr; }
  .area--wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .area--wide .area__spot { width: 108px; }
}

/* ── news ── */
.news { display: grid; gap: 2px; }
.news__item {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr);
  gap: var(--space-md);
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: background 160ms var(--ease);
}
.news__item:hover { background: var(--color-paper-2); }
.news__date { font-family: var(--font-label); font-size: var(--text-xs); color: var(--color-muted); padding-top: 0.28rem; }
.news__title { display: block; font-size: var(--text-md); }
.news__sum { display: block; font-size: var(--text-sm); color: var(--color-muted); margin-top: 0.2rem; }
@media (max-width: 40rem) { .news__item { grid-template-columns: 1fr; gap: 0.3rem; } }

/* ── publications ── */
.pubs { display: grid; gap: var(--space-sm); }
.pub {
  padding: var(--space-md);
  border-radius: var(--radius-card);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid transparent;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.pub:hover { border-color: var(--color-rule); background: var(--color-paper); }
.pub__top { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.pub__venue, .pub__rank {
  font-family: var(--font-label); font-size: var(--text-xs);
  letter-spacing: 0.06em; padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}
.pub__venue { background: var(--color-cyan-soft); color: var(--color-ink-2); }
/* ranking chips read as a quiet credential, not a badge of honour */
.pub__rank {
  background: transparent; color: var(--color-blue);
  border: 1px solid color-mix(in oklch, var(--color-blue) 30%, transparent);
}
.pub__rank--jcr { color: var(--color-amber);
  border-color: color-mix(in oklch, var(--color-amber) 40%, transparent); }
.pub__rank--pre { color: var(--color-muted);
  border-color: color-mix(in oklch, var(--color-muted) 32%, transparent); }
.pub__cite { font-size: var(--text-sm); color: var(--color-muted); margin-top: 0.25rem; }
.pub__title { font-size: var(--text-lg); margin-bottom: 0.35rem; }
.pub__title a { text-decoration: none; }
.pub__title a:hover { color: var(--color-blue); }
.pub__authors { font-size: var(--text-sm); color: var(--color-muted); }
.pub__links { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: 0.75rem; }
.pub__links a {
  font-size: var(--text-sm); color: var(--color-blue); text-decoration: none;
  border-bottom: 1px solid color-mix(in oklch, var(--color-blue) 32%, transparent);
  transition: border-color 140ms var(--ease);
}
.pub__links a:hover { border-bottom-color: var(--color-blue); }

/* ── projects ── */
.projs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.proj {
  display: flex; flex-direction: column;
  padding: var(--space-lg);
  border-radius: var(--radius-tile);
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-2);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.proj:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); background: var(--color-paper); }
.proj__top { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-sm); }
.proj__area, .proj__status {
  font-family: var(--font-label); font-size: var(--text-xs);
  letter-spacing: 0.06em; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill);
}
.proj__area   { background: var(--color-cyan-soft); color: var(--color-ink-2); }
.proj__status { background: var(--color-blue-soft); color: var(--color-blue); }
.proj__title { font-size: var(--text-xl); margin-bottom: 0.4rem; }
.proj__title a { text-decoration: none; }
.proj__title a:hover { color: var(--color-blue); }
.proj__sum { font-size: var(--text-sm); color: var(--color-ink-2); max-width: 52ch; }
.proj__links { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.proj__links a {
  font-size: var(--text-sm); color: var(--color-blue); text-decoration: none;
  border-bottom: 1px solid color-mix(in oklch, var(--color-blue) 32%, transparent);
  transition: border-color 140ms var(--ease);
}
.proj__links a:hover { border-bottom-color: var(--color-blue); }
@media (max-width: 52rem) { .projs { grid-template-columns: 1fr; } }

/* ── people ── */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: var(--space-lg) var(--space-md); }
/* the card is an <a> and its parts are <span>s — without display:block the box
   properties below (width, aspect-ratio, radius, margins) are all ignored */
.person { display: block; text-align: center; text-decoration: none; }
.person__face {
  display: block;
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  overflow: hidden; margin-bottom: 0.75rem;
  border: 2px solid var(--color-paper-3);
  background: var(--color-paper-3);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.person__face img, .person__face svg { width: 100%; height: 100%; object-fit: cover; }
.person:hover .person__face { border-color: var(--color-blue-soft); transform: translateY(-3px); }
.person__name { display: block; font-size: var(--text-base); font-weight: 500; }
.person__role { display: block; font-size: var(--text-xs); color: var(--color-muted); margin-top: 0.15rem; }

/* ══════════════════════ join band ══════════════════════ */
.join {
  margin-block: var(--space-2xl);
  border-radius: var(--radius-tile);
  background: var(--color-blue-soft);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.join h2 { font-size: var(--text-display-s); margin-bottom: var(--space-lg); }
.join__paths {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
}
.join__path h3 { font-size: var(--text-xl); margin-bottom: 0.5rem; }
.join__path p {
  color: var(--color-ink-2); font-size: var(--text-base);
  max-width: 44ch; margin-bottom: var(--space-md);
}
.join strong { color: var(--color-amber); font-weight: 600; }   /* the one warm pop */
@media (max-width: 52rem) {
  .join__paths { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* ══════════════════════ Ft3 · footer index columns ══════════════════════ */
.foot { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-2xl) var(--space-xl); }
.foot__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.foot__lockup { display: inline-block; margin-bottom: var(--space-md); }
.foot__lockup img { width: 200px; height: auto; }
.foot__note { font-size: var(--text-sm); color: var(--color-muted); max-width: 34ch; }
.foot h3 {
  font-family: var(--font-label); font-size: var(--text-xs);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--color-muted); font-weight: 400; margin-bottom: 0.85rem;
}
.foot li + li { margin-top: 0.5rem; }
.foot li a { font-size: var(--text-sm); text-decoration: none; color: var(--color-ink-2); }
.foot li a:hover { color: var(--color-blue); }
.foot__base {
  margin-top: var(--space-xl); padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
  display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: space-between;
  font-size: var(--text-xs); color: var(--color-muted);
}
@media (max-width: 52rem) { .foot__cols { grid-template-columns: 1fr 1fr; } }

/* ══════════════════════ interior pages ══════════════════════ */
.page { padding-top: clamp(7rem, 14vh, 9rem); padding-bottom: var(--space-2xl); }
.page__head { margin-bottom: var(--space-xl); }
.page__head h1 { font-size: var(--text-display-s); margin-bottom: var(--space-sm); }
.page__head p { color: var(--color-ink-2); max-width: var(--measure); }
.page__meta { font-family: var(--font-label); font-size: var(--text-xs); color: var(--color-muted); margin-bottom: var(--space-sm); }

.back {
  display: inline-flex; gap: 0.4rem; align-items: center;
  font-size: var(--text-sm); text-decoration: none; color: var(--color-muted);
  margin-bottom: var(--space-md);
  transition: color 140ms var(--ease), gap 140ms var(--ease);
}
.back:hover { color: var(--color-blue); gap: 0.65rem; }

/* prose — markdown body of any content page */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--space-sm); }
.prose h2 { font-size: var(--text-xl); margin-top: var(--space-xl); }
.prose h3 { font-size: var(--text-lg); margin-top: var(--space-lg); }
.prose p, .prose li { color: var(--color-ink-2); }
.prose a { color: var(--color-blue); text-decoration: none; border-bottom: 1px solid color-mix(in oklch, var(--color-blue) 32%, transparent); }
.prose a:hover { border-bottom-color: var(--color-blue); }
.prose strong { color: var(--color-ink); font-weight: 600; }
.prose ul { list-style: none; margin-left: 0; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li + li { margin-top: 0.4rem; }
.prose ul li::before {
  content: ""; position: absolute; left: 0.25rem; top: 0.72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-cyan);
}
.prose ol { list-style: decimal; padding-left: 1.4rem; }
.prose blockquote {
  border-left: 3px solid var(--color-cyan);
  padding-left: var(--space-md); color: var(--color-ink-2);
}
.prose code {
  font-family: var(--font-label); font-size: 0.9em;
  background: var(--color-paper-2); padding: 0.15em 0.4em; border-radius: 6px;
}
.prose pre {
  background: var(--color-paper-2); padding: var(--space-md);
  border-radius: var(--radius-card); overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: var(--radius-card); margin-block: var(--space-md); }
.prose hr { border: none; border-top: var(--rule-hair) solid var(--color-rule); margin-block: var(--space-lg); }

/* list pages, grouped by year */
.year-group + .year-group { margin-top: var(--space-xl); }
.year-group__label {
  font-family: var(--font-label); font-size: var(--text-xs);
  letter-spacing: var(--tracking-label); color: var(--color-muted);
  padding-bottom: var(--space-xs);
  border-bottom: 1.5px solid var(--color-ink);
  margin-bottom: var(--space-md);
}

/* people page — larger cards with a line of interests */
.roster + .roster { margin-top: var(--space-xl); }
.roster__label {
  font-family: var(--font-label); font-size: var(--text-xs);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--color-muted); padding-bottom: var(--space-xs);
  border-bottom: 1.5px solid var(--color-ink); margin-bottom: var(--space-lg);
}
.roster__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--space-lg) var(--space-md); }
.roster .person__role { font-size: var(--text-sm); }
.roster .person__int { display: block; font-size: var(--text-xs); color: var(--color-muted); margin-top: 0.3rem; }

.empty {
  padding: var(--space-lg); border-radius: var(--radius-card);
  background: var(--color-paper-2); color: var(--color-muted);
  font-size: var(--text-sm);
}

/* ══════════════════════ reveal ══════════════════════ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
