/* The Knowledge Factory: one stylesheet. No framework, no external requests.
   Palette: dark teal #16383a (the old site's band), deeper teal #0f2b2d, warm off-white #fbf6ee,
   sand #f3e9d8, the logo's gold #e3a91f and its brown #8a4f0a.
   Contrast (WCAG, text on its background): white on #16383a 12.3:1; #d6e6e3 on #16383a 9.6:1;
   gold #e3a91f on #16383a 6.0:1; teal #16383a on gold #e3a91f 6.0:1; ink #1d2a2b on #fbf6ee 14:1;
   brown #8a4f0a on #fbf6ee 6.0:1. Text over a photograph sits on a teal gradient: see README. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #16383a;
  --teal-deep: #0f2b2d;
  --teal-mid: #1f5a5c;
  --paper: #fbf6ee;
  --sand: #f3e9d8;
  --ink: #1d2a2b;
  --muted: #45545a;
  --gold: #e3a91f;
  --gold-light: #f0bd45;
  --gold-text: #f2c14e;
  --brown: #8a4f0a;
  --on-dark: #e6f0ee;
  --focus: #0b57d0;
  --focus-dark: #ffd98f;
  --radius: 1.5rem;
  --shadow: 0 14px 40px rgba(15, 43, 45, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 .75rem; letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--brown); text-underline-offset: .18em; }
a:hover { color: var(--teal); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.top :focus-visible, .hero :focus-visible, .band :focus-visible, .how :focus-visible, .foot :focus-visible { outline-color: var(--focus-dark); }

/* Hidden until focused; then it sits in the flow above the page, covering nothing. */
.skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: .5rem;
}
.skip:focus { position: static; display: inline-block; width: auto; height: auto; overflow: visible; clip-path: none; margin: .5rem 1.25rem; padding: .6rem 1rem; }

.kicker { margin: 0 0 .6rem; color: var(--brown); font-weight: 800; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.kicker-light { color: var(--gold-text); }
.eyebrow { margin: 0 0 1rem; color: var(--gold-text); font-weight: 800; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; }

/* Buttons */
.button {
  display: inline-block; min-height: 2.9rem; padding: .8rem 1.7rem; border-radius: 999px;
  background: var(--gold); color: var(--teal); border: 2px solid var(--gold);
  font-weight: 800; font-size: 1.05rem; line-height: 1.2; text-decoration: none;
}
.button:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--teal-deep); }
.button-xl { min-height: 3.6rem; padding: 1.05rem 2.4rem; font-size: 1.25rem; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.button-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.button-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.quiet-link { color: #fff; font-weight: 700; text-decoration-thickness: 2px; text-decoration-color: var(--gold); padding: .5rem 0; }
.quiet-link:hover { color: var(--gold-text); }

/* Top bar, over the hero */
.top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; padding: .9rem 0; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { display: block; flex: none; background: #fff; border-radius: 1rem; padding: .45rem .9rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.brand img { width: 8.25rem; height: auto; }
.top-right { display: flex; align-items: center; gap: 1rem; }
.top nav { display: none; }
.top nav ul { display: flex; gap: .3rem; }
.top nav a { display: block; padding: .6rem .9rem; border-radius: 999px; color: #fff; font-weight: 600; text-decoration: none; }
.top nav a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.social-top { display: flex; gap: .4rem; }
.social-top a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(15, 43, 45, .35); }
.social-top a:hover { background: var(--gold); border-color: var(--gold); color: var(--teal); }
.social-top svg { width: 1.25rem; height: 1.25rem; }

/* Hero: the Atlas */
.hero { position: relative; isolation: isolate; color: #fff; padding: 7.5rem 0 4.5rem; overflow: hidden;
  background: var(--teal); }
.hero-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { margin: 0 0 1.2rem; text-wrap: balance; font-size: clamp(2.1rem, 6.6vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
.hero-lead { margin: 0 0 1rem; font-size: 1.25rem; line-height: 1.5; }
.hero-sub { margin: 0 0 1.8rem; color: var(--on-dark); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; margin: 0; }
.hero-art { margin: 0; }
.hero-art svg { display: block; width: 100%; max-width: 36rem; height: auto; margin: 0 auto; border-radius: 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.hero-art .art-wide { display: none; }
.hero-art .art-narrow { max-width: 26rem; }
.hero-art .art-wide { max-width: 42rem; }
.hero-art text { font-family: inherit; }
.hero-art figcaption { margin-top: 1.1rem; text-align: center; font-size: .85rem; }
.hero-art figcaption a { color: #fff; font-weight: 500; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.hero-art figcaption a:hover { color: var(--gold-text); }
@media (min-width: 40rem) {
  .hero-art .art-wide { display: block; }
  .hero-art .art-narrow { display: none; }
}

/* What you can do with it */
.can { background: #fff; padding: 3.5rem 0 3.8rem; border-bottom: 1px solid #e8dcc6; }
.can-title { margin: 0 0 2rem; text-align: center; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.can-grid { display: grid; gap: 2rem 1.5rem; }
.can-grid li { text-align: center; }
.icon { width: 4.25rem; height: 4.25rem; }
.can-grid .icon { margin: 0 auto 1rem; }
.can-grid h3 { font-size: 1.25rem; font-weight: 800; color: var(--teal); }
.can-grid p { margin: 0 auto; max-width: 18rem; color: var(--muted); }

/* Reports and access: paid work starts by enquiry */
.reports { background: var(--paper); padding: 4.5rem 0 4rem; }
.reports h2 { text-align: center; margin-bottom: 2rem; }
.reports-grid { display: grid; gap: 1.5rem; max-width: 56rem; margin: 0 auto; }
.reports-note { margin: 2rem 0 0; text-align: center; color: var(--muted); font-size: 1.1rem; }

/* Learn By Leading: the organisation's own part opens on a photograph */
.band { position: relative; isolation: isolate; color: #fff; padding: 6.5rem 0; overflow: hidden; background: var(--teal); }
.band-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.band-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 43, 45, .86) 0%, rgba(15, 43, 45, .8) 100%); }
@media (min-width: 60rem) {
  .band-shade { background: linear-gradient(90deg, rgba(15, 43, 45, .92) 0%, rgba(15, 43, 45, .86) 50%, rgba(15, 43, 45, .5) 100%); }
}
.band h2 { margin: 0 0 .6rem; font-size: clamp(3rem, 12vw, 6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.band-tag { margin: 0 0 1.2rem; color: var(--gold-text); font-weight: 700; letter-spacing: .04em; }
.band-lead { max-width: 30rem; margin: 0 0 1.6rem; font-size: 1.3rem; line-height: 1.45; }
.band-actions { margin: 0; }

/* Who we are */
.who { padding: 5rem 0 4rem; }
.mission { display: grid; gap: 2rem; align-items: center; margin-bottom: 4rem; }
.mission-text { font-size: 1.25rem; line-height: 1.6; }
.mission-photo { margin: 0; overflow: hidden; border-radius: 2rem 2rem 2rem 6rem; box-shadow: var(--shadow); }
.mission-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; }

.pillars { display: grid; gap: 3rem; }
.pillar { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: visible; }
.pillar > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.pillar-body { position: relative; padding: 2.6rem 1.6rem 1.8rem; }
.pillar h3 { font-size: 1.6rem; font-weight: 800; }
.pillar p { margin: 0; color: var(--muted); }
.num { position: absolute; top: -1.8rem; left: 1.4rem; display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--gold); color: var(--teal); border: 4px solid #fff; font-weight: 800; font-size: 1.15rem; }

/* How we work: the dark teal band */
.how { background: var(--teal); color: #fff; padding: 5rem 0; }
.how h2 { color: #fff; }
.how-lead { margin: 0 0 2.5rem; color: var(--on-dark); font-size: 1.2rem; }
.steps { display: grid; gap: 2rem; }
.steps li { border-top: 3px solid var(--gold); padding-top: 1.1rem; }
.step-num { display: block; color: var(--gold-text); font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; margin-bottom: .6rem; }
.steps h3 { color: #fff; font-size: 1.35rem; }
.steps p { margin: 0; color: var(--on-dark); }

/* Our work: the history beside a mosaic */
.work { padding: 5.5rem 0 4.5rem; }
.work-grid { display: grid; gap: 2.5rem; align-items: start; }
.work-list li { padding: 1.2rem 0; border-top: 1px solid #e2d6c0; }
.work-list li:last-child { border-bottom: 1px solid #e2d6c0; }
.work-list h3 { margin-bottom: .35rem; font-size: 1.2rem; color: var(--teal); }
.work-list p { margin: 0; }

.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 6.2rem; gap: .7rem; }
.mosaic figure { margin: 0; overflow: hidden; border-radius: 1.2rem; background: var(--sand); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.m1 { grid-column: span 2; grid-row: span 2; }
.m2, .m3, .m5, .m6 { grid-row: span 2; }
.m4 { grid-column: span 2; grid-row: span 2; }
.m5 img { object-position: 40% 50%; }

/* Founders */
.founders { background: var(--sand); padding: 5rem 0; text-align: center; }
.people { display: grid; gap: 2.5rem; justify-items: center; margin-top: 2rem; }
.people img { width: min(70vw, 17rem); aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 30%; border-radius: 9rem 9rem 2rem 2rem; box-shadow: var(--shadow); margin: 0 auto 1.1rem; }
.person-name { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--teal); }
.person-role { margin: 0; color: var(--brown); font-weight: 700; }

/* How we can help: the three cards */
.help { padding: 5.5rem 0; }
.cards { display: grid; gap: 1.5rem; margin-top: 2rem; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 2rem 1.75rem; box-shadow: var(--shadow); border-top: 6px solid var(--gold); }
.card .icon { margin-bottom: 1.2rem; }
.card h3 { font-size: 1.45rem; font-weight: 800; }
.card p { color: var(--muted); }
.card-action { margin: auto 0 0; padding-top: 1rem; }

/* Footer, dark teal */
.foot { background: var(--teal-deep); color: var(--on-dark); padding: 4rem 0 1.75rem; }
.foot-grid { display: grid; gap: 2rem; }
.foot h2 { margin: 0 0 .7rem; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.foot a { color: var(--gold-text); }
.foot a:hover { color: #fff; }
.foot a[href^="tel:"], .foot a[href^="https://wa.me"] { white-space: nowrap; }
.plate { display: inline-block; background: #fff; border-radius: 1.1rem; padding: .6rem 1rem; }
.plate img { width: 10.5rem; height: auto; }
.foot-tag { margin: .9rem 0 0; color: var(--on-dark); }
address { font-style: normal; }
.social { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.social a { display: inline-block; padding: .35rem 0; }
.copy { margin: 2.5rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(230, 240, 238, .25); font-size: .95rem; }

/* 404 */
.lost { padding: 5rem 1.25rem; max-width: 40rem; }

/* The narrowest phones (360 px): the logo and the four icons must fit one row */
@media (max-width: 24rem) {
  .top-inner { gap: .5rem; }
  .brand { padding: .4rem .7rem; }
  .brand img { width: 6.8rem; }
  .social-top { gap: .3rem; }
  .social-top a { width: 2.25rem; height: 2.25rem; }
  .social-top svg { width: 1.1rem; height: 1.1rem; }
}

/* Wider screens */
.top nav .nav-extra { display: none; }
@media (min-width: 40rem) {
  .reports-grid { grid-template-columns: repeat(2, 1fr); }
  .can-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
  .people { grid-template-columns: repeat(2, max-content); justify-content: center; gap: 4rem; }
  .people img { width: 17rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 48rem) {
  .top nav { display: block; }
  .brand img { width: 10rem; }
  .hero { padding-top: 9rem; padding-bottom: 6rem; }
}
@media (min-width: 60rem) {
  .hero { padding-top: 9.5rem; padding-bottom: 7rem; background: radial-gradient(34rem 24rem at 80% 45%, rgba(63, 127, 125, .3), rgba(63, 127, 125, 0) 70%), var(--teal); }
  .can-grid { grid-template-columns: repeat(4, 1fr); }
  .mission { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .mosaic { grid-auto-rows: 7.2rem; position: sticky; top: 1.5rem; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .foot-grid { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 2.5rem; }
}
@media (min-width: 70rem) {
  .band { padding: 8rem 0; }
}
/* The picture beside the text only where it can be drawn large enough to read; below that it sits under the text. */
@media (min-width: 72rem) {
  .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 3rem; }
  .top nav .nav-extra { display: block; }
}

/* Motion: only CSS, subtle, and none under prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise .9s ease-out both; }
  .hero-art { animation: rise .9s .2s ease-out both; }
  .button, .card, .pillar, .mosaic img, .social-top a { transition: transform .25s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease; }
  .card:hover, .pillar:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(15, 43, 45, .22); }
  .button:hover { transform: translateY(-2px); }
  .mosaic figure:hover img { transform: scale(1.05); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

@media print {
  .skip, .top, .button { display: none; }
  .hero, .band { color: #000; padding: 1rem 0; background: #fff; }
  .band-img, .band-shade, .hero-art { display: none; }
  .hero h1, .eyebrow, .band h2, .band-tag, .quiet-link { color: #000; }
  .how, .foot { background: #fff; color: #000; }
  .how h2, .how h3, .steps p, .how-lead, .foot a, .foot h2, .foot-tag, .step-num, .kicker-light { color: #000; }
}
