/* ==========================================================================
   Arthur Froissart — personal site
   Shared stylesheet (tokens + layout + components)
   ========================================================================== */

:root {
  /* Colour */
  --color-bg: #ffffff;
  --color-surface: rgb(243, 243, 243);
  --color-surface-strong: rgb(235, 235, 235);
  --color-text: rgb(22, 22, 22);
  --color-muted: rgb(102, 102, 102);
  --color-border: rgba(22, 22, 22, 0.08);
  --color-border-strong: rgba(22, 22, 22, 0.14);

  --color-primary-bg: rgb(24, 24, 24);
  --color-primary-text: #ffffff;

  --gradient-peach: linear-gradient(135deg, #ffe9df 0%, #ffe1ea 55%, #fff4ee 100%);

  --color-accent: #c2512f;
  --color-accent-soft: #f3d9cf;
  --tint-blue: #eef3fa;
  --tint-green: #edf5ef;
  --tint-peach: #fdf0e8;
  --tint-sand: #f5f2ec;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  /* Shape */
  --radius-pill: 9999px;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.6rem;

  /* Layout */
  --container-width: 1120px;
  --prose-width: 680px;
  --header-height: 64px;

  /* Shadow */
  --shadow-card: 0 1px 2px rgba(22, 22, 22, 0.04), 0 1px 1px rgba(22, 22, 22, 0.03);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  /* Hard guarantee against the 375px horizontal-scroll failure mode */
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  width: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  color: var(--color-text);
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3rem);
  font-weight: 450;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.15rem);
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0;
  color: var(--color-text);
}

.lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--color-text);
}

.text-muted {
  color: var(--color-muted);
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.prose {
  max-width: var(--prose-width);
}

.prose > * + * {
  margin-top: 1.1rem;
}

.section {
  padding: 3.5rem 0;
}

.section--tight {
  padding: 2rem 0;
}

.section--wash {
  background: var(--gradient-peach);
  border-radius: var(--radius-lg);
  padding: 2.75rem 1.5rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack--lg {
  gap: 1.75rem;
}

.stack--sm {
  gap: 0.6rem;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

hr.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

/* --------------------------------------------------------------------------
   Buttons / pills
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--color-primary-bg);
  color: var(--color-primary-text);
}

.btn--primary:hover {
  opacity: 0.88;
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-surface-strong);
}

.btn--sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.link-secondary {
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.95rem;
}

.link-secondary:hover {
  color: var(--color-text);
}

/* Focus visibility (accessibility, not in brand ref but required for craft) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-primary-bg);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Top navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.site-header__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: none;
}

.site-header__brand img,
.site-header__brand .brand-mark {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 1.3rem;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bar::before {
  position: absolute;
  top: -6px;
}

.nav-toggle__bar::after {
  position: absolute;
  top: 6px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.site-nav__link {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.site-nav__link:hover {
  opacity: 1;
}

.site-nav__link.is-active {
  opacity: 1;
}

.site-nav__cta {
  margin-left: 0.25rem;
}

@media (max-width: 719px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 24px rgba(22, 22, 22, 0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-nav.is-open {
    max-height: 70vh;
    overflow-y: auto;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
  }

  .site-nav__list li {
    width: 100%;
  }

  .site-nav__link {
    display: block;
    padding: 0.75rem 0;
    width: 100%;
  }

  .site-nav__cta {
    margin-left: 0;
    margin-top: 0.5rem;
    display: inline-flex;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar {
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
    transform: rotate(-90deg) translate(0);
    top: 0;
  }
}

@media (min-width: 720px) {
  .site-nav {
    display: block !important;
    max-height: none !important;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .site-nav__list {
    flex-direction: row;
  }
}

/* --------------------------------------------------------------------------
   Sticky sub-nav (career table of contents)
   -------------------------------------------------------------------------- */

.subnav {
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 0.85rem 0;
}

.subnav__scroll {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  /* Fade both edges so an overflowing row reads as scrollable, not clipped. */
  mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
}

.subnav__list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  width: max-content;
}

.subnav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.subnav__link:hover {
  color: var(--color-text);
  background: var(--color-surface-strong);
}

.subnav__link.is-active {
  background: var(--color-primary-bg);
  color: var(--color-primary-text);
}

.subnav__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  display: inline-block;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
}

.subnav__link.is-active .subnav__dot {
  background: currentColor;
}

.subnav__index {
  font-size: 0.68rem;
  opacity: 0.8;
}

/* Scroll progress through the chapters, driven by --progress from script.js */
.subnav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  padding: 3rem 0 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero__photo {
  order: -1;
  margin: 0;
  width: 100%;
  max-width: 15rem;
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--color-border);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__photo:hover img {
  transform: scale(1.04);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 4rem;
  }

  .hero__photo {
    order: 0;
    max-width: none;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo img {
    transition: none;
  }
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Closing mission line (home)
   -------------------------------------------------------------------------- */

.mission-line {
  font-size: 1.3rem;
  font-weight: 450;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Mobile-first safety net
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .section {
    padding: 2.25rem 0;
  }

  .hero__cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary-bg);
  color: var(--color-primary-text);
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Motion baseline: page-in, scroll reveal. Content stays visible without JS.
   -------------------------------------------------------------------------- */

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

main {
  animation: page-in 0.5s ease-out both;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-seen {
  opacity: 1;
  transform: none;
}

.arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

a:hover > .arrow,
.btn:hover > .arrow,
a:hover .preview-card__title .arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Home: illustrated preview cards
   -------------------------------------------------------------------------- */

.preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 760px) {
  .preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.preview-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-text);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(22, 22, 22, 0.08);
}

.preview-card__art {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: var(--tint, var(--tint-sand));
}

.preview-card__art svg {
  width: 62%;
  height: auto;
  overflow: visible;
  transition: transform 0.6s var(--ease-out);
}

.preview-card:hover .preview-card__art svg {
  transform: scale(1.08);
}

.preview-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.4rem 1.5rem;
}

.preview-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 600;
}

.preview-card__teaser {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Small drawn details inside the card art come alive on hover */
.art-stroke {
  fill: none;
  stroke: var(--color-text);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-fill {
  fill: var(--color-text);
}

.art-accent {
  fill: var(--color-accent);
}

.art-accent-stroke {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-paper {
  fill: #ffffff;
  stroke: var(--color-text);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Home: "The short version" label / description rows
   -------------------------------------------------------------------------- */

.short-version {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .short-version {
    grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

.short-version__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.fact-rows {
  list-style: none;
  border-top: 1px solid var(--color-border-strong);
}

.fact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--color-border-strong);
}

@media (min-width: 640px) {
  .fact-row {
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: baseline;
  }
}

.fact-row__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.fact-row__text {
  font-size: 1.05rem;
  line-height: 1.5;
}

.fact-row__text a {
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Career: story chapters (interlude, then a panel with copy and an exhibit)
   -------------------------------------------------------------------------- */

.career-intro h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.25rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  max-width: 16ch;
}

.chapter {
  scroll-margin-top: calc(var(--header-height) + 3.5rem);
}

.interlude {
  padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(2rem, 6vw, 3.5rem);
}

.interlude__kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.interlude__kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.interlude__line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 1.2rem + 6.6vw, 5.5rem);
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 14ch;
}

.interlude__line em {
  font-style: italic;
  color: var(--color-accent);
}

.panel {
  background: var(--tint, var(--color-surface));
  border-radius: 2rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.panel + .panel {
  margin-top: 1.25rem;
}

@media (min-width: 980px) {
  .panel {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }

  .panel--flip .panel__copy {
    order: 2;
  }

  .panel--flip {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  }

  .panel__copy {
    position: sticky;
    top: calc(var(--header-height) + 5rem);
  }
}

.panel__copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.panel__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.panel__logos {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.panel__logos img {
  height: 1.35rem;
  width: auto;
}

.panel__title {
  font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.panel__text {
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgb(60, 60, 60);
  max-width: 34rem;
}

.stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  margin-top: 0.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 11rem;
}

.stat__num {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat__label {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-muted);
}

.exhibit {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  box-shadow: 0 1px 2px rgba(22, 22, 22, 0.04), 0 12px 32px rgba(22, 22, 22, 0.05);
  min-width: 0;
}

.exhibit__hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.1rem;
}

.exhibit__hint::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  animation: hint-pulse 2.4s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(194, 81, 47, 0.45);
  }
  60% {
    box-shadow: 0 0 0 7px rgba(194, 81, 47, 0);
  }
}

/* --------------------------------------------------------------------------
   Exhibit: scope ladder (three steps, the scope grid fills as you climb)
   -------------------------------------------------------------------------- */

.ladder__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 1.1rem;
  background: var(--color-surface);
}

.ladder__tab {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.75rem;
  border: none;
  border-radius: 0.8rem;
  background: transparent;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 520px) {
  .ladder__tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .ladder__tab {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: baseline;
  }

  .ladder__tier {
    padding-left: calc(var(--tier, 0) * 0.6rem);
  }
}

.ladder__tab:hover {
  color: var(--color-text);
}

.ladder__tab[aria-selected="true"] {
  background: #ffffff;
  color: var(--color-text);
  box-shadow: 0 1px 2px rgba(22, 22, 22, 0.08), 0 4px 12px rgba(22, 22, 22, 0.06);
}

.ladder__years {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-muted);
}

.ladder__stage {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.ladder__tier {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: calc(var(--tier, 0) * 1.25rem);
}

.ladder__chip {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1.5px dashed var(--color-border-strong);
  color: rgba(22, 22, 22, 0.35);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.ladder__chip.is-on {
  background: var(--color-primary-bg);
  border-color: var(--color-primary-bg);
  border-style: solid;
  color: #ffffff;
}

.ladder__chip.is-new {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.ladder__caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  min-height: 9.5rem;
}

@media (min-width: 560px) {
  .ladder__caption {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: end;
  }
}

.ladder__headline {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.ladder__body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 30rem;
}

.ladder__stat .stat__num {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.7rem);
}

.ladder__caption.is-swapping > * {
  animation: caption-in 0.5s var(--ease-out) both;
}

@keyframes caption-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Exhibit: map of Africa (anonymised: counts and sectors only)
   -------------------------------------------------------------------------- */

.africa {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

@media (min-width: 620px) {
  .africa {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
    align-items: center;
  }
}

.africa__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.africa__land path {
  fill: #ebe8e2;
  stroke: #ffffff;
  stroke-width: 0.8;
}

.africa__country {
  fill: #ebe8e2;
  stroke: #ffffff;
  stroke-width: 0.8;
  cursor: pointer;
  outline: none;
  transition: fill 0.6s var(--ease-out);
  transition-delay: var(--d, 0s);
}

/* Two outlines drawn as one country: the stroke takes the fill colour so no
   internal border shows. */
.africa__country--group {
  color: #ebe8e2;
  stroke: currentColor;
  stroke-width: 0.6;
  transition: fill 0.6s var(--ease-out), color 0.6s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.africa.is-lit .africa__country {
  fill: #eab7a4;
  color: #eab7a4;
}

.africa.is-lit .africa__country:hover {
  fill: #dc937a;
  color: #dc937a;
  transition-delay: 0s;
}

.africa.is-lit .africa__country.is-selected {
  fill: var(--color-accent);
  color: var(--color-accent);
  transition-delay: 0s;
}

.africa__island {
  stroke: var(--color-accent);
  stroke-width: 1.5;
}

.africa__label {
  font-size: 11px;
  fill: var(--color-muted);
  pointer-events: none;
}

.africa__panel {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 12.5rem;
}

.africa__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.africa__name {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.africa__detail {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.africa__detail strong {
  color: var(--color-text);
}

.africa__panel.is-swapping > * {
  animation: caption-in 0.45s var(--ease-out) both;
}

.africa__chips {
  grid-column: 1 / -1;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--color-border);
}

.africa__chip {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: #ffffff;
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.africa__chip:hover {
  border-color: var(--color-text);
}

.africa__chip[aria-pressed="true"] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Exhibit: portfolio tiles (angel investing)
   -------------------------------------------------------------------------- */

.tiles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 7.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--color-surface);
  transition: transform 0.4s var(--ease-out), background-color 0.4s ease;
}

.tile:hover {
  transform: translateY(-3px);
  background: var(--tint-green);
}

.tile__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.tile__name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.tile--note {
  background: var(--color-primary-bg);
  color: #ffffff;
}

.tile--note:hover {
  background: var(--color-primary-bg);
}

.tile--note .tile__tag {
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Project block (repeatable: media on one side, facts on the other)
   -------------------------------------------------------------------------- */

.projects {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project {
  background: var(--tint, var(--color-surface));
  border-radius: 2rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .project {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .project--flip .project__media {
    order: 2;
  }
}

.project__media {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  min-height: 17rem;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(22, 22, 22, 0.04), 0 12px 32px rgba(22, 22, 22, 0.05);
  min-width: 0;
}

.project__media video {
  width: min(100%, 15rem);
  border-radius: 1.25rem;
  border: 1px solid var(--color-border-strong);
  display: block;
}

.project__body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.project__kind {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.project__title {
  font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.project__line {
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgb(60, 60, 60);
}

.project__facts {
  list-style: none;
  border-top: 1px solid var(--color-border-strong);
  margin-top: 0.4rem;
}

.project__fact {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-strong);
  font-size: 0.93rem;
  line-height: 1.5;
}

.project__fact-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding-top: 0.15rem;
}

.project__link {
  align-self: flex-start;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Channel demo (Ambidex): five channels with drawn connectors into one inbox
   -------------------------------------------------------------------------- */

.channel-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.channel-stage {
  position: relative;
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 26 / 17;
}

.channel-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.channel-wire {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.channel-stage.is-consolidated .channel-wire {
  stroke-dashoffset: 0;
}

.channel-card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.8rem;
  background: #ffffff;
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-card);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  transition: transform 0.7s var(--ease-out), opacity 0.5s ease, border-color 0.5s ease;
  transition-delay: var(--d, 0s);
}

.channel-card svg {
  position: static;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.channel-stage.is-consolidated .channel-card:not(.channel-card--target) {
  transform: translate(-50%, -50%) rotate(0deg) scale(0.92);
  border-color: var(--color-accent-soft);
  opacity: 0.75;
}

.channel-card--target {
  background: var(--color-primary-bg);
  color: #ffffff;
  border-color: transparent;
  padding: 0.75rem 1.1rem;
  font-size: 0.92rem;
  opacity: 0.25;
  transform: translate(-50%, -50%) scale(0.9);
}

.channel-stage.is-consolidated .channel-card--target {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.45s;
}

/* --------------------------------------------------------------------------
   Compact rows ("Before that")
   -------------------------------------------------------------------------- */

.early-rows {
  list-style: none;
  border-top: 1px solid var(--color-border-strong);
}

.early-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.3rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--color-border-strong);
  transition: padding-left 0.4s var(--ease-out);
}

@media (min-width: 760px) {
  .early-row {
    grid-template-columns: 8rem minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: baseline;
  }

  .early-row:hover {
    padding-left: 0.75rem;
  }
}

.early-row__years {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.early-row__role {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.early-row__org {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-muted);
}

.early-row__text {
  font-size: 0.97rem;
  line-height: 1.55;
  color: rgb(60, 60, 60);
}

/* --------------------------------------------------------------------------
   Why this role: ask / done rows, click a row to focus it
   -------------------------------------------------------------------------- */

.fit-list {
  list-style: none;
  border-top: 1px solid var(--color-border-strong);
}

.fit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
  padding: 1.6rem 0;
  border: none;
  border-bottom: 1px solid var(--color-border-strong);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.4s ease, padding 0.4s var(--ease-out), background-color 0.4s ease;
}

@media (min-width: 820px) {
  .fit-row {
    grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2rem;
  }
}

.fit-row__num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-muted);
}

.fit-row__ask {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.fit-row__done {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.fit-list.has-focus .fit-row {
  opacity: 0.35;
}

.fit-list.has-focus .fit-row.is-focused {
  opacity: 1;
  background: var(--tint-peach);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  border-radius: 1.25rem;
  border-bottom-color: transparent;
}

.fit-row.is-focused .fit-row__done {
  color: var(--color-text);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 1.4rem + 4vw, 3.9rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 18ch;
}

/* --------------------------------------------------------------------------
   FAQ (native <details>)
   -------------------------------------------------------------------------- */

.faq-list {
  border-top: 1px solid var(--color-border-strong);
}

.faq-item {
  border-bottom: 1px solid var(--color-border-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 1.5px solid var(--color-text);
  border-bottom: 1.5px solid var(--color-text);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.35s var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq-answer {
  max-width: 42rem;
  padding: 0 0 1.5rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.faq-item[open] .faq-answer {
  animation: caption-in 0.45s var(--ease-out) both;
}

/* --------------------------------------------------------------------------
   Outside work: pursuits, gallery, lightbox
   -------------------------------------------------------------------------- */

.pursuits {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .pursuits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pursuit {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: var(--tint, var(--color-surface));
  min-height: 15rem;
  transition: transform 0.4s var(--ease-out);
}

.pursuit:hover {
  transform: translateY(-4px);
}

.pursuit__art {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: auto;
}

.pursuit__art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: transform 0.6s var(--ease-out);
}

.pursuit:hover .pursuit__art svg {
  transform: scale(1.08) rotate(-3deg);
}

.pursuit__title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pursuit__text {
  font-size: 0.97rem;
  line-height: 1.55;
  color: rgb(60, 60, 60);
}

.pursuit__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pursuit__facts li {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 600;
}

.gallery {
  columns: 1;
  column-gap: 0.75rem;
}

@media (min-width: 560px) {
  .gallery {
    columns: 2;
  }
}

@media (min-width: 960px) {
  .gallery {
    columns: 3;
  }
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--color-surface);
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  break-inside: avoid;
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.9s var(--ease-out), filter 0.5s ease, opacity 0.5s ease;
}

.gallery__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.72), rgba(12, 12, 12, 0));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}

.gallery__cap-title {
  font-size: 0.98rem;
  font-weight: 600;
}

.gallery__cap-meta {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.gallery__item:hover .gallery__cap,
.gallery__item:focus-visible .gallery__cap {
  opacity: 1;
  transform: none;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.04);
}

/* Pointing at one frame mutes the others. */
@media (hover: hover) {
  .gallery:hover .gallery__item:not(:hover) img {
    filter: grayscale(1);
    opacity: 0.45;
  }
}

/* No hover on touch screens: captions stay visible. */
@media (hover: none) {
  .gallery__cap {
    opacity: 1;
    transform: none;
  }
}

.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  color: #ffffff;
  width: min(94vw, 1180px);
  max-width: none;
  max-height: 94vh;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(12, 12, 12, 0.9);
}

.lightbox[open] {
  animation: caption-in 0.4s var(--ease-out) both;
}

.lightbox__frame {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.lightbox__frame img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  border-radius: 0.75rem;
  margin: 0 auto;
}

.lightbox__nav,
.lightbox__close {
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lightbox__nav:hover,
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-size: 1.4rem;
}

.lightbox__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.5rem;
  margin: 1.1rem 3.1rem 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

@media (min-width: 720px) {
  .lightbox__info {
    grid-template-columns: 2fr 1fr 1fr auto;
  }
}

.lightbox__info dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.lightbox__info dd {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
}

@media (max-width: 560px) {
  .lightbox__nav {
    position: fixed;
    bottom: 1rem;
  }

  .lightbox__nav[data-lightbox-prev] {
    left: 1rem;
  }

  .lightbox__nav[data-lightbox-next] {
    right: 1rem;
  }

  .lightbox__frame {
    grid-template-columns: minmax(0, 1fr);
  }

  .lightbox__info {
    margin: 1rem 0.25rem 0;
  }
}

/* --------------------------------------------------------------------------
   Segmented switch and its panels (Why this role: two tracks)
   -------------------------------------------------------------------------- */

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 1.25rem;
  background: var(--color-surface);
  max-width: 34rem;
}

.segmented__tab {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.8rem 1.1rem;
  border: none;
  border-radius: 0.95rem;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.segmented__tab:hover {
  color: var(--color-text);
}

.segmented__tab[aria-selected="true"] {
  background: #ffffff;
  color: var(--color-text);
  box-shadow: 0 1px 2px rgba(22, 22, 22, 0.08), 0 4px 12px rgba(22, 22, 22, 0.06);
}

.segmented__title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.segmented__sub {
  font-size: 0.82rem;
}

.track:not([hidden]) {
  animation: caption-in 0.5s var(--ease-out) both;
}

.track__gap {
  margin-top: 3rem;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--tint-green);
  border-radius: 2rem;
  padding: clamp(1.4rem, 4vw, 3rem);
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.feature__photo {
  margin: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #ffffff;
}

.pursuit {
  position: relative;
}

.pursuit__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.6rem;
  height: auto;
}

/* Career route: the one-minute pitch as four clickable steps */
.career-intro__lede {
  max-width: 44rem;
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: var(--color-muted);
}

.hero__lede {
  margin: 0.9rem 0 1.4rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.chapter__lede {
  max-width: 42rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: var(--color-muted);
}

.route {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: 0;
}

.route__step {
  position: relative;
  display: block;
  padding: 0.9rem 0 0.9rem 1.75rem;
  border-left: 2px solid var(--color-border-strong);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s var(--ease-out);
}

.route__step::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 1.25rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-text);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.route__item--main .route__step::before {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.route__step:hover::before,
.route__step:focus-visible::before {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.3);
}

.route__years {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.route__name {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.15;
}

.route__item--main .route__name {
  color: var(--color-accent);
}

.route__sub {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

@media (min-width: 820px) {
  .route {
    grid-template-columns: 1fr 1fr 1.35fr 1fr;
  }

  .route__step {
    height: 100%;
    padding: 1.75rem 1.25rem 0 0;
    border-left: 0;
    border-top: 2px solid var(--color-border-strong);
  }

  .route__step::before {
    left: 0;
    top: -0.45rem;
  }

  .route__step:hover,
  .route__step:focus-visible {
    border-top-color: var(--color-accent);
  }
}

/* Tiles that link out to a company */
.tiles > li {
  list-style: none;
}

.tiles > li > .tile {
  height: 100%;
}

.tile--link {
  color: inherit;
  text-decoration: none;
}

.tile__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.tile__brand img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  object-fit: contain;
  background: #ffffff;
}

.tile__go {
  margin-left: auto;
  color: var(--color-muted);
  transition: transform 0.3s var(--ease-out), color 0.3s ease;
}

.tile--link:hover .tile__go {
  transform: translate(2px, -2px);
  color: var(--color-accent);
}

/* Two watercolours, overlapped */
.feature__pair {
  position: relative;
  margin: 0;
  padding: 0 0 18% 0;
}

.feature__shot {
  display: block;
  height: auto;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px -24px rgba(22, 22, 22, 0.45);
  transition: transform 0.6s var(--ease-out);
}

.feature__shot--a {
  width: 62%;
  transform: rotate(-2deg);
}

.feature__shot--b {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  transform: rotate(2.5deg);
}

.feature:hover .feature__shot--a {
  transform: rotate(-3deg) translate(-4px, -4px);
}

.feature:hover .feature__shot--b {
  transform: rotate(3.5deg) translate(4px, 4px);
}

/* Why this role: the posting as an annotated document */
.posting {
  position: relative;
  margin-top: 2.25rem;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2rem);
  background: #ffffff;
  border: 1px solid var(--color-border-strong);
  border-radius: 0.5rem;
  box-shadow: 0 30px 60px -45px rgba(22, 22, 22, 0.5);
}

.posting__clip {
  position: absolute;
  top: -1.4rem;
  left: clamp(1.5rem, 6vw, 4rem);
  width: 1.5rem;
  height: 3.5rem;
  color: #9a9a94;
  transform: rotate(4deg);
}

.posting__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1.5px solid var(--color-text);
}

.posting__title {
  font-size: 1.1rem;
  font-weight: 600;
}

.posting__meta {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.posting__rows {
  list-style: none;
  padding: 0;
}

.posting__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem) 0;
  border-bottom: 1px solid var(--color-border);
}

.posting__row:last-child {
  border-bottom: 0;
}

@media (min-width: 860px) {
  .posting__row {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

.posting__ask {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.5;
}

.posting__ask mark {
  padding: 0.12em 0.2em;
  margin: 0 -0.2em;
  border-radius: 0.15em;
  color: inherit;
  background: linear-gradient(#f0e6a3, #f0e6a3) no-repeat left center / 100% 100%;
}

.js .posting__row.reveal .posting__ask mark {
  background-size: 0% 100%;
  transition: background-size 0.8s var(--ease-out) 0.35s;
}

.js .posting__row.reveal.is-seen .posting__ask mark {
  background-size: 100% 100%;
}

.posting__note {
  color: var(--color-accent);
}

.posting__note-head {
  position: relative;
  font-size: 1.05rem;
  font-weight: 600;
}

.posting__arrow {
  display: none;
}

@media (min-width: 860px) {
  .posting__arrow {
    display: inline-block;
    position: absolute;
    left: -2rem;
    transition: transform 0.3s var(--ease-out);
  }

  .posting__row:hover .posting__arrow {
    transform: translateX(-5px);
  }
}

.posting__points {
  list-style: none;
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.9;
}

.posting__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
  text-underline-offset: 0.2em;
}

@media (prefers-reduced-motion: reduce) {
  .js .posting__row.reveal .posting__ask mark {
    background-size: 100% 100%;
    transition: none;
  }
}

/* Logos beside each early role */
.early-row__role {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.early-row__logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 3rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.8rem;
  background: #ffffff;
  border: 1px solid var(--color-border-strong);
}

.early-row__logo img {
  width: auto;
  height: auto;
  max-width: 4.3rem;
  max-height: 2rem;
  object-fit: contain;
}

@media (min-width: 760px) {
  .early-row {
    align-items: center;
  }
}

.feature__solo {
  margin: 0;
  display: grid;
  place-items: center;
}

.feature__solo .feature__shot {
  width: min(100%, 20rem);
  transform: rotate(-2deg);
}

.feature:hover .feature__solo .feature__shot {
  transform: rotate(0deg) scale(1.02);
}

/* INSEAD: green block with a flip card */
.school {
  --school: #1f5c41;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: 2rem;
  background: linear-gradient(135deg, #e9f2ec 0%, #f4f7f3 100%);
}

@media (min-width: 900px) {
  .school {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.school__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.school__logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.55rem;
  border-radius: 50%;
  background: var(--school);
}

.school__logo img {
  max-width: 100%;
  filter: brightness(0) invert(1);
}

.school__name {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
}

.school__when,
.school__meta {
  display: block;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.school__title {
  margin: 0.4rem 0 1rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.school__text {
  max-width: 34rem;
  line-height: 1.6;
  color: rgb(60, 60, 60);
}

.school__stats {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(31, 92, 65, 0.2);
}

.school__side {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}

.flip {
  width: 100%;
  max-width: 26rem;
  perspective: 1400px;
  cursor: pointer;
}

.flip__inner {
  position: relative;
  aspect-ratio: 3 / 2;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-out);
}

.flip.is-flipped .flip__inner {
  transform: rotateY(180deg);
}

.flip__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1rem, 4vw, 1.75rem);
  border-radius: 1rem;
  border-top: 0.45rem solid var(--school);
  background: #fbfcfa;
  box-shadow: 0 24px 50px -30px rgba(22, 60, 42, 0.55);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip__face--back {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
  transform: rotateY(180deg);
}

.flip__photo {
  flex: none;
  width: 34%;
  height: auto;
  border-radius: 0.75rem;
}

.flip__kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--school);
}

.flip__name {
  display: block;
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.flip__line {
  display: block;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.flip__ghost {
  position: absolute;
  right: -0.5rem;
  bottom: -1.6rem;
  font-size: 6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(31, 92, 65, 0.06);
  pointer-events: none;
}

.flip__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: clamp(0.68rem, 1.9vw, 0.8rem);
  line-height: 1.35;
}

.flip__list li {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 0.5rem;
}

.flip__tag {
  font-weight: 700;
  color: var(--school);
}

.flip__btn {
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.flip__btn:hover {
  background: #ffffff;
  border-color: var(--school);
}

@media (prefers-reduced-motion: reduce) {
  .flip__inner {
    transition: none;
  }
}

/* Hero proof strip, and a phone layout that reaches the button without scrolling */
.hero__proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--color-border-strong);
}

.hero__proof li {
  display: flex;
  flex-direction: column;
}

.hero__proof strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
}

.hero__proof span {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.talk-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 899px) {
  .hero {
    padding: 1.5rem 0 1.5rem;
    gap: 1.1rem;
  }

  .hero__photo {
    width: 4.5rem;
    max-width: none;
    aspect-ratio: 1;
    border-radius: 50%;
  }

  .hero__photo img {
    object-position: 50% 12%;
  }

  .hero__proof {
    gap: 0.6rem 1.25rem;
    margin-top: 1rem;
  }

  .hero__lede {
    margin: 0.75rem 0 1rem;
    font-size: 0.95rem;
  }

  .hero .hero__cta-row {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 759px) {
  /* Preview cards become compact rows */
  .preview-grid {
    gap: 0.6rem;
  }

  .preview-card {
    flex-direction: row;
    align-items: stretch;
  }

  .preview-card__art {
    flex: none;
    width: 5.5rem;
    aspect-ratio: auto;
  }

  .preview-card__body {
    padding: 0.9rem 1rem;
    gap: 0.2rem;
  }

  .preview-card__teaser {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .talk-row .btn {
    flex: 1 1 calc(50% - 0.75rem);
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .lightbox__info {
    padding-bottom: 4.25rem;
  }
}

.lightbox::backdrop {
  background: rgba(12, 12, 12, 0.97);
}

/* Comfortable tap targets on touch screens */
@media (pointer: coarse) {
  .africa__chip,
  .subnav__link,
  .flip__btn,
  .site-footer a,
  .posting__link,
  .link-secondary {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

}

/* Map panel photo: appears when the selected country has one */
.africa__photo {
  margin: 0.9rem 0 0;
}

.africa__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0.75rem;
}

.africa__photo figcaption {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* The IPO and acquisition, as three steps before the chapter starts */
.backstory {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  padding: 0;
}

@media (min-width: 720px) {
  .backstory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.backstory__step {
  padding: 1.1rem 0 0;
  border-top: 2px solid var(--color-border-strong);
}

.backstory__step--me {
  border-top-color: var(--color-accent);
}

.backstory__year {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.backstory__step--me .backstory__year {
  color: var(--color-accent);
}

.backstory__what {
  display: block;
  margin: 0.3rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.2;
}

.backstory__sub {
  display: block;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-muted);
}

/* A quoted voice, spoken word by word */
.voice {
  position: relative;
  max-width: 50rem;
  margin: clamp(3rem, 8vw, 6rem) auto 0;
  padding: 0 0 0 clamp(2.5rem, 7vw, 4.5rem);
}

.voice__mark {
  position: absolute;
  left: 0;
  top: -0.35em;
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
  color: var(--color-accent);
}

.voice__quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.voice.is-armed .voice__word {
  opacity: 0.12;
  transition: opacity 0.5s ease;
  transition-delay: calc(var(--i) * 90ms);
}

.voice.is-spoken .voice__word {
  opacity: 1;
}

.voice__by {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.voice.is-armed .voice__by {
  opacity: 0;
  transition: opacity 0.6s ease 1.6s;
}

.voice.is-spoken .voice__by {
  opacity: 1;
}

@media (max-width: 560px) {
  .flip__inner {
    aspect-ratio: 4 / 5;
  }

  .flip__face--front {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .flip__photo {
    width: 42%;
  }

  .flip__list {
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .flip__list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/* Projects grouped under INSEAD: a green rail ties them to the school block */
.built-here {
  margin: clamp(2rem, 5vw, 3rem) 0 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid #1f5c41;
}

.built-here__kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1f5c41;
}

.built-here__title {
  margin: 0.3rem 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.15;
}

.built-here__text {
  max-width: 40rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.project__when {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem 0.3rem 0.35rem;
  border-radius: var(--radius-pill);
  background: #1f5c41;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
}

.project__when img {
  width: 1.3rem;
  height: 1.3rem;
  padding: 0.15rem;
  border-radius: 50%;
  filter: brightness(0) invert(1);
}

/* INSEAD: ranking line, then classes beside the research project */
.school__rank {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0.9rem 0 0.4rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(31, 92, 65, 0.08);
  max-width: 34rem;
}

.school__rank strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1;
  color: #1f5c41;
}

.school__rank span {
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgb(60, 60, 60);
}

.study {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding-left: 1.25rem;
  border-left: 3px solid #1f5c41;
}

@media (min-width: 900px) {
  .study {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.study__classes {
  list-style: none;
  margin-top: 1rem;
  padding: 0;
  border-top: 1px solid var(--color-border-strong);
}

.study__classes li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.2rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-strong);
  font-weight: 600;
}

.study__classes em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.study__research {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.5rem;
  background: var(--tint-sand);
}

/* Africa map: route from London and photo pins */
.africa__route { pointer-events: none; }
.africa__route-line { fill: none; stroke: var(--color-accent); stroke-width: 2.6; stroke-linecap: round; }
.africa__london { fill: var(--color-text); }
.africa__london-label { font-family: var(--font-sans); font-size: 19px; font-weight: 600; fill: var(--color-text); }
.africa__pin { fill: var(--color-bg); stroke: var(--color-accent); stroke-width: 3; }

.africa__photo--tall img { width: auto; max-width: 100%; height: 15rem; aspect-ratio: auto; object-position: 50% 0; }

.study__stack { display: grid; gap: 1rem; align-content: start; }

/* Africa map: the selected place opens as a grey pop-out next to it */
.africa { position: relative; }
@media (min-width: 620px) { .africa { grid-template-columns: minmax(0, 1fr); } }
.africa__panel { position: relative; min-height: 0; gap: 0.35rem; padding: 0.9rem; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 12px 32px rgba(22, 22, 22, 0.12), 0 2px 6px rgba(22, 22, 22, 0.06); }
.africa__panel[hidden] { display: none; }
.africa__panel.is-anchored { position: absolute; z-index: 2; width: 264px; }
.africa__panel .africa__kicker { font-size: 0.7rem; padding-right: 2rem; }
.africa__panel .africa__name { font-size: 1.5rem; }
.africa__panel .africa__detail { font-size: 0.875rem; line-height: 1.5; }
.africa__panel .africa__detail:empty { display: none; }
.africa__panel.is-swapping > * { animation: none; }
.africa__panel.is-swapping { animation: africa-pop 0.22s var(--ease-out) both; }
@keyframes africa-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .africa__panel.is-swapping { animation: none; } }
.africa__close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--color-muted); cursor: pointer; }
.africa__close:hover { color: var(--color-text); }
.africa__photo { margin-top: 0.5rem; }
.africa__photo img { border-radius: var(--radius-sm); }
.africa__photo--tall img { width: 100%; height: auto; max-height: none; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 100%; }
.africa__london-hit { fill: transparent; pointer-events: all; cursor: pointer; }
.africa__chip--home { border-color: var(--color-text); }

.africa__photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.2rem 0.75rem; }
.africa__next { min-height: 44px; padding: 0 0.2rem; border: 0; background: none; font: inherit; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--color-accent); cursor: pointer; }

/* Landing: reading paths by time available */
.time-paths__title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin: 0;
}

.preview-card__time {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

/* Cookie consent banner (only shown once an analytics ID is set) */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 18px;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(22, 22, 22, 0.12);
}

.consent__text {
  flex: 1 1 260px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.consent__actions {
  display: flex;
  gap: 8px;
}

.consent__reopen {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Field note: a watercolour and two lines, between panels */
.fieldnote {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  max-width: 54rem;
  margin: clamp(2.5rem, 7vw, 5rem) auto 0;
}

@media (min-width: 720px) {
  .fieldnote {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  }
}

.fieldnote__img {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin: 0 auto;
  border-radius: 1.25rem;
  transform: rotate(-1.5deg);
  transition: transform 0.6s var(--ease-out);
}

.fieldnote:hover .fieldnote__img {
  transform: rotate(0deg) scale(1.02);
}

.fieldnote__kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.fieldnote__line {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.fieldnote__text {
  color: var(--color-muted, #5b6470);
}

/* --------------------------------------------------------------------------
   Reduced motion: everything is visible and static
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
