/* ==========================================================================
   Black On Top Ltd — design system
   Idea: the logo is a checkerboard of square tiles. The whole site is built
   from that tile: square corners, hard 2px ink lines, flat colour blocks.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-var.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --ink: #0e0e0c;
  --paper: #f5f0e4;
  --paper-2: #ebe4d1;
  --card: #fffdf7;
  --green: #0c4a2b;
  --green-hi: #17703f;
  --amber: #f7b422;
  --coral: #ef6b4a;
  --sage: #cfe2c6;
  --muted: #55554d;

  --line: 2px solid var(--ink);
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1240px;
  --header-h: 72px;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-logo: "Montserrat", "Archivo", sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
svg.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 108%; letter-spacing: -0.025em; line-height: 1; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green-hi); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--amber); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; font-weight: 700; transition: top 0.2s; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.on-dark { background: var(--ink); color: var(--paper); }
.on-green { background: var(--green); color: #fff; }
.on-amber { background: var(--amber); }
.on-amber .quote blockquote::before, .quote.on-amber blockquote::before { color: var(--green); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 0.78rem/1.5 var(--f-display); font-stretch: 112%;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.h-display { font-size: clamp(2.7rem, 6vw, 5.4rem); }
.h-xl { font-size: clamp(2.3rem, 5vw, 4.4rem); }
.h-lg { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.h-md { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -0.015em; line-height: 1.1; }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.55; max-width: 38em; }
.muted { color: var(--muted); }
.on-dark .muted, .on-green .muted { color: rgba(245, 240, 228, 0.72); }

.serif {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-stretch: 100%; letter-spacing: -0.01em; font-size: 1.1em;
}
.mark {
  text-decoration: underline; text-decoration-color: var(--amber);
  text-decoration-thickness: 0.1em; text-underline-offset: 0.1em; text-decoration-skip-ink: none;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--amber); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 24px; background: var(--bg); color: var(--fg);
  border: var(--line); border-color: var(--ink);
  font: 700 0.9rem/1 var(--f-display); font-stretch: 108%;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.18s var(--ease); }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn--ink { --bg: var(--ink); --fg: var(--paper); }
.btn--ink:hover { box-shadow: 5px 5px 0 var(--amber); }
.btn--ghost { --bg: transparent; --fg: currentColor; }
.btn--paper { --bg: var(--paper); --fg: var(--ink); }
.on-dark .btn, .on-green .btn { border-color: var(--paper); }
.on-dark .btn:hover, .on-green .btn:hover { box-shadow: 5px 5px 0 var(--amber); }
.on-dark .btn--ghost, .on-green .btn--ghost { --fg: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn--sm { padding: 12px 18px; font-size: 0.8rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 0.92rem/1 var(--f-display); font-stretch: 108%; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 6px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Logo (tile wordmark, rebuilt in HTML) ---------- */
.logo { display: inline-block; text-decoration: none; line-height: 0; }
.logo-tiles {
  --t: 28px;
  display: inline-grid; grid-auto-flow: column; border: 2px solid var(--ink); background: var(--ink);
  outline: 0;
}
.logo-tiles b {
  width: var(--t); height: var(--t); display: grid; place-items: center;
  font: 900 calc(var(--t) * 0.64) / 1 var(--f-logo); background: var(--ink); color: var(--paper);
}
.logo-tiles b:nth-child(even) { background: var(--paper); color: var(--ink); }
.logo-tiles--stack { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); --t: 56px; }
.on-dark .logo-tiles, .site-footer .logo-tiles { border-color: var(--paper); background: var(--paper); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: var(--line); }
.site-header__in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav ul { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.96rem; position: relative; padding-block: 8px; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 46px; height: 46px; border: var(--line); background: var(--amber); cursor: pointer; padding: 0; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; right: 0; }
.nav-toggle span::after { top: 7px; left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .logo-tiles { --t: 22px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink); color: var(--paper);
    padding: 28px var(--gutter) 40px; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .nav[data-open="true"] { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 2px solid rgba(245, 240, 228, 0.18); }
  .nav a:not(.btn) { display: block; padding: 18px 0; font: 800 clamp(1.8rem, 7vw, 2.6rem) / 1 var(--f-display); font-stretch: 108%; letter-spacing: -0.02em; }
  .nav a:not(.btn)::after { display: none; }
  .nav a[aria-current="page"] { color: var(--amber); }
  .nav li:last-child { border: 0; padding-top: 28px; }
  .nav .btn { border-color: var(--paper); }
}

/* ---------- Checker strip & tagline bar (both lifted from the logo) ---------- */
.checker {
  height: 48px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Crect width='24' height='24' fill='%230e0e0c'/%3E%3Crect x='24' y='24' width='24' height='24' fill='%230e0e0c'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  border-block: var(--line);
}
.checker--light {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Crect width='24' height='24' fill='%23f5f0e4'/%3E%3Crect x='24' y='24' width='24' height='24' fill='%23f5f0e4'/%3E%3C/svg%3E");
}
.triad { display: grid; grid-template-columns: 1fr 1fr 1fr; border-block: var(--line); background: var(--green); }
.triad span {
  padding: clamp(14px, 2vw, 22px) 12px; text-align: center; color: #fff;
  font: 800 clamp(0.8rem, 2.4vw, 1.9rem) / 1 var(--f-display); font-stretch: 112%; letter-spacing: 0.04em; text-transform: uppercase;
}
.triad span:nth-child(2) { background: var(--paper); color: var(--green); border-inline: var(--line); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { margin: 26px 0 28px; }
.hero h1 .serif { color: var(--green); }
.hero .lead { margin-bottom: 36px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; font-size: 0.92rem; font-weight: 600; }
.hero__meta li { display: flex; align-items: center; gap: 10px; }
.hero__meta li::before { content: ""; width: 10px; height: 10px; background: var(--ink); }
.hero__meta li:nth-child(2)::before { background: var(--green); }
.hero__meta li:nth-child(3)::before { background: var(--amber); }

/* Mosaic — the hero image. A page of tiles. */
.mosaic {
  container-type: inline-size;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr);
  aspect-ratio: 4 / 3.15; gap: 2px; background: var(--ink); border: var(--line);
  box-shadow: 10px 10px 0 var(--amber);
}
.tile { position: relative; display: grid; place-items: center; overflow: hidden; }
.tile svg { width: 36%; height: auto; aspect-ratio: 1; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; transition: transform 0.4s var(--ease); }
.tile:hover svg { transform: rotate(-10deg) scale(1.12); }
.t-quote { grid-column: 1 / 3; grid-row: 1 / 3; background: var(--ink); color: var(--paper); place-items: stretch; padding: 7cqw; display: flex; flex-direction: column; justify-content: space-between; }
.t-quote .q { font: 400 italic 30cqw/0.7 var(--f-serif); color: var(--amber); height: 11cqw; }
.t-quote p { margin: 0; font: 800 6.1cqw/1.02 var(--f-display); font-stretch: 108%; letter-spacing: -0.02em; }
.t-quote p em { font: italic 400 1.1em var(--f-serif); letter-spacing: 0; color: var(--amber); }
.t-amber { background: var(--amber); }
.t-paper { background: var(--card); }
.t-green { background: var(--green); color: #fff; }
.t-coral { background: var(--coral); }
.t-sage { background: var(--sage); }
.t-label { grid-column: 1 / 3; place-items: center start; padding: 0 5cqw; background: var(--card); }
.t-label span { font: 700 2.6cqw/1.25 var(--f-display); font-stretch: 115%; letter-spacing: 0.14em; text-transform: uppercase; }
.t-label span i { display: block; font-style: normal; color: var(--green-hi); }

.js .mosaic .tile { animation: pop 0.7s var(--ease) both; }
.js .mosaic .tile:nth-child(1) { animation-delay: 0.05s; }
.js .mosaic .tile:nth-child(2) { animation-delay: 0.15s; }
.js .mosaic .tile:nth-child(3) { animation-delay: 0.22s; }
.js .mosaic .tile:nth-child(4) { animation-delay: 0.29s; }
.js .mosaic .tile:nth-child(5) { animation-delay: 0.36s; }
.js .mosaic .tile:nth-child(6) { animation-delay: 0.43s; }
.js .mosaic .tile:nth-child(7) { animation-delay: 0.5s; }
.js .mosaic .tile:nth-child(8) { animation-delay: 0.57s; }
@keyframes pop { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .mosaic { max-width: 560px; }
}

/* ---------- Statement ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 5vw, 80px); }
.statement__big { font: 700 clamp(1.7rem, 3.8vw, 3.2rem) / 1.12 var(--f-display); font-stretch: 100%; letter-spacing: -0.03em; }
.statement__big .chip {
  display: inline-block; padding: 0.02em 0.28em 0.08em; border: var(--line); line-height: 1.05; white-space: nowrap;
  font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: -0.01em; font-size: 1.1em;
  transform: rotate(-1.2deg);
}
.statement__big .chip:nth-of-type(2) { transform: rotate(1deg); }
.statement__big .chip:nth-of-type(4) { transform: rotate(1.4deg); }
.chip--a { background: var(--amber); }
.chip--g { background: var(--green); color: #fff; border-color: var(--green) !important; }
.chip--c { background: var(--coral); }
.chip--s { background: var(--sage); }
.statement__small { max-width: 34em; margin-top: 36px; }
@media (max-width: 800px) { .statement { grid-template-columns: 1fr; } }

/* ---------- Section head ---------- */
.shead { display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 52rem; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; border: var(--line); }
.pillar { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 56px); min-height: 560px; }
.pillar + .pillar { border-left: var(--line); }
.pillar--green { background: var(--green); color: #fff; }
.pillar--amber { background: var(--amber); }
.pillar__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: auto; padding-bottom: 48px; }
.pillar__num { font: 800 1rem/1 var(--f-display); font-stretch: 115%; letter-spacing: 0.16em; }
.pillar__icon { width: 76px; height: 76px; border: 2px solid currentColor; display: grid; place-items: center; }
.pillar__icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; }
.pillar h3 { font-size: clamp(2rem, 3.4vw, 3.1rem); margin-bottom: 20px; }
.pillar p { max-width: 30em; }
.pillar ul { margin: 6px 0 34px; }
.pillar li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 2px solid currentColor; font-weight: 500; }
.pillar li:last-child { border-bottom: 2px solid currentColor; }
.pillar li::before { content: ""; width: 9px; height: 9px; background: currentColor; flex: none; transform: translateY(-1px); }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: var(--line); }
  .pillar { min-height: 0; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--paper); border-block: var(--line); }
.marquee__label { padding: 20px var(--gutter) 0; opacity: 0.7; }
.marquee__track { display: flex; width: max-content; animation: scroll 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; }
.marquee__group li { display: flex; align-items: center; padding: 26px 0 30px 40px; font: 800 clamp(1.4rem, 3vw, 2.4rem) / 1 var(--f-display); font-stretch: 105%; letter-spacing: -0.02em; white-space: nowrap; }
.marquee__group li::after { content: ""; width: 16px; height: 16px; background: var(--amber); margin-left: 40px; }
.marquee__group li:nth-child(3n+2)::after { background: var(--coral); }
.marquee__group li:nth-child(3n)::after { background: var(--sage); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Stairs (publishing pathway — "elevate") ---------- */
.stairs-quote { font: 400 italic clamp(2rem, 4.8vw, 4.2rem) / 1.04 var(--f-serif); letter-spacing: -0.015em; max-width: 17em; }
.stairs-quote span { color: var(--amber); }
.stairs { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; margin-top: clamp(40px, 6vw, 80px); border-bottom: 2px solid var(--paper); }
.step { padding: 26px 24px 30px; color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; border: 2px solid var(--paper); border-bottom: 0; margin-left: -2px; }
.step:nth-child(1) { min-height: 280px; background: var(--sage); margin-left: 0; }
.step:nth-child(2) { min-height: 360px; background: var(--amber); }
.step:nth-child(3) { min-height: 440px; background: var(--coral); }
.step:nth-child(4) { min-height: 520px; background: var(--paper); }
.step__n { font: 900 clamp(3.4rem, 6vw, 5.4rem) / 0.8 var(--f-logo); }
.step h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step p { margin: 0; font-size: 0.98rem; line-height: 1.5; }
@media (max-width: 900px) {
  .stairs { grid-template-columns: 1fr 1fr; align-items: stretch; border: 0; gap: 0; }
  .step, .step:nth-child(n) { min-height: 0; margin: 0; border-bottom: 2px solid var(--paper); }
  .step:nth-child(2n) { margin-left: -2px; }
  .step:nth-child(n+3) { margin-top: -2px; }
}
@media (max-width: 560px) {
  .stairs { grid-template-columns: 1fr; }
  .step:nth-child(2n) { margin-left: 0; }
  .step:nth-child(n+2) { margin-top: -2px; }
  .step { gap: 24px; }
}

/* ---------- Schools ---------- */
.schools { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.sticky { position: sticky; top: calc(var(--header-h) + 36px); }
.feature { padding: clamp(24px, 3vw, 40px); border: var(--line); display: flex; gap: 22px; align-items: flex-start; }
.feature + .feature { margin-top: -2px; }
.feature--a { background: var(--amber); }
.feature--g { background: var(--green); color: #fff; }
.feature__big { font: 900 clamp(2.4rem, 4vw, 3.4rem) / 0.9 var(--f-logo); flex: none; }
.feature h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.05; margin-bottom: 8px; }
.feature p { margin: 0; max-width: 28em; opacity: 0.92; }
.checks { display: grid; grid-template-columns: 1fr 1fr; margin-top: -2px; border: var(--line); background: var(--card); }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 22px 22px 24px; font-weight: 500; line-height: 1.35; border-bottom: var(--line); }
.checks li:nth-child(odd) { border-right: var(--line); }
.checks li:nth-last-child(-n+1) { border-bottom: 0; }
.checks li:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.checks li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.checks svg { flex: none; width: 26px; height: 26px; padding: 4px; background: var(--green); color: #fff; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; margin-top: 1px; }
@media (max-width: 900px) {
  .schools { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 560px) {
  .checks { grid-template-columns: 1fr; }
  .checks li:nth-child(odd) { border-right: 0; }
  .checks li:nth-last-child(2):nth-child(odd) { border-bottom: var(--line); }
}

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--line); background: var(--card); }
.value { padding: clamp(24px, 3vw, 40px); min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; border-right: var(--line); border-bottom: var(--line); transition: background 0.25s; }
.value:nth-child(3n) { border-right: 0; }
.value:nth-child(n+4) { border-bottom: 0; }
.value .logo-tiles { --t: 54px; align-self: flex-start; }
.value .logo-tiles b { font-size: 34px; }
.value h3 { font-size: 1.75rem; margin-bottom: 10px; }
.value p { margin: 0; color: var(--muted); }
.value:hover { background: var(--amber); }
.value:hover p { color: var(--ink); }
.value--ink { background: var(--ink); color: var(--paper); }
.value--ink p { color: rgba(245, 240, 228, 0.78); }
.value--ink:hover { background: var(--green); color: #fff; }
.value--ink:hover p { color: #fff; }
.value--green { background: var(--green); color: #fff; }
.value--green p { color: rgba(255, 255, 255, 0.82); }
.value--green:hover { background: var(--ink); }
.value--green:hover p { color: rgba(255, 255, 255, 0.82); }
.value--green .logo-tiles, .value--ink .logo-tiles { border-color: var(--paper); background: var(--paper); }
.value--green .logo-tiles b:nth-child(odd), .value--ink .logo-tiles b:nth-child(odd) { background: var(--paper); color: var(--ink); }
.value--coral { background: var(--coral); }
.value--coral p { color: var(--ink); }
.value--coral:hover { background: var(--sage); }
@media (max-width: 900px) {
  .values { grid-template-columns: 1fr 1fr; }
  .value:nth-child(3n) { border-right: var(--line); }
  .value:nth-child(2n) { border-right: 0; }
  .value:nth-child(n+4) { border-bottom: var(--line); }
  .value:nth-child(n+5) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .value { min-height: 0; border-right: 0 !important; border-bottom: var(--line) !important; }
  .value:last-child { border-bottom: 0 !important; }
}

/* ---------- CTA band ---------- */
.cta { text-align: left; position: relative; overflow: hidden; }
.cta__in { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: end; }
.cta h2 { margin: 22px 0 26px; }
.cta h2 .serif { color: var(--amber); }
.cta p { max-width: 34em; color: rgba(255, 255, 255, 0.86); }
.cta .btn-row { margin-top: 34px; }
.cta__tiles { justify-self: end; }
.cta__tiles .logo-tiles { --t: clamp(44px, 6vw, 74px); }
@media (max-width: 900px) { .cta__in { grid-template-columns: 1fr; } .cta__tiles { justify-self: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(56px, 7vw, 96px); }
.footer__brand p { max-width: 20em; margin: 24px 0 0; color: rgba(245, 240, 228, 0.7); font-size: 0.98rem; }
.footer__brand .logo-tiles { --t: min(40px, calc((100vw - 2 * var(--gutter) - 4px) / 10)); }
.site-footer h4 { font: 700 0.76rem/1 var(--f-display); font-stretch: 115%; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 22px; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { text-decoration: none; }
.site-footer li a:hover, .contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--amber); }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; line-height: 1.45; }
.contact-list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: square; }
.footer__bar { border-top: 2px solid rgba(245, 240, 228, 0.18); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; font-size: 0.88rem; color: rgba(245, 240, 228, 0.65); }
.footer__bar strong { color: var(--paper); font: 700 0.8rem var(--f-display); font-stretch: 115%; letter-spacing: 0.16em; text-transform: uppercase; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { border-bottom: var(--line); background: var(--bg, var(--paper)); color: var(--fg, var(--ink)); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 80px); align-items: end; padding-block: clamp(56px, 8vw, 120px) clamp(48px, 6vw, 88px); }
.page-hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); margin: 26px 0 28px; }
.page-hero h1 .serif { color: var(--em, inherit); }
.page-hero .lead { margin: 0; }
.page-hero__art { justify-self: end; width: min(100%, 320px); aspect-ratio: 1; border: 2px solid currentColor; display: grid; place-items: center; position: relative; background: var(--art, transparent); }
.page-hero__art svg { width: 46%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; }
.page-hero__art::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 36%; aspect-ratio: 1; background: var(--corner, var(--ink)); border: 2px solid currentColor; }
.theme-green { --bg: var(--green); --fg: #fff; --em: var(--amber); --art: var(--green-hi); --corner: var(--amber); }
.theme-amber { --bg: var(--amber); --em: var(--green); --art: var(--paper); --corner: var(--green); }
.theme-coral { --bg: var(--coral); --em: var(--ink); --art: var(--paper); --corner: var(--ink); }
.theme-ink { --bg: var(--ink); --fg: var(--paper); --em: var(--amber); --art: #1b1b18; --corner: var(--amber); }
.theme-sage { --bg: var(--sage); --em: var(--green); --art: var(--paper); --corner: var(--green); }
.theme-green .eyebrow, .theme-ink .eyebrow { color: var(--amber); }
.theme-green .page-hero__art::after, .theme-ink .page-hero__art::after { border-color: var(--paper); }
@media (max-width: 800px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__art { justify-self: start; width: 120px; order: -1; margin-bottom: -8px; }
}

/* Split layout: label left, content right */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); }
.split + .split { margin-top: clamp(56px, 8vw, 110px); }
.split__side h2 { position: sticky; top: calc(var(--header-h) + 32px); }
.prose p { font-size: 1.14rem; max-width: 38em; }
.prose p:first-child { font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__side h2 { position: static; } }

/* Editorial numbered list */
.index { border-top: var(--line); counter-reset: idx; }
.index li { counter-increment: idx; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; padding: 20px 4px; border-bottom: var(--line); font: 700 clamp(1.1rem, 2vw, 1.5rem) / 1.2 var(--f-display); font-stretch: 100%; letter-spacing: -0.015em; transition: background 0.2s, padding 0.25s var(--ease); }
.index li::before { content: counter(idx, decimal-leading-zero); font: 800 0.85rem/1 var(--f-display); font-stretch: 115%; letter-spacing: 0.14em; color: var(--green-hi); }
.index li::after { content: ""; width: 14px; height: 14px; background: var(--ink); transform: scale(0); transition: transform 0.25s var(--ease); }
.index li:hover { background: var(--amber); padding-inline: 20px; }
.index li:hover::before { color: var(--ink); }
.index li:hover::after { transform: scale(1); }
.on-dark .index, .on-dark .index li { border-color: rgba(245, 240, 228, 0.3); }
.on-dark .index li::before { color: var(--amber); }
.on-dark .index li::after { background: var(--ink); }
.on-dark .index li:hover { background: var(--amber); color: var(--ink); }
.on-dark .index li:hover::before { color: var(--ink); }
.on-green .index, .on-green .index li { border-color: rgba(255, 255, 255, 0.32); }
.on-green .index li::before { color: var(--amber); }
.on-green .index li:hover { background: var(--amber); color: var(--ink); }
.on-green .index li:hover::before { color: var(--ink); }
.on-green .index li::after { background: var(--ink); }

/* Card grid (checker-coloured cells) */
.cells { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--line); background: var(--card); }
.cell { padding: 26px 22px 28px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; border-right: var(--line); border-bottom: var(--line); font: 700 1.25rem/1.15 var(--f-display); font-stretch: 100%; letter-spacing: -0.015em; }
.cell svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; }
.cell:nth-child(4n) { border-right: 0; }
.cell:nth-child(odd) { background: var(--card); }
.cell:nth-child(2) , .cell:nth-child(5), .cell:nth-child(8) { background: var(--ink); color: var(--paper); }
.cell:nth-child(3), .cell:nth-child(6) { background: var(--sage); }
.cells--7 .cell:last-child { grid-column: span 1; background: var(--amber); }
.cells > :nth-last-child(-n+4):nth-child(n+5) { border-bottom: 0; }
@media (max-width: 960px) { .cells { grid-template-columns: repeat(2, 1fr); } .cell { border-bottom: var(--line) !important; border-right: var(--line) !important; } .cell:nth-child(2n) { border-right: 0 !important; } }
@media (max-width: 520px) { .cells { grid-template-columns: 1fr; } .cell { border-right: 0 !important; min-height: 0; } }

/* Big quote band */
.quote { text-align: left; }
.quote blockquote { margin: 0; font: 400 italic clamp(2.2rem, 5.6vw, 5rem) / 1.02 var(--f-serif); letter-spacing: -0.02em; max-width: 16em; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 2.4em; line-height: 0.6; height: 0.4em; color: var(--amber); }
.quote cite { display: block; margin-top: 28px; font: 700 0.8rem/1 var(--f-display); font-style: normal; font-stretch: 115%; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; }

/* Mission / vision */
.mv { display: grid; grid-template-columns: 1fr 1fr; border: var(--line); }
.mv > div { padding: clamp(28px, 4vw, 64px); min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.mv > div + div { border-left: var(--line); }
.mv__a { background: var(--amber); }
.mv__g { background: var(--green); color: #fff; }
.mv h2 { font-size: clamp(2.4rem, 4.4vw, 4rem); }
.mv p { margin: 0 0 1em; font-size: 1.16rem; }
.mv p:last-child { margin: 0; }
@media (max-width: 860px) { .mv { grid-template-columns: 1fr; } .mv > div + div { border-left: 0; border-top: var(--line); } .mv > div { min-height: 0; } }

/* Callout */
.callout { display: flex; gap: 20px; align-items: flex-start; padding: 24px 28px; border: var(--line); background: var(--card); }
.callout svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--coral); stroke-width: 2; stroke-linecap: square; }
.callout p { margin: 0; font-size: 1rem; }
.callout strong { font-family: var(--f-display); font-stretch: 105%; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.form { display: grid; gap: 22px; padding: clamp(24px, 4vw, 48px); border: var(--line); background: var(--card); box-shadow: 10px 10px 0 var(--ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font: 700 0.76rem/1 var(--f-display); font-stretch: 115%; letter-spacing: 0.16em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 14px; border: var(--line); border-radius: 0; background: var(--paper);
  font: 500 1rem/1.4 var(--f-body); color: var(--ink); transition: background 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230e0e0c' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: 4px 4px 0 var(--amber); }
.form__note { font-size: 0.86rem; color: var(--muted); margin: 0; }
.form__status { margin: 0; font-weight: 600; }
.details { display: grid; border: var(--line); background: var(--card); }
.detail { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 24px; border-bottom: var(--line); align-items: start; text-decoration: none; transition: background 0.2s; }
.detail:last-child { border-bottom: 0; }
a.detail:hover { background: var(--amber); }
.detail__ico { width: 56px; height: 56px; display: grid; place-items: center; background: var(--green); color: #fff; }
.detail:nth-child(2) .detail__ico { background: var(--amber); color: var(--ink); }
.detail:nth-child(4) .detail__ico { background: var(--ink); }
.detail__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }
.detail small { display: block; font: 700 0.72rem/1 var(--f-display); font-stretch: 115%; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.detail span { font: 700 1.15rem/1.3 var(--f-display); font-stretch: 100%; letter-spacing: -0.01em; overflow-wrap: anywhere; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
