/* =====================================================================
   Zuha Asif — portfolio
   One visual world: the black ground of the botanical painting opens onto
   a warm paper page; everything after is drawn in the painting's palette.
   ===================================================================== */

:root {
  --paper: #f4eee3;
  --paper-deep: #ebe2d2;
  --ink: #1d1a17;
  --ink-soft: #3b3530;
  --graphite: #6e6e6e;
  --black: #000000;
  --cream: #f6efe0;

  --inv: #b42f12;
  --qual: #00718a;
  --cost: #426d34;
  --saffron: #fdc44b;
  --teal: #107c81;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 3.4vw, 64px);
  --maxw: 1680px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.25, 1.2);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-variation-settings: "opsz" 14, "wdth" 100;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
}

/* paper tooth over the whole page (static, rasterised once) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--saffron);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 4px;
}

.display {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

/* ============================================================ topbar */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  color: var(--cream);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.01em;
  transition: color 0.5s ease;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar[data-tone="ink"] { color: var(--ink); }
.topbar { transition: color 0.5s ease, transform 0.45s var(--ease-out), background-color 0.3s ease; }
.topbar[data-hidden="true"] { transform: translateY(-110%); }
.topbar[data-past="true"][data-hidden="false"] { background-color: var(--paper); }
.topbar__mark {
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.topbar[data-past="true"] .topbar__mark { opacity: 1; transform: none; }
.topbar nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.topbar nav a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease-out);
}
.topbar nav a:hover { background-size: 100% 1px; }

/* ============================================================== hero */

.hero {
  position: relative;
  height: 100svh;
  background: var(--black);
  color: var(--cream);
}
.js-hero .hero {
  height: calc(100svh + var(--hero-scroll, 110svh));
  background: transparent;
}
.hero__pin {
  position: relative;
  height: 100svh;
  overflow: hidden;
}
.js-hero .hero__pin {
  position: sticky;
  top: 0;
  background: var(--black);
}
.hero-still .hero { height: 100svh; }
.hero-still .about { margin-top: 0; }
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}
.js-hero .hero__canvas { display: block; }

.hero__art {
  position: absolute;
  margin: 0;
  right: var(--gutter);
  top: clamp(64px, 9svh, 96px);
  width: min(74vw, calc((100svh - clamp(64px, 9svh, 96px) - max(64px, 8.5svh)) * 1.439));
  aspect-ratio: 4720 / 3280;
}
.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.js-hero .hero__art img { visibility: hidden; }

.hero__name {
  position: absolute;
  left: var(--gutter);
  /* baseline of ASIF sits exactly on the painting's lower edge */
  bottom: calc(max(64px, 8.5svh) - 0.06em);
  margin: 0;
  font-weight: 600;
  font-size: min(15vw, 25svh);
  line-height: 0.8;
  letter-spacing: -0.035em;
  color: var(--cream);
}
.hero__line { display: block; white-space: nowrap; }
.probe {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: baseline;
}
.js-hero .hero__name { color: transparent; }

.hero__role,
.hero__cue {
  position: absolute;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 300;
  color: var(--cream);
  opacity: calc(1 - var(--hero-p, 0) * 6);
}
.hero__role {
  left: var(--gutter);
  top: clamp(64px, 9svh, 96px);
  max-width: 15ch;
}
.hero__cue {
  right: var(--gutter);
  bottom: 3.2svh;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__cue::before {
  content: "";
  width: 1px;
  height: 34px;
  background: currentColor;
  transform-origin: top;
  animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.js-hero .hero__role,
.js-hero .hero__cue { opacity: 0; transition: opacity 0.9s ease; }
.js-hero.hero-ready .hero__role,
.js-hero.hero-ready .hero__cue { opacity: calc(1 - var(--hero-p, 0) * 6); transition: none; }

@media (max-width: 760px) {
  .hero {
    --art-top: 24svh;
    --name-size: min(27vw, 19svh);
  }
  .hero__art {
    left: 0;
    right: 0;
    width: 100%;
    top: var(--art-top);
  }
  /* the name bites into the painting's lower edge, as on desktop */
  .hero__name {
    font-size: var(--name-size);
    bottom: auto;
    top: calc(var(--art-top) + 100vw / 1.439 - var(--name-size) * 0.5);
  }
  .hero__role {
    top: auto;
    bottom: calc(4svh + 40px);
    max-width: 22ch;
  }
  .hero__cue { bottom: 4svh; }
}

/* ============================================================= about */

.about {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 14vh, 180px) var(--gutter) clamp(80px, 12vh, 160px);
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: clamp(40px, 6vh, 72px);
}
.js-hero .about { margin-top: calc(var(--about-overlap, 55svh) * -1); }

.about__title {
  grid-column: 1 / span 8;
  margin: 0;
  font-size: clamp(52px, 5.6vw, 80px);
}
.about__lead {
  grid-column: 4 / span 9;
  margin: 0;
  font-size: clamp(28px, 2.9vw, 46px);
  line-height: 1.16;
  font-weight: 300;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.about__lead strong { font-weight: 600; }
.about__body {
  grid-column: 4 / span 4;
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}
.about__body + .about__body { grid-column: 8 / span 4; }
.about__body p { margin: 0 0 1em; }
.hl { font-weight: 500; white-space: nowrap; }
.hl--inv { color: var(--inv); }
.hl--qual { color: var(--qual); }
.hl--cost { color: var(--cost); }

.about__studio {
  grid-column: 2 / span 10;
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(16px, 4vh, 48px);
}
.about__studio p {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.3;
  max-width: 34ch;
}
.about__studio em { font-style: normal; font-weight: 600; }
.fragment {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  transform: rotate(-7deg);
}
.fragment__img {
  width: 100%;
  height: 100%;
  background: #000 url("../assets/art/botanical-1100.jpg") no-repeat;
  background-size: 520% auto;
  background-position: 41.5% 5%;
  clip-path: var(--torn);
}
.fragment.reveal { opacity: 0; transform: translateY(-40px) rotate(14deg); transition: opacity 0.6s ease, transform 1.4s var(--ease-spring); }
.fragment.reveal.is-seen { opacity: 1; transform: rotate(-7deg); }
.fragment figcaption {
  position: absolute;
  left: 4%;
  bottom: -30px;
  font-size: 13px;
  color: var(--graphite);
  transform: rotate(7deg);
  white-space: nowrap;
}

.reveal-line {
  display: block;
  clip-path: inset(0 100% -0.2em 0);
  transition: clip-path 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.is-seen .reveal-line,
.is-seen.reveal-line { clip-path: inset(0 0 -0.2em 0); }

@media (max-width: 900px) {
  .about__title { grid-column: 1 / -1; }
  .about__lead { grid-column: 1 / -1; }
  .about__body,
  .about__body + .about__body { grid-column: 1 / -1; }
  .about__studio { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .fragment { width: min(220px, 60vw); }
}

/* ============================================================== work */

.work {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 8vh, 120px) 0 clamp(80px, 14vh, 200px);
}
.work__title {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-size: clamp(48px, 5.6vw, 80px);
}
.work__title span { display: block; max-width: 17ch; }
.work__title .soft { font-weight: 300; color: var(--ink-soft); }

.thread {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.chapter {
  position: relative;
  z-index: 2;
}
/* the workflow is a full-bleed panorama that pins while the camera pans */
.chapter__pin { position: relative; }
.chapter__sticky {
  position: relative;
  overflow: hidden;
  padding: 0 var(--gutter);
}
.is-pinned .chapter__sticky {
  position: sticky;
  padding: 0;
}
.is-pinned .flow__art svg { will-change: transform; }

.chapter__head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 4vh, 48px) var(--gutter) clamp(8px, 3vh, 40px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
}
.chapter__text { position: relative; }
.chapter--inventory .chapter__text { grid-column: 7 / span 5; }
.chapter--quality .chapter__text { grid-column: 2 / span 5; }
.chapter--costing .chapter__text { grid-column: 8 / span 5; }

.chapter__node {
  position: absolute;
  left: -58px;
  top: 6px;
  width: 36px;
  height: 36px;
}
.chapter--quality .chapter__node { left: auto; right: -58px; }
.chapter__node svg { width: 100%; height: 100%; overflow: visible; }
.chapter__node .blot { fill: var(--ink); transition: fill 0.6s ease; }
.chapter__node .bloom { transform-origin: 50% 50%; transform: scale(0) rotate(-40deg); transition: transform 0.9s var(--ease-spring); }
.chapter.is-active .chapter__node .blot { fill: var(--accent); }
.chapter.is-active .chapter__node .bloom { transform: none; }

.chapter__title {
  margin: 0;
  font-size: clamp(28px, 2.7vw, 40px);
  font-weight: 600;
  color: var(--graphite);
  line-height: 1.1;
}
.chapter__headline {
  margin: 0.55em 0 0;
  font-size: clamp(30px, 2.7vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--accent);
  max-width: 14ch;
}
.chapter__intro {
  margin: 1.1em 0 0;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.45;
  max-width: 34em;
}
.chapter--inventory { --accent: var(--inv); }
.chapter--quality { --accent: var(--qual); }
.chapter--costing { --accent: var(--cost); }

.chapter .reveal-line { transition-duration: 1.2s; }

/* ------------------------------------------------------------ flows */

.flow {
  margin: 0;
  position: relative;
}
.flow__art svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
svg text {
  font-family: var(--font);
  font-variation-settings: "opsz" 14, "wdth" 100;
}
.flow .lbl {
  font-size: calc(var(--lbl, 19) * 1px);
  font-weight: 300;
  fill: var(--ink);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.flow .lbl.is-in { opacity: 1; }
.flow .zone {
  font-size: calc(var(--lbl, 19) * 1.35px);
  font-weight: 600;
  fill: var(--graphite);
  opacity: 0;
  transition: opacity 0.8s ease;
}
.flow .zone.is-in { opacity: 1; }
.flow .zone-m { font-weight: 600; fill: var(--graphite); }
.flow .formula.is-in { opacity: 1; }
.flow .formula { opacity: 0; transition: opacity 0.6s ease; }

.chapter + .chapter { margin-top: clamp(48px, 10vh, 140px); }
.work__title + .chapter { margin-top: clamp(80px, 16vh, 220px); }
.scene .tiny { font-size: 9px; font-weight: 500; letter-spacing: 0.04em; }
.scene .count-n { font-size: 9px; font-weight: 600; }
.scene .coin-glyph { font-size: 5.5px; font-weight: 700; }
.scene .doc-head { font-size: 14px; font-weight: 700; }
.scene .calc-digits { font-size: 8px; font-weight: 600; }
.flow .formula {
  font-size: calc(var(--lbl, 19) * 0.92px);
  font-weight: 300;
  fill: var(--ink-soft);
}

.stem { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.node-dot { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform 0.6s var(--ease-spring); }
.node-dot.is-in { transform: none; }
.leaflet { transform-box: fill-box; transform-origin: 0% 100%; transform: scale(0); transition: transform 0.8s var(--ease-spring); }
.leaflet.is-in { transform: none; }

/* ------------------------------------------- scene reveal: piece by piece */

.scene .pc {
  opacity: 0;
  transform: translateY(14px) scale(0.9) rotate(-2deg);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition:
    opacity 0.45s ease calc(var(--i) * 110ms),
    transform 0.8s var(--ease-spring) calc(var(--i) * 110ms);
}
.scene .pc.drive { transform: translateX(-36px); }
.scene .pc.pop { transform: scale(0.2); transform-origin: 50% 50%; }
.scene.is-in .pc { opacity: 1; transform: none; }

.scene .ol {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s ease calc(var(--i) * 110ms + 200ms);
}
.scene.is-in .ol { stroke-dashoffset: 0; }

.scene .tick,
.scene .chart-line {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s ease calc(var(--i) * 110ms + 700ms + var(--c, 0) * 160ms);
}
.scene.is-in .tick,
.scene.is-in .chart-line { stroke-dashoffset: 0; }
.scene .chart-line { transition-duration: 1.6s; }
.scene .bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);
  transition: transform 0.8s var(--ease-spring) calc(700ms + var(--c) * 120ms);
}
.scene.is-in .bar { transform: none; }

/* ---------------------------------------- idle life (only while live) */

.flow:not(.is-live) .scene *,
.flow:not(.is-live) .scene { animation-play-state: paused !important; }

.spin { transform-box: fill-box; transform-origin: center; animation: spin 2.8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

.scene .drive { animation: idle 0.9s ease-in-out infinite alternate; }
@keyframes idle { to { translate: 0 -0.8px; } }

.lift { animation: lift 3.6s var(--ease-out) infinite alternate; }
@keyframes lift { 0%, 20% { translate: 0 0; } 80%, 100% { translate: 0 -26px; } }

.beam { animation: beam 1.6s steps(2, jump-none) infinite; }
@keyframes beam { 0%, 40% { opacity: 1; } 50%, 100% { opacity: 0.15; } }

.count { opacity: 0; animation: count 4.8s ease infinite; animation-delay: calc(var(--c) * 0.55s); }
.count { transform-box: fill-box; transform-origin: center; }
@keyframes count {
  0% { opacity: 0; scale: 0.4; }
  8%, 70% { opacity: 1; scale: 1; }
  80%, 100% { opacity: 0; scale: 0.9; }
}

.bob { animation: bob 0.7s ease-in-out infinite alternate; }
@keyframes bob { to { translate: 0 -1.6px; } }

.float { animation: float 3.4s ease-in-out infinite alternate; }
@keyframes float { from { translate: 0 2px; } to { translate: 0 -3px; } }

.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 3.2s ease-in-out infinite alternate; }
@keyframes sway { from { rotate: -3deg; } to { rotate: 3deg; } }

.smoke { animation: smoke 4.2s ease-in-out infinite; }
@keyframes smoke {
  0% { translate: 0 6px; opacity: 0; }
  30% { opacity: 1; }
  100% { translate: 6px -14px; opacity: 0; }
}

.belt-item { animation: belt 4.5s linear infinite; animation-delay: calc(var(--k) * -1.5s); }
@keyframes belt {
  0% { translate: 0 0; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { translate: 112px 0; opacity: 0; }
}

.blink { animation: blink 1.4s steps(2, jump-none) infinite; }
.blink.b1 { animation-delay: 0.45s; }
.blink.b2 { animation-delay: 0.9s; }
@keyframes blink { 50% { opacity: 0.2; } }

.glow { animation: glow 2.6s ease-in-out infinite alternate; }
@keyframes glow { to { opacity: 0.55; } }

.cell { opacity: 0; animation: cell 6s ease infinite; animation-delay: calc(var(--c) * 0.35s); }
@keyframes cell { 0%, 4% { opacity: 0; } 8%, 85% { opacity: 1; } 95%, 100% { opacity: 0; } }

.lid { transform-box: fill-box; transform-origin: 0% 100%; animation: lid 3.2s ease-in-out infinite; }
@keyframes lid { 0%, 45%, 100% { rotate: 0deg; } 60%, 80% { rotate: -16deg; } }
.drop { animation: drop 3.2s ease-in infinite; }
@keyframes drop {
  0%, 50% { translate: 0 0; opacity: 0; rotate: 0deg; }
  55% { opacity: 1; }
  80% { translate: -26px 44px; opacity: 1; rotate: -50deg; }
  86%, 100% { translate: -28px 58px; opacity: 0; }
}

.rosette { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }

.lift-box { animation: putaway 3.8s var(--ease-out) infinite; }
@keyframes putaway {
  0%, 10% { translate: 0 0; }
  45%, 70% { translate: -24px -4px; }
  100% { translate: 0 0; }
}
.jaw { animation: jaw 2.6s ease-in-out infinite alternate; }
@keyframes jaw { to { translate: -6px 0; } }

.pencil { transform-box: fill-box; transform-origin: 50% 90%; animation: pencil 0.45s ease-in-out infinite alternate; }
@keyframes pencil { to { rotate: 4deg; } }

.whoosh { animation: whoosh 1.2s ease-in-out infinite; }
@keyframes whoosh { 0%, 100% { opacity: 0.2; translate: 4px 0; } 50% { opacity: 1; translate: -4px 0; } }

.shake { animation: shake 3.2s ease-in-out infinite; }
@keyframes shake { 0%, 78%, 100% { rotate: 0deg; } 82% { rotate: -1.5deg; } 86% { rotate: 1.5deg; } 90% { rotate: 0deg; } }

/* ============================================================ outro */

.outro {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 10vh, 140px) var(--gutter) 48px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: end;
}
.outro__line {
  grid-column: 3 / span 8;
  margin: 0;
  font-size: clamp(30px, 3.4vw, 54px);
  line-height: 1.1;
  font-weight: 300;
  text-align: center;
  text-wrap: balance;
}
.outro__line strong { font-weight: 600; }
.outro__meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  margin-top: clamp(60px, 10vh, 120px);
  font-size: 14px;
  color: var(--graphite);
}
.outro__anchor { display: block; width: 1px; height: 1px; margin: 0 auto 32px; grid-column: 1 / -1; }

/* contact: the email is the headline, everything else whispers */
.contact {
  grid-column: 2 / span 10;
  margin-top: clamp(80px, 14vh, 180px);
  padding-top: clamp(32px, 5vh, 56px);
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}
.contact__title {
  margin: 0;
  font-size: clamp(17px, 1.3vw, 20px);
  font-weight: 300;
  color: var(--graphite);
}
.contact__email {
  display: inline-block;
  margin-top: 0.35em;
  font-size: max(22px, min(84px, 6.2vw));
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--inv), var(--inv)) 0 92% / 0 0.08em no-repeat;
  transition: background-size 0.6s var(--ease-out), color 0.4s ease;
}
.contact__email:hover,
.contact__email:focus-visible { background-size: 100% 0.08em; color: var(--inv); }
.contact__list {
  list-style: none;
  margin: clamp(28px, 4vh, 44px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px clamp(32px, 6vw, 96px);
  font-size: clamp(18px, 1.5vw, 24px);
}
.contact__list li { display: flex; flex-direction: column; gap: 4px; }
.contact__k {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
}
.contact__list a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color 0.3s ease;
}
.contact__list a:hover { color: var(--qual); }

/* ============================================================ mobile */

@media (max-width: 899px) {
  .chapter__head { display: block; padding-left: calc(var(--gutter) + 44px); }
  .chapter--quality .chapter__node,
  .chapter__node { left: -44px; right: auto; width: 28px; height: 28px; top: 4px; }
  .chapter__headline { max-width: none; }
  .flow { margin-top: 32px; }
  .outro__line { grid-column: 1 / -1; }
  .contact { grid-column: 1 / -1; }
}

/* ===================================================== reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .scene .pc { opacity: 1; transform: none; }
  .scene .ol, .scene .tick, .scene .chart-line { stroke-dashoffset: 0; }
  .scene .bar { transform: none; }
  .count, .cell { opacity: 1; }
  .reveal-line { clip-path: none; }
  .flow .lbl, .flow .zone { opacity: 1; }
  .node-dot, .leaflet { transform: none; }
}

/* static gallery helper */
.is-static .scene .pc { opacity: 1; transform: none; transition: none; }
.is-static .scene .ol, .is-static .scene .tick, .is-static .scene .chart-line { stroke-dashoffset: 0; transition: none; }
.is-static .scene .bar { transform: none; transition: none; }
