/* =====================================================
   HOME — editorial single-page layout.
   Depends on the tokens declared in site.css.
   ===================================================== */

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

body.home {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: var(--site-font);
  font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* Resets use :where() so they carry zero specificity and never beat component spacing */
:where(.home) img { max-width: 100%; display: block; }
:where(.home) a { color: inherit; }
:where(.home) :is(h1, h2, h3) { font-family: var(--site-display); color: #233D4D; margin: 0; line-height: 1.15; }
:where(.home) :is(p, dl, dd, figure) { margin: 0; }
:where(.home) :is(ul, ol) { list-style: none; margin: 0; padding: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  padding: 0.6rem 1rem; border-radius: 0 0 8px 8px;
  background: var(--site-orange); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; }

.wrap { max-width: var(--site-max); margin: 0 auto; padding: 0 var(--site-gutter); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  height: 48px; padding: 0 1.4rem;
  border-radius: 10px; border: 1px solid transparent;
  font: 600 0.95rem/1 var(--site-font);
  text-decoration: none; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn i { font-size: 0.85em; }
.btn--primary { background: var(--site-ink); color: #fff; }
.btn--primary:hover { background: var(--site-ink-deep); }
.btn--ghost { border-color: var(--site-line-2); color: #233D4D; background: transparent; }
.btn--ghost:hover { border-color: rgba(35,61,77,0.35); background: rgba(35,61,77,0.04); }
.btn:disabled { opacity: 0.6; cursor: progress; }


.home a:focus-visible, .home button:focus-visible,
.home input:focus-visible, .home textarea:focus-visible {
  outline: 2px solid var(--site-orange); outline-offset: 3px;
}

/* ── Sections ───────────────────────────────────────── */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--alt { background: #f5f7f8; border-top: 1px solid var(--site-line); border-bottom: 1px solid var(--site-line); }

.section__head { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section__head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.section__title {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 700; letter-spacing: -0.025em;
  max-width: 22ch;
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--site-line);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.hero__copy { container-type: inline-size; min-width: 0; }
.hero__title {
  font-size: clamp(1.6rem, 4.4vw, 3.5rem);
  /* Scale to the column so the longest line ("AFRICAN COMMUNITIES.") always fits */
  font-size: min(3.5rem, 7.4cqi);
  font-weight: 800; letter-spacing: -0.015em; line-height: 1.05;
  text-transform: uppercase;
  max-width: none; text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--site-orange); }
/* Three fixed lines: I ENGINEER SOFTWARE / AND DESIGN FOR / AFRICAN COMMUNITIES. */
.hero__title-line { display: block; white-space: nowrap; }
.hero__lead {
  margin-top: 1.5rem; max-width: 54ch;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.75;
  color: var(--site-text-2);
}
.hero__lead strong { color: #233D4D; font-weight: 600; }
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.25rem;
  margin-top: 2.25rem;
}

/* ── Selected work: a wall of pinned pieces, all on show ── */
.section__lead { max-width: 68ch; margin-top: 0.75rem; font-size: var(--fs-18); line-height: 1.75; color: var(--site-text-2); }
.wall {
  --wall-w: min(1400px, calc(100vw - 3rem));
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 0.72fr);
  gap: clamp(1.5rem, 2.5vw, 2rem); align-items: start;
  width: var(--wall-w); margin: 0 0 0 calc((100% - var(--wall-w)) / 2);
  padding: 0.75rem 0 0; list-style: none;
}
.wall__piece--tall { grid-column: 3; grid-row: 1 / span 2; margin-top: clamp(2rem, 5vw, 4rem); }
.wall__piece--apparel {
  grid-column: 1 / span 2; display: grid; grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem); align-items: center;
}
.wall__piece--apparel .wall__frame {
  margin-bottom: 0; padding: 7%;
  background: radial-gradient(circle at 50% 38%, #fbf8f4 0%, #ece4da 70%, #ddd2c4 100%);
}
.wall__frame {
  position: relative; display: block; margin-bottom: 1.25rem;
  background: #fff; border: var(--site-stroke); border-radius: 6px;
  box-shadow: 6px 6px 0 rgba(35, 61, 77, 0.1);
  transition: border-color 0.2s ease;
}
.wall__frame:hover { border-color: var(--site-orange); }
.wall__frame img { display: block; width: 100%; height: auto; border-radius: 0 0 5px 5px; }
.wall__piece--poster .wall__frame img { border-radius: 5px; }
.wall__piece--poster .wall__frame::before, .quote-note::before, .moment__frame::before {
  content: ''; position: absolute; z-index: 1; top: -0.6rem; left: 0.9rem;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd2ad, var(--site-orange) 50%, var(--site-orange-ink));
  box-shadow: 2px 4px 4px rgba(26, 45, 58, 0.35);
}
.wall__bar {
  display: flex; gap: 0.4rem; padding: 0.7rem 0.85rem;
  border-bottom: var(--site-stroke);
}
.wall__bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--site-line-2); }
.wall__bar i:first-child { background: var(--site-orange); }
.wall__type { font-weight: 600; color: var(--site-text-3); }
.wall__name {
  margin-top: 0.3rem;
  font-family: var(--site-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.015em;
  color: var(--site-ink);
}
.wall__desc { margin: 0.5rem 0 0.75rem; color: var(--site-text-2); }
.tag-live { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--site-orange-ink); }
.tag-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (max-width: 860px) {
  .wall { grid-template-columns: minmax(0, 1fr); width: auto; margin-left: 0; }
  .wall__piece--tall { grid-column: auto; grid-row: auto; max-width: 26rem; margin-top: 0; }
  .wall__piece--apparel { grid-column: auto; }
}

/* ── About ──────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.facts { margin-top: 2.25rem; border-top: 1px solid var(--site-line); }
.facts > div {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--site-line);
}
.facts dt { font-size: 0.82rem; font-weight: 600; color: var(--site-text-3); }
.facts dd { color: #233D4D; font-size: 0.95rem; }

/* ── Capabilities: sticky aside + indexed list ─────── */

/* ── Experience rows ────────────────────────────────── */
.xp-list { border-top: 1px solid var(--site-line-2); }
.xp-row {
  display: grid; grid-template-columns: 10rem 1fr auto;
  align-items: center; gap: 1.5rem;
  padding: 1.4rem 0; border-bottom: 1px solid var(--site-line);
}
.xp-row__date { font-size: 0.88rem; color: var(--site-text-3); font-variant-numeric: tabular-nums; }
.xp-row h3 { font-size: 1.1rem; font-weight: 700; }
.xp-row p { margin-top: 0.25rem; font-size: 0.92rem; color: var(--site-text-2); }
.xp-row__tag {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem; border-radius: 6px;
  border: 1px solid var(--site-line-2); color: var(--site-text-2);
}
.initiatives {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2.75rem;
}
.initiatives h3 { font-size: 1.15rem; font-weight: 700; }
.initiatives p { margin-top: 0.75rem; color: var(--site-text-2); line-height: 1.75; }

/* ── Contact ────────────────────────────────────────── */
/* One stroked card: teal details panel + white form */
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 0; align-items: stretch; padding: 0;
  width: min(var(--site-max), calc(100% - 2 * var(--site-gutter)));
  background: #fff;
  border: var(--site-stroke); border-radius: 18px; overflow: hidden;
}
.contact__intro {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  padding: clamp(2rem, 4vw, 3.25rem);
  background: var(--site-ink); color: #fff;
}
.contact .contact__intro .section__title { color: #fff; }
.contact__lead { margin-top: 1.1rem; max-width: 38ch; font-size: 1.02rem; line-height: 1.75; color: rgba(255, 255, 255, 0.8); }
.contact__list { display: grid; }
.contact__list li { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.contact__list a {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.9rem 0;
  color: #fff; text-decoration: none;
}
.contact__icon {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3); font-size: 0.85rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.contact__list a:hover .contact__icon { background: var(--site-orange); border-color: var(--site-orange); color: var(--site-ink-deep); }
.contact__item { display: grid; gap: 0.05rem; min-width: 0; font-weight: 600; font-size: 0.95rem; overflow-wrap: anywhere; }
.contact__item small { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }

.form {
  position: relative; display: grid; gap: 1.15rem; align-content: center;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  background: #fff;
  border: 0 !important; border-radius: 0;
}
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: #233D4D; }
.field input, .field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--site-line-2);
  background: var(--site-bg);
  color: #233D4D; font: 400 0.95rem/1.5 var(--site-font);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--site-orange);
  box-shadow: 0 0 0 3px rgba(254, 127, 45, 0.18);
}
.field [aria-invalid="true"] { border-color: #c62828; }
.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.form__status { font-size: 0.9rem; }
.form__status.success { color: var(--site-orange-ink); }
.form__status.error { color: #c62828; }


/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .about, .contact__grid, .initiatives { grid-template-columns: 1fr; }
  .xp-row { grid-template-columns: 1fr auto; gap: 0.35rem 1rem; }
  .xp-row__date { grid-column: 1 / -1; }
  .post { grid-template-columns: 1fr 1.25rem; gap: 0.35rem 1rem; }
}
@media (max-width: 560px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .facts > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .form__row { grid-template-columns: 1fr; }
}

/* ── Impact ─────────────────────────────────────────── */
.impact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.impact-card { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 14px; background: #fff; }
.impact-card__num {
  font-family: var(--site-display); font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem); color: var(--site-orange-ink);
}
.impact-card h3 { margin-top: 1rem; font-size: 1.15rem; font-weight: 700; color: var(--site-ink); }
.impact-card p:last-child { margin-top: 0.6rem; color: var(--site-text-2); line-height: 1.75; }
@media (max-width: 760px) { .impact { grid-template-columns: 1fr; } }

/* ── Hero on the Nairobi skyline ────────────────────── */
.hero--video {
  position: relative; overflow: hidden; isolation: isolate;
  border-bottom: 0;
  background: #1a2d3a url('../images/hero-video-poster.jpg') center / cover no-repeat;
}
/* Video sits at the back, the teal overlay above it, the content on top */
.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.hero--video::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(26, 45, 58, 0.95) 0%, rgba(26, 45, 58, 0.88) 50%, rgba(26, 45, 58, 0.66) 100%);
}
.hero--video .hero__title { color: #fff; }
.hero--video .hero__lead { color: rgba(255, 255, 255, 0.82); }
.hero--video .hero__lead strong { color: #fff; }
.hero--video .btn--primary {
  background: linear-gradient(100deg, var(--site-orange), #ffb26b); color: var(--site-ink-deep); font-weight: 800;
}
.hero--video .btn--primary:hover { filter: brightness(1.07); background: linear-gradient(100deg, var(--site-orange), #ffb26b); }
.hero--video .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.hero--video .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ── About: centred title, full-bleed photo + text panel ── */
.about-split { padding-top: clamp(4rem, 8vw, 6.5rem); }
.about-split__head {
  max-width: 900px; margin: 0 auto clamp(2.25rem, 4vw, 3.25rem);
  padding: 0 var(--site-gutter); text-align: center;
}
.about-split__title {
  font-size: clamp(1.8rem, 3.8vw, 3rem); font-weight: 800;
  letter-spacing: -0.015em; line-height: 1.08; text-transform: uppercase;
  color: var(--site-ink); text-wrap: balance;
}
/* Full-width split: portrait panel beside the light grey text panel */
.about-split__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.about-split__photo {
  position: relative; min-height: 620px; overflow: hidden; margin: 0;
  background: #e5f1fd;
}
.about-split__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
}
.about-split__body {
  background: #f0f2f3;
  padding: clamp(2.5rem, 5vw, 4.25rem) clamp(1.5rem, 4.5vw, 4rem);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 1.75rem;
}
.about-split__lead {
  max-width: 26ch;
  font-family: var(--site-display); font-weight: 700;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.25; letter-spacing: -0.02em;
  color: var(--site-ink);
}
.about-split__chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; width: 100%; }
.about-chapter {
  padding: 1.35rem 1.4rem;
  background: #fff; border: var(--site-stroke); border-radius: 12px;
  border-top: 4px solid var(--site-orange);
}
.about-chapter h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: var(--site-ink); }
.about-chapter p { margin-top: 0.6rem; font-size: 0.95rem; line-height: 1.7; color: var(--site-text-2); }
.about-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem;
  width: 100%; padding-top: 1.25rem;
  border-top: 1px solid var(--site-line-2);
}
.about-facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--site-text-3); }
.about-facts dd { margin-top: 0.3rem; font-size: 0.93rem; line-height: 1.5; color: var(--site-ink); }
@media (max-width: 1100px) {
  .about-split__chapters, .about-facts { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .about-split__grid { grid-template-columns: 1fr; }
  .about-split__photo { min-height: 0; aspect-ratio: 3 / 3.6; }
}

/* Text-only hero: one column, skyline behind the words, figure on the right */
.hero--video .hero__grid { grid-template-columns: minmax(0, 1fr); }
.hero--video .hero__copy { max-width: 700px; }

/* Narrow screens: even overlay, since text spans the full width */
@media (max-width: 860px) {
  .hero--video::before { background: rgba(26, 45, 58, 0.87); }
}

/* ── Contact title ──────────────────────────────────── */
.contact .section__title { text-transform: uppercase; letter-spacing: -0.015em; max-width: 14ch; font-size: clamp(1.75rem, 3vw, 2.4rem); }

/* ── Writing: teal band with an editorial story grid ── */
.stories-band { background: var(--site-ink); }
.stories-band .section__title { color: #fff; }

.stories {
  display: grid; gap: 1.25rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
}
.story {
  display: flex; flex-direction: column; min-width: 0;
  border-radius: 16px; overflow: hidden;
  background: #fff; color: var(--site-ink);
  text-decoration: none;
  transition: transform 0.25s var(--site-ease), box-shadow 0.25s var(--site-ease) !important;
}
.story:hover { transform: translate(-3px, -3px) !important; box-shadow: 6px 6px 0 var(--site-orange); }
.story:focus-visible { outline: 3px solid var(--site-orange); outline-offset: 3px; }
.story__media { display: block; overflow: hidden; background: var(--site-surface); }
.story__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.4rem 1.5rem 1.5rem; }
.story__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--site-text-3);
}
.story__meta b {
  padding: 0.2rem 0.5rem; border-radius: 5px;
  background: var(--site-ink); color: #fff; font-weight: 700;
}
.story__title {
  font-family: var(--site-display); font-weight: 700;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.3; letter-spacing: -0.015em;
}

/* Lead: tall photo story across both rows */
.story--lead { grid-row: 1 / 3; }
.story--lead .story__media { position: relative; flex: 1 1 auto; min-height: 300px; }
.story--lead .story__media img { position: absolute; inset: 0; object-position: center 28%; }
.story--lead .story__title { font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.18; letter-spacing: -0.02em; font-weight: 800; }

/* Pull-quote: the orange moment of the section */
.story--quote {
  justify-content: space-between; gap: 1.1rem;
  padding: 1.6rem 1.6rem 1.5rem;
  background: var(--site-orange); color: var(--site-ink-deep);
}
.story--quote:hover { box-shadow: 6px 6px 0 #fff; }
.story__pull {
  font-family: var(--site-display); font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.02; letter-spacing: -0.03em;
}
.story--quote .story__title { font-size: 1.05rem; }
.story--quote .story__meta { color: rgba(26, 45, 58, 0.82); }

/* Side: certificate thumbnail beside the text */
.story--side { flex-direction: row; align-items: stretch; }
.story--side .story__media { flex: 0 0 38%; min-height: 170px; }
.story--side .story__media img { object-position: left center; }
.story--side .story__body { justify-content: center; padding: 1.25rem 1.35rem; }

@media (max-width: 860px) {
  .stories { grid-template-columns: 1fr; grid-template-rows: none; }
  .story--lead { grid-row: auto; }
  .story--lead .story__media { aspect-ratio: 16 / 11; min-height: 0; flex: none; }
}
@media (max-width: 480px) {
  .story--side { flex-direction: column; }
  .story--side .story__media { flex: none; aspect-ratio: 16 / 10; }
}

.field input::placeholder, .field textarea::placeholder { color: var(--site-text-3); }

/* Impact: programme cards on the left, speaking photo on the right */
.impact-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.25rem; align-items: stretch;
}
.impact-layout .impact { grid-template-columns: 1fr; grid-auto-rows: 1fr; }
.impact-photo {
  order: 2;
  position: relative; margin: 0; min-height: 420px;
  border: var(--site-stroke); border-radius: 14px; overflow: hidden;
  background: var(--site-surface);
}
.impact-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.impact-photo figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  padding: 0.5rem 0.85rem; border-radius: 8px;
  background: #fff; border: var(--site-stroke);
  font-size: 0.84rem; font-weight: 600; color: var(--site-ink);
}
@media (max-width: 860px) {
  .impact-layout { grid-template-columns: 1fr; }
  .impact-photo { order: 0; min-height: 0; aspect-ratio: 4 / 3; }
}

/* About title on a single line, scaled to the available width */
.about-split__head { max-width: var(--site-max); container-type: inline-size; }
@media (min-width: 701px) {
  .about-split__title { white-space: nowrap; font-size: min(2.7rem, 3.15cqi); text-wrap: nowrap; }
}

/* Lead story keeps the wall text in frame; Aspire is a text card */
.story--lead .story__media { background: #fff; border-bottom: 1px solid var(--site-line-2); }
.story--lead .story__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.story--side .story__body { padding: 1.5rem; }
@media (min-width: 701px) {
  .about-split__title { font-size: min(2.375rem, 3.7cqi); }
}

/* About: a written message rather than cards and fact lists */
.about-split__body { gap: 0; }
.about-split__body > p { max-width: 64ch; color: var(--site-text); }
.about-split__body h3 { margin: 1.5rem 0 0.5rem; color: var(--site-ink); }
.about-split__body .action-link { margin-top: 1.5rem; }

/* Hero: centred, headline typed in by js/home.js; hidden words keep their space */
.hero--video .hero__grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.hero--video .hero__copy { width: 100%; max-width: 760px; text-align: center; }
.hero--video .hero__lead { margin-left: auto; margin-right: auto; }
.hero--video .hero__actions { justify-content: center; }
.hero--video::before { background: rgba(26, 45, 58, 0.84); }
.hero__title.is-typing .hero__word { visibility: hidden; }
.hero__title.is-typing .hero__word.is-on { visibility: visible; }
.hero__caret {
  display: inline-block; width: 0.07em; height: 0.92em; margin: 0 -0.07em 0 0.04em;
  vertical-align: -0.08em; background: var(--site-orange);
  animation: hero-caret 1s steps(2, start) infinite;
}
@keyframes hero-caret { to { visibility: hidden; } }

/* Moving hero headline */
.hero--video .hero__title { font-family: 'Playfair Display', Georgia, serif; font-weight: 800; letter-spacing: 0; line-height: 1.12; }
.hero--video .hero__title { text-transform: none; }

/* Full name in the hero intro */
.hero--video .hero__lead strong { font-family: 'Cormorant Upright', Georgia, serif; font-size: 1.3em; font-weight: 600; line-height: 1; }

/* Recognition strip: continues the hero, words slide in and out on a loop */
.recognition { overflow: hidden; padding: 1rem 0; background: var(--site-ink-deep); }
.recognition__track { display: flex; width: max-content; animation: recognition-move 32s linear infinite; }
.recognition:hover .recognition__track { animation-play-state: paused; }
.recognition__list {
  display: flex; flex: none; justify-content: space-around; gap: 3rem;
  min-width: 100vw; margin: 0; padding: 0 1.5rem; list-style: none;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; color: #fff;
}
.recognition__list li { display: flex; align-items: center; gap: 3rem; }
.recognition__list li::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--site-orange); }
@keyframes recognition-move { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .recognition__track { width: auto; animation: none; }
  .recognition__list { flex-wrap: wrap; justify-content: center; gap: 0.5rem 3rem; min-width: 0; width: 100%; white-space: normal; }
  .recognition__list[aria-hidden] { display: none; }
}

/* Right now line under the About title */
.about-now { max-width: 84ch; margin: 0.75rem auto 0; text-align: center; color: var(--site-text-2); }
.about-now strong { margin-right: 0.35rem; color: var(--site-orange-ink); font-weight: 700; }
.about-now strong::before {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 0.45rem;
  border-radius: 50%; background: var(--site-orange); vertical-align: 0.1em;
}

/* Quote band */
.quote-band { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--site-ink-deep); text-align: center; }
.quote-note {
  position: relative; max-width: 42rem; margin: 0 auto 1.75rem; padding: 2rem clamp(1.5rem, 4vw, 3rem) 1.75rem;
  background: #fff; border-radius: 6px; box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.25); text-align: left;
}
.quote-note p {
  margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: var(--fs-38);
  font-weight: 700; line-height: 1.2; color: var(--site-ink); text-wrap: balance;
}
.quote-note cite { display: block; margin-top: 0.85rem; font-size: var(--fs-14); font-weight: 600; font-style: normal; color: var(--site-orange-ink); }
.quote-band .action-link { color: #fff !important; }
.quote-band .action-link:hover { color: var(--site-orange) !important; }

/* Real moments: pinned photos at their natural shape */
.moments {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem); align-items: start;
  margin: 0; padding: 0.75rem 0 0; list-style: none;
}
.moment:nth-child(even) { margin-top: clamp(1.25rem, 3vw, 2.5rem); }
.moment__frame {
  position: relative; display: block; background: #fff;
  border: var(--site-stroke); border-radius: 6px; box-shadow: 6px 6px 0 rgba(35, 61, 77, 0.1);
}
.moment__frame img { display: block; width: 100%; height: auto; border-radius: 5px; }
.moment__cap { margin-top: 0.85rem; font-weight: 600; line-height: 1.45; color: var(--site-ink); }
@media (max-width: 860px) { .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
