/* ==========================================================================
   HYPHA INC. — Page layout (index.html)
   Builds on design_system.css tokens; no new colours or type sizes here.
   ========================================================================== */

/* ---- Nav --------------------------------------------------------------- */
.nav__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text);
}
.nav__logo { height: 66px; width: auto; transition: rotate var(--dur-slow) var(--ease-organic); }
@media (min-width: 768px) { .nav__logo { height: 66px; } }
.nav__brand:hover .nav__logo { rotate: -3deg; }
.nav__inner { min-height: 5.25rem; }
.nav__logo path, .footer__logo path { fill: currentColor; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.lang-toggle {
  min-width: 44px;
  height: 44px;
  padding-inline: 0.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-label);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-wide);
  color: var(--color-text);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.lang-toggle:hover { background: var(--btn-secondary-bg-hover); }

.nav__cta { display: none; margin-left: var(--space-2xs); }
@media (min-width: 640px) { .nav__cta { display: inline-flex; } }

/* Mobile menu */
.nav__menu {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.nav__menu-bars,
.nav__menu-bars::before {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__menu-bars { position: relative; transform: translateY(-3px); }
.nav__menu-bars::before { content: ""; position: absolute; top: 6px; left: 0; }
.nav__menu[aria-expanded="true"] .nav__menu-bars { transform: translateY(0) rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__menu-bars::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 959px) {
  .nav__links {
    position: absolute;
    inset: 100% 0 auto 0;
    display: grid;
    gap: 0;
    padding: var(--space-2xs) var(--gutter) var(--space-l);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    font-size: var(--fs-h4);
    transform-origin: top;
    transition: opacity var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out),
                visibility 0s linear var(--dur-base);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
  }
  .nav__links.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }
  .nav__links a {
    padding-block: var(--space-s);
    border-bottom: 1px solid var(--color-line);
    background: none;
  }
}
@media (min-width: 960px) {
  .nav__menu { display: none; }
  .nav__links { display: flex; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  min-height: min(56rem, calc(100svh - 5.25rem));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1rem + 4vw, 5rem) clamp(3rem, 1.5rem + 4vw, 5.5rem);
}
.hero__inner { position: relative; z-index: 2; }
.hero__title { margin-top: var(--space-m); }
.hero__foot {
  display: grid;
  gap: var(--space-l);
  margin-top: var(--space-l);
  max-width: 37rem;
}
/* Desktop: promise on the left, action on the right — all above the fold */
@media (min-width: 1024px) {
  .hero__foot {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 6rem);
    align-items: start;
    max-width: 62rem;
  }
  .hero__foot .hero__lead { grid-row: span 2; }
  .hero__proof { margin-top: var(--space-xl); }
}
.hero__lead { color: var(--color-text); }
.hero__lead strong, .t-lead strong { font-weight: var(--fw-semibold); }

/* One obvious action, one quiet alternative, one handwritten nudge */
.hero__action {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s) var(--space-l);
}
.hero__secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
}
.hero__note {
  position: absolute;
  top: calc(100% + 0.1rem);
  left: 12.5rem;
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  color: var(--color-accent-ink);
  pointer-events: none;
}
.hero__note-arrow { width: 64px; color: currentColor; }
.hero__note span {
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(0.4em);
}
@media (max-width: 639px) { .hero__note { display: none; } }

/* Social proof in the same glance as the CTA */
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s) var(--space-m);
  margin-top: var(--space-s);
  padding-top: var(--space-m);
  border-top: 1px solid var(--color-line);
}
.hero__proof p { max-width: 26ch; margin: 0; line-height: 1.45; }
.hero__proof-logos { display: flex; align-items: center; gap: 0.9rem; list-style: none; padding: 0; }
.hero__proof-logos img { height: 20px; width: auto; filter: var(--logo-filter); opacity: 0.7; }

.hero__art {
  position: absolute;
  z-index: 0;
  top: 0;
  right: calc(var(--gutter) * -1);
  width: min(56vw, 52rem);
  height: 100%;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.hero__art > div { width: 100%; }
.hero__ink { color: var(--color-text-faint); opacity: 0.8; }
/* Follows the pointer a few pixels, like hyphae leaning toward light */
.hero__pointer {
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--pr, 0deg));
  transform-origin: 100% 60%;
  transition: transform 1.6s var(--ease-out);
}

.hero__chat {
  position: absolute;
  z-index: 3;
  right: calc(var(--gutter) + 2vw);
  bottom: clamp(3rem, 12vh, 8rem);
  animation-delay: 2.6s, 4s;   /* after the headline has landed */
}
.hero__chat[hidden] { display: none; }

.chat-card__head > div { flex: 1; min-width: 0; }
.chat-card__name { font-weight: var(--fw-semibold); line-height: 1.2; }
.chat-card__status { font-size: 0.6875rem; }
.chat-card__avatar { color: var(--brand-paper); }
.chat-card__iso { width: 20px; height: 20px; }
.chat-card__iso path { fill: currentColor; }
.chat-card__close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -6px -6px 0 0;
  border-radius: 50%;
  color: var(--color-text-muted);
}
.chat-card__close:hover { background: var(--btn-secondary-bg-hover); color: var(--color-text); }
.chat-card__reply {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  min-height: 40px;
  margin-top: var(--space-xs);
  font-weight: var(--fw-medium);
  text-decoration: none;
  color: var(--color-accent-ink);
}
.chat-card__reply:hover { text-decoration: underline; text-underline-offset: 0.2em; }

@media (max-width: 1279px) {
  /* Below wide desktop the card joins the flow under the CTAs instead of floating over them */
  .hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero__art { width: 100vw; right: -30vw; opacity: 0.55; }
  .hero__chat {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: flex-start;
    margin: var(--space-2xl) var(--gutter) 0;
  }
}

/* ---- Clients ----------------------------------------------------------- */
.clients__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-l);
  margin-bottom: var(--space-l);
}
.clients__note { margin: 0; }
.logo-cloud { list-style: none; padding: 0; }
/* 29 clients + 1 invitation = 30 cells: full rows at 3, 6 and 10 columns */
.logo-cloud { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 640px)  { .logo-cloud { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1200px) { .logo-cloud { grid-template-columns: repeat(10, 1fr); } }
.logo-cloud__item { aspect-ratio: 16 / 10; padding: var(--space-s); overflow: hidden; }
.logo-cloud__item img {
  max-height: 2.5rem;
  max-width: 86%;
  transition: opacity var(--dur-base) var(--ease-out), scale var(--dur-slow) var(--ease-organic);
}
.logo-cloud__item:hover img { scale: 1.08; }
/* Solid-disc emblems (UMI) read heavier than wordmarks: scale them down */
.logo-cloud__item img[src*="umi"] { max-height: 1.9rem; opacity: 0.5; }

.logo-cloud__cta { padding: 0; background: var(--color-bg-sunk); }
.logo-cloud__cta a {
  display: grid;
  place-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: var(--fw-light);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  transition: background-color var(--dur-base) var(--ease-out);
}
.logo-cloud__cta .t-key { display: block; font-size: 1.125rem; }
.logo-cloud__cta a:hover { background: color-mix(in srgb, var(--brand-ice-green) 28%, transparent); }

/* ---- Manifesto --------------------------------------------------------- */
.manifesto__body {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-xl);
  max-width: 40rem;
  margin-left: auto;
}
@media (min-width: 1024px) {
  .manifesto__body { grid-template-columns: 1fr 1fr; gap: var(--space-xl); max-width: none; margin-left: 12%; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--space-xl) var(--gutter);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-line);
}
.stats .stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stats .stat:nth-child(1) { --color-mark: var(--color-mark-digital); }
.stats .stat:nth-child(2) { --color-mark: var(--color-mark-olive); }
.stats .stat:nth-child(3) { --color-mark: var(--color-gold); }
.stats .stat__value { font-size: var(--fs-h1); }
.stats dd { margin: 0; }

/* ---- Services ---------------------------------------------------------- */
.service__head { align-items: end; margin-bottom: var(--space-2xl); }
.service__title { margin-top: var(--space-m); }
.service__copy { display: grid; gap: var(--space-l); }
.service__list li { padding-block: 0.35rem; border-bottom: 1px solid var(--color-line); }
@media (max-width: 767px) {
  .service--reverse .service__intro { order: -1; }
}

/* Stage & plates — heavy illustrated moment */
.stage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  align-items: start;
  min-height: clamp(26rem, 40vw, 44rem);
}
/* Flat, printed tones — no gradients. Texture comes from the grain. */
.stage { perspective: 1400px; }
.stage--strategy { background-color: var(--color-bg-sunk); }
.stage--media { background-color: var(--brand-tactical-green); }
:root[data-theme="dark"] .stage--media { background-color: #24302A; }

.panel { border-radius: var(--radius-m); }
/* Panels sit slightly askew, like prints pinned to a board, and lean with the pointer */
.stage [data-parallax] {
  transform: translate3d(0, var(--parallax, 0px), 0) rotate(var(--rot, 0deg))
             rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform 0.9s var(--ease-out);
}
.plate { margin: 0; padding: var(--space-m); background: var(--color-surface); }
.plate__cap {
  display: flex;
  justify-content: space-between;
  gap: var(--space-s);
  margin-top: var(--space-s);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-line);
}

@media (max-width: 479px) { .plate__cap > [aria-hidden] { display: none; } }

.plate--topo  { grid-column: 1 / 8;  grid-row: 1; }
.plate--topo .ink { color: var(--color-text-muted); aspect-ratio: 560 / 440; }
.stage--strategy .ui-card { grid-column: 7 / 12; grid-row: 1; margin-top: 20%; z-index: 2; }
.plate--coast { grid-column: 9 / 13; grid-row: 1; margin-top: 78%; margin-right: -8%; z-index: 3; max-width: 17rem; justify-self: end; }
.plate--coast .ink { max-height: 22rem; }

.plate--burst { grid-column: 2 / 7; grid-row: 1; z-index: 1; }
.plate--burst .ink { color: var(--color-olive); }
.storyboard { grid-column: 6 / 13; grid-row: 1; margin: 12% 0 0; padding: var(--space-m); background: var(--color-surface); z-index: 2; }
.stage--media .ui-card--calendar { grid-column: 1 / 5; grid-row: 1; margin-top: 88%; z-index: 3; }

@media (min-width: 768px) and (max-width: 1023px) {
  .plate--coast { display: none; }
  .stage--strategy .ui-card { grid-column: 7 / 13; margin-top: 14%; }
  .stage--media .ui-card--calendar { grid-column: 1 / 6; margin-top: 70%; }
}
@media (max-width: 767px) {
  .stage { display: flex; flex-direction: column; gap: var(--space-m); }
  .stage .panel { margin: 0 !important; max-width: none; width: 100%; }
  .stage .panel:nth-child(2) { width: 88%; align-self: flex-end; margin-top: -3rem !important; }
  .plate--coast { display: none; }
}

/* UI cards drawn in the brand system (illustrative, not screenshots) */
.ui-card { padding: var(--space-m); font-size: var(--fs-small); }
.ui-card__title { display: flex; align-items: center; gap: 0.6rem; font-weight: var(--fw-semibold); margin-bottom: var(--space-s); }
.ui-card__rows { list-style: none; padding: 0; }
.ui-card__rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-s);
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text-muted);
}
.ui-tick { font-size: 0.75rem; font-weight: var(--fw-semibold); color: var(--color-accent-ink); }
.ui-pill {
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--color-line-strong);
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.ui-pill--done { background: var(--brand-ice-green); border-color: transparent; color: var(--brand-ink); }
.ui-card__chart { margin-top: var(--space-m); }
.ui-card__chart .ink { color: var(--color-text); margin-top: var(--space-2xs); }
.ui-card__months { display: flex; justify-content: space-between; margin-top: 0.25rem; font-size: 0.625rem; }

.storyboard__cap { display: flex; justify-content: space-between; padding-bottom: var(--space-xs); border-bottom: 1px solid var(--color-line); }
.storyboard__grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-s);
  margin-top: var(--space-s);
}
.storyboard__grid li {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-s);
  background: var(--color-bg);
}
.storyboard__grid .ink { width: 58%; color: var(--color-text); }
.storyboard__grid span {
  position: absolute;
  top: 0.4rem;
  left: 0.5rem;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  color: var(--color-text-muted);
}

.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  font-family: var(--font-label);
  font-size: 0.625rem;
  text-align: center;
  color: var(--color-text-muted);
}
.cal i { aspect-ratio: 1; border-radius: 2px; border: 1px solid var(--color-line); }
.cal i.on { background: var(--color-mark-olive); border-color: transparent; }

/* ---- Method ------------------------------------------------------------ */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-xl) var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
.step {
  display: grid;
  align-content: start;
  gap: var(--space-2xs);
  padding-left: var(--space-m);
  border-left: 1px solid var(--color-line-strong);
}
.step__num {
  font-size: var(--fs-display);
  font-weight: var(--fw-thin);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2xs);
  transform-origin: 0 100%;
  transition: color var(--dur-base) var(--ease-out), scale 0.8s var(--ease-organic), font-weight 0.4s;
  scale: 0.82;
}
/* Growth: each step's rule fills with ink, then its number pops */
.step { position: relative; }
.step::after {
  content: "";
  position: absolute;
  left: -1px; top: 0;
  width: 2px;
  height: calc(var(--fill, 0) * 100%);
  background: var(--color-accent-ink);
}
.step.is-lit .step__num { color: var(--color-accent-ink); scale: 1; font-weight: var(--fw-light); }
.step .t-meta { text-transform: uppercase; letter-spacing: var(--ls-wide); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  /* staggered like the brand-book slide: not a tidy row */
  .step:nth-child(2) { margin-top: 4.5rem; }
  .step:nth-child(3) { margin-top: 1.5rem; }
  .step:nth-child(4) { margin-top: 0; }
  .step:nth-child(5) { margin-top: 7rem; }
}
.method__rule { margin-top: var(--space-2xl); }

/* ---- Verticals --------------------------------------------------------- */
.verticals__head { margin-bottom: var(--space-2xl); }
.verticals__head h2 { margin-top: var(--space-m); }
.grid-3 { list-style: none; padding: 0; }
.card__glyph { width: 64px; color: var(--color-text); margin-bottom: var(--space-s); transition: rotate var(--dur-slow) var(--ease-organic); transform-origin: 50% 100%; }
.card:hover .card__glyph { rotate: -6deg; }
.card .card__index { font-size: 0.8125rem; font-weight: var(--fw-semibold); letter-spacing: 0.04em; color: var(--color-accent-ink); font-variant-numeric: tabular-nums; }

/* ---- Principles (tabs) ------------------------------------------------- */
.principles__top { margin-bottom: var(--space-l); }
.principle {
  display: grid;
  gap: var(--space-xl);
  align-items: end;
  min-height: 16rem;
}
.principle:focus-visible { outline-offset: 8px; }
@media (min-width: 900px) {
  .principle { grid-template-columns: 1.6fr 1fr; gap: var(--space-3xl); }
}
.principle .quote { font-size: var(--fs-h2); line-height: 1.18; max-width: 26ch; font-weight: var(--fw-light); }
.principle .quote::before {
  content: "“";
  display: block;
  height: 0.45em;
  font-size: 2.4em;
  line-height: 1;
  color: var(--color-gold);
}
.principle__stat { padding-left: var(--space-m); border-left: 1px solid var(--color-line-strong); }

/* ---- Engagement card --------------------------------------------------- */
.engage__card {
  display: grid;
  gap: var(--space-2xl);
  background: var(--color-surface);
}
@media (min-width: 900px) {
  .engage__card { grid-template-columns: 1.1fr 1fr; align-items: center; }
}
.engage__intro { display: grid; gap: var(--space-m); }
.engage__cta { margin-top: var(--space-s); --cluster-gap: var(--space-xs); }
.phases { list-style: none; padding: 0; display: grid; }
.phase {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-s);
  padding-block: var(--space-m);
  border-top: 1px solid var(--color-line);
}
.phase:last-child { border-bottom: 1px solid var(--color-line); }
.phase__num {
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  color: var(--color-accent-ink);
  padding-top: 0.2rem;
}
.phase h3 { margin-bottom: 0.25rem; }

/* ---- Closing ----------------------------------------------------------- */
.closing { overflow: hidden; padding-block: var(--section-y) 0; }
.closing__title { margin-top: var(--space-l); }
.closing__title .line:nth-child(2) { padding-left: 12vw; }
.closing__art { margin-top: var(--space-s); color: var(--color-text-faint); }
.closing__art .ink { width: 100%; }
.closing__art .spore { fill: var(--color-accent-ink); }

/* ---- Footer ------------------------------------------------------------ */
.footer__grid {
  display: grid;
  gap: var(--space-xl) var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1.2fr 1fr 1fr; }
}
.footer__brand { display: grid; gap: var(--space-m); align-content: start; justify-items: start; max-width: 22rem; }
/* The isotype: a mycelium disc in mycelium gold, turning slowly as you scroll */
.footer__iso {
  display: block;
  width: clamp(96px, 8vw + 40px, 150px);
  aspect-ratio: 173.67 / 167.7;
  background-color: var(--color-gold);
  -webkit-mask: url("../graphics/logotype-svg/hypha_iso_black.svg") center / contain no-repeat;
  mask: url("../graphics/logotype-svg/hypha_iso_black.svg") center / contain no-repeat;
  rotate: calc(var(--spin, 0) * 1deg);
  transition: rotate 0.8s var(--ease-out), scale var(--dur-slow) var(--ease-organic);
}
.footer__brand:hover .footer__iso { scale: .9; }
.footer__logo { height: 66px; width: auto; color: var(--color-text); }
.footer__h { margin-bottom: var(--space-xs); text-transform: uppercase; letter-spacing: var(--ls-caps); }
.footer address { font-style: normal; line-height: 1.7; }
.footer__list { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.footer__list a { display: inline-block; padding-block: 0.3rem; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-s);
  margin-top: var(--space-3xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--color-line);
}

/* Give the floating launcher room at the very end of the page */
.footer { padding-bottom: calc(var(--space-xl) + 56px); }

/* ---- SME ---------------------------------------------------------------- */
.sme__grid { display: grid; gap: var(--space-3xl) var(--gutter); align-items: center; }
@media (min-width: 1024px) { .sme__grid { grid-template-columns: 1fr 1.05fr; gap: 6vw; } }
.sme__copy { display: grid; gap: var(--space-l); }
.sme__title { max-width: 16ch; }
.sme__points { list-style: none; padding: 0; margin-top: var(--space-s); }
.sme__points li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-s);
  padding-block: var(--space-m);
  border-top: 1px solid var(--color-line);
}
.sme__points li:last-child { border-bottom: 1px solid var(--color-line); }
.sme__points h3 { margin-bottom: 0.3rem; }
.sme__num {
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  line-height: 1.9;
  color: var(--color-text-muted);
  transition: color var(--dur-base) var(--ease-out);
}
/* Scrollytelling: the active point is in focus, the others step back */
.sme__points li { cursor: default; transition: opacity var(--dur-base) var(--ease-out); position: relative; }
.sme__points li::before {
  content: "";
  position: absolute;
  left: -1rem; top: var(--space-m); bottom: var(--space-m);
  width: 2px;
  background: var(--color-accent-ink);
  scale: 1 0;
  transform-origin: top;
  transition: scale 0.6s var(--ease-organic);
}
.sme__points li.is-active::before { scale: 1 1; }
.sme__points li.is-active .sme__num { color: var(--color-accent-ink); }
/* Inactive points step back by colour, not opacity, so text keeps its contrast */
.sme__points h3 { transition: color var(--dur-base) var(--ease-out); }
.js .sme__points:has(.is-active) li:not(.is-active) h3 { color: var(--color-text-muted); }
@media (min-width: 1024px) {
  .sme__grid { align-items: start; }
  .sme__art { position: sticky; top: 14vh; }
}

.sme__art { margin: 0; }
.net {
  position: relative;
  transform: perspective(1200px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform 1s var(--ease-out);
}
.net__svg { color: var(--color-text-muted); }
.net .node { fill: var(--color-bg); stroke: currentColor; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; transition: scale var(--dur-base) var(--ease-organic), fill var(--dur-base) var(--ease-out); }
.net .node--core { fill: var(--color-accent-ink); stroke: none; }
.net .core { color: var(--color-accent-ink); }
.net .node.is-active { scale: 1.8; fill: var(--brand-ice-green); }
.js .net.is-alive .node:not(.node--core) { animation: node-breathe 4.5s var(--ease-in-out) infinite; }
.js .net.is-alive .node:nth-of-type(2n) { animation-delay: -2.1s; }
.js .net.is-alive .node:nth-of-type(3n) { animation-delay: -3.3s; }
@keyframes node-breathe { 50% { scale: 1.35; } }

.net__labels { list-style: none; padding: 0; }
.net__label {
  position: absolute;
  translate: -50% -175%;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.3rem 0.55rem;
  background: var(--color-bg);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-s);
  color: var(--color-text);
  transition: background-color var(--dur-base) var(--ease-out), translate var(--dur-slow) var(--ease-organic);
}
.net__label--l { translate: -14% -175%; }
.net__label--r { translate: -86% -175%; }
.net__label:hover, .net__label.is-active { background: var(--brand-ice-green); color: var(--brand-ink); translate: var(--lx, -50%) -200%; }
.net__label--l:hover, .net__label--l.is-active { --lx: -14%; }
.net__label--r:hover, .net__label--r.is-active { --lx: -86%; }
.net__label--core {
  translate: -50% 150%;
  padding: 0 0.4rem;
  border: 0;
  background: var(--color-bg);
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
}
.net__label--core .t-key { font-size: 0.9375rem; }
.net__label--core:hover { background: var(--color-bg); translate: -50% 150%; }
.sme__cap { margin-top: var(--space-l); text-align: center; }
@media (max-width: 639px) {
  .net__label { font-size: 0.5625rem; padding: 0.2rem 0.4rem; }
  .net__label--core { display: none; }   /* collides with the ring labels at this size */
}

@media (prefers-reduced-motion: reduce) {
  .js .net.is-alive .node { animation: none; }
  .hero__pointer, .net, .stage [data-parallax] { transition: none; }
}

/* Taped panels let the tape overhang the edge */
.panel.tape { overflow: visible; }
/* …but the drawing itself stays on its paper */
.plate .ink { overflow: hidden; }

/* ==========================================================================
   PLAYFUL SCROLL LAYER
   ========================================================================== */

/* Headings rise word by word, with a little overshoot */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w__i { display: inline-block; }
.js [data-words] .w__i {
  translate: 0 110%;
  rotate: 7deg;
  transform-origin: 0 100%;
  transition: translate 0.9s var(--ease-organic), rotate 0.9s var(--ease-organic);
  transition-delay: calc(var(--w, 0) * 45ms);
}
.js [data-words].is-visible .w__i { translate: 0 0; rotate: 0deg; }

/* Eyebrow markers spin into place */
.js .eyebrow[data-reveal]::before { rotate: -135deg; scale: 0.3; transition: rotate 0.9s var(--ease-organic) 0.25s, scale 0.9s var(--ease-organic) 0.25s; }
.js .eyebrow[data-reveal].is-visible::before { rotate: 0deg; scale: 1; }

/* Logos pop in one after another */
.js .logo-cloud[data-pop] .logo-cloud__item > * {
  opacity: 0;
  translate: 0 14px;
  scale: 0.85;
  transition: opacity 0.5s var(--ease-out), translate 0.8s var(--ease-organic), scale 0.8s var(--ease-organic);
  transition-delay: calc(var(--i, 0) * 32ms);
}
.js .logo-cloud.is-visible .logo-cloud__item > * { opacity: 1; translate: 0 0; scale: 1; }
.js .logo-cloud.is-visible .logo-cloud__item img { opacity: 0.62; }
.js .logo-cloud.is-visible .logo-cloud__item:hover img { opacity: 1; }

/* Illustration panels drop onto their board like prints tossed on a table */
.js .stage [data-parallax] {
  transition: transform 0.9s var(--ease-out), opacity 0.6s var(--ease-out) var(--d, 0s),
              translate 1.1s var(--ease-organic) var(--d, 0s), rotate 1.1s var(--ease-organic) var(--d, 0s);
}
.js .stage [data-parallax]:nth-child(2) { --d: 0.15s; }
.js .stage [data-parallax]:nth-child(3) { --d: 0.3s; }
.js .stage:not(.is-visible) [data-parallax] { opacity: 0; translate: 0 90px; rotate: 6deg; }
.js .stage:not(.is-visible) [data-parallax]:nth-child(2n) { rotate: -7deg; translate: 40px 110px; }

/* Cards lean toward the pointer */
.card[data-tilt] {
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform 0.6s var(--ease-out), background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out),
              opacity var(--dur-reveal) var(--ease-out);
}

/* ==========================================================================
   INFOGRAPHICS
   ========================================================================== */

/* ---- SME network focus states ------------------------------------------ */
.net .net__link { transition: opacity var(--dur-base) var(--ease-out), stroke var(--dur-base) var(--ease-out), stroke-width var(--dur-base); }
.net.has-focus .net__link { opacity: 0.25; }
.net.has-focus .net__link.is-on { opacity: 1; stroke: var(--color-accent-ink); stroke-width: 2.4; }
.net .signal { fill: var(--color-accent-ink); opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.net.is-alive:not(.has-focus) .signal { opacity: 0.45; }
.net.has-focus .signal.is-on { opacity: 1; }
.net .node.is-on { scale: 1.6; fill: var(--brand-ice-green); stroke: var(--color-accent-ink); }
.net.has-focus .net__label:not(.is-on):not(.net__label--core) { border-color: var(--color-line); color: var(--color-text-muted); }
.net__label { transition: opacity var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out), translate var(--dur-slow) var(--ease-organic); }
.net__label.is-on { background: var(--brand-ice-green); color: var(--brand-ink); border-color: transparent; }

/* ---- Stats: timeline · dot grid · SDG ring ------------------------------ */
.stats .stat__value { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); }
.viz { display: block; }
.viz-years {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 12rem);
  padding-top: 14px;
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  line-height: 1;
}
.viz-years i { font-style: normal; position: relative; }
.viz-years i::before { content: ""; position: absolute; top: -12px; left: 0; width: 6px; height: 6px; margin-left: -2px; background: var(--color-line-strong); border-radius: 50%; }
.viz-years::before, .viz-years::after { content: ""; position: absolute; top: 4px; left: 0; height: 2px; }
.viz-years::before { right: 20%; background: var(--color-line); }
.viz-years::after { width: 0; background: var(--color-mark); transition: width 1.6s var(--ease-out) 0.4s; }
.is-visible .viz-years::after { width: calc(var(--p, 1) * 80%); }

.viz-dots { display: grid; grid-template-columns: repeat(10, 9px); gap: 4px; }
.viz-dots i {
  width: 9px; height: 9px;
  background: var(--color-line-strong);
  scale: 0;
  transition: scale 0.5s var(--ease-organic), background-color 0.4s;
  transition-delay: calc(var(--i) * 22ms + 0.3s);
}
.is-visible .viz-dots i { scale: 1; background: var(--color-mark); }
.viz-dots i:hover { scale: 1.6; }

.viz-ring { width: 72px; height: 72px; transition: rotate 1.2s var(--ease-organic); }
.viz-ring path { fill: var(--color-line); transition: fill 0.35s var(--ease-out); transition-delay: calc(var(--i) * 70ms + 0.3s); }
.is-visible .viz-ring path { fill: var(--color-mark); }
.stat:hover .viz-ring { rotate: 60deg; }

/* ---- Seasonal chart (strategy card) ------------------------------------ */
.chart__head { display: flex; justify-content: space-between; gap: var(--space-s); }
.chart__tip { color: var(--color-accent-ink); font-weight: var(--fw-semibold); }
.chart { cursor: crosshair; touch-action: pan-y; }
.chart .chart__rule { stroke: var(--color-line-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .chart__dot { fill: var(--color-accent-ink); }
.cal__days { display: contents; }
.cal i { transition: background-color 0.3s, scale 0.4s var(--ease-organic); }
.cal i:hover { scale: 1.25; background: var(--brand-ice-green); }

/* ---- Method growth line ------------------------------------------------ */
.steps-wrap { position: relative; }
.steps__line { display: none; }
@media (min-width: 1024px) {
  .steps-wrap { padding-top: 4.5rem; }
  .steps__line {
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3.5rem;
    overflow: visible;
    clip-path: inset(-10px calc((1 - var(--draw, 0)) * 100%) -10px 0);
  }
  .steps__line path { fill: none; stroke: var(--color-accent-ink); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
}

/* ---- Mexico map ---------------------------------------------------------- */
.mx__grid { display: grid; gap: var(--space-2xl) var(--gutter); align-items: center; }
@media (min-width: 1024px) { .mx__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 5vw; } }
.mx__copy { display: grid; gap: var(--space-l); }
.mx__legend { list-style: none; padding: 0; display: grid; font-size: var(--fs-small); }
.mx__legend li { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.6rem; border-bottom: 1px solid var(--color-line); }
.mx__legend strong { font-weight: var(--fw-semibold); }
.mx__sw { flex: none; width: 22px; display: inline-block; }
.mx__sw--hq { width: 10px; height: 10px; margin-inline: 6px; border-radius: 50%; background: var(--color-accent-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-ice-green) 45%, transparent); }
.mx__sw--line { height: 2px; background: var(--color-accent-ink); }
.mx__sw--dash { height: 0; border-top: 2px dashed var(--color-text-muted); }
.mx__count { display: flex; align-items: baseline; gap: 0.6rem; font-size: var(--fs-small); color: var(--color-text-muted); }
.mx__count-n {
  font-size: var(--fs-h1);
  font-weight: var(--fw-light);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-accent-ink);
  font-variant-numeric: tabular-nums;
}
.mx__count-n.is-bump { animation: bump 0.6s var(--ease-organic); }
@keyframes bump { 40% { scale: 1.35; } }

.mx__map { margin: 0; }
.mx__canvas { position: relative; aspect-ratio: 640 / 420; }
.mx__canvas > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mx__outline-svg { color: var(--color-text); }
.mx__hyphae { color: var(--color-accent-ink); }
.mx__hyphae .spore--end { fill: var(--color-accent-ink); }
.mx__sea {
  position: absolute;
  translate: -50% -50%;
  font-size: 0.6875rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
  pointer-events: none;
}
.mx__hq { position: absolute; pointer-events: none; }
.mx__hq-dot {
  position: absolute;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--color-accent-ink);
}
.mx__hq-dot::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent-ink);
  animation: hq-pulse 2.4s var(--ease-out) infinite;
}
@keyframes hq-pulse { from { scale: 0.5; opacity: 0.9; } to { scale: 2.4; opacity: 0; } }
.mx__hq-label {
  position: absolute;
  right: 12px; bottom: 8px;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}
.mx__hit {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  cursor: crosshair;
  border-radius: var(--radius-l);
  -webkit-tap-highlight-color: transparent;
}
.mx__plants { pointer-events: none; overflow: visible; }
.plant__hypha {
  fill: none;
  stroke: var(--color-accent-ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: grow 1.5s var(--ease-out) forwards;
}
@keyframes grow { to { stroke-dashoffset: 0; } }
.plant__seed { fill: var(--color-gold); transform-box: fill-box; transform-origin: center; animation: seed 0.6s var(--ease-organic) both; }
@keyframes seed { from { scale: 0; } }
.plant__ripple { fill: none; stroke: var(--color-gold); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ripple 1.4s var(--ease-out) forwards; }
@keyframes ripple { from { scale: 0.2; opacity: 1; } to { scale: 2.6; opacity: 0; } }

.mx__hint { margin-top: var(--space-s); font-size: var(--fs-small); color: var(--color-text-muted); display: flex; gap: 0.5rem; align-items: center; justify-content: center; }
.mx__hint-icon { color: var(--color-gold); }
.mx__hint[data-msg] > * { display: none; }
.mx__hint[data-msg]::after { content: attr(data-msg); color: var(--color-text); font-weight: var(--fw-medium); }
.mx__hint.is-nudge { animation: nudge 0.5s var(--ease-out); }
@keyframes nudge { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
.mx__toast {
  display: flex;
  width: fit-content;
  margin: var(--space-s) auto 0;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: var(--fs-small);
  animation: float-in 0.7s var(--ease-organic) both;
}
.mx__toast[hidden] { display: none; }
.mx__toast a {
  display: inline-flex; align-items: center; min-height: 36px;
  padding: 0 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--brand-ice-green);
  color: var(--brand-ink);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
@media (max-width: 639px) {
  .mx__sea { font-size: 0.5625rem; letter-spacing: 0.14em; }
  .mx__hq-label { display: none; }
}

.verticals__lead { margin-top: var(--space-m); max-width: 44ch; }

@media (prefers-reduced-motion: reduce) {
  .js [data-words] .w__i { translate: none; rotate: none; }
  .js .stage:not(.is-visible) [data-parallax] { opacity: 1; translate: none; rotate: none; }
  .js .logo-cloud[data-pop] .logo-cloud__item > * { opacity: 1; translate: none; scale: 1; }
  .mx__hq-dot::after { animation: none; }
  .net .signal { display: none; }
  .viz-dots i, .viz-ring path { transition: none; }
}
/* Spores on the map appear as the hyphae reach them */
.js .mx__hyphae .spore { opacity: clamp(0, calc(var(--draw, 0) * 3 - 2), 1); }
/* The Caribbean label sits at the map's east edge: grow it leftward */
.mx__sea--end { translate: -100% -50%; }
.mx { overflow-x: clip; }

/* ---- Blog & socials ----------------------------------------------------- */
.ext { display: inline-block; vertical-align: 0.05em; transition: translate var(--dur-base) var(--ease-organic); }
a:hover .ext { translate: 2px -2px; }
.nav__blog { display: none; }
@media (min-width: 1024px) {
  .nav__blog { display: inline-flex; }
  .nav__blog-link { display: none; }       /* the button covers it on desktop */
}
.footer__blog { justify-self: start; margin-top: var(--space-2xs); }
.footer__social { margin-top: var(--space-s); }
.socials { list-style: none; padding: 0; display: flex; gap: var(--space-2xs); }
.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  color: var(--color-text);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out), translate var(--dur-base) var(--ease-organic);
}
.social:hover { background: var(--btn-primary-bg); color: var(--btn-primary-text); border-color: transparent; translate: 0 -3px; }


/* ==========================================================================
   v3.2 — Map pins · Living network · SDG wheel · Instagram table
   ========================================================================== */

/* ---- Mexico: project pins ------------------------------------------------ */
.mx__sw--pin { width: 10px; height: 10px; margin-inline: 6px; border-radius: 50%; background: var(--color-gold); }
.mx__links { pointer-events: none; overflow: visible; }
.mx__links path {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 1.1s var(--ease-out), opacity 0.3s var(--ease-out);
}
.mx__links path.is-on { stroke-dashoffset: 0; opacity: 1; }
.mx__pins { position: absolute; inset: 0; margin: 0; padding: 0; pointer-events: none; z-index: 2; }
.mx__pin { position: absolute; width: 0; height: 0; }
.mx__pin.is-open { z-index: 3; }
.mx__pin-btn {
  position: absolute;
  left: -16px; top: -16px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.mx__pin-btn:focus-visible { border-radius: 50%; }
.mx__pin-dot {
  position: relative;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-bg-alt);
  transition: scale var(--dur-base) var(--ease-organic);
}
.mx__pin-dot::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gold);
  animation: hq-pulse 2.8s var(--ease-out) var(--d, 0s) infinite;
}
.mx__pin--hq .mx__pin-dot { background: var(--color-accent-ink); }
.mx__pin--hq .mx__pin-dot::after { border-color: var(--color-accent-ink); }
.mx__pin-btn:hover .mx__pin-dot, .mx__pin.is-open .mx__pin-dot { scale: 1.4; }
.mx__pin-label {
  position: absolute;
  top: 50%; left: 30px;
  translate: 0 -50%;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-bg-alt) 86%, transparent);
  color: var(--color-text);
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.mx__pin--l .mx__pin-label { left: auto; right: 30px; }
.mx__pin--hq .mx__pin-label,
.mx__pin-btn:hover .mx__pin-label,
.mx__pin.is-open .mx__pin-label { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
@media (max-width: 639px) {
  .mx__pin-label { opacity: 0; pointer-events: none; }
  .mx__pin.is-open .mx__pin-label, .mx__pin-btn:focus-visible .mx__pin-label { opacity: 1; }
}
.mx__card {
  position: absolute;
  z-index: 5;
  width: max-content;
  min-width: 190px;
  max-width: 250px;
  padding: 0.85rem 1rem 0.9rem;
  border-radius: var(--radius-l);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-float);
  pointer-events: auto;
  cursor: auto;
  animation: card-in 0.45s var(--ease-organic) both;
}
.mx__card[hidden] { display: none; }
@keyframes card-in { from { opacity: 0; translate: 0 8px; scale: 0.96; } }
.mx__card-city { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.5rem; margin: 0 0 0.5rem; font-size: 0.75rem; color: var(--color-text-muted); }
.mx__card-city strong { font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--color-text); }
.mx__card-list { display: grid; margin: 0; }
.mx__card-list li {
  display: flex; align-items: center; gap: 0.75rem;
  padding-block: 0.45rem;
  border-top: 1px solid var(--color-line);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
}
.mx__card-list img { flex: none; width: 60px; height: 26px; object-fit: contain; filter: var(--logo-filter); opacity: 0.85; }

/* ---- Forest band: a night-time section that keeps its palette in both themes */
.section--forest {
  --color-bg: #0C1714;
  --color-bg-alt: #0C1714;
  --color-surface: #14231F;
  --color-text: #F0EEE9;
  --color-text-muted: #B4BAB5;
  --color-text-faint: #8E968F;
  --color-line: rgba(240, 238, 233, 0.14);
  --color-line-strong: rgba(240, 238, 233, 0.32);
  --color-accent-ink: #88D8C4;
  --color-gold: #D2B075;
  --color-mark-olive: #7F9686;
  --color-focus: #88D8C4;
  --btn-primary-bg: #F0EEE9;
  --btn-primary-text: #141414;
  --btn-primary-bg-hover: #88D8C4;
  --btn-secondary-border: #F0EEE9;
  --btn-secondary-text: #F0EEE9;
  --btn-secondary-bg-hover: rgba(240, 238, 233, 0.08);
  --shadow-color: 0 0 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  color-scheme: dark;
}

/* ---- Living network ------------------------------------------------------ */
.live {
  --net-brand: #D2B075;   /* gold: brands and the ideas they send  */
  --net-spark: #E9CD92;
  --net-algo: #88D8C4;    /* ice green: algorithms                  */
  --net-device: #C3CCC6;  /* outline: devices                       */
  --net-person: #F0EEE9;  /* cloud: people                          */
  --net-love: #EBA08E;    /* warm rose: love coming back            */
  --net-line: #F0EEE9;
  overflow-x: clip;
}
.live__grid { display: grid; gap: var(--space-2xl) var(--gutter); align-items: center; }
@media (min-width: 1024px) { .live__grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 5vw; } }
.live__copy { display: grid; gap: var(--space-l); align-content: start; }
.live__legend { display: grid; margin: 0; border-top: 1px solid var(--color-line); }
.live__legend li { border-bottom: 1px solid var(--color-line); }
.live__key {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  width: 100%;
  padding: 0.8rem 0.4rem;
  text-align: left;
  font-size: var(--fs-small);
  line-height: 1.5;
  transition: background-color var(--dur-fast) var(--ease-out), padding var(--dur-base) var(--ease-organic);
}
.live__key strong { display: block; font-size: var(--fs-body); font-weight: var(--fw-semibold); }
.live__key strong + span { color: var(--color-text-muted); }
.live__key:hover, .live__key[aria-pressed="true"] { background: rgba(240, 238, 233, 0.05); padding-left: 0.9rem; }
.live__key[aria-pressed="true"] strong::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 0.5rem; vertical-align: 0.2em; border-radius: 50%; background: currentColor; }
.live__icon { width: 24px; height: 24px; margin-top: 1px; transition: scale var(--dur-base) var(--ease-organic); }
.live__key:hover .live__icon, .live__key[aria-pressed="true"] .live__icon { scale: 1.2; }
.live__icon--brand { color: var(--net-brand); }
.live__icon--algo { color: var(--net-algo); }
.live__icon--device { color: var(--net-device); }
.live__icon--person { color: var(--net-person); }
.live__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m) var(--space-l); }
.live__send-icon { color: var(--net-brand); transition: rotate var(--dur-slow) var(--ease-organic); }
[data-send]:hover .live__send-icon { rotate: 90deg; }
.live__readout { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-m); margin: 0; font-size: var(--fs-small); color: var(--color-text-muted); }
.live__readout b { font-size: var(--fs-h3); font-weight: var(--fw-light); color: var(--color-text); font-variant-numeric: tabular-nums; margin-right: 0.2rem; }
.live__figure { margin: 0; }
.live__stage { position: relative; width: 100%; max-width: 660px; margin-inline: auto; aspect-ratio: 1; touch-action: manipulation; }
.live__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.live__cap { margin-top: var(--space-s); display: flex; gap: 0.5rem; justify-content: center; align-items: center; text-align: center; color: var(--color-text-muted); }
.live__cap-icon { color: var(--net-brand); }

/* ---- SDG wheel ----------------------------------------------------------- */
.sdg { overflow-x: clip; }
.sdg__head { align-items: end; row-gap: var(--space-m); margin-bottom: var(--space-2xl); }
.sdg__intro { display: grid; gap: var(--space-m); }
.sdg__inds { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin: 0; }
.sdg__ind {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.6rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
}
.sdg__body { display: grid; gap: var(--space-2xl) var(--gutter); align-items: center; }
@media (min-width: 1024px) { .sdg__body { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 5vw; } }
.sdg__wheel { position: relative; width: min(100%, 500px); aspect-ratio: 1; margin-inline: auto; }
.sdg__ring { width: 100%; height: 100%; overflow: visible; }
.sdg__seg {
  transform-box: view-box;
  transform-origin: 200px 200px;
  transition:
    translate var(--dur-base) var(--ease-organic),
    opacity 0.6s var(--ease-out) calc(var(--i) * 55ms),
    scale 0.9s var(--ease-organic) calc(var(--i) * 55ms);
}
.sdg__seg path { fill: transparent; stroke: var(--color-line-strong); stroke-width: 1; transition: opacity var(--dur-fast) var(--ease-out); }
.sdg__seg text { font-family: var(--font-sans); font-size: 21px; font-weight: 700; fill: var(--color-text-faint); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.sdg__seg.is-on { cursor: pointer; }
.sdg__seg.is-on path { fill: var(--c); stroke: none; }
.sdg__seg.is-on text { fill: var(--ink); }
.sdg__seg.is-active, .sdg__seg.is-hover { translate: var(--ox) var(--oy); }
.sdg__seg.is-active path { stroke: var(--color-text); stroke-width: 2; }
.sdg__body.is-peeking .sdg__seg.is-on:not(.is-hover, .is-active) path { opacity: 0.5; }
.js .sdg__wheel[data-pop]:not(.is-visible) .sdg__seg { opacity: 0; scale: 0.72; }
.sdg__center { position: absolute; inset: 0; margin: 0; display: grid; place-content: center; justify-items: center; pointer-events: none; }
.sdg__n { font-size: clamp(3.5rem, 2.2rem + 5vw, 6.25rem); font-weight: var(--fw-thin); line-height: 0.9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.sdg__of { margin-top: 0.5rem; font-size: var(--fs-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--color-text-muted); }
.sdg__side { display: grid; gap: var(--space-m); }
.sdg__hint { color: var(--color-text-muted); }
.sdg__tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.sdg__tile {
  position: relative;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: var(--radius-s);
  background: var(--c);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  transition: translate var(--dur-base) var(--ease-organic), box-shadow var(--dur-fast) var(--ease-out);
}
.sdg__tile:hover, .sdg__tile.is-hover { translate: 0 -4px; }
.sdg__tile[aria-selected="true"] { translate: 0 -6px; box-shadow: 0 0 0 2px var(--color-bg-alt), 0 0 0 4px var(--color-text); }
.js .sdg__tiles[data-pop]:not(.is-visible) .sdg__tile { opacity: 0; translate: 0 14px; }
.js .sdg__tiles[data-pop] .sdg__tile { transition: translate 0.7s var(--ease-organic) calc(var(--i) * 40ms), opacity 0.5s var(--ease-out) calc(var(--i) * 40ms), box-shadow var(--dur-fast) var(--ease-out); }
.js .sdg__tiles[data-pop].is-settled .sdg__tile { transition-delay: 0s; }
.sdg__panel {
  padding: var(--space-l);
  border-radius: var(--radius-l);
  border-top: 4px solid var(--c);
  background: var(--color-surface);
  box-shadow: var(--shadow-m);
}
.sdg__panel[hidden] { display: none; }
.sdg__panel.is-entering { animation: panel-in var(--dur-slow) var(--ease-out) both; }
.sdg__goal { display: flex; align-items: center; gap: var(--space-s); margin-bottom: var(--space-m); }
.sdg__badge {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius-s);
  background: var(--c);
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: var(--fw-bold);
}
.sdg__goal h3 { margin: 0; }
.sdg__impact { display: grid; gap: var(--space-m); margin: 0; }
.sdg__impact dt { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; font-size: var(--fs-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--color-text-muted); }
.sdg__impact dt svg { flex: none; color: var(--color-text); }
.sdg__impact dd { margin: 0; max-width: 52ch; }
.sdg__source { color: var(--color-text-muted); }

/* ---- Instagram: prints on a table ---------------------------------------- */
.ig { overflow-x: clip; }
.ig__head { display: grid; gap: var(--space-l) var(--gutter); align-items: end; margin-bottom: var(--space-xl); }
@media (min-width: 1024px) { .ig__head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.ig__heading { display: grid; gap: var(--space-m); }
.ig__intro { display: grid; gap: var(--space-m); }
.ig__actions { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.ig__table { position: relative; margin: 0; }
.ig__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 9px 9px 0;
  border-radius: 2px;
  background: #FBFAF7;
  color: #2B2A27;
  text-align: left;
  box-shadow: 0 1px 2px rgb(30 26 20 / 0.12), 0 14px 30px -14px rgb(30 26 20 / 0.35);
  transition: box-shadow var(--dur-base) var(--ease-out), translate var(--dur-base) var(--ease-organic);
}
.ig__btn:focus-visible { outline-offset: 4px; border-radius: 2px; }
.ig__btn img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #E6E1D7; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.ig__print--wide .ig__btn img { aspect-ratio: 5 / 4; }
.ig__label { display: block; padding: 0.5rem 0.1rem 0.65rem; font-size: 0.8125rem; font-weight: var(--fw-medium); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig__btn::before {                     /* a strip of tape */
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  width: 64px; height: 20px;
  translate: -50% 0;
  rotate: calc(var(--r) * -1.4);
  background: rgba(214, 203, 178, 0.66);
  clip-path: polygon(2% 8%, 8% 0, 16% 10%, 24% 2%, 100% 4%, 97% 30%, 100% 55%, 96% 78%, 100% 100%, 12% 96%, 5% 100%, 0 70%, 3% 42%, 0 18%);
  z-index: 1;
}
.ig__hint { margin-top: var(--space-l); display: flex; gap: 0.5rem; justify-content: center; align-items: center; text-align: center; color: var(--color-text-muted); }
.ig__hint-icon { color: var(--color-gold); }
.ig__hint--touch { display: none; }

@media (min-width: 768px) {
  .ig__table { height: clamp(480px, 50vw, 680px); }
  .ig__print {
    position: absolute;
    left: var(--l); top: var(--t);
    width: 17%;
    z-index: var(--z, 1);
    transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(calc(var(--r) + var(--swing, 0deg)));
    transition: transform 0.55s var(--ease-organic), left 0.9s var(--ease-organic), top 0.9s var(--ease-organic);
  }
  .ig__print--wide { width: 21%; }
  .ig__print:hover, .ig__print:focus-within { z-index: 999; }
  .ig__print:hover { --swing: calc(var(--r) * -1); }
  .ig__print:hover .ig__btn { translate: 0 -8px; box-shadow: 0 2px 4px rgb(30 26 20 / 0.12), 0 30px 50px -18px rgb(30 26 20 / 0.45); }
  .ig__print.is-dragging { z-index: 1000; transition: left 0.9s var(--ease-organic), top 0.9s var(--ease-organic); }
  .ig__print.is-dragging .ig__btn { cursor: grabbing; translate: 0 -10px; box-shadow: 0 2px 4px rgb(30 26 20 / 0.12), 0 40px 60px -20px rgb(30 26 20 / 0.5); }
  .js .ig__table[data-pop]:not(.is-visible) .ig__print { opacity: 0; }
  .js .ig__table[data-pop].is-visible .ig__print { animation: deal 1s var(--ease-organic) calc(var(--i) * 75ms) backwards; }
}
@media (min-width: 768px) and (pointer: fine) {
  .ig__btn { cursor: grab; }
}
@keyframes deal {
  from { left: 41%; top: 14%; opacity: 0; transform: rotate(calc(var(--r) * -3)) scale(0.9); }
  30% { opacity: 1; }
}
@media (max-width: 767px) {
  .ig__table {
    display: flex;
    gap: var(--space-m);
    margin-inline: calc(var(--gutter) * -1);
    padding: var(--space-m) var(--gutter) var(--space-l);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .ig__table::-webkit-scrollbar { display: none; }
  .ig__print { flex: none; width: min(64vw, 270px); scroll-snap-align: start; rotate: calc(var(--r) * 0.5); align-self: center; }
  .ig__print--wide { width: min(80vw, 330px); }
}
@media (max-width: 767px), (pointer: coarse) {
  .ig__hint--fine { display: none; }
  .ig__hint--touch { display: inline; }
}

/* Lightbox */
html:has(.igbox[open]) { overflow: hidden; }
.igbox {
  margin: auto;                        /* the global reset removes the UA centring */
  width: min(960px, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-float);
  overflow: auto;
}
.igbox[open] { animation: box-in 0.5s var(--ease-organic); }
.igbox::backdrop { background: rgb(10 12 11 / 0.72); }
@keyframes box-in { from { opacity: 0; translate: 0 16px; scale: 0.97; } }
.igbox__inner { position: relative; display: grid; }
@media (min-width: 768px) { .igbox__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.igbox__figure { margin: 0; display: grid; place-items: center; background: #101211; }
.igbox__img { width: 100%; height: auto; max-height: min(76dvh, 720px); object-fit: contain; transition: opacity var(--dur-fast) var(--ease-out); }
.igbox__img.is-swapping { opacity: 0; }
@media (max-width: 767px) { .igbox__img { max-height: 52dvh; } }
.igbox__text { display: grid; align-content: center; justify-items: start; gap: var(--space-m); padding: var(--space-xl) var(--space-l) var(--space-l); }
.igbox__text h3 { margin: 0; }
.igbox__caption { margin: 0; color: var(--color-text-muted); }
.igbox__nav { display: flex; align-items: center; gap: var(--space-s); margin-top: var(--space-2xs); }
.igbox__btn, .igbox__close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--color-line-strong);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.igbox__btn:hover, .igbox__close:hover { background: var(--btn-primary-bg); color: var(--btn-primary-text); border-color: transparent; }
.igbox__btn:focus-visible, .igbox__close:focus-visible { border-radius: 50%; }
.igbox__close { position: absolute; top: 0.75rem; right: 0.75rem; background: var(--color-surface); }
.igbox__count { font-variant-numeric: tabular-nums; color: var(--color-text-muted); }

@media (prefers-reduced-motion: reduce) {
  .mx__pin-dot::after { animation: none; }
  .mx__links path { transition: none; }
  .sdg__seg, .sdg__tile { transition: none !important; }
  .js .sdg__wheel[data-pop]:not(.is-visible) .sdg__seg, .js .sdg__tiles[data-pop]:not(.is-visible) .sdg__tile { opacity: 1; scale: 1; translate: none; }
  .js .ig__table[data-pop] .ig__print { opacity: 1; animation: none !important; }
  .ig__print { transition: none !important; }
  .igbox[open], .mx__card { animation: none; }
}
