/* FINTRA, refined neo-brutalism.
   Brutalist in the bones (square corners, ink rules, flat colour, hard shadows on clickables only),
   quiet on the surface (one accent, one texture, lots of space, a readable body face).
   The design system this implements is the FINTRA Design System artifact; token names match it.

   Three faces, all self-hosted (SIL OFL 1.1, licences in fonts/):
   - Space Grotesk for headings
   - IBM Plex Sans for everything people read
   - FINTRA Mono for numbers, dates and small labels, never for paragraphs
   No @import: each page preloads the faces it shows above the fold. */

@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('fonts/space-grotesk-var.woff2') format('woff2-variations'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/ibm-plex-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/ibm-plex-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'FINTRA Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/fintra-mono-var.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20A0-20BF; }

:root {
  --paper: #f1eee6;
  --panel: #fffef9;
  --wash: #ddd8ce;
  --ink: #101010;
  --muted: #514d47;
  --red: #c2211b;
  --on-red: #ffffff;
  /* Acid has one job: the hover and press fill of the primary button. Never text, never a ground. */
  --acid: #d8ff3e;
  --on-ink-muted: #d2cec5;
  /* One use: the "Curated for Pakistani investors" tag on the home hero. 6.6:1 on paper. */
  --green: #0b6b3a;
  /* One use: the next event's title, from the events sketch. 6.4:1 on panel. */
  --blue: #1f4fd1;
  --line-soft: #c9c3b8;
  --rule-dark: #555555;

  --edge: 2px;
  --rule: 1px;
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lift: 6px 6px 0 var(--ink);
  --gutter: clamp(16px, 5vw, 80px);
  --measure: 1180px;
  --section-y: clamp(80px, 12vw, 160px);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'FINTRA Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 19px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; overflow-wrap: anywhere; }
h1 { font-size: clamp(44px, 6vw, 64px); }
h2 { font-size: clamp(34px, 4.6vw, 64px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; color: var(--muted); }

.skip { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--panel); }
.skip:focus { top: 16px; }
.wrap { width: min(var(--measure), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }

/* Icons: one drawn set, 24x24, square caps. stroke = currentColor so an icon takes its label's colour. */
.ic { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.16em;
  fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: square; stroke-linejoin: miter; }

/* ---------- Header: a slim ink bar ---------- */
.header { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--panel); }
.header__in { min-height: 56px; display: flex; align-items: center; gap: 24px; padding: 6px var(--gutter); }
.brand { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 10px; border: var(--edge) solid var(--panel);
  color: var(--panel); text-decoration: none; font: 700 14px/1 var(--font-mono); letter-spacing: .12em; }
.brand:hover { background: var(--panel); color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; color: var(--panel);
  text-decoration: none; font: 500 16px/1 var(--font-sans); }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav a[aria-current="page"] { background: var(--paper); color: var(--ink); text-decoration: none; }
.header :focus-visible { outline-color: var(--panel); }
.menu { display: none; margin-left: auto; min-width: 44px; min-height: 44px; padding: 0 12px; border: var(--edge) solid var(--panel);
  background: var(--ink); color: var(--panel); font: 500 15px/1 var(--font-sans); }

/* ---------- Buttons: the only things with a shadow, besides link cards ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 22px;
  border: var(--edge) solid var(--ink); background: var(--ink); color: var(--panel); text-decoration: none;
  font: 600 17px/1 var(--font-sans); box-shadow: var(--shadow-sm);
  transition: transform .12s ease-out, box-shadow .12s ease-out, background-color .12s, color .12s; }
/* Hover sinks the block into its own shadow, so it reads as pushable before the click. */
.btn:hover, .btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn:active { transition-duration: 60ms; }
.btn--red { background: var(--red); color: var(--on-red); }
.btn--red:hover, .btn--red:active { background: var(--acid); color: var(--ink); }
.btn--ghost { background: var(--panel); color: var(--ink); }
.btn .ic { width: 18px; height: 18px; }
.textlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.textlink:hover { color: var(--red); }

/* ---------- Hero: one line, one action, the one texture ---------- */
.gridpaper { background-color: var(--paper);
  background-image: linear-gradient(rgba(16, 16, 16, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 16, 16, .04) 1px, transparent 1px),
    linear-gradient(rgba(16, 16, 16, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 16, 16, .08) 1px, transparent 1px);
  background-size: 12px 12px, 12px 12px, 60px 60px, 60px 60px; }
.hero { min-height: min(calc(100svh - 56px), 860px); display: grid; align-content: center; padding: clamp(64px, 10vw, 120px) 0; border-bottom: var(--edge) solid var(--ink); }
.hero__title { font-size: clamp(72px, 14vw, 140px); line-height: .92; letter-spacing: -.045em; }
.hero__title b { color: var(--red); font-weight: inherit; }
.hero__lede { max-width: 30ch; margin-top: 28px; color: var(--ink); font: 500 clamp(22px, 2.4vw, 30px)/1.3 var(--font-sans); letter-spacing: -.01em; }
.hero__text { max-width: 54ch; margin-top: 18px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(40px, 6vw, 88px); align-items: center; }

/* Featured report beside the hero headings. A link card, so it carries the shadow and the sink. */
.feature { display: flex; flex-direction: column; border: var(--edge) solid var(--ink); background: var(--panel); color: var(--ink);
  text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .12s ease-out, box-shadow .12s ease-out; }
.feature:hover, .feature:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.feature__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: var(--ink); color: var(--panel);
  font: 500 13px/1.3 var(--font-mono); letter-spacing: .04em; }
.feature__cover { position: relative; display: block; height: 220px; overflow: hidden; border-block: var(--edge) solid var(--ink); background: var(--red); }
.feature__n { position: absolute; left: 18px; top: 14px; color: var(--panel); font: 700 76px/1 var(--font-display); letter-spacing: -.05em; }
.feature__block { position: absolute; bottom: 20px; border: var(--edge) solid var(--ink); }
.feature__block--ink { left: 18px; width: 96px; height: 96px; background: var(--ink); box-shadow: 4px 4px 0 var(--panel); }
.feature__block--paper { left: 132px; width: 56px; height: 56px; background-color: var(--panel);
  background-image: linear-gradient(rgba(16, 16, 16, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 16, 16, .1) 1px, transparent 1px); background-size: 8px 8px; }
.feature__tag { position: absolute; right: 16px; bottom: 20px; padding: 5px 9px; border: var(--edge) solid var(--ink); background: var(--panel);
  font: 500 12px/1 var(--font-mono); letter-spacing: .04em; }
.feature__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.feature__title { font: 600 22px/1.2 var(--font-display); letter-spacing: -.02em; }
.feature__meta { color: var(--muted); font: 400 13px/1.4 var(--font-mono); }
.feature__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; }
.feature__go .ic { transition: transform .12s ease-out; }
.feature:hover .feature__go .ic { transform: translateX(4px); }

/* The values line along the foot of the hero. */
.hero__values { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px;
  margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: var(--edge) solid var(--ink); }
.values { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; color: var(--ink);
  font: 700 clamp(20px, 2.2vw, 28px)/1.2 var(--font-display); letter-spacing: -.02em; }
.values span { display: inline-flex; align-items: center; gap: 20px; }
.values span + span::before { content: ""; width: 10px; height: 10px; background: var(--red); }
.values__side { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.values__tag { padding: 6px 12px; border: var(--edge) solid var(--green); background: var(--panel); color: var(--green); font-weight: 600; font-size: 17px; }
.values__since { color: var(--muted); font: 500 13px/1.3 var(--font-mono); letter-spacing: .04em; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 48px 0 0; border-top: var(--edge) solid var(--ink); width: fit-content; max-width: 100%; }
.facts > div { padding: 16px 40px 0 0; }
.facts dt { color: var(--muted); font: 500 13px/1.3 var(--font-mono); letter-spacing: .04em; }
.facts dd { margin: 6px 0 0; font: 500 clamp(26px, 3vw, 36px)/1.1 var(--font-mono); letter-spacing: -.02em; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section + .section { border-top: var(--edge) solid var(--ink); }
.section--dark { background: var(--ink); color: var(--panel); }
.section--dark h2, .section--dark h3 { color: var(--panel); }
.section--dark p { color: var(--on-ink-muted); }
.section--dark :focus-visible { outline-color: var(--panel); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head p { max-width: 56ch; margin-top: 20px; }

/* ---------- Bands: one department per full-width row ---------- */
.bands { border-top: var(--edge) solid var(--ink); }
.band { display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 40px; align-items: center;
  padding: clamp(28px, 4vw, 48px) 0; border-bottom: var(--edge) solid var(--ink); color: inherit; text-decoration: none;
  transition: background-color .12s; }
.band__n { align-self: start; padding-top: .9em; color: var(--red); font: 500 14px/1 var(--font-mono); }
.band__word { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -.04em; }
.band__text p { max-width: 42ch; }
.band__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--ink); font-weight: 600; }
.band__go .ic { transition: transform .12s ease-out; }
a.band:hover { background: var(--wash); }
a.band:hover .band__go .ic { transform: translateX(4px); }
a.band:focus-visible { outline-offset: -2px; }

/* ---------- Link cards ---------- */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.channel { display: grid; align-content: start; gap: 10px; min-height: 180px; padding: 28px; border: var(--edge) solid var(--ink);
  background: var(--panel); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .12s ease-out, box-shadow .12s ease-out; }
.channel:hover, .channel:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.channel:active { transition-duration: 60ms; }
.channel small { color: var(--red); font: 500 13px/1.3 var(--font-mono); letter-spacing: .04em; }
.channel strong { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: 600 clamp(24px, 2.4vw, 30px)/1.15 var(--font-display); letter-spacing: -.02em; }
.channel span { color: var(--muted); font-size: 16px; line-height: 1.5; }
.section--dark .channel { border-color: var(--panel); box-shadow: 4px 4px 0 var(--panel); }
.section--dark .channel:hover, .section--dark .channel:active { box-shadow: 0 0 0 var(--panel); }
.section--dark .channel span { color: var(--muted); }

.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 24px; align-items: baseline; margin-top: 40px;
  padding: 24px 28px; border: var(--edge) solid var(--panel); }
.notice__label { grid-row: span 2; color: var(--paper); font: 500 13px/1.3 var(--font-mono); letter-spacing: .04em; }
.notice h3 { font-size: 22px; }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(72px, 11vw, 140px) 0 clamp(56px, 8vw, 96px); border-bottom: var(--edge) solid var(--ink); }
.page-head h1 { max-width: 16ch; }
.page-head__lede { max-width: 56ch; margin-top: 24px; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; }

.empty { padding: clamp(32px, 6vw, 72px); border: var(--edge) solid var(--ink); }
.empty h2 { font-size: clamp(28px, 3.4vw, 44px); }
.empty p { max-width: 56ch; margin-top: 16px; }
.empty .actions { margin-top: 32px; }

/* Card grids: each card carries its own ink border, so an odd count never leaves a bare ink track. */
.people, .cells { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.people { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.person, .cell { padding: 28px 24px; border: var(--edge) solid var(--ink); background: var(--panel); }
.person__role, .cell small { display: block; color: var(--red); font: 500 13px/1.35 var(--font-mono); letter-spacing: .04em; }
.person__name { margin-top: 12px; font-size: clamp(22px, 2.2vw, 28px); }
.person__note { margin-top: 10px; font-size: 16px; line-height: 1.5; }
.cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell h3 { margin-top: 12px; }
.cell p { margin-top: 10px; font-size: 16px; line-height: 1.55; }

/* Department list: number, name and remit, director. Each row links to that department's post. */
.index { border-top: var(--edge) solid var(--panel); }
.index-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(160px, auto) 24px; gap: 8px 24px; align-items: center;
  padding: 24px 12px 24px 0; border-bottom: var(--rule) solid var(--rule-dark); color: inherit; text-decoration: none; transition: background-color .12s; }
.index-row__n { color: var(--paper); font: 500 14px/1 var(--font-mono); }
.index-row h3 { color: var(--panel); }
.index-row p { margin-top: 6px; font-size: 16px; line-height: 1.5; }
.index-row__who { color: var(--on-ink-muted); font: 400 14px/1.4 var(--font-mono); }
.index-row__who b { display: block; color: var(--panel); font: 600 17px/1.3 var(--font-sans); }
.index-row .ic { color: var(--panel); transition: transform .12s ease-out; }
a.index-row:hover { background: rgba(241, 238, 230, .07); }
a.index-row:hover .ic { transform: translate(2px, -2px); }
a.index-row:focus-visible { outline-offset: -2px; }

.source { margin-top: 28px; color: var(--on-ink-muted); font: 400 14px/1.5 var(--font-mono); }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; background: var(--ink); color: var(--panel); border-top: var(--edge) solid var(--ink); }
.footer__top { display: flex; justify-content: space-between; gap: 32px; align-items: start; flex-wrap: wrap; }
.footer__mark { color: var(--paper); font: 700 16px/1 var(--font-mono); letter-spacing: .12em; }
.footer__blurb { max-width: 40ch; margin-top: 14px; color: var(--on-ink-muted); font-size: 16px; line-height: 1.55; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--panel); text-decoration: none; font: 500 16px/1 var(--font-sans); }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.footer :focus-visible { outline-color: var(--panel); }
.footer__base { margin-top: 48px; padding-top: 18px; border-top: var(--rule) solid var(--rule-dark); color: var(--on-ink-muted); font: 400 14px/1.5 var(--font-mono); }

/* ---------- Marquee: one ink band of what FINTRA is, scrolling ---------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--panel); border-bottom: var(--edge) solid var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { display: inline-flex; align-items: center; gap: 28px; padding: 18px 0 18px 28px;
  font: 700 clamp(20px, 2.4vw, 30px)/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.marquee__item::after { content: ""; width: 12px; height: 12px; background: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Badge: a small bordered status tag ---------- */
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border: var(--edge) solid var(--ink);
  background: var(--panel); color: var(--ink); font: 500 12px/1 var(--font-mono); letter-spacing: .04em; white-space: nowrap; }
.badge--red { background: var(--red); border-color: var(--red); color: var(--on-red); }
.section--dark .badge { border-color: var(--panel); }

/* ---------- About: a short account and a fact sheet ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about h2 { margin-bottom: 28px; }
.about__text p + p { margin-top: 18px; }
.about__text p:first-of-type { color: var(--ink); font-size: clamp(20px, 2vw, 24px); line-height: 1.45; }
.factsheet { margin: 0; border: var(--edge) solid var(--ink); background: var(--panel); }
.factsheet > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 20px; border-bottom: var(--rule) solid var(--line-soft); }
.factsheet > div:last-child { border-bottom: 0; }
.factsheet dt { color: var(--muted); font: 500 13px/1.3 var(--font-mono); letter-spacing: .04em; }
.factsheet dd { margin: 0; color: var(--ink); font: 500 20px/1.2 var(--font-mono); text-align: right; }

@media (max-width: 900px) {
  /* The mobile menu is a sheet: a full-height ink panel that slides in from the right under the header. */
  .nav { display: none; position: fixed; top: 56px; right: 0; bottom: 0; width: min(88vw, 380px); flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px var(--gutter) 32px; background: var(--ink); border-left: var(--edge) solid var(--panel); }
  .nav.open { display: flex; translate: 0 0; transition: translate .28s cubic-bezier(.2, .8, .2, 1), display .28s allow-discrete; }
  @starting-style { .nav.open { translate: 100% 0; } }
  .nav a { min-height: 64px; padding: 12px 0; border-bottom: var(--rule) solid var(--rule-dark); font: 700 30px/1 var(--font-display); letter-spacing: -.02em; }
  .nav a[aria-current="page"] { background: none; color: var(--panel); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 8px; }
  html.nav-open { overflow: hidden; }
  html.no-js .nav { display: flex; position: static; width: auto; flex-direction: row; padding: 0; border: 0; }
  html.no-js .nav a { min-height: 44px; border: 0; font: 500 16px/1 var(--font-sans); }
  .about { grid-template-columns: 1fr; }
  html.no-js .menu { display: none; }
  .menu { display: block; }
  .band { grid-template-columns: 40px minmax(0, 1fr); }
  .band__text { grid-column: 2; }
  .cells { grid-template-columns: 1fr; }
  .index-row { grid-template-columns: 40px minmax(0, 1fr) 24px; }
  .index-row__who { grid-column: 2; grid-row: 2; }
  .index-row .ic { grid-column: 3; grid-row: 1; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .actions { display: grid; }
  .actions .btn { width: 100%; }
  .facts > div { padding-right: 28px; }
  .notice { grid-template-columns: 1fr; }
  .notice__label { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.empty .badge + h2 { margin-top: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cells + .actions { margin-top: 48px; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .feature { max-width: 520px; }
}

/* ---------- Section head with an action on the right ---------- */
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 32px; }
.section__head--row .btn { box-shadow: var(--shadow-sm); }

/* ---------- Research carousel: Understanding Markets ---------- */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 24px; margin: 0; padding: 4px 4px 20px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
@media (min-width: 1100px) { .carousel__track { grid-auto-columns: calc((100% - 4 * 24px - 72px) / 5); padding-right: 96px; } }
.carousel__track:focus-visible { outline-offset: 6px; }
.rcard { scroll-snap-align: start; display: flex; flex-direction: column; border: var(--edge) solid var(--ink); background: var(--panel); }
.rcard__cover { position: relative; display: block; aspect-ratio: 4 / 5; border-bottom: var(--edge) solid var(--ink); }
.rcard__cover--paper { background-color: var(--panel);
  background-image: linear-gradient(rgba(16, 16, 16, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 16, 16, .06) 1px, transparent 1px); background-size: 12px 12px; }
.rcard__cover--red { background: var(--red); }
.rcard__cover--ink { background: var(--ink); }
.rcard__n { position: absolute; left: 16px; top: 14px; color: var(--red); font: 700 56px/1 var(--font-display); letter-spacing: -.05em; }
.rcard__cover--red .rcard__n, .rcard__cover--ink .rcard__n { color: var(--panel); }
.rcard__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px 16px; }
.rcard__kind { color: var(--muted); font: 500 13px/1.3 var(--font-mono); letter-spacing: .04em; }
.carousel__next { position: absolute; right: 0; top: 40%; display: grid; place-items: center; width: 64px; height: 64px; border: var(--edge) solid var(--ink);
  border-radius: 50%; background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .12s ease-out, box-shadow .12s ease-out; }
.carousel__next:hover, .carousel__next:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.carousel__next .ic { width: 26px; height: 26px; }
@media (max-width: 1099px) { .carousel__next { display: none; } }

/* ---------- Events ---------- */
.next-event { display: grid; gap: 8px; padding: clamp(24px, 4vw, 40px); border: var(--edge) solid var(--ink); background: var(--panel); }
.next-event__when { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--red); font: 700 clamp(22px, 2.4vw, 30px)/1.1 var(--font-display); letter-spacing: -.02em; }
.next-event__title { font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.04em; color: var(--blue); }
.next-event__by { color: var(--green); font-weight: 600; font-size: clamp(18px, 1.8vw, 22px); }
.events__after { margin: 48px 0 20px; color: var(--muted); font: 500 14px/1.3 var(--font-mono); letter-spacing: .04em; }
.events-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ecard { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 150px; padding: 20px; border: var(--edge) solid var(--ink); background: var(--wash); }
.ecard__n { color: var(--muted); font: 500 13px/1 var(--font-mono); }
.ecard__name { font: 700 clamp(22px, 2.2vw, 28px)/1.1 var(--font-display); letter-spacing: -.02em; }
.ecard--more { padding: 0; background: var(--paper); }
.ecard--more a { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; height: 100%; padding: 20px; color: var(--ink); font-weight: 600; text-decoration: none; transition: background-color .12s; }
.ecard--more a:hover { background: var(--wash); }
@media (max-width: 900px) { .events-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .events-row { grid-template-columns: 1fr; } .ecard { min-height: 0; } }

/* ---------- Photo with an action bar ---------- */
.photo { margin: 0; border: var(--edge) solid var(--ink); background: var(--ink); }
.photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 62%; }
.photo--wide img { aspect-ratio: 2 / 1; }
@media (max-width: 560px) { .photo img, .photo--wide img { aspect-ratio: 4 / 3; } }
.photo__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-top: var(--edge) solid var(--ink);
  background: var(--ink); color: var(--panel); font: 500 14px/1.3 var(--font-mono); letter-spacing: .04em; }
.photo__bar .btn { box-shadow: 4px 4px 0 var(--panel); }
.photo__bar .btn:hover, .photo__bar .btn:active { box-shadow: 0 0 0 var(--panel); }
.about__sub { margin: clamp(48px, 6vw, 72px) 0 24px; font-size: clamp(24px, 2.6vw, 32px); }
