/* =========================================================
   Cultural Commons CIC — Design Tokens
   ========================================================= */

:root {
  /* Palette */
  --bg:            #F5F2EC;   /* warm off-white */
  --surface-alt:   #EFEBE2;   /* slightly warmer/darker off-white */
  --ink:           #1A1A1A;   /* primary text */
  --ink-secondary: #888880;   /* warm grey — secondary text, dividers */
  --hairline:      #C9C5BB;   /* hairlines */
  --accent-a:      #9B4A35;   /* terracotta A — muted/dusty */
  --accent-b:      #7A2E1F;   /* terracotta B — deep/oxblood */

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale (desktop) */
  --fs-display: 92px;
  --fs-h1:      64px;
  --fs-h2:      40px;
  --fs-h3:      28px;
  --fs-body-lg: 22px;
  --fs-body:    17px;
  --fs-small:   14px;
  --fs-label:   12px;

  /* Spacing */
  --space-page-x: clamp(24px, 6vw, 96px);
  --section-y:    clamp(72px, 12vw, 140px);
  --hairline-w:   1px;
}

/* =========================================================
   Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }

/* =========================================================
   Layout
   ========================================================= */
.page-x { padding-inline: var(--space-page-x); }
.section { padding-block: var(--section-y); }
.container { max-width: 1440px; margin-inline: auto; }

.surface-alt { background: var(--surface-alt); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 32px;
  row-gap: 48px;
}

/* =========================================================
   Type utilities
   ========================================================= */
.display {
  font-size: clamp(46px, 8.5vw, var(--fs-display));
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.h1 {
  font-size: clamp(38px, 6vw, var(--fs-h1));
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.h2 {
  font-size: clamp(28px, 3.4vw, var(--fs-h2));
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.h3 {
  font-size: clamp(22px, 2.2vw, var(--fs-h3));
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.body-lg {
  font-size: clamp(18px, 1.6vw, var(--fs-body-lg));
  line-height: 1.5;
}
.body { font-size: var(--fs-body); line-height: 1.55; }
.small { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-secondary); }

.smallcaps {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}
.smallcaps-ink {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.mono { font-family: var(--font-mono); }

/* =========================================================
   Rules + markers
   ========================================================= */
.hr { border: 0; border-top: var(--hairline-w) solid var(--hairline); margin: 0; }
.hr-ink { border: 0; border-top: var(--hairline-w) solid var(--ink); margin: 0; }

.num-marker {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-secondary);
}

/* =========================================================
   Links
   ========================================================= */
.link-inline {
  border-bottom: 1px solid var(--hairline);
  transition: color .15s ease, border-color .15s ease;
}
.link-inline:hover { color: var(--accent); border-color: var(--accent); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  transition: color .15s ease;
}
.link-arrow:hover { color: var(--accent); }
.link-arrow .arrow { font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; }

/* Accent context — A vs B */
.accent-a { --accent: var(--accent-a); }
.accent-b { --accent: var(--accent-b); }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }

/* Skip-to-content link — visually hidden until keyboard focused */
.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus-visible,
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent-a);
  outline-offset: 2px;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.wordmark {
  display: inline-flex; align-items: center;
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  line-height: 0;
}
.wordmark .logo {
  display: block;
  height: 36px;
  width: auto;
}
.footer-logo { display: inline-block; }
.footer-logo .logo {
  display: block;
  height: 36px;
  width: auto;
  margin-bottom: 4px;
}
@media (max-width: 480px) {
  .wordmark .logo { height: 28px; }
}
.nav {
  display: flex; gap: 32px; align-items: center;
}
.nav a {
  position: relative;
  font-size: 15px; font-weight: 450;
  color: var(--ink);
  padding: 6px 0;
  transition: color .2s ease;
  display: inline-block;
}
/* Hairline that draws in from the left under each nav item */
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--accent-a);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav a:hover { color: var(--accent-a); }
.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }
.nav a:active::after {
  transition-duration: .15s;
  background: var(--ink);
}
/* Current page — underline stays visible, anchored from the right
   so it visually distinguishes from a hover-in-progress. */
.nav a[aria-current="page"] {
  color: var(--accent-a);
}
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: right center;
}
.nav__toggle {
  display: none;
  background: none; border: 0; padding: 8px 0;
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); cursor: pointer;
}

@media (max-width: 800px) {
  .nav { display: none; }
  .nav__toggle { display: inline-block; }
  .nav.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; top: 72px;
    background: var(--bg);
    padding: 48px var(--space-page-x);
    gap: 24px;
    align-items: flex-start;
    z-index: 60;
  }
  .nav.open a { font-size: 32px; font-weight: 500; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--ink);
  padding-block: 64px 32px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}
.site-footer__col h4 {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  font-size: var(--fs-small);
  color: var(--ink-secondary);
  flex-wrap: wrap; gap: 16px;
}
.partner-logos { display: flex; flex-direction: column; gap: 12px; }
.partner-logo-placeholder {
  height: 44px;
  border: 1px solid var(--hairline);
  display: flex; align-items: center; padding: 0 14px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-secondary);
  letter-spacing: 0.04em;
}

/* =========================================================
   Memberships & accreditations strip
   ========================================================= */
.memberships {
  background: var(--surface-alt);
  padding-block: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--hairline);
}
.memberships__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.memberships__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 32px; flex-wrap: wrap;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 20px;
}
.memberships__note { max-width: 50ch; margin: 0; }
.memberships__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.membership {
  display: flex; flex-direction: column; gap: 10px;
}
.membership__card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--hairline);
  height: 120px;
  padding: 18px 22px;
  transition: border-color .15s ease, transform .15s ease;
}
.membership__card:hover { border-color: var(--ink); }
.membership__chip {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
}
.membership__chip img {
  max-height: 80px;
  max-width: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.membership__name {
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em; color: var(--ink);
  margin-top: 4px;
}
.membership__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
}
@media (max-width: 900px) {
  .memberships__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .memberships__grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Memberships strip inside footer (replaces the old standalone section)
   ========================================================= */
.site-footer__memberships {
  border-top: 1px solid var(--hairline);
  margin-top: 32px;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.site-footer__memberships .smallcaps {
  color: var(--ink-secondary);
}
.site-footer ul.site-footer__memberships-row {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.site-footer__memberships-row li { display: block; }
.site-footer__memberships-row a {
  display: block;
  opacity: 0.75;
  transition: opacity .15s ease;
  border-bottom: 0;
}
.site-footer__memberships-row a:hover { opacity: 1; }
.site-footer__memberships-row img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
@media (max-width: 600px) {
  .site-footer__memberships-row { gap: 20px; }
  .site-footer__memberships-row img { height: 36px; max-width: 180px; }
}

/* =========================================================
   Image placeholders
   ========================================================= */
.img-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      rgba(26,26,26,0.045) 14px 15px
    ),
    var(--surface-alt);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center; justify-content: center;
  padding: 24px;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.02em;
}
.img-placeholder span {
  background: var(--bg);
  padding: 6px 10px;
  border: 1px solid var(--hairline);
}
.img-caption {
  margin-top: 12px;
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  text-transform: uppercase;
}

.aspect-43 { aspect-ratio: 4 / 3; }
.aspect-11 { aspect-ratio: 1 / 1; }
.aspect-32 { aspect-ratio: 3 / 2; }
.aspect-23 { aspect-ratio: 2 / 3; }
.aspect-34 { aspect-ratio: 3 / 4; }
.aspect-169 { aspect-ratio: 16 / 9; }

/* Body italics — project names */
body em, p em, .num-section__body em, .past-project__body em, .partner-entry__body em, .writing-topic__body em, .post__dek em {
  font-style: italic;
  color: var(--accent-b);
}

/* Journal page layout */
.journal-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}
.journal-sub {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px;
  border: 1px solid var(--hairline);
  background: var(--surface-alt);
  position: sticky; top: 96px;
}
.journal-sub iframe { display: block; width: 100%; }
.journal-state {
  padding: 32px 0;
  display: flex; flex-direction: column; gap: 8px;
}
.journal-state__note {
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px dashed var(--hairline);
  display: inline-block;
}
@media (max-width: 900px) {
  .journal-layout { grid-template-columns: 1fr; }
  .journal-sub { position: static; }
}

/* PeopleFest logo image fits the panel better */
.num-section img[src*="peoplefest"] { object-fit: contain !important; background: var(--surface-alt); padding: 32px; }

.img-real {
  position: relative;
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  overflow: hidden;
  width: 100%;
}
.img-real > img,
.img-real > video {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
}
.past-project--media .past-project__media { margin-top: 20px; max-width: 560px; }

/* =========================================================
   Page break marker
   ========================================================= */
.page-break {
  padding-block: 56px;
  background: var(--bg);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
}

/* =========================================================
   Design system strip
   ========================================================= */
.ds {
  background: var(--ink);
  color: var(--bg);
  padding: 64px var(--space-page-x);
}
.ds h2 { color: var(--bg); }
.ds .smallcaps { color: rgba(245,242,236,0.55); }
.ds .small { color: rgba(245,242,236,0.7); }
.ds-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 32px;
  row-gap: 48px;
  max-width: 1440px; margin-inline: auto;
}
.ds-block { grid-column: span 12; }
.ds-block--swatches { grid-column: span 12; }

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.swatch {
  border: 1px solid rgba(245,242,236,0.18);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.swatch__chip { height: 96px; border: 1px solid rgba(245,242,236,0.18); }
.swatch__role { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--bg); }
.swatch__hex  { font-family: var(--font-mono); font-size: 11px; color: rgba(245,242,236,0.6); letter-spacing: 0.04em; }
.swatch__note { font-family: var(--font-mono); font-size: 11px; color: rgba(245,242,236,0.55); line-height: 1.5; }

.ds-type-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: baseline;
  border-top: 1px solid rgba(245,242,236,0.18);
  padding-top: 24px;
}
.ds-type-row:first-child { border-top: 0; padding-top: 0; }
.ds-type-meta {
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(245,242,236,0.6); line-height: 1.7;
  letter-spacing: 0.02em;
}
.ds-sample { color: var(--bg); }

.ds-divider {
  border-top: 1px solid rgba(245,242,236,0.2);
  padding-top: 32px;
  margin-top: 16px;
}

.ds-marker-demo {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-sans);
}
.ds-marker-demo .num {
  font-size: 12px; letter-spacing: 0.18em;
  color: rgba(245,242,236,0.55);
}

.ds-links { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.ds-links a { color: var(--bg); }

.ds-note {
  margin-top: 24px;
  padding: 20px;
  border: 1px dashed rgba(245,242,236,0.4);
  font-family: var(--font-mono); font-size: 12px;
  color: rgba(245,242,236,0.8); line-height: 1.6;
}

@media (max-width: 800px) {
  .ds-type-row { grid-template-columns: 1fr; }
}

/* =========================================================
   Home — hero
   ========================================================= */
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: start;
  padding-block: clamp(32px, 5vw, 64px) clamp(24px, 3vw, 40px);
}
.hero__text { display: flex; flex-direction: column; gap: 32px; }
.hero__display { margin-bottom: 8px; }
.hero__lead { max-width: 56ch; }
.hero__lead.body-lg { color: var(--ink); }
.hero__lead.body { color: var(--ink-secondary); }
.hero__links { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.hero__image { display: flex; flex-direction: column; align-items: flex-end; padding-top: calc(var(--fs-label) * 1.4 + 32px); }
.hero__image > figure { margin: 0; width: 80%; display: flex; flex-direction: column; }
.hero__image .img-placeholder,
.hero__image .img-real { aspect-ratio: 4 / 5 !important; width: 100% !important; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .hero__image .img-placeholder { aspect-ratio: 4 / 3; }
}

/* =========================================================
   Programme index list
   ========================================================= */
.prog-list { display: flex; flex-direction: column; }.prog-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
  transition: color .15s ease;
  cursor: pointer;
}
.prog-list .prog-row:last-child { border-bottom: 1px solid var(--hairline); }
.prog-row:hover { color: var(--accent); }
.prog-row:hover .prog-row__arrow { transform: translateX(6px); color: var(--accent); }
.prog-row__num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-secondary); }
.prog-row__main { display: flex; flex-direction: column; gap: 6px; }
.prog-row__title { font-size: clamp(22px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.01em; }
.prog-row__meta { font-size: 14px; color: var(--ink-secondary); letter-spacing: 0.04em; }
.prog-row__arrow {
  font-size: 22px; color: var(--ink); transition: transform .2s ease, color .15s ease;
}

@media (max-width: 700px) {
  .prog-row { grid-template-columns: 32px 1fr; }
  .prog-row__arrow { display: none; }
}

/* =========================================================
   Pull quote
   ========================================================= */
.pull {
  padding-block: clamp(64px, 10vw, 120px);
}
.pull__text {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 22ch;
  margin: 0;
}
.pull__rules > hr { margin-block: 48px; }

/* =========================================================
   Page header (page title + standfirst)
   ========================================================= */
.page-head {
  padding-block: clamp(32px, 5vw, 56px) clamp(28px, 4vw, 48px);
  display: grid;
  gap: 32px;
}
  grid-template-columns: 1fr;
  gap: 32px;
}
.page-head__label { color: var(--accent); }
.page-head__title { max-width: 16ch; }
.page-head__standfirst {
  max-width: 60ch;
  color: var(--ink-secondary);
}
.anchor-bar {
  display: flex; flex-wrap: wrap; gap: 32px;
  padding-block: 24px;
  border-top: 1px solid var(--hairline);
  margin-top: 32px;
}
.anchor-bar a {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.anchor-bar a:hover { color: var(--accent); }
/* When a page-head (which carries the anchor-bar hairline) is followed by
   a num-section, suppress the section's own top border to avoid a doubled line. */
.page-head + .num-section { border-top: 0; padding-top: clamp(40px, 6vw, 80px); }

/* =========================================================
   Numbered section (What We Do)
   ========================================================= */
.num-section {
  padding-block: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--hairline);
}
.num-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.num-section__image { padding-top: 2.4em; }
.num-section__inner.flip { direction: rtl; }
.num-section__inner.flip > * { direction: ltr; }

.num-section__text { display: flex; flex-direction: column; gap: 24px; }
.num-section__header { display: flex; flex-direction: column; gap: 16px; }
.num-section__title { font-size: clamp(28px, 3.4vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.num-section__body { font-size: var(--fs-body-lg); line-height: 1.55; color: var(--ink); }
.num-section__body p { margin-bottom: 1em; }
.num-section__body p:last-child { margin-bottom: 0; }
.num-section__image .img-placeholder { aspect-ratio: 4 / 5; }

@media (max-width: 900px) {
  .num-section__inner, .num-section__inner.flip { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
  .num-section__image { padding-top: 0; }
  .num-section__image .img-placeholder { aspect-ratio: 4 / 3; }
}

/* Past Projects entries */
.past-projects { display: flex; flex-direction: column; }
.past-project {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
}
.past-projects .past-project:last-child { border-bottom: 1px solid var(--hairline); }
.past-project__meta { color: var(--ink-secondary); font-size: 14px; letter-spacing: 0.04em; }
.past-project__title { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.past-project__body { color: var(--ink); }
@media (max-width: 800px) {
  .past-project { grid-template-columns: 1fr; gap: 12px; }
}

/* =========================================================
   Partner directory
   ========================================================= */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 48px;
}
.partner-entry { display: flex; flex-direction: column; gap: 20px; }
.partner-entry__image .img-placeholder { aspect-ratio: 4 / 3; }
.partner-entry__name { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.01em; }
.partner-entry__location { font-size: 14px; letter-spacing: 0.04em; color: var(--ink-secondary); margin-top: -8px; }
.partner-entry__body { color: var(--ink); }

@media (max-width: 800px) {
  .partners-grid { grid-template-columns: 1fr; gap: 48px; }
}

.other-partners { display: flex; flex-direction: column; margin-top: 80px; }
.other-partner {
  display: grid;
  grid-template-columns: 120px 260px 1fr;
  gap: 32px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
}
.other-partners .other-partner:last-child { border-bottom: 1px solid var(--hairline); }
.other-partner__name { font-weight: 600; }
.other-partner__logo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--linen, #f6f4ef);
  border: 1px dashed var(--hairline);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  overflow: hidden;
}
.other-partner__logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
}
@media (max-width: 800px) {
  .other-partner { grid-template-columns: 80px 1fr; gap: 16px; }
  .other-partner > div:last-child { grid-column: 1 / -1; }
}

/* =========================================================
   How We Work
   ========================================================= */
.how-section {
  padding-block: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--hairline);
}
.how-section.alt { background: var(--surface-alt); }
.how-section__inner {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 64px;
  max-width: 1100px;
}
.how-section__header { display: flex; flex-direction: column; gap: 12px; }
.how-section__title { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; }
.how-section__body { font-size: var(--fs-body-lg); line-height: 1.55; }
.how-section__body p { margin-bottom: 1em; }
.how-section__body p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .how-section__inner { grid-template-columns: 1fr; gap: 24px; }
}

/* =========================================================
   Writing
   ========================================================= */
.writing-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--hairline);
}
.writing-topic { display: flex; flex-direction: column; gap: 16px; }
.writing-topic__title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.writing-topic__body { color: var(--ink); }

@media (max-width: 800px) {
  .writing-topics { grid-template-columns: 1fr; gap: 40px; }
}

.posts { display: flex; flex-direction: column; padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--ink); }
.post {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
  transition: color .15s ease;
  cursor: pointer;
}
.posts .post:first-of-type { border-top: 0; padding-top: 0; }
.post:hover { color: var(--accent); }
.post__date { font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-secondary); }
.post__title { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -0.01em; }
.post__dek { color: var(--ink-secondary); }

@media (max-width: 800px) {
  .post { grid-template-columns: 1fr; gap: 8px; }
}

/* =========================================================
   Instagram strip (home)
   ========================================================= */
.ig-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding-block: 40px;
}
.section--home-programmes { padding-block: clamp(32px, 5vw, 64px) var(--section-y); }
.ig-strip-section { margin-top: calc(var(--section-y) * -0.5); }
.ig-strip__line { font-size: clamp(18px, 1.6vw, 22px); }
.ig-strip__note {
  margin-top: 32px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-secondary);
  padding: 12px 14px;
  border: 1px dashed var(--hairline);
  max-width: 60ch;
}
@media (max-width: 800px) {
  .ig-strip { grid-template-columns: 1fr; }
}

/* =========================================================
   Section header (small caps label above title)
   ========================================================= */
.section-head {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ink);
}
.section-head__count { color: var(--ink-secondary); }

/* Dev note pill */
.dev-note {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 10px;
  border: 1px dashed var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-secondary);
  letter-spacing: 0.04em;
}
