/* =========================================================
   Countless Content: styles
   Mobile-first. Breakpoints: 600px, 768px, 900px, 1024px
   ========================================================= */

:root {
  --bg: #000000;
  --surface: #0d0d0d;
  --surface-2: #161616;
  --text: #ffffff;
  --muted: #a6a6a6;
  --accent: #ff6123;
  --accent-glow: rgba(255, 97, 35, 0.35);
  --line: rgba(255, 255, 255, 0.24);
  --line-soft: rgba(255, 255, 255, 0.12);

  --radius: 14px;
  --radius-phone: 20px;
  --header-h: 64px;
  --container: 1200px;
  --gutter: 1.25rem;
  --section-y: 4.5rem;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; --section-y: 6.5rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) { body { font-size: 1.0625rem; } }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.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-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

/* Black text on orange: ~7:1 contrast (white on orange would fail) */
.btn--primary {
  background: var(--accent);
  color: #000;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px var(--accent-glow), 0 0 0 4px rgba(255, 97, 35, 0.18);
}
.btn--primary:active { transform: translateY(0); }

.btn--sm { min-height: 44px; padding: 0 1.1rem; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0 2rem; font-size: 1.0625rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--line-soft);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
@media (min-width: 768px) { .wordmark { font-size: 1rem; letter-spacing: 0.22em; } }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + 1.75rem);
  padding-bottom: 3.5rem;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero__title {
  font-size: clamp(2.5rem, 11vw, 5.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 11ch;
}

/* Two frames, same size, overlapping horizontally.
   Left frame sits in front so both sound buttons stay visible. */
.hero__reels {
  --phone-w: 163px;
  --overlap: 2.75rem;
  display: flex;
  justify-content: center;
  width: 100%;
  padding-bottom: 1.5rem; /* room for the offset frame */
}
.hero__reels .phone {
  flex: none;
  width: var(--phone-w);
}
.hero__reels .phone:first-child {
  z-index: 2;
  box-shadow: 0 24px 60px -18px var(--accent-glow), 14px 0 30px -6px rgba(0, 0, 0, 0.85);
}
.hero__reels .phone + .phone { margin-left: calc(-1 * var(--overlap)); }

@media (min-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 4.5rem; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }
  .hero__copy { gap: 2rem; }
  .hero__reels {
    --phone-w: clamp(170px, 16vw, 230px);
    --overlap: clamp(3rem, 4.5vw, 4.5rem);
    width: auto;
    padding-bottom: 2.5rem;
  }
}

/* ---------- Phone-style video frame ---------- */
.phone {
  position: relative;
  aspect-ratio: 9 / 16;           /* reserves space: no layout shift */
  border-radius: var(--radius-phone);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid rgba(255, 97, 35, 0.45);
  box-shadow: 0 24px 60px -18px var(--accent-glow);
  isolation: isolate;
}
.phone--offset { transform: translateY(1.5rem); }
@media (min-width: 900px) { .phone--offset { transform: translateY(2.5rem); } }

.phone__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;              /* reel 2 isn't exactly 9:16 */
}

.sound-toggle {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.sound-toggle:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.06); }
.sound-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.sound-toggle .icon-sound { display: none; }
.sound-toggle[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.sound-toggle[aria-pressed="true"] .icon-sound { display: block; }
.sound-toggle[aria-pressed="true"] .icon-muted { display: none; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }

.section-title {
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
}

/* ---------- 3. Content types ---------- */
.types { padding-top: 2.5rem; }

/* Rectangular cards spanning the full container width.
   Mobile: 2 columns (last card spans both). Tablet: 3. Desktop: 5 in one row. */
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
.type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 8.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}
.type-card:last-child { grid-column: 1 / -1; }
.type-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.type-card__icon {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease;
}
.type-card:hover .type-card__icon { stroke: var(--accent); }

.type-card__label {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

@media (min-width: 600px) {
  .type-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .type-card { grid-column: span 2; }
  .type-card:nth-child(4),
  .type-card:last-child { grid-column: span 3; }
}
@media (min-width: 1024px) {
  .type-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 2.75rem; }
  .type-card,
  .type-card:nth-child(4),
  .type-card:last-child { grid-column: auto; }
  .type-card { min-height: 11rem; padding: 1.5rem; }
  .type-card__icon { width: 2.5rem; height: 2.5rem; }
  .type-card__label { font-size: 1.1875rem; }
}

/* ---------- 4. Provide as MUCH... or little ---------- */
.much__inner { text-align: center; }

.much__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.much__lead {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 0.15em;
}
.much__big {
  font-size: clamp(3.25rem, 14vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.much__tail {
  margin-top: 0.6em;
  font-size: clamp(1.25rem, 4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.much__little {
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.much__sub {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.checklist {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1.75rem 2rem;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  padding-block: 0.35rem;
  font-weight: 500;
  break-inside: avoid;
}
.checklist li::before {
  /* small orange check */
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.7em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
@media (min-width: 600px) {
  .checklist { columns: 2; column-gap: 3.5rem; padding: 2rem 2.75rem; }
}

/* ---------- 5. Process timeline ---------- */
/*
  Mobile: vertical. Steps have a fixed height (--h) and gap (--g) so the
  "5 days" bracket (steps 2 to 5) and the Revision branch (beside step 5)
  can be placed with pure CSS.
  Desktop (>=1024px): horizontal 6-column grid using the same idea with widths.
*/
.timeline {
  --h: 4rem;           /* step height (mobile) */
  --g: 2rem;           /* gap between steps = connector length */
  --rail: 2.5rem;      /* space for the vertical bracket on the left */
  --branch-w: 8rem;    /* space for the revision branch on the right */
  position: relative;
  margin-top: 3rem;
  padding-left: var(--rail);
}

.timeline__steps {
  display: grid;
  grid-auto-rows: var(--h);
  gap: var(--g);
  margin-right: var(--branch-w);
}

.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 700;
  line-height: 1.2;
  transition: border-color 0.2s ease;
}
.step:hover { border-color: var(--accent); }
.step__num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.step__label { font-size: 0.9375rem; }

/* connector line + arrowhead (vertical on mobile) */
.step:not(:last-child)::after,
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
}
.step:not(:last-child)::after {
  top: calc(100% + 1px);
  width: 2px;
  height: calc(var(--g) - 7px);
  margin-left: -1px;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(var(--draw, 1));
}
.step:not(:last-child)::before {
  top: calc(100% + var(--g) - 8px);
  margin-left: -5px;
  border: 5px solid transparent;
  border-top: 6px solid var(--accent);
  border-bottom: 0;
}

/* "5 days" bracket: spans step 2 (Brief) to step 5 (Creation Preview) */
.timeline__bracket {
  position: absolute;
  left: 0.6rem;
  top: calc(var(--h) + var(--g));
  height: calc(4 * var(--h) + 3 * var(--g));
  width: 1.1rem;
  border: 2px solid var(--accent);
  border-right: 0;
  border-radius: 10px 0 0 10px;
}
.timeline__bracket-label {
  position: absolute;
  top: 50%;
  left: -2px;
  transform: translate(-50%, -50%) rotate(180deg);
  writing-mode: vertical-rl;
  padding: 0.5rem 0.2rem;
  background: var(--bg);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Revision branch: beside Creation Preview with a loop back into it */
.timeline__branch {
  position: absolute;
  right: 0;
  top: calc(4 * (var(--h) + var(--g)));
  height: var(--h);
  width: var(--branch-w);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding-left: 0.25rem;
}
.loop {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  transform: rotate(-90deg);
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.branch-node {
  flex: 1;
  padding: 0.55rem 0.5rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

@media (min-width: 1024px) {
  .timeline {
    --g: 2.25rem;
    --w: calc((100% - 5 * var(--g)) / 6);   /* one column width */
    margin-top: 3.5rem;
    padding-left: 0;
    padding-top: 3.75rem;                  /* room for the bracket */
  }
  .timeline__steps {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: auto;
    margin-right: 0;
  }
  .step {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 7.5rem;
    padding: 1rem 1.1rem 1.1rem;
  }
  .step__label { font-size: 1rem; }

  /* connectors horizontal */
  .step:not(:last-child)::after {
    top: 50%;
    left: calc(100% + 1px);
    width: calc(var(--g) - 8px);
    height: 2px;
    margin: -1px 0 0;
    transform-origin: left;
    transform: scaleX(var(--draw, 1));
  }
  .step:not(:last-child)::before {
    top: 50%;
    left: calc(100% + var(--g) - 8px);
    margin: -5px 0 0;
    border: 5px solid transparent;
    border-left: 6px solid var(--accent);
    border-right: 0;
  }

  .timeline__bracket {
    left: calc(var(--w) + var(--g));
    width: calc(4 * var(--w) + 3 * var(--g));
    top: 1.5rem;
    height: 1.25rem;
    border: 2px solid var(--accent);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
  }
  .timeline__bracket-label {
    top: -2px;
    left: 50%;
    transform: translate(-50%, -50%);
    writing-mode: horizontal-tb;
    padding: 0 0.85rem;
  }

  .timeline__branch {
    position: static;
    width: var(--w);
    height: auto;
    margin-left: calc(4 * (var(--w) + var(--g)));
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0 0;
  }
  .loop { width: 3rem; height: 3rem; transform: none; }
  .branch-node { width: 100%; flex: none; padding: 0.7rem; font-size: 0.875rem; }
}

/* ---------- 6. Portfolio ---------- */
.portfolio__intro {
  max-width: 34ch;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: clamp(1.25rem, 3.4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

/* Replace: one box per tool. Logos grey by default, real colours on hover
   (on a white plate, since several logos are dark and would vanish on black). */
.replace {
  margin-top: 3rem;
  text-align: center;
}
.replace__label {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.replace__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.rep-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 0.75rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.rep-card:hover { border-color: var(--accent); }

.rep-card__logo {
  display: grid;
  place-items: center;
  height: 3.25rem;
  width: 100%;
  max-width: 9.5rem;
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: transparent;
  transition: background-color 0.25s ease;
}
.rep-card__logo img {
  display: block;
  max-width: 100%;
  max-height: 1.9rem;
  width: auto;
  height: auto;
  object-fit: contain;
  /* any colour -> flat light grey silhouette */
  filter: brightness(0) invert(0.72);
  transition: filter 0.25s ease;
}
/* heygen.png ships with lots of transparent padding */
.rep-card__logo img[src*="heygen"] { transform: scale(1.55); }
.rep-card:hover .rep-card__logo { background: #fff; }
.rep-card:hover .rep-card__logo img { filter: none; }
/* Light-coloured marks need a dark plate instead */
.rep-card:hover .rep-card__logo--light { background: var(--surface-2); }

.rep-card__name {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
}
.rep-card__desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.35;
}

.replace__with {
  margin-top: 1.5rem;
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

@media (min-width: 600px) {
  .replace__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
@media (min-width: 1024px) {
  .replace { margin-top: 3.5rem; }
  .replace__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rep-card__name { font-size: 1.125rem; }
}

.stats,
.portfolio__reels {
  display: grid;
  gap: 2.25rem;
}
.stats {
  margin-top: 3.5rem;
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.stat__num {
  color: var(--accent);
  font-size: clamp(4rem, 18vw, 6.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-weight: 600; font-size: 1.0625rem; }

.portfolio__reels {
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  max-width: 340px;
  margin: 3rem auto 0;
}

@media (min-width: 768px) {
  .stats,
  .portfolio__reels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
  .stat__num { font-size: clamp(4rem, 8.5vw, 7rem); }
  .portfolio__reels { max-width: none; margin-top: 3rem; }
  .portfolio__reel { width: 100%; max-width: 240px; justify-self: center; }
  .portfolio__reel--a { grid-column: 1; }   /* under 30+ REAL UGC creators */
  .portfolio__reel--b { grid-column: 3; }   /* under 50+ AI UGC creators */
}

/* ---------- 7. FAQ ---------- */
.faq__list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease;
}
.faq__item:hover,
.faq__item[open] { border-color: rgba(255, 97, 35, 0.6); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  min-height: 44px;
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }

.faq__icon {
  position: relative;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 2px;
  margin: -1px 0 0 -50%;
  background: var(--accent);
  border-radius: 2px;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }   /* + becomes × */

.faq__a {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
}

/* ---------- 8. CTA band + footer ---------- */
.cta-band {
  padding-block: 4.5rem;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
}
.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}
.cta-band__title {
  font-size: clamp(2rem, 6.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
@media (min-width: 768px) { .cta-band { padding-block: 6rem; } }

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line-soft);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.site-footer__meta { color: var(--muted); font-size: 0.875rem; }
@media (min-width: 768px) {
  .site-footer__inner { flex-direction: row; justify-content: space-between; }
}

/* ---------- Scroll animations (only with JS + motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  /* Process: steps appear one after another */
  .js .timeline .step,
  .js .timeline__branch,
  .js .timeline__bracket {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    transition-delay: calc(var(--i, 0) * 160ms);
  }
  .js .timeline { --draw: 0; }
  .js .timeline.is-visible { --draw: 1; }
  .js .timeline .step:not(:last-child)::after {
    transition: transform 0.35s var(--ease);
    transition-delay: calc(var(--i, 0) * 160ms + 220ms);
  }
  .js .timeline .step:not(:last-child)::before {
    opacity: 0;
    transition: opacity 0.2s ease;
    transition-delay: calc(var(--i, 0) * 160ms + 450ms);
  }
  .js .timeline__bracket { --i: 7; }

  .js .timeline.is-visible .step,
  .js .timeline.is-visible .timeline__branch,
  .js .timeline.is-visible .timeline__bracket { opacity: 1; transform: none; }
  .js .timeline.is-visible .step::before { opacity: 1; }

  .js .timeline .step:hover { transition-delay: 0s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
