/*
 * Peykom marketing site. Hand-written CSS, no build step.
 * Colours, type and radii come from brand/BRAND.md and brand/tokens.css.
 * Motion: only transform and opacity; animations run only when main.js adds
 * the "motion" class (JS on, IntersectionObserver available, reduced motion off).
 * Without it every element is shown in its final state.
 */

/* ---------- Fonts (self-hosted, SIL OFL 1.1, see assets/fonts/LICENSES) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  /* Brand colours (brand/tokens.css). White is the logo's own white. */
  --pk-indigo: #4A3AFF;
  --pk-ink: #0F1226;
  --pk-signal: #C8F53C;
  --pk-paper: #F4F3EE;
  --pk-smoke: #5A5E75;
  --pk-mist: #A9ADC4;
  --pk-line: #D9D9E3;
  --pk-white: #FFFFFF;

  /* Opacity variants of the same brand colours (decorative rules only). */
  --pk-paper-a12: rgb(244 243 238 / 0.12);
  --pk-paper-a18: rgb(244 243 238 / 0.18);
  --pk-paper-a45: rgb(244 243 238 / 0.45);

  --font-display: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1200px;
  --section-pad: clamp(80px, 11vw, 152px);
  --header-h: 72px;
  --measure: 62ch;
}

/* Section themes: every text/background pair is listed in README contrast table. */
.theme-dark {
  background: var(--pk-ink);
  color: var(--pk-paper);
  --text-1: var(--pk-paper);
  --text-2: var(--pk-mist);
  --rule: var(--pk-paper-a18);
  --focus: var(--pk-paper);
  --dg-line: var(--pk-mist);
  --dg-strong: var(--pk-paper);
  --dg-surface: var(--pk-ink);
  --dg-dot: var(--pk-signal);
}

.theme-light {
  background: var(--pk-paper);
  color: var(--pk-ink);
  --text-1: var(--pk-ink);
  --text-2: var(--pk-smoke);
  --rule: var(--pk-line);
  --focus: var(--pk-indigo);
  --dg-line: var(--pk-smoke);
  --dg-strong: var(--pk-ink);
  --dg-surface: var(--pk-paper);
  --dg-dot: var(--pk-indigo);
}

.theme-indigo {
  background: var(--pk-indigo);
  color: var(--pk-white);
  --text-1: var(--pk-white);
  --text-2: var(--pk-white);
  --focus: var(--pk-white);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--pk-ink);
  color: var(--pk-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 1.35rem + 2.8vw, 3.375rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--pk-indigo);
  color: var(--pk-white);
}

:focus-visible {
  outline: 2px solid var(--focus, var(--pk-indigo));
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: var(--gutter);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: var(--pk-paper);
  color: var(--pk-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  outline: 2px solid var(--pk-indigo);
  outline-offset: 2px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 120ms ease;
}

.btn:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.btn-primary {
  background: var(--pk-indigo);
  color: var(--pk-white);
}

.btn-ghost {
  border-color: var(--pk-paper-a45);
  color: var(--pk-paper);
}

.btn-ghost:hover {
  border-color: var(--pk-paper);
}

.btn-light {
  background: var(--pk-white);
  color: var(--pk-ink);
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.0625rem;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--pk-paper-a12);
}

.header-inner {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "brand cta"
    "nav nav";
  align-items: center;
  justify-content: space-between;
  column-gap: 24px;
  padding-block: 10px 2px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: var(--radius-sm);
}

.brand-lockup {
  display: block;
  width: 117px;
  height: 28px;
}

.site-nav {
  grid-area: nav;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-inline: -8px;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  color: var(--pk-paper);
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav-list a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.header-cta {
  grid-area: cta;
}

@media (min-width: 880px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav cta";
    height: var(--header-h);
    padding-block: 0;
  }

  .nav-list {
    justify-content: flex-end;
    gap: 0 12px;
    margin: 0 20px 0 0;
  }

  section[id] {
    scroll-margin-top: var(--header-h);
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section-pad);
}

/* Consecutive light sections are separated by a hairline instead of a colour change. */
.theme-light + .theme-light {
  padding-top: 0;
}

.theme-light + .theme-light > .container::before {
  content: "";
  display: block;
  grid-column: 1 / -1;
  margin-bottom: var(--section-pad);
  border-top: 1px solid var(--pk-line);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.lead {
  max-width: var(--measure);
  margin-top: 24px;
  color: var(--text-1);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

/* ---------- 1. Hero ---------- */

.hero {
  padding-block: clamp(56px, 9vw, 128px) clamp(80px, 10vw, 144px);
}

.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
  }
}

.eyebrow {
  margin-bottom: 28px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.hero h1 {
  max-width: 18ch;
}

.hero-lead {
  max-width: var(--measure);
  margin-top: 28px;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
}

.hero-sub {
  max-width: var(--measure);
  margin-top: 16px;
  color: var(--text-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-figure {
  width: 100%;
  max-width: 520px;
  margin: 0;
  justify-self: center;
}

/* ---------- Diagrams (shared visual language) ---------- */

.dg {
  display: block;
  width: 100%;
  height: auto;
}

.dg-line {
  fill: none;
  stroke: var(--dg-line);
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.dg-line--strong {
  stroke: var(--dg-strong);
}

.dg-line--ghost {
  stroke-dasharray: 2 6;
  opacity: 0.45;
}

.dg-box,
.dg-node {
  fill: var(--dg-surface);
  stroke: var(--dg-line);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.dg-node {
  stroke: var(--dg-strong);
}

.dg-flash {
  fill: none;
  stroke: var(--dg-strong);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}

.dg-hub {
  fill: var(--pk-indigo);
}

.dg-ok {
  fill: var(--pk-indigo);
}

/* Brand mark inside the Peykom node: white body, signal dot (indigo ground rule). */
.dg-mark-body {
  fill: var(--pk-white);
}

.dg-mark-ring {
  fill: none;
  stroke: var(--pk-white);
  stroke-width: 14;
}

.dg-mark-dot {
  fill: var(--pk-signal);
}

.dg-badge {
  fill: var(--pk-signal);
}

.dg-check {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.dg-check--on-signal {
  stroke: var(--pk-ink);
}

.dg-check--on-indigo {
  stroke: var(--pk-white);
}

.dg-dot {
  fill: var(--dg-dot);
  opacity: 0;
}

.dg-label {
  fill: var(--text-2);
  font-family: var(--font-mono);
  font-size: 15px;
}

.dg-label--strong {
  fill: var(--text-1);
}

.dg-label--sm {
  font-size: 13px;
}

.dg-num {
  fill: var(--text-1);
  font-family: var(--font-mono);
  font-size: 14px;
}

.dg-term {
  fill: var(--text-1);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
}

/* ---------- 2. Problem ---------- */

.points {
  display: grid;
  gap: 40px;
}

@media (min-width: 800px) {
  .points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
  }
}

.point::before {
  content: "";
  display: block;
  width: 24px;
  margin-bottom: 24px;
  border-top: 2px solid var(--pk-ink);
}

.point p {
  max-width: 34ch;
  margin-top: 10px;
  color: var(--text-2);
}

/* ---------- 3. How it works ---------- */

.flow-figure {
  margin: 0 0 clamp(40px, 5vw, 64px);
}

.flow-svg--h {
  display: none;
}

.flow-svg--v {
  max-width: 340px;
  margin-inline: auto;
}

@media (min-width: 960px) {
  .flow-svg--h {
    display: block;
  }

  .flow-svg--v {
    display: none;
  }
}

.steps {
  display: grid;
  gap: 40px;
}

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

@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step-num {
  display: block;
  margin-bottom: 14px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.step p {
  margin-top: 10px;
  color: var(--text-2);
}

.flow-note {
  max-width: var(--measure);
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--pk-line);
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* ---------- 4. Intermediary layer ---------- */

.mesh-figure {
  max-width: 880px;
  margin: 0 auto;
}

.mesh-svg--h {
  display: none;
}

.mesh-svg--v {
  max-width: 400px;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .mesh-svg--h {
    display: block;
  }

  .mesh-svg--v {
    display: none;
  }
}

.mesh-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin-top: 36px;
  color: var(--text-1);
  font-size: 0.9375rem;
}

.mesh-legend li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-sample {
  flex: none;
  width: 32px;
  border-top: 2px dashed var(--pk-mist);
}

.legend-sample--after {
  border-top-style: solid;
  border-color: var(--pk-paper);
}

.benefits {
  display: grid;
  gap: 40px;
  margin-top: clamp(64px, 8vw, 112px);
}

@media (min-width: 800px) {
  .benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
  }
}

.benefit {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.benefit p {
  margin-top: 10px;
  color: var(--text-2);
}

/* ---------- 5. Products ---------- */

.products {
  display: grid;
  gap: 48px;
}

@media (min-width: 800px) {
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
  }
}

.product {
  padding-top: 28px;
  border-top: 1px solid var(--pk-ink);
}

.product h3 {
  font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 5px 11px;
  border: 1px solid var(--pk-line);
  border-radius: var(--radius-sm);
  color: var(--pk-smoke);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.status--active {
  border-color: var(--pk-ink);
  background: var(--pk-ink);
  color: var(--pk-paper);
}

.status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pk-signal);
}

.product-desc {
  max-width: 36ch;
  margin-top: 20px;
}

/* ---------- 6. Division of work ---------- */

.split {
  display: grid;
  gap: 48px;
}

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

  .split-col:first-child {
    padding-right: 48px;
  }

  .split-col + .split-col {
    padding-left: 48px;
    border-left: 1px solid var(--pk-line);
  }
}

.split-col h3 {
  font-size: 1.5rem;
}

.split-list {
  margin-top: 20px;
}

.split-list li {
  padding: 14px 0;
  border-top: 1px solid var(--pk-line);
}

.split-note {
  max-width: var(--measure);
  margin-top: clamp(48px, 6vw, 72px);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}

/* ---------- 7. Principles ---------- */

.principles {
  display: grid;
  gap: 40px 48px;
}

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

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

.principle {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.principle p {
  margin-top: 12px;
  color: var(--text-2);
}

/* ---------- 8. Limits ---------- */

.limits-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 960px) {
  .limits-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
  }
}

.limits-head .lead {
  color: var(--text-2);
}

.limit {
  padding: 24px 0;
  border-top: 1px solid var(--pk-line);
}

.limit:last-child {
  border-bottom: 1px solid var(--pk-line);
}

.limit p {
  max-width: var(--measure);
  margin-top: 8px;
  color: var(--text-2);
}

.limits-close {
  max-width: 26ch;
  margin-top: 48px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}

/* ---------- 9. Contact ---------- */

.contact h2 {
  font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);
}

.contact-text {
  max-width: 52ch;
  margin-top: 24px;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}

.contact .btn {
  margin-top: 40px;
}

/* ---------- 10. Footer ---------- */

.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--pk-paper-a12);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  display: block;
  width: 32px;
  height: 32px;
}

.site-footer p {
  font-size: 0.9375rem;
}

.footer-note {
  color: var(--text-2);
}

/* ---------- Motion (progressive enhancement) ---------- */

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

  /* Scroll reveal for the step list. */
  .motion .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease, transform 600ms ease;
  }

  .motion .reveal.is-active {
    opacity: 1;
    transform: none;
  }

  .motion .steps .reveal:nth-child(2) { transition-delay: 120ms; }
  .motion .steps .reveal:nth-child(3) { transition-delay: 240ms; }
  .motion .steps .reveal:nth-child(4) { transition-delay: 360ms; }

  /* Hero: signal travels phone -> Peykom -> operator and returns as a match. */
  .motion .hero-figure.is-active .hero-dot {
    animation: hero-dot 4.2s linear 400ms both;
  }

  .motion .hero-figure.is-active .hero-flash {
    animation: hero-flash 4.2s ease 400ms both;
  }

  .motion .hero-figure.is-active .hero-badge {
    transform-box: fill-box;
    transform-origin: 12px 50%;
    animation: hero-badge 4.2s ease 400ms both;
  }

  /* Four steps: line grows, nodes appear in order, dot splits at the fork. */
  .motion .flow-figure.is-active .flow-main {
    transform-box: fill-box;
    animation: flow-grow-x 3.6s linear both;
    transform-origin: 0 50%;
  }

  .motion .flow-figure.is-active .flow-svg--v .flow-main {
    animation-name: flow-grow-y;
    transform-origin: 50% 0;
  }

  .motion .flow-figure.is-active .flow-node,
  .motion .flow-figure.is-active .flow-end {
    transform-box: fill-box;
    transform-origin: center;
    animation: flow-pop 400ms ease both;
  }

  .motion .flow-figure.is-active .flow-svg--h .flow-node--1 { animation-delay: 180ms; }
  .motion .flow-figure.is-active .flow-svg--h .flow-node--2 { animation-delay: 980ms; }
  .motion .flow-figure.is-active .flow-svg--h .flow-node--3 { animation-delay: 1780ms; }
  .motion .flow-figure.is-active .flow-svg--v .flow-node--1 { animation-delay: 180ms; }
  .motion .flow-figure.is-active .flow-svg--v .flow-node--2 { animation-delay: 890ms; }
  .motion .flow-figure.is-active .flow-svg--v .flow-node--3 { animation-delay: 1590ms; }
  .motion .flow-figure.is-active .flow-end { animation-delay: 2590ms; }

  .motion .flow-figure.is-active .flow-branch {
    animation: fade-in 400ms ease 1980ms both;
  }

  .motion .flow-figure.is-active .flow-dot {
    animation-duration: 3.6s;
    animation-timing-function: linear;
    animation-fill-mode: both;
  }

  .motion .flow-figure.is-active .flow-svg--h .flow-dot--main { animation-name: flow-h-main; }
  .motion .flow-figure.is-active .flow-svg--h .flow-dot--up { animation-name: flow-h-up; }
  .motion .flow-figure.is-active .flow-svg--h .flow-dot--down { animation-name: flow-h-down; }
  .motion .flow-figure.is-active .flow-svg--v .flow-dot--main { animation-name: flow-v-main; }
  .motion .flow-figure.is-active .flow-svg--v .flow-dot--up { animation-name: flow-v-left; }
  .motion .flow-figure.is-active .flow-svg--v .flow-dot--down { animation-name: flow-v-right; }

  /* Nine links collapse into one Peykom node; the nine remain as a faint trace. */
  .motion .mesh-figure.is-active .mesh-solid {
    animation: mesh-out 3.2s ease both;
  }

  .motion .mesh-figure.is-active .mesh-links {
    animation: mesh-in 3.2s ease both;
  }

  .motion .mesh-figure.is-active .mesh-hub {
    transform-box: fill-box;
    transform-origin: center;
    animation: mesh-hub-in 3.2s ease both;
  }
}

/* Static (final) state of animated parts when no animation runs. */
.mesh-solid {
  opacity: 0;
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hero-dot {
  0% { opacity: 0; transform: translateX(72px); }
  6% { opacity: 1; }
  40% { transform: translateX(320px); }
  50% { opacity: 1; transform: translateX(320px); }
  72% { opacity: 1; transform: translateX(230px); }
  76% { opacity: 0; transform: translateX(230px); }
  100% { opacity: 0; transform: translateX(230px); }
}

@keyframes hero-flash {
  0%, 38% { opacity: 0; }
  44% { opacity: 1; }
  58%, 100% { opacity: 0; }
}

@keyframes hero-badge {
  0%, 72% { opacity: 0; transform: scale(0.6); }
  84%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes flow-grow-x {
  0%, 5% { transform: scaleX(0); }
  55%, 100% { transform: scaleX(1); }
}

@keyframes flow-grow-y {
  0%, 5% { transform: scaleY(0); }
  55%, 100% { transform: scaleY(1); }
}

@keyframes flow-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes flow-h-main {
  0% { opacity: 0; transform: translate(22px, 110px); }
  5% { opacity: 1; transform: translate(22px, 110px); }
  55% { opacity: 1; transform: translate(600px, 110px); }
  57%, 100% { opacity: 0; transform: translate(600px, 110px); }
}

@keyframes flow-h-up {
  0%, 54% { opacity: 0; transform: translate(600px, 110px); }
  55% { opacity: 1; transform: translate(600px, 110px); }
  57.25% { transform: translate(623.75px, 99.06px); }
  59.5% { transform: translate(640px, 75px); }
  61.75% { transform: translate(656.25px, 50.94px); }
  64% { transform: translate(680px, 40px); }
  72% { opacity: 1; transform: translate(774px, 40px); }
  76%, 100% { opacity: 0; transform: translate(774px, 40px); }
}

@keyframes flow-h-down {
  0%, 54% { opacity: 0; transform: translate(600px, 110px); }
  55% { opacity: 1; transform: translate(600px, 110px); }
  57.25% { transform: translate(623.75px, 120.94px); }
  59.5% { transform: translate(640px, 145px); }
  61.75% { transform: translate(656.25px, 169.06px); }
  64% { transform: translate(680px, 180px); }
  72% { opacity: 1; transform: translate(774px, 180px); }
  76%, 100% { opacity: 0; transform: translate(774px, 180px); }
}

@keyframes flow-v-main {
  0% { opacity: 0; transform: translate(160px, 40px); }
  5% { opacity: 1; transform: translate(160px, 40px); }
  55% { opacity: 1; transform: translate(160px, 270px); }
  57%, 100% { opacity: 0; transform: translate(160px, 270px); }
}

@keyframes flow-v-left {
  0%, 54% { opacity: 0; transform: translate(160px, 270px); }
  55% { opacity: 1; transform: translate(160px, 270px); }
  57.25% { transform: translate(149.06px, 293.75px); }
  59.5% { transform: translate(125px, 310px); }
  61.75% { transform: translate(100.94px, 326.25px); }
  64% { transform: translate(90px, 350px); }
  72% { opacity: 1; transform: translate(90px, 380px); }
  76%, 100% { opacity: 0; transform: translate(90px, 380px); }
}

@keyframes flow-v-right {
  0%, 54% { opacity: 0; transform: translate(160px, 270px); }
  55% { opacity: 1; transform: translate(160px, 270px); }
  57.25% { transform: translate(170.94px, 293.75px); }
  59.5% { transform: translate(195px, 310px); }
  61.75% { transform: translate(219.06px, 326.25px); }
  64% { transform: translate(230px, 350px); }
  72% { opacity: 1; transform: translate(230px, 380px); }
  76%, 100% { opacity: 0; transform: translate(230px, 380px); }
}

@keyframes mesh-out {
  0%, 32% { opacity: 1; }
  72%, 100% { opacity: 0; }
}

@keyframes mesh-in {
  0%, 40% { opacity: 0; }
  80%, 100% { opacity: 1; }
}

@keyframes mesh-hub-in {
  0%, 40% { opacity: 0; transform: scale(0.4); }
  48% { opacity: 1; }
  80%, 100% { opacity: 1; transform: scale(1); }
}
