/* International Institute for Liberty, Democracy & Progress (IILDP)
   Brand palette from marca.jpeg; type, spacing and radius from the landing-page-design scale. */
:root {
  --navy: #0B2A5B;      /* primary */
  --blue: #1E4E8C;      /* secondary */
  --sky: #2FA4F0;       /* accent */
  --bg: #F4F7FB;        /* background */
  --muted: #5B6472;     /* brand grey #6B7280 darkened to reach 4.5:1 on the background */
  --surface: #FFFFFF;
  --line: #DCE3EE;
  --tone-1: #E3ECF8;
  --tone-2: #D3E1F3;
  --tone-3: #C2D5EE;
  --on-navy: #FFFFFF;
  --on-navy-muted: #B9C6DC;
  --error: #B42318;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Spacing scale (only these) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 40px; --s8: 48px; --s9: 64px; --s10: 80px; --s11: 96px;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --container: 1200px;
  --section: var(--s11);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);       /* base curve */
  --e: cubic-bezier(0.16, 1, 0.3, 1);           /* entrance transforms */
  --e2: cubic-bezier(0.33, 1, 0.68, 1);         /* opacity and blur */
  --io: cubic-bezier(0.65, 0, 0.35, 1);         /* wipes and sweeps */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--blue) var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--navy);
  font-family: var(--sans); font-size: 1rem; line-height: 1.5rem; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--sky); color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.field-ink :focus-visible, .hero :focus-visible { outline-color: var(--sky); }
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; text-wrap: balance; letter-spacing: -0.01em; }

/* Type steps (Tailwind scale) */
.display { font-size: 3.75rem; line-height: 1; font-weight: 700; }          /* 6xl */
.head { font-size: 2.25rem; line-height: 2.5rem; }                            /* 4xl */
.lead { font-size: 1.125rem; line-height: 1.75rem; }                          /* lg */
.small { font-size: 0.875rem; line-height: 1.25rem; }                         /* sm */
.muted { color: var(--muted); }
.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: var(--s4); top: -100px; z-index: 60; background: var(--navy); color: #fff; padding: var(--s2) var(--s3); border-radius: 8px; }
.skip:focus { top: var(--s4); }

/* Layout */
.wrap { padding-left: var(--gutter); padding-right: var(--gutter-r); }
.wrap > *, .grid { max-width: var(--container); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); }
.grid > * { min-width: 0; }
.left-col { grid-column: 1 / 5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: var(--s3) var(--s5); min-height: 48px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; font: inherit; font-size: 1rem; line-height: 1.5rem; font-weight: 600; text-decoration: none;
  transition: transform 500ms var(--ease), background-color 300ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .arrow { transition: transform 500ms var(--ease); }
.btn-sky { background: var(--sky); color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--navy); }
  .btn-sky:hover { background: #5DB8F4; }
  .btn:hover .arrow { transform: translateX(4px); }
}
.link { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color 300ms var(--ease), color 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; color: var(--blue); } .field-ink .link:hover { color: #fff; } }

/* HEADER: compact floating bar */
.site-head { position: sticky; top: calc(var(--s4) + env(safe-area-inset-top, 0px)); z-index: 40; padding: var(--s4) var(--gutter-r) 0 var(--gutter); }
.bar {
  max-width: var(--container); margin-inline: auto; display: flex; align-items: center; gap: var(--s5);
  padding: var(--s2) var(--s2) var(--s2) var(--s4); border-radius: 16px;
  background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(11, 42, 91, 0.08);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.wordmark { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--navy); flex: none; }
.wordmark svg { width: 34px; height: 37px; }
.wordmark b { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 2rem; letter-spacing: 0.01em; }
.wordmark .name { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); max-width: 26ch; font-weight: 500; }
.nav { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; padding: var(--s2) var(--s3); border-radius: 8px; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.nav a[aria-current="page"] { background: var(--tone-1); color: var(--blue); }
@media (hover: hover) and (pointer: fine) { .nav a:not(.nav-cta):hover { background: var(--tone-1); } }
.nav .lang-switch { color: var(--muted); letter-spacing: 0.04em; }
.nav .nav-cta { background: var(--navy); color: #fff; margin-left: var(--s2); }
.nav .nav-cta[aria-current="page"] { background: var(--blue); color: #fff; }
@media (hover: hover) and (pointer: fine) { .nav .nav-cta:hover { background: var(--blue); } }
.nav a:active { transform: scale(0.98); }
.lang-phone, .menu-btn { display: none; }

/* HERO: navy panel, tinted photo, dotted globe */
.hero { padding: var(--s5) var(--gutter-r) 0 var(--gutter); }
.hero-panel {
  position: relative; max-width: var(--container); margin-inline: auto; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--on-navy); border-radius: 24px; min-height: min(640px, 78svh);
  display: flex; align-items: center;
}
.hero-photo {
  position: absolute; inset: 0 0 0 auto; width: 64%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2;
  filter: grayscale(1) contrast(1.15) brightness(0.85); mix-blend-mode: luminosity; opacity: 0.42;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%); mask-image: linear-gradient(to right, transparent 0%, #000 55%);
}
.globe { position: absolute; z-index: -1; right: 1%; top: 50%; width: min(580px, 46%); aspect-ratio: 1; transform: translateY(-50%); touch-action: pan-y; }
.hero-copy { position: relative; padding: var(--s9); max-width: 680px; }
.hero h1 { color: var(--on-navy); max-width: 680px; }
.hero h1 .line { display: block; }
.hero-rule { display: block; width: 96px; height: 4px; border-radius: 2px; background: var(--sky); margin-top: var(--s5); transform-origin: left; }
.hero-sub { margin-top: var(--s5); font-size: 1.125rem; line-height: 1.75rem; color: var(--on-navy-muted); max-width: 560px; }
.hero-sub strong { color: var(--on-navy); font-weight: 600; }
.hero-actions { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); }
.hero-proof { font-size: 0.875rem; line-height: 1.25rem; color: var(--on-navy-muted); font-weight: 500; }
.motion-toggle {
  position: absolute; right: var(--s4); bottom: var(--s4); z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; font: inherit;
  color: var(--on-navy-muted); background: rgba(11, 42, 91, 0.6); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 8px; padding: 0; cursor: pointer;
  transition: color 300ms var(--ease);
}
.motion-toggle:active { transform: scale(0.98); }
.motion-toggle svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .motion-toggle:hover { color: #fff; } }

/* Hero intro (design-to-motion: rise and resolve from blur, staggered) */
.js .hero [data-in] { opacity: 0; transition: opacity 0.8s var(--e2), transform 1.05s var(--e), filter 0.8s var(--e2); transition-delay: var(--d, 0ms); }
.js .hero [data-in="up"] { transform: translateY(10px); filter: blur(4px); }
.js .hero [data-in="pop"] { transform: scale(0.86); filter: blur(4px); }
.js .hero [data-in="wipe"] { opacity: 1; transform: scaleX(0); transition: transform 0.7s var(--io); transition-delay: var(--d, 0ms); }
.js .hero .hero-photo[data-in] { opacity: 0; filter: grayscale(1) contrast(1.15) brightness(0.85) blur(14px); transition: opacity 0.8s var(--e2), filter 1.05s var(--e2); }
.js .hero.is-in [data-in] { opacity: 1; transform: none; filter: none; }
.js .hero.is-in .hero-photo[data-in] { opacity: 0.42; filter: grayscale(1) contrast(1.15) brightness(0.85); }

/* Logo bars grow like progress on load */
/* Logo: the three pillars rise one by one, the lintel settles, the dome appears last */
.js.has-hero .logo-mark .col { transform: translateY(18%); transform-box: fill-box; opacity: 0; transition: transform 0.9s var(--e), opacity 0.6s var(--e2); }
.js.has-hero .logo-mark .col-2 { transition-delay: 0.1s; }
.js.has-hero .logo-mark .col-3 { transition-delay: 0.2s; }
.js.has-hero .logo-mark .lintel { transform: translateY(-40px); opacity: 0; transition: transform 0.7s var(--e) 0.45s, opacity 0.5s var(--e2) 0.45s; }
.js.has-hero .logo-mark .dome { transform: scale(0.86); transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; transition: transform 0.6s var(--e) 0.75s, opacity 0.5s var(--e2) 0.75s; }
.js.has-hero.is-loaded .logo-mark .col, .js.has-hero.is-loaded .logo-mark .lintel, .js.has-hero.is-loaded .logo-mark .dome { transform: none; opacity: 1; }

/* INTRO: heading, note, facts */
.intro { padding-top: var(--section); }
.intro-top { align-items: end; row-gap: var(--s5); }
.intro-top h2 { grid-column: 1 / 7; }
.intro-top p { grid-column: 8 / -1; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s9); }
.facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: var(--s5); }
.facts dt { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 2rem; }
.facts dd { margin-top: var(--s2); color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.intro-aside { grid-column: 1 / 6; margin-top: var(--s9); align-self: start; }
.intro-aside p { font-size: 1.25rem; line-height: 1.75rem; }
.intro-figure { grid-column: 7 / -1; margin-top: var(--s9); }
.intro-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
figcaption { margin-top: var(--s3); font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }

/* TAGLINE REVEAL: words light up one at a time */
.tagline { padding-top: var(--section); }
.tagline p { max-width: 680px; margin-inline: auto; font-family: var(--serif); font-weight: 600; font-size: 3rem; line-height: 1; letter-spacing: -0.01em; text-wrap: balance; text-align: center; }
.tagline .w { color: rgba(11, 42, 91, 0.3); transition: color 500ms var(--ease); }
.tagline .w.on { color: var(--navy); }
.tagline .sentence { display: block; }
.tag-mark { display: block; width: 88px; height: 96px; margin: 0 auto var(--s6); }
.tag-mark .col { transform: translateY(18%); transform-box: fill-box; opacity: 0.12; transition: transform 500ms var(--ease), opacity 500ms var(--ease); }
.tag-mark .lintel, .tag-mark .dome { opacity: 0.12; transform: scale(0.86); transform-box: fill-box; transform-origin: 50% 100%; transition: transform 500ms var(--ease), opacity 500ms var(--ease); }
.tag-mark.c1 .col-1, .tag-mark.c2 .col-2, .tag-mark.c3 .col-3, .tag-mark.top .lintel, .tag-mark.top .dome { transform: none; opacity: 1; }

/* PUBLICATIONS DECK: cards fold into spines */
.spines { position: relative; height: 220svh; margin-top: var(--s10); }
.spines-stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.spines-stage > * { width: 100%; }
.spines-stage h2 { margin-bottom: var(--s3); }
.deck-note { margin-bottom: var(--s6); color: var(--muted); max-width: 60ch; }
.deck { position: relative; height: 360px; overflow: clip; }
.card {
  position: absolute; top: 0; left: 0; width: min(560px, 80vw); height: 100%; padding: var(--s6);
  display: flex; flex-direction: column; border-radius: 16px; border: 1px solid rgba(11, 42, 91, 0.06);
  transition: transform 500ms var(--ease); will-change: transform;
}
.card:nth-child(3n+1) { background: var(--tone-1); }
.card:nth-child(3n+2) { background: var(--tone-2); }
.card:nth-child(3n+3) { background: var(--tone-3); }
.card .topic { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--blue); margin-bottom: var(--s3); }
.card h3 { font-size: 1.5rem; line-height: 2rem; }
.card p { margin-top: var(--s3); font-size: 1rem; line-height: 1.5rem; color: #33405A; max-width: 46ch; }
.card .meta { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.card .meta > span { color: #33405A; }
.card .sliver-hit { position: absolute; inset: 0; width: 120px; border: 0; border-radius: 16px 0 0 16px; background: transparent; cursor: pointer; display: none; z-index: 1; }
.card .sliver-hit:focus-visible { outline-offset: -4px; }
.card.is-folded .sliver-hit { display: block; }
.card > :not(.sliver-hit):not(.spine) { transition: opacity 300ms var(--ease), visibility 0s 300ms; }
.card.is-folded > :not(.sliver-hit):not(.spine) { opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease), visibility 0s 0s; }
/* Cards still ahead keep their links focusable: tabbing into one brings it forward */
.card.is-ahead > :not(.sliver-hit):not(.spine):not(.topic):not(h3) { opacity: 0; }
.spine { position: absolute; left: 0; top: 0; width: 120px; height: 100%; padding: var(--s6) 0; display: flex; flex-direction: column; align-items: center; opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease) 120ms; }
.spine span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--serif); font-weight: 600; font-size: 1.125rem; line-height: 1.75rem; max-height: 100%; overflow: hidden; }
.card.is-folded .spine { opacity: 1; }
.deck-foot { margin-top: var(--s7); }
.deck-foot .link { font-weight: 600; }

/* PROCESS: many into one */
.process { padding-top: var(--section); }
.process-text { grid-column: 1 / 6; }
.process-text p { margin-top: var(--s4); color: var(--muted); }
.process-art { grid-column: 1 / -1; margin-top: var(--s8); }
.process-art svg { width: 100%; height: auto; }
.process-art .v { display: none; }
.process-art rect { transition: transform 0ms; }
.js .process .steps li, .js .process .steps-v li { transition: opacity 500ms var(--ease); }
.js .process.is-live .steps li, .js .process.is-live .steps-v li { opacity: 0.45; }
.js .process.is-live .steps li.on, .js .process.is-live .steps-v li.on { opacity: 1; }
.steps { margin-top: var(--s6); }
.steps li { grid-column: span 4; }
.steps h3 { font-family: var(--sans); font-weight: 700; font-size: 1.125rem; line-height: 1.75rem; }
.steps p { margin-top: var(--s2); color: var(--muted); max-width: 34ch; }
.steps-v { display: none; }

/* WORK ROWS */
.work { padding-top: var(--section); }
.work-head { row-gap: var(--s4); }
.work-head h2 { grid-column: 1 / 7; }
.work-head p { grid-column: 1 / 8; color: var(--muted); font-size: 1.125rem; line-height: 1.75rem; }
.rows { display: grid; gap: var(--s4); margin-top: var(--s8); grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: var(--container); margin-inline: auto; }
.row { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: var(--s2); }
.row figure { order: -1; }
.row figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.row-text { padding: var(--s4) var(--s3) var(--s3); }
.row-text h3 { font-size: 1.25rem; line-height: 1.75rem; }
.row-text p { margin-top: var(--s2); color: var(--muted); }
.row-text ul { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s2); }
.row-text li { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--blue); background: var(--tone-1); padding: var(--s1) var(--s2); border-radius: 6px; }

/* SHOWCASE BAND */
.showcase { padding-top: var(--section); }
.showcase .grid h2 { grid-column: 1 / -1; margin-bottom: var(--s6); }
.band { display: flex; gap: var(--s2); height: 60svh; min-height: 400px; max-width: var(--container); margin-inline: auto; }
.panel { position: relative; overflow: hidden; flex: 2 1 0; border-radius: 16px; }
.panel:nth-child(1) { flex-grow: 5; }
.panel:nth-child(3) { flex-grow: 3; }
@media (hover: hover) and (pointer: fine) { .panel:hover img { transform: scale(1.04); } }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.panel-title { position: absolute; left: var(--s4); top: var(--s4); padding: var(--s3) var(--s4); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.75rem; max-width: 16ch; background: rgba(11, 42, 91, 0.78); border-radius: 8px; }
.band-captions { margin-top: var(--s3); }

/* CTA on navy */
.field-ink { background: var(--navy); color: var(--on-navy); }
.field-ink .muted { color: var(--on-navy-muted); }
.cta { margin: var(--section) auto 0; max-width: calc(var(--container) + 48px); border-radius: 24px; padding: var(--s11) var(--s9); }
.cta h2 { font-size: 3.75rem; line-height: 1; font-weight: 700; }
.cta h2 span { display: block; }
.cta-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5) var(--s8); margin-top: var(--s8); }
.cta-foot p { font-size: 1.125rem; line-height: 1.75rem; color: var(--on-navy-muted); max-width: 44ch; }
.cta-foot .btn { flex: none; }
.cta .btn { background: var(--sky); color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .cta .btn:hover { background: #5DB8F4; } }

/* FOOTER */
.site-foot { margin-top: var(--section); padding-top: var(--s10); padding-bottom: var(--s6); }
.foot-logo { max-width: var(--container); margin-inline: auto; }
.foot-logo img { width: auto; height: 120px; }
.foot-row { margin-top: var(--s9); row-gap: var(--s8); }
.foot-places { grid-column: 1 / 6; display: grid; gap: var(--s2); align-content: start; }
.foot-places a { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 2rem; }
.foot-links { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.foot-links h3 { font-family: var(--sans); font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; color: var(--on-navy-muted); margin-bottom: var(--s3); }
.foot-links li { margin-bottom: var(--s2); }
.foot-links a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { text-decoration: underline; } }
.legal { max-width: var(--container); margin: var(--s9) auto 0; padding-top: var(--s5); border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; justify-content: space-between; gap: var(--s5); font-size: 0.875rem; line-height: 1.25rem; color: var(--on-navy-muted); }

/* INNER PAGES */
.page-hero { padding-top: var(--s9); }
.page-hero h1 { grid-column: 1 / -1; font-size: 3.75rem; line-height: 1; font-weight: 700; }
.page-hero .standfirst { grid-column: 1 / 9; margin-top: var(--s5); font-size: 1.25rem; line-height: 1.75rem; color: var(--muted); }
.page-hero figure { grid-column: 1 / -1; margin-top: var(--s8); }
.page-hero figure img { width: 100%; height: 56svh; min-height: 320px; object-fit: cover; border-radius: 24px; }
.text-page { padding-top: var(--section); }
.text-page .left-col { display: grid; gap: var(--s5); align-content: start; }
.text-page .left-col img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.text-page .body { grid-column: 6 / -1; display: grid; gap: var(--s4); font-size: 1.125rem; line-height: 1.75rem; }
.text-page .body p { max-width: 62ch; }
.pillars { margin: var(--section) auto 0; max-width: calc(var(--container) + 48px); border-radius: 24px; padding: var(--s11) var(--s9); }
.pillars h2 { grid-column: 1 / 5; }
.pillars ol { grid-column: 6 / -1; display: grid; gap: var(--s7); }
.pillars li h3 { font-size: 1.875rem; line-height: 2.25rem; color: var(--sky); }
.pillars li p { margin-top: var(--s2); color: var(--on-navy-muted); font-size: 1.125rem; line-height: 1.75rem; max-width: 52ch; }
.identity { padding-top: var(--section); }
.identity h2 { grid-column: 1 / -1; margin-bottom: var(--s6); }
.identity .cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.identity .cols > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: var(--s2) var(--s2) var(--s5); }
.identity .cols > div > :not(figure) { padding-inline: var(--s3); }
.identity .cols img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: var(--s4); }
.identity h3 { font-size: 1.25rem; line-height: 1.75rem; }
.identity .cols p { margin-top: var(--s2); color: var(--muted); }

/* TEAM */
.team { padding-top: var(--s9); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); max-width: var(--container); margin-inline: auto; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: var(--s2) var(--s2) var(--s5); display: flex; flex-direction: column; }
.member .portrait { aspect-ratio: 4 / 3; border-radius: 8px; background: var(--navy); display: grid; place-items: center; color: var(--blue); font-family: var(--serif); font-weight: 700; font-size: 3.75rem; line-height: 1; overflow: hidden; }
.member .portrait img { width: 100%; height: 100%; object-fit: cover; }
.member-text { padding: var(--s4) var(--s3) 0; }
.member .role { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--blue); }
.member h3 { margin-top: var(--s2); font-size: 1.5rem; line-height: 2rem; }
.member .pending { color: var(--muted); }
.member .place { margin-top: var(--s1); color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.member .bio { margin-top: var(--s3); color: var(--muted); }
.member-link { display: inline-block; margin-top: var(--s3); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
/* With real portraits the frame turns upright and the face stays in view */
.has-photos .portrait { aspect-ratio: 4 / 5; }
.member .portrait img { object-position: 50% 20%; }
.member-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: center; padding: var(--s2); }
.member-lead .member-text { padding: var(--s5) var(--s5) var(--s5) 0; }
.member-lead h3 { font-size: 2.25rem; line-height: 2.5rem; }
.member-lead .role { font-size: 1rem; line-height: 1.5rem; }
.member .portrait svg { width: 64px; height: 70px; }
.member .portrait { transition: transform 500ms var(--ease); }
.member .portrait img { transition: transform 500ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .member:hover .portrait img { transform: scale(1.03); } }

/* PUBLICATIONS PAGE */
.pubs { padding-top: var(--s9); }
.filters { grid-column: 1 / 4; align-self: start; position: sticky; top: 112px; }
.filters h2 { font-family: var(--sans); font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; color: var(--muted); margin-bottom: var(--s3); }
.filters ul { display: grid; gap: var(--s1); }
.chip {
  font: inherit; font-size: 1rem; line-height: 1.5rem; font-weight: 600; background: transparent; color: var(--navy);
  border: 0; border-radius: 8px; padding: var(--s2) var(--s3); cursor: pointer; text-align: left; width: 100%;
  display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.chip .count { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
.chip[aria-pressed="true"] .count { color: var(--on-navy-muted); }
.chip:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed="true"]):hover { background: var(--tone-1); } }
.list-note { margin-top: var(--s4); padding-inline: var(--s3); }
.pub-list { grid-column: 4 / -1; display: grid; gap: var(--s3); }
.pub { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: var(--s2) var(--s5) var(--s2) var(--s2); display: grid; grid-template-columns: 176px 1fr auto; column-gap: var(--s5); row-gap: var(--s1); align-items: start; }
.pub[hidden] { display: none; }
.pub:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.pub .read:focus-visible { outline: none; }
.pub-cover { grid-row: 1 / span 4; width: 176px; height: 100%; min-height: 160px; object-fit: cover; border-radius: 8px; }
.pub .topic { padding-top: var(--s3); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--blue); }
.pub .status { grid-column: 3; grid-row: 1; padding-top: var(--s3); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pub h3 { grid-column: 2 / -1; font-size: 1.25rem; line-height: 1.75rem; }
.pub p { grid-column: 2 / -1; color: var(--muted); }
.pub .read { grid-column: 2 / -1; padding-bottom: var(--s3); font-weight: 600; font-size: 0.875rem; line-height: 1.25rem; }
.empty { padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }

/* CONTACT */
.paths { grid-column: 1 / -1; margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s2); }
.paths a { display: inline-flex; padding: var(--s2) var(--s3); border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.875rem; line-height: 1.25rem; text-decoration: none; transition: background-color 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .paths a:hover { background: var(--tone-1); } }
.contact { padding-top: var(--s9); }
.contact-side { grid-column: 1 / 5; display: grid; gap: var(--s6); align-content: start; }
.contact-side h2 { font-family: var(--sans); font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; color: var(--muted); margin-bottom: var(--s1); }
.contact-side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.contact-form { grid-column: 6 / -1; display: grid; gap: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: var(--s6); align-content: start; }
label { display: grid; gap: var(--s2); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
input, select, textarea {
  font: inherit; font-size: 1rem; line-height: 1.5rem; font-weight: 400; color: var(--navy); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: var(--s3) var(--s4); width: 100%;
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease);
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); background: #fff; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
select {
  appearance: none; padding-right: var(--s8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B2A5B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
textarea { min-height: 160px; resize: vertical; }
.field-error { color: var(--error); font-weight: 500; }
.field-error:empty, .form-status:empty { display: none; }
.form-status { padding: var(--s3) var(--s4); border-radius: 8px; background: var(--tone-1); color: var(--blue); font-weight: 500; }

/* Section entrances: rise 32px and fade, once */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media print { .js [data-reveal], .js .hero [data-in] { opacity: 1 !important; transform: none !important; filter: none !important; } .globe, .motion-toggle, .site-head { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .hero [data-in] { opacity: 1; transform: none; filter: none; transition: none; }
  .js .hero .hero-photo[data-in] { opacity: 0.42; filter: grayscale(1) contrast(1.15) brightness(0.85); transition: none; }
  .js .hero [data-in="wipe"] { transform: none; }
  .js.has-hero .logo-mark .col, .js.has-hero .logo-mark .lintel, .js.has-hero .logo-mark .dome, .tag-mark .col, .tag-mark .lintel, .tag-mark .dome { transform: none !important; opacity: 1 !important; transition: none; }
  .process-art rect { transition: none; }
  .card, .panel { transition: none; }
  .tagline .w { color: var(--navy); transition: none; }
}

/* TABLET */
@media (max-width: 1100px) {
  .display, .page-hero h1, .cta h2 { font-size: 3rem; line-height: 1; }
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-lead { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a { padding: var(--s2); }
  .wordmark .name { display: none; }
}

/* PHONE */
@media (max-width: 860px) {
  :root { --section: var(--s9); }
  .grid > * { grid-column: 1 / -1 !important; }
  .head { font-size: 1.875rem; line-height: 2.25rem; }
  .display, .page-hero h1, .cta h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .tagline p { font-size: 1.875rem; line-height: 2.25rem; }

  .site-head { top: calc(var(--s2) + env(safe-area-inset-top, 0px)); padding-top: var(--s2); }
  .wordmark .name { display: block; font-size: 0.875rem; line-height: 1.25rem; max-width: 22ch; }
  .js .lang-phone { display: inline-flex; margin-left: auto; padding: var(--s2); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--muted); text-decoration: none; letter-spacing: 0.04em; }
  .js .menu-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--navy); cursor: pointer; position: relative; z-index: 2;
  }
  .menu-btn span { position: absolute; width: 18px; height: 2px; border-radius: 1px; background: #fff; transition: transform 500ms var(--ease); }
  .menu-btn span:first-child { transform: translateY(-4px); }
  .menu-btn span:last-child { transform: translateY(4px); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  /* Full height menu panel */
  .js .nav {
    position: fixed; inset: 0; z-index: 1; margin: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--s2);
    padding: calc(var(--s11) + env(safe-area-inset-top, 0px)) var(--gutter-r) var(--s6) var(--gutter);
    background: rgba(244, 247, 251, 0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease), visibility 0s 300ms;
  }
  .js .nav.is-open { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease), visibility 0s 0s; }
  .js .nav a { font-family: var(--serif); font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; padding: var(--s3) var(--s2); opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
  .js .nav.is-open a { opacity: 1; transform: none; }
  .js .nav .lang-switch { display: none; }
  .js .nav .nav-cta { margin: var(--s4) 0 0; text-align: center; font-family: var(--sans); font-size: 1rem; line-height: 1.5rem; }
  .bar { gap: var(--s3); }
  .bar > .wordmark { min-width: 0; }

  .hero { padding-top: var(--s3); }
  .hero-panel { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-copy { padding: var(--s7) var(--s5) var(--s5); }
  .hero-photo { width: 100%; opacity: 0.35; -webkit-mask-image: linear-gradient(to bottom, transparent 10%, #000 70%); mask-image: linear-gradient(to bottom, transparent 10%, #000 70%); }
  .js .hero.is-in .hero-photo[data-in] { opacity: 0.35; }
  .globe { position: relative; right: auto; top: auto; transform: none; width: 92%; margin: 0 auto calc(var(--s9) * -1); align-self: center; }
  .hero-actions .btn { width: 100%; }
  .motion-toggle { top: var(--s4); bottom: auto; }
  .hero h1 { font-size: 1.875rem; line-height: 2.25rem; }

  .facts { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .facts > div { padding: var(--s4); }
  .facts dt { font-size: 1.25rem; line-height: 1.75rem; }
  .spines { height: auto; }
  .spines-stage { position: static; height: auto; overflow: visible; }
  .deck { height: auto; display: grid; gap: var(--s3); overflow: visible; }
  .card { position: relative; width: 100%; padding: var(--s5); }
  .card .meta { margin-top: var(--s5); }
  .spine { display: none; }
  .rows { grid-template-columns: 1fr; }
  .band { flex-wrap: wrap; height: 84svh; min-height: 0; }
  .panel { flex: none !important; height: calc(50% - 4px); }
  .panel:nth-child(1), .panel:nth-child(4) { width: calc(64% - 4px); }
  .panel:nth-child(2), .panel:nth-child(3) { width: calc(36% - 4px); }
  .band { gap: var(--s2); align-content: space-between; }
  .process-art .h { display: none; }
  .process-art .v { display: block; }
  .process-art { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: stretch; }
  .process-art svg.v { height: min(560px, 120vw); width: auto; justify-self: center; }
  .steps { display: none; }
  .steps-v { display: grid; align-content: space-around; gap: var(--s4); }
  .steps-v h3 { font-family: var(--sans); font-weight: 700; font-size: 1.125rem; line-height: 1.75rem; }
  .steps-v p { font-size: 0.875rem; line-height: 1.25rem; margin-top: var(--s1); color: var(--muted); }
  .cta, .pillars { border-radius: 16px; padding: var(--s9) var(--s5); margin-inline: var(--s4); }
  .cta-foot .btn { width: 100%; }
  .foot-logo img { height: 88px; }
  .foot-links { grid-template-columns: 1fr 1fr; }
  .legal { flex-direction: column; }
  .page-hero .standfirst { font-size: 1.125rem; line-height: 1.75rem; }
  .text-page .body { margin-top: var(--s4); }
  .pillars ol { margin-top: var(--s6); }
  .identity .cols, .team-grid { grid-template-columns: 1fr; }
  .member-lead { grid-template-columns: 1fr; gap: 0; }
  .member-lead .member-text { padding: var(--s4) var(--s3) var(--s3); }
  .member-lead h3 { font-size: 1.875rem; line-height: 2.25rem; }
  .filters { position: static; margin-bottom: var(--s5); }
  .filters ul { display: flex; flex-wrap: wrap; gap: var(--s2); }
  .chip { width: auto; background: var(--surface); border: 1px solid var(--line); }
  .pub { grid-template-columns: 1fr; padding: var(--s2) var(--s2) var(--s3); }
  .pub > :not(.pub-cover) { padding-inline: var(--s3); }
  .pub-cover { grid-row: auto; width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .pub .status { grid-column: 1; grid-row: auto; padding-top: 0; }
  .pub h3, .pub p, .pub .read { grid-column: 1; }
  .contact-form { padding: var(--s5); }
}

/* Small phones: the full name leaves the bar (the hero text opens with it instead) */
@media (max-width: 520px) { .wordmark .name { display: none !important; } }

/* Tablet portrait: phone layout, but the hero keeps its scale */
@media (min-width: 600px) and (max-width: 860px) {
  .hero h1 { font-size: 3rem; line-height: 1; }
  .globe { width: 64%; margin-bottom: calc(var(--s8) * -1); }
}
.motion-toggle .i-play, .motion-toggle[aria-pressed="true"] .i-pause { display: none; }
.motion-toggle[aria-pressed="true"] .i-play { display: inline; }
