/* Shiropa Development Society — colour chapters.
   Field colours: logo green and red, plus the lime and teal of members' own saris. */
@font-face { font-family: "Chivo"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/chivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chivo"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/chivo-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; }
:root {
  --bone: #e9e7e1;
  --bone-2: #dddad2;
  --ink: #16201b;
  --ink-2: #222d27;
  --green: #0a6634;
  --green-2: #085a2d;
  --lime: #c9dc2a;
  --lime-2: #bccf1e;
  --teal: #22b5a0;
  --teal-2: #1ea893;
  --red: #ec5a4f;
  --red-2: #e04d42;
  --deep: #0f0f0f;

  --font: "Chivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(3.6rem, 9.5vw, 9.4rem);

  --m: clamp(16px, 2.6vw, 36px);
  --gap: clamp(12px, 1.6vw, 24px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bone); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: -0.045em; line-height: 0.9; }
h3 { letter-spacing: -0.03em; line-height: 1; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; background: var(--ink); color: var(--bone); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 10px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- fields ---------- */
.f-bone  { --f-bg: var(--bone);  --f-bg2: var(--bone-2); --f-ink: var(--ink);  --f-btn: var(--green); --f-btn-ink: var(--bone); }
.f-ink   { --f-bg: var(--ink);   --f-bg2: var(--ink-2);  --f-ink: var(--bone); --f-btn: var(--lime);  --f-btn-ink: var(--ink); }
.f-green { --f-bg: var(--green); --f-bg2: var(--green-2);--f-ink: var(--bone); --f-btn: var(--lime);  --f-btn-ink: var(--ink); }
.f-lime  { --f-bg: var(--lime);  --f-bg2: var(--lime-2); --f-ink: var(--ink);  --f-btn: var(--ink);   --f-btn-ink: var(--lime); }
.f-teal  { --f-bg: var(--teal);  --f-bg2: var(--teal-2); --f-ink: var(--deep); --f-btn: var(--ink);   --f-btn-ink: var(--bone); }
.f-red   { --f-bg: var(--red);   --f-bg2: var(--red-2);  --f-ink: var(--deep); --f-btn: var(--ink);   --f-btn-ink: var(--bone); }
[class*="f-"] { background: var(--f-bg); color: var(--f-ink); }

.chap { position: relative; padding: clamp(96px, 12vw, 176px) var(--m); }
.chap.tall { min-height: 92svh; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: 0 22px;
  background: var(--f-btn, var(--green)); color: var(--f-btn-ink, var(--bone));
  font: 700 var(--step-body)/1 var(--font); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.textlink { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.textlink:hover { text-decoration-thickness: 4px; }

/* ---------- header ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  height: 72px; padding: 0 var(--m); color: var(--bar-ink, var(--ink)); background: var(--bar-bg, transparent);
  transition: color .3s, background-color .3s;
}
.bar.solid { background: var(--bar-bg); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 26px; letter-spacing: -0.05em; text-transform: uppercase; }
.mark svg { width: 36px; height: 36px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.nav a { position: relative; font-weight: 700; font-size: 16px; text-decoration: none; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.bar .btn { min-height: 44px; padding: 0 18px; font-size: 16px; background: var(--bar-btn, var(--green)); color: var(--bar-btn-ink, var(--bone)); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: inherit; font: 700 17px var(--font); min-height: 44px; padding: 0 4px; cursor: pointer; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .bar .btn { margin-left: 0; }
  .bar.open { background: var(--ink); color: var(--bone); }
  .bar.open .nav {
    display: flex; position: fixed; inset: 72px 0 0 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink); color: var(--bone); padding: 12px var(--m) 40px; overflow-y: auto;
  }
  .bar.open .nav a { font-size: 34px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.04em; padding: 10px 0; }
}
@media (max-width: 480px) { .bar .btn { display: none; } .mark { font-size: 22px; } }

/* ---------- home hero: headline across two fields ---------- */
.hero2 { position: relative; height: max(640px, 100svh); padding: 0; background: var(--bone); overflow: hidden; }
.hero2 .low { position: absolute; inset: 50% 0 0 0; background: var(--green); pointer-events: none; }
.hero2 .hl { position: absolute; left: 0; right: 0; top: calc(50% - .97em); text-align: center; z-index: 2; font-size: var(--step-display); margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: -0.045em; line-height: .9; }
.hero2 .hl span { display: block; }
.hero2 .hl .l1 { color: var(--green); }
.hero2 .hl .l2 { color: var(--lime); margin-top: .08em; }
.hero2 .sub {
  position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%); width: min(42ch, calc(100% - 2 * var(--m)));
  margin: 0; color: var(--bone); text-align: center; font-size: var(--step-lead); line-height: 1.35;
}
.hero2 .sub a { display: inline-flex; margin-top: 22px; }
.hero2-tail { background: var(--green); color: var(--bone); padding: 0 var(--m) clamp(56px, 8vw, 120px); }
.strip { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 8px; align-items: end; }
.strip figure { margin: 0; overflow: hidden; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.strip figure:hover img { transform: scale(1.04); }
.strip figure:nth-child(2) { transform: translateY(-28px); }
.strip figure:nth-child(4) { transform: translateY(-48px); }
.strip figcaption { font-size: var(--step-small); padding-top: 8px; }
@media (max-width: 760px) {
  .hero2 { height: max(600px, 100svh); }
  .hero2 .low { top: 46%; }
  .hero2 .hl { font-size: 15vw; top: calc(46% - .97em); }
  .hero2 .sub { font-size: 17px; bottom: 40px; width: min(30ch, calc(100% - 32px)); }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip figure:nth-child(n) { transform: none; }
  .strip figure:nth-child(even) { transform: translateY(20px); }
}

/* ---------- stats: stepped tiles ---------- */
.stats .grid { grid-template-rows: auto; align-items: start; column-gap: 8px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; }
.tile .fig { font-weight: 900; font-size: clamp(3.5rem, 5.4vw, 5.75rem); letter-spacing: -0.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.tile p { margin: 0; max-width: 30ch; }
.stats .t1 { grid-column: 1 / 7; height: 70vh; min-height: 460px; }
.stats .t2 { grid-column: 7 / 10; margin-top: 14vh; height: 44vh; min-height: 300px; }
.stats .t3 { grid-column: 10 / 13; margin-top: 26vh; height: 34vh; min-height: 240px; }
.stats .head { grid-column: 7 / 13; grid-row: 1; align-self: start; padding-top: 0; position: relative; z-index: 1; }
.stats .head h2 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); letter-spacing: -0.03em; }
.stats .head p { margin: 12px 0 0; max-width: 46ch; }
.stats .t2, .stats .t3 { grid-row: 1; }
.stats .t1 { grid-row: 1; }
.stats .notes { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.stats .notes div { padding: 22px 24px 0 0; }
.stats .notes b { display: block; font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats .t2 .fig, .stats .t3 .fig { font-size: clamp(2.6rem, 3.8vw, 4.25rem); }
.chap.stats { padding-top: clamp(72px, 8vw, 120px); }
.hero2-tail { padding-bottom: clamp(48px, 6vw, 88px); }
@media (max-width: 860px) {
  .stats .grid { display: flex; flex-wrap: wrap; gap: 6px; }
  .stats .head { order: -1; width: 100%; margin-bottom: 18px; }
  .stats .head h2 { font-size: 26px; }
  .stats .t1 { width: 100%; height: auto; min-height: 56vw; }
  .stats .t1 .fig { font-size: 15vw; }
  .stats .t2, .stats .t3 { width: calc(50% - 3px); height: auto; min-height: 220px; margin-top: 0; padding: 18px; }
  .stats .t3 { margin-top: 32px; }
  .stats .t2 .fig, .stats .t3 .fig { font-size: 11vw; }
  .stats .notes { grid-template-columns: 1fr 1fr; width: 100%; }
}

/* ---------- about: inset panel, shaped portrait ---------- */
.inset-wrap { padding: 20px; background: var(--bone); }
.inset { position: relative; min-height: 104svh; overflow: hidden; padding: 56px; display: grid; grid-template-columns: 1fr 340px; gap: 40px; }
.inset h2 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); }
.inset .shape { position: absolute; left: 56px; bottom: -6vw; width: 46vw; max-width: 720px; }
.inset .shape img { width: 100%; aspect-ratio: 1 / .9; object-fit: cover; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.inset .side { grid-column: 2; padding-left: 0; }
.inset .side h3 { font-size: 22px; letter-spacing: -0.02em; text-transform: none; font-weight: 700; margin-bottom: 10px; }
.inset .side p { font-size: 16px; }
.inset .side .block + .block { margin-top: 48px; }
.inset .side .btn { margin-top: 24px; }
.inset .quote { position: absolute; right: 56px; bottom: 56px; width: 340px; font-size: var(--step-small); }
@media (max-width: 900px) {
  .inset-wrap { padding: 10px; }
  .inset { display: block; padding: 28px 20px 0; min-height: 0; }
  .inset h2 { font-size: 10vw; margin-bottom: 28px; }
  .inset .side { padding: 0; }
  .inset .shape { position: relative; left: auto; bottom: auto; width: 86vw; margin: 40px auto -22vw; }
  .inset .quote { position: static; width: auto; margin-top: 24px; }
}

/* ---------- work: names as one paragraph ---------- */
.names h2 { font-size: var(--step-head); margin-bottom: 40px; }
.names ul { list-style: none; margin: 0; padding: 0; font-size: clamp(1.6rem, 3.6vw, 3.4rem); line-height: 1.12; font-weight: 900; letter-spacing: -0.035em; text-transform: uppercase; }
.names li { display: inline; }
.names li { margin-right: .28em; }
.names .nw { white-space: nowrap; }
.names a { text-decoration: none; opacity: .62; transition: opacity .2s; }
.names a:hover, .names a:focus-visible { opacity: 1; }
.names .fr { display: inline-block; width: 1.3em; height: .8em; vertical-align: -0.02em; margin-left: .25em; overflow: hidden; transform-origin: left center; transition: transform .3s var(--ease); }
.names .fr img { width: 100%; height: 100%; object-fit: cover; }
.names a:hover .fr, .names a:focus-visible .fr { transform: scale(1.6); }
.names .count { margin-top: 40px; font-size: 16px; max-width: 60ch; }
@media (max-width: 760px) {
  .names ul { font-size: 7.2vw; line-height: 1.22; overflow-wrap: anywhere; }
  .names a { opacity: 1; }
  .names li:nth-child(n+4) .fr { display: none; }
}

/* ---------- branches: tabs, bands, map (the live thing) ---------- */
.finder-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.finder-head h2 { font-size: clamp(2.25rem, 4.2vw, 3.75rem); }
.finder-head h2 .soft { opacity: .55; display: block; }
.finder { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, .9fr); gap: 32px; margin-top: 56px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tab {
  width: 150px; min-height: 64px; padding: 10px 14px; text-align: left; border: 0; cursor: pointer;
  background: var(--f-bg2, var(--bone-2)); color: inherit; font: 700 16px/1.2 var(--font); transition: background-color .2s, transform .2s var(--ease);
}
.tab small { display: block; font-weight: 400; font-size: 13px; margin-top: 4px; }
.tab:hover { transform: translateX(3px); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bone); }
.bands { display: flex; flex-direction: column; gap: 4px; }
.district h3 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 12px; }
.js .district h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.district + .district { margin-top: 28px; }
.js .district + .district { margin-top: 0; }
.js .district[hidden] { display: none; }
.band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 76px; padding: 12px 18px;
  background: var(--bone); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s;
}
.band:nth-child(even) { background: var(--bone-2); }
.band b { display: block; font-size: 19px; }
.band span { font-size: 16px; }
.band a { font-weight: 700; font-size: 16px; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; padding: 10px 0; }
.band a:hover { text-decoration: underline; }
.band.on, .band:hover { background: var(--ink); color: var(--bone); }
.band.ho b::after { content: " · head office"; font-weight: 400; }
.map { position: sticky; top: 96px; margin: 0; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map .river { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.map .rlabel { font: 700 16px var(--font); fill: var(--ink); opacity: .7; }
.map .dot { cursor: pointer; }
.map .dot circle { fill: var(--bone); stroke: var(--ink); stroke-width: 3; transition: r .2s, fill .2s; }
.map .dot text { font: 700 17px var(--font); fill: var(--ink); paint-order: stroke; stroke: var(--f-bg); stroke-width: 4px; opacity: .9; }
.map .dot.dim { opacity: .35; }
.map .dot.on circle { fill: var(--ink); r: 11; }
.map .dot.hq circle { fill: var(--red); }
.map figcaption { font-size: 16px; margin-top: 8px; }
@media (max-width: 1000px) {
  .finder { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; }
  .tabs { flex-direction: row; position: sticky; top: 72px; z-index: 5; background: var(--f-bg); padding: 6px 0; }
  .tab { width: auto; flex: 1; min-height: 56px; padding: 8px 10px; }
  .band { grid-template-columns: 1fr; padding: 16px; }
  .map { position: static; order: -1; }
}

/* ---------- voices: prints laid under the headline ---------- */
.prints { position: relative; min-height: 100svh; overflow: hidden; padding: clamp(96px, 10vw, 150px) var(--m) clamp(64px, 7vw, 110px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.prints h2 { font-size: clamp(4.5rem, 11vw, 11rem); line-height: .85; text-align: center; position: relative; z-index: 3; }
.prints .stack { display: flex; justify-content: center; align-items: flex-start; }
.print {
  position: relative; flex: 0 1 20vw; max-width: 300px; margin: 0 .6vw; padding: 8px; background: var(--bone); border: 0; cursor: pointer;
  transform: rotate(var(--r)) translateY(var(--y, 0)); transition: transform .25s var(--ease); z-index: 2; color: var(--ink); text-align: left; font: inherit;
}
.print:hover, .print:focus-visible, .print.playing { transform: rotate(0deg) translateY(-12px) scale(1.04); z-index: 4; }
.print video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--ink); }
.print .cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 4px 4px; font-size: 15px; font-weight: 700; }
.print .play { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--bone); transition: transform .2s var(--ease); }
.print:hover .play { transform: scale(1.1); }
.print .play svg { width: 16px; height: 16px; }
.print .play .ps { display: none; }
.print.playing .play .pl { display: none; }
.print.playing .play .ps { display: block; }
.prints .p1 { --r: -7deg; --y: 24px; }
.prints .p2 { --r: 4deg; --y: -8px; }
.prints .p3 { --r: -3deg; --y: 30px; }
.prints .p4 { --r: 6deg; --y: 0px; }
.prints .say { max-width: 52ch; margin: 0; font-size: 18px; }
@media (max-width: 760px) {
  .prints { min-height: auto; gap: 32px; }
  .prints h2 { font-size: 13vw; }
  .prints .stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .print { margin: 0; max-width: none; }
}

/* ---------- proof: names running off the edges ---------- */
.run { overflow: hidden; height: 34vh; min-height: 200px; display: flex; align-items: center; }
.run .track { display: flex; flex: none; white-space: nowrap; animation: run 48s linear infinite; }
.run .track span { font-weight: 900; font-size: 8vw; letter-spacing: -0.05em; text-transform: uppercase; line-height: 1; display: inline-flex; align-items: center; }
.run .track span::after { content: ""; width: .24em; height: .24em; border-radius: 50%; background: currentColor; margin: 0 .5em; }
@keyframes run { to { transform: translateX(-50%); } }
.run-note { padding: 28px var(--m) clamp(64px, 8vw, 120px); }
.run-note p { max-width: 60ch; font-size: 18px; margin: 0; }
@media (max-width: 760px) { .run { height: 22vh; min-height: 150px; } .run .track span { font-size: 15vw; } }

/* ---------- contact: address in display rows ---------- */
.rows { padding: 0; }
.rows .row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: 150px; padding: 0 var(--m) 22px;
  font-size: clamp(2rem, 5.2vw, 5rem); line-height: 1; letter-spacing: -0.04em; text-decoration: none;
}
.rows .row:nth-child(even) { background: var(--f-bg2); }
.rows a.row:hover { background: var(--bone); color: var(--ink); }
.rows .row h2 { font: inherit; letter-spacing: inherit; text-transform: none; }
.rows .row img { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; align-self: center; }
.rows .row small { font-size: var(--step-small); letter-spacing: 0; max-width: 24ch; text-align: right; }
.rows .row.go { background: var(--lime); color: var(--ink); }
.rows .go .arrow { display: grid; place-items: center; width: .9em; height: .9em; border-radius: 50%; background: var(--ink); color: var(--lime); align-self: center; transition: transform .25s var(--ease); }
.rows .go:hover .arrow { transform: translateX(8px); }
.rows .go .arrow svg { width: 45%; height: 45%; }
.rows .row.go:hover { background: var(--bone); }
@media (max-width: 760px) {
  .rows .row { min-height: 84px; font-size: 8.6vw; padding: 0 16px 14px; }
  .rows .row img, .rows .row small { display: none; }
  .rows .go .arrow { width: 56px; height: 56px; }
}

/* ---------- footer tiles ---------- */
.foot { padding: 10px; background: var(--bone); }
.foot .grid { column-gap: 8px; row-gap: 8px; }
.foot .t { padding: 22px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.foot .t-a { grid-column: 1 / 5; background: var(--bone-2); }
.foot .t-a p:first-child { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.25; letter-spacing: -0.02em; }
.foot .t-a p:last-child, .foot .legal { font-size: var(--step-small); margin: 0; }
.foot .t-b { grid-column: 5 / 8; background: var(--teal); color: var(--deep); }
.foot .t-b ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; }
.foot .t-b a { text-decoration: none; display: inline-block; padding: 4px 0; font-weight: 700; font-size: 16px; }
.foot .t-b a:hover { text-decoration: underline; }
.foot .t-c { grid-column: 8 / 10; background: var(--red); color: var(--deep); }
.foot .t-c b { font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.foot .t-d { grid-column: 10 / 13; background: var(--lime); color: var(--ink); }
.foot .t-d a { font-size: 20px; font-weight: 700; word-break: break-word; }
.foot .t-d ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.foot .t-d ul a { font-size: 15px; font-weight: 400; }
.foot .t-e { grid-column: 1 / 9; background: var(--ink); color: var(--bone); min-height: 320px; align-items: center; justify-content: center; }
.foot .t-e span { font-weight: 900; font-size: 11vw; letter-spacing: -0.06em; line-height: .8; text-transform: uppercase; }
.foot .t-e small { font-size: var(--step-body); margin-top: 18px; }
.foot .t-f { grid-column: 9 / 13; background: var(--green); color: var(--bone); min-height: 320px; text-decoration: none; position: relative; }
.foot .t-f b { font-size: 28px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; }
.foot .t-f svg { position: absolute; right: 22px; bottom: 22px; width: 72px; height: 72px; transition: transform .25s var(--ease); }
.foot .t-f:hover svg { transform: translate(6px, -6px); }
@media (max-width: 900px) {
  .foot .grid { grid-template-columns: 1fr 1fr; }
  .foot .t { grid-column: auto !important; min-height: 160px; padding: 20px; justify-content: flex-start; gap: 16px; }
  .foot .t-e, .foot .t-f { grid-column: 1 / -1 !important; order: -2; min-height: 160px; }
  .foot .t-f { order: -1; }
  .foot .t-e span { font-size: 22vw; }
  .foot .t-a { grid-column: 1 / -1 !important; }
  .foot .t-b ul { columns: 1; }
}

/* ---------- inner pages ---------- */
.page-top { padding: clamp(120px, 14vw, 200px) var(--m) clamp(72px, 9vw, 140px); }
.page-top .grid { align-items: end; row-gap: 40px; }
.page-top .txt { grid-column: 1 / 8; }
.page-top h1 { font-size: clamp(3rem, 7.4vw, 7.5rem); }
.page-top .lead { margin: 32px 0 0; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.page-top .pic { grid-column: 8 / 13; margin: 0; }
.page-top .pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-top .pic figcaption, figure figcaption { font-size: var(--step-small); padding-top: 8px; }
@media (max-width: 860px) { .page-top .txt, .page-top .pic { grid-column: 1 / -1; } .page-top h1 { font-size: 13vw; } }

.split { align-items: start; row-gap: 40px; }
.split .l { grid-column: 1 / 6; }
.split .r { grid-column: 7 / 13; }
.sec-h { font-size: var(--step-head); }
.split h2, .prog .t h2 { font-size: clamp(2.25rem, 1rem + 3.6vw, 4.25rem); }
.split .r p { max-width: 62ch; }
.split .r .big { font-size: var(--step-lead); line-height: 1.4; letter-spacing: -0.015em; }
.split .l figure { margin: 40px 0 0; }
.split .l img { width: 100%; object-fit: cover; }
@media (max-width: 860px) { .split .l, .split .r { grid-column: 1 / -1; } }

.vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 56px; }
.vm div { padding: clamp(24px, 3vw, 44px); background: var(--f-bg2); }
.vm h3 { font-size: clamp(1.8rem, 3vw, 2.75rem); margin-bottom: 18px; }
.vm p { margin: 0; max-width: 52ch; }
.vm div:first-child { grid-column: 1 / -1; }
.vm div:first-child p { font-size: var(--step-lead); line-height: 1.35; max-width: 44ch; }
@media (max-width: 760px) { .vm { grid-template-columns: 1fr; } }

.words { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.words li { padding: 14px 20px; background: var(--f-bg2); font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; }

.defs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 48px 0 0; }
.defs div { padding: 24px 0 0; }
.defs dt { font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1; margin-bottom: 12px; }
.defs dd { margin: 0; }
@media (max-width: 900px) { .defs { grid-template-columns: 1fr; } }

.plain { margin: 32px 0 0; padding-left: 1.2em; }
.plain li { margin-bottom: 10px; max-width: 62ch; }

/* programme ledger (a real table) */
.ledger { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { text-align: left; padding: 14px 0; border-bottom: 2px solid color-mix(in srgb, currentColor 25%, transparent); vertical-align: baseline; }
.ledger th { font-weight: 400; }
.ledger td { text-align: right; font-weight: 900; font-size: var(--step-lead); letter-spacing: -0.02em; }
.ledger td small { display: block; font-weight: 400; font-size: var(--step-small); letter-spacing: 0; }

.prog { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: center; }
.prog .t { grid-column: 1 / 7; }
.prog .t h2 { margin-bottom: 28px; }
.prog .t p { max-width: 50ch; }
.prog .t .where { font-weight: 700; }
.prog figure { grid-column: 8 / 13; margin: 0; }
.prog figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prog.flip .t { grid-column: 7 / 13; grid-row: 1; }
.prog.flip figure { grid-column: 1 / 6; grid-row: 1; }
@media (max-width: 860px) { .prog .t, .prog figure, .prog.flip .t, .prog.flip figure { grid-column: 1 / -1; grid-row: auto; } }

.objectives { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 32px; }
.objectives details { padding: 18px 0; border-bottom: 2px solid color-mix(in srgb, currentColor 22%, transparent); }
.objectives summary { cursor: pointer; font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.objectives summary::-webkit-details-marker { display: none; }
.objectives summary::after { content: "+"; font-weight: 900; transition: transform .2s; }
.objectives details[open] summary::after { transform: rotate(45deg); }
.objectives details p { margin: 12px 0 0; max-width: 60ch; }
@media (max-width: 860px) { .objectives { grid-template-columns: 1fr; } }

/* people */
.board { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.board li { background: var(--f-bg2); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 340px; }
.board img { width: 120px; height: 150px; object-fit: cover; }
.board b { font-size: 21px; letter-spacing: -0.02em; line-height: 1.15; }
.board .role { font-weight: 700; }
.board span { font-size: 15px; }
.board li.lead { grid-column: span 2; background: var(--ink); color: var(--bone); flex-direction: row; align-items: flex-end; }
.board li.lead img { width: 180px; height: 225px; }
.board li.lead div { display: flex; flex-direction: column; gap: 10px; }
.board li.lead b { font-size: clamp(1.8rem, 2.6vw, 2.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.04em; line-height: .95; }
@media (max-width: 1000px) { .board { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .board { grid-template-columns: 1fr; } .board li.lead { grid-column: auto; flex-direction: column; align-items: flex-start; } .board li { min-height: 0; } }

.tablewrap { overflow-x: auto; margin-top: 40px; }
.members { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 16px; }
.members th, .members td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 2px solid color-mix(in srgb, currentColor 18%, transparent); vertical-align: top; }
.members th { font-weight: 700; }
.members td:first-child { font-weight: 700; white-space: nowrap; }

.org { margin: 0; }
.org img { width: 100%; max-width: 800px; background: #fff; }

/* certificates */
.certs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; margin-top: 56px; }
.cert { margin: 0; background: var(--f-bg2); padding: 20px; display: flex; flex-direction: column; gap: 16px; grid-column: span 4; }
.cert button { padding: 0; border: 0; background: #fff; cursor: zoom-in; }
.cert img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; transition: transform .4s var(--ease); }
.cert button:hover img { transform: scale(1.03); }
.cert h3 { font-size: 22px; letter-spacing: -0.02em; text-transform: none; font-weight: 700; line-height: 1.15; }
.cert p { margin: 0; font-size: 16px; }
.cert .no { font-weight: 900; font-variant-numeric: tabular-nums; }
.cert.wide { grid-column: span 6; }
@media (max-width: 900px) { .cert, .cert.wide { grid-column: span 6; } }
@media (max-width: 560px) { .cert, .cert.wide { grid-column: 1 / -1; } }

/* gallery */
.wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 56px; }
.wall button { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: none; overflow: hidden; }
.wall img { width: 100%; aspect-ratio: 700 / 470; object-fit: cover; transition: transform .6s var(--ease); }
.wall button:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .wall { grid-template-columns: 1fr 1fr; gap: 6px; } }
.wall .tall img { aspect-ratio: 3 / 4; object-fit: cover; }

.vids { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 56px; }
.vids figure { margin: 0; }
.vids video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink); }
@media (max-width: 860px) { .vids { grid-template-columns: 1fr 1fr; } }

.news { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; margin-top: 56px; align-items: start; }
.news article { grid-column: span 6; background: var(--f-bg2); padding: clamp(22px, 3vw, 40px); }
.news h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); margin: 10px 0 18px; }
.news time { font-weight: 700; }
.news .bn { line-height: 1.7; }
.news .pics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 20px 0; }
.news .pics img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 860px) { .news article { grid-column: 1 / -1; } }

dialog.lb { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
dialog.lb::backdrop { background: rgb(15 15 15 / .88); }
dialog.lb img { max-height: 84vh; width: auto; margin: 0 auto; background: #fff; }
dialog.lb button { margin: 10px 0 0 auto; display: block; min-height: 44px; padding: 0 18px; border: 0; background: var(--bone); color: var(--ink); font: 700 16px var(--font); cursor: pointer; }
dialog.lb p { color: var(--bone); margin: 10px 0 0; font-size: 15px; }

.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 8px; margin-top: 48px; }
.contact-grid > div { grid-column: span 4; background: var(--f-bg2); padding: 28px; }
.contact-grid h3 { font-size: 24px; letter-spacing: -0.02em; text-transform: none; font-weight: 700; margin-bottom: 12px; }
.contact-grid p { margin: 0 0 6px; }
.contact-grid a { font-weight: 700; }
@media (max-width: 900px) { .contact-grid > div { grid-column: 1 / -1; } }

/* ---------- entrances ---------- */
.js [data-r] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 75ms); }
.js [data-r].in { opacity: 1; transform: none; }
.js .hero2 .hl span, .js .hero2 .sub { animation: rise .9s var(--ease) both; }
.js .hero2 .hl span:nth-child(2) { animation-delay: .1s; }
.js .hero2 .sub { animation-delay: .3s; animation-name: rise-c; }
@keyframes rise { from { opacity: 0; transform: translateY(.25em); } }
@keyframes rise-c { from { opacity: 0; transform: translate(-50%, 24px); } }
.drift { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-r] { opacity: 1; transform: none; }
  .run .track { animation: none; }
}
