/*=============== INDEXO – THEME ON TOP OF THE SHARED PROJECT STYLE ===============
  Loaded only by indexo.html, after styles.css and etherlocked-cartoon.css.
  The page uses <body class="ether-page indexo-page">, so it gets every
  component of the EtherLocked page (hero, cards, TOC, buttons, menu, footer).
  This file only:
    1. swaps the colour tokens for INDEXO's own: a soft charcoal with a hint
       of the brand purple as the ground, the brand yellow as the accent,
    2. puts the card photo behind the hero,
    3. adds the few layouts this page needs: number facts, framed design
       system pictures, rows of phone screens, the "other projects" cards.
===================================================================== */

/* ───────────── 1. TOKENS ───────────── */
.indexo-page {
  /* ground: a soft charcoal with a hint of purple, easy on the eyes */
  --paper: rgb(30, 29, 36); /* page background */
  --paper-2: rgb(41, 40, 50); /* cards */
  --paper-3: rgb(55, 53, 67); /* chips and small buttons */
  --night: rgb(20, 19, 25); /* footer, menu, frames */
  --text: #eeedf2;
  --ink: #1c1b22;
  --pencil: #938fa6;

  /* accents: INDEXO yellow, with the brand purple for the main button */
  --orange: #efd94f;
  --orange-hi: #f5e574;
  --orange-dk: #f3e06a;
  --mustard: #f9eea2;
  --brick: #a898f0;
  --itch: #5a40c9;
  --itch-hi: #6d54dd;
  --mark: rgba(239, 217, 79, 0.13);

  background-color: var(--paper);
}

/* ───────────── 2. HERO ───────────── */
.indexo-page .work-details {
  overflow: hidden;
  background: var(--night) url("../img/Indexo/indexo-bg.webp") 50% 35% / cover no-repeat;
}

/* the photo is soft already; darken it so the title and facts read */
.indexo-page .indexo-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(20, 19, 25, 0.45) 0%, rgba(20, 19, 25, 0.8) 100%),
    linear-gradient(to bottom, rgba(20, 19, 25, 0.25) 0%, rgba(20, 19, 25, 0.75) 100%);
}

.indexo-page .work-details .intro {
  position: relative;
  z-index: 1;
}

.indexo-page .work-title {
  text-shadow: 0 4px 0 rgba(20, 19, 25, 0.6), 0 10px 40px rgba(0, 0, 0, 0.7);
}

/* overview: the YouTube video in the same frame as the trailers on the
   game pages, at the video's own 16:9 shape */
.indexo-page .indexo-video .ether-video {
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

/* ───────────── 3. SHARED FIXES ───────────── */
/* a picture straight under a section title sits flush */
.indexo-page .project-section > .section-title + .shot {
  margin-top: 0;
}

/* ───────────── 4. NUMBER FACTS ───────────── */
/* a row of small cards: a big number in the brand yellow, a label under it */
.indexo-page .fact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-m);
  max-width: var(--content-width);
  margin: var(--flow-gap) 0 0;
  padding: 0;
  list-style: none;
}

.indexo-page .fact {
  padding: var(--card-pad);
  background: var(--paper-2);
  border-radius: var(--radius);
}

.indexo-page .fact__num {
  display: block;
  font-family: var(--cartoon-font);
  font-weight: 900;
  font-size: var(--fs-h2);
  line-height: 1;
  color: var(--orange);
}

.indexo-page .fact__label {
  display: block;
  margin-top: var(--space-2xs);
  font-size: var(--fs-body-s);
  line-height: var(--lh-snug);
}

/* ───────────── 4b. FOUNDATIONS: THE TOKENS, DRAWN FROM THEIR VALUES ───────────── */
/* a colour swatch: the colour comes from --c; a faint edge keeps the very
   light shades visible on the dark page */
.indexo-page .sw {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--c);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* the flow: primitive → semantic → component, three cards with arrows */
.indexo-page .token-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 1fr) 2.5rem minmax(0, 1fr);
  align-items: stretch;
  max-width: var(--content-width);
  margin-top: var(--flow-gap);
}

.indexo-page .token-flow__step {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--card-pad);
  background: var(--paper-2);
  border-radius: var(--radius);
}

.indexo-page .token-flow__level {
  font-family: var(--cartoon-font);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pencil);
}

.indexo-page .token-flow__name {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: var(--fs-label);
  color: var(--orange);
  overflow-wrap: anywhere;
}

.indexo-page .token-flow__note {
  font-size: var(--fs-small);
  color: color-mix(in srgb, var(--text) 70%, transparent);
}

/* a little button with the yellow focus ring around it */
.indexo-page .demo-focus {
  padding: 0.3rem 0.9rem;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: #fff;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 0 0 2px var(--paper-2), 0 0 0 6px #f7ea48;
}

.indexo-page .token-flow__arrow {
  align-self: center;
  justify-self: center;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--pencil);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 177 259'%3E%3Cpath d='M18.2327 65.6652C22.6424 68.6098 10.2419 59.4731 15.6673 63.7844C17.0934 64.8603 18.5234 66.0755 19.9495 67.1514C22.8056 69.4425 25.6657 71.873 28.5258 74.3036C35.9628 80.6509 43.2643 87.1416 50.4264 93.6363C65.3202 107.028 80.0826 120.703 95.2513 133.947C97.1115 135.569 112.918 146.702 112.695 148.662C109.675 145.538 108.445 141.526 109.29 136.897C107.494 132.622 107.514 128.435 109.355 124.475C112.177 120.627 112.173 120.488 109.344 124.057L107.184 126.63C102.327 132.49 97.1829 138.079 91.8995 143.671C87.429 148.403 82.6756 153.004 77.9183 157.465C75.4719 159.768 73.1609 161.927 70.7106 164.09C69.8938 164.811 60.0844 173.183 65.1285 168.993C54.2195 177.955 42.5895 186.101 30.6647 193.696C15.3136 203.482 8.84067 226.134 19.4714 241.74C30.1022 257.346 51.0645 263.309 67.5153 252.933C96.5721 234.384 123.57 212.126 146.994 186.9C160.94 171.851 177.212 155.2 177.008 133.297C176.744 114.186 164.392 101.839 150.952 90.4988C117.36 62.4279 87.3974 29.5092 51.3828 4.57721C36.2933 -5.8785 11.8392 2.7711 4.05264 18.4824C-5.05301 36.8826 1.87247 54.6874 17.9578 65.8125L18.2327 65.6652Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 177 259'%3E%3Cpath d='M18.2327 65.6652C22.6424 68.6098 10.2419 59.4731 15.6673 63.7844C17.0934 64.8603 18.5234 66.0755 19.9495 67.1514C22.8056 69.4425 25.6657 71.873 28.5258 74.3036C35.9628 80.6509 43.2643 87.1416 50.4264 93.6363C65.3202 107.028 80.0826 120.703 95.2513 133.947C97.1115 135.569 112.918 146.702 112.695 148.662C109.675 145.538 108.445 141.526 109.29 136.897C107.494 132.622 107.514 128.435 109.355 124.475C112.177 120.627 112.173 120.488 109.344 124.057L107.184 126.63C102.327 132.49 97.1829 138.079 91.8995 143.671C87.429 148.403 82.6756 153.004 77.9183 157.465C75.4719 159.768 73.1609 161.927 70.7106 164.09C69.8938 164.811 60.0844 173.183 65.1285 168.993C54.2195 177.955 42.5895 186.101 30.6647 193.696C15.3136 203.482 8.84067 226.134 19.4714 241.74C30.1022 257.346 51.0645 263.309 67.5153 252.933C96.5721 234.384 123.57 212.126 146.994 186.9C160.94 171.851 177.212 155.2 177.008 133.297C176.744 114.186 164.392 101.839 150.952 90.4988C117.36 62.4279 87.3974 29.5092 51.3828 4.57721C36.2933 -5.8785 11.8392 2.7711 4.05264 18.4824C-5.05301 36.8826 1.87247 54.6874 17.9578 65.8125L18.2327 65.6652Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* one block per token level: a big count, the title and a line on what it is */
.indexo-page .tok-block {
  max-width: var(--content-width);
  margin-top: var(--flow-gap);
  padding: var(--card-pad);
  background: var(--paper-2);
  border-radius: var(--radius);
}

.indexo-page .tok-head {
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.indexo-page .tok-count {
  flex: 0 0 auto;
  min-width: 4.5rem;
  font-family: var(--cartoon-font);
  font-weight: 900;
  font-size: var(--fs-h2);
  line-height: 1;
  color: var(--orange);
}

.indexo-page .tok-title {
  margin: 0;
  font-family: var(--cartoon-font);
  font-weight: 400;
  font-size: var(--fs-h3);
  letter-spacing: 0.03em;
  line-height: var(--lh-tight);
  color: var(--text);
}

.indexo-page .tok-desc {
  margin-top: var(--space-3xs);
  font-size: var(--fs-body-s);
  line-height: var(--lh-body);
  color: color-mix(in srgb, var(--text) 80%, transparent);
}

.indexo-page .tok-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-xs);
  margin: var(--space-l) 0 var(--space-s);
  padding-top: var(--space-m);
  font-family: var(--cartoon-font);
  font-weight: 400;
  font-size: var(--fs-h4);
  letter-spacing: 0.04em;
  color: var(--text);
  border-top: var(--stroke-thin) solid var(--divider);
}

.indexo-page .tok-sub span {
  font-family: inherit;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  color: var(--pencil);
}

.indexo-page .scale-label,
.indexo-page .scale-val,
.indexo-page .sem__name,
.indexo-page .sem__base,
.indexo-page .val-chip__name,
.indexo-page .ramp-steps {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

/* spacing: one bar per step, as long as its value */
.indexo-page .space-scale {
  display: grid;
  gap: var(--space-3xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.indexo-page .space-scale li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-s);
}

.indexo-page .scale-label {
  font-size: var(--fs-label);
  color: color-mix(in srgb, var(--text) 80%, transparent);
}

.indexo-page .scale-val {
  font-size: var(--fs-label);
  text-align: right;
  color: var(--pencil);
}

.indexo-page .space-bar {
  justify-self: start;
  width: min(calc(var(--v) * 3px), 100%);
  height: 0.7rem;
  background: var(--orange);
  border-radius: var(--radius-pill);
}

/* corner radius: a square per step, rounded by its own value */
.indexo-page .radius-scale {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: var(--space-s);
  margin: 0;
  padding: 0;
  list-style: none;
}

.indexo-page .radius-scale li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3xs);
}

.indexo-page .radius-box {
  width: 3.25rem;
  height: 3.25rem;
  border: var(--stroke) solid var(--orange);
  border-top-left-radius: var(--r);
  background: color-mix(in srgb, var(--orange) 12%, transparent);
}

.indexo-page .radius-scale .scale-val {
  text-align: center;
}

/* colour ramps: the name, then eleven shades from 50 to 950 */
.indexo-page .ramps {
  display: grid;
  gap: var(--space-2xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.indexo-page .ramp,
.indexo-page .ramp-steps {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-s);
}

.indexo-page .ramp__name {
  font-size: var(--fs-small);
}

.indexo-page .ramp__swatches {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: var(--space-3xs);
}

.indexo-page .ramp__swatches .sw {
  width: 100%;
  height: 1.9rem;
}

.indexo-page .ramp-steps {
  margin-top: 0.35rem;
  font-size: var(--fs-label);
  color: var(--pencil);
}

.indexo-page .ramp-steps .ramp__swatches span {
  text-align: center;
}

/* type: the family, then the four weights written in their own weight */
/* site map (Datakom, SkillBall): the site on top, its menu items under it, and what each holds.
   No panel behind it. The lines are one 2px pencil stroke: a trunk from the
   site down to a rail with rounded ends, the ends curving down into the first
   and last item, short drops into the three in between, and a red node where
   each line meets its card. */
.indexo-page .site-map {
  --line: color-mix(in srgb, var(--pencil) 75%, transparent);
  --gap: var(--space-xs);
  --trunk: 1.4rem;
  --drop: 1.6rem;
  --cols: 5;
  max-width: var(--content-width);
  margin-block: var(--flow-gap);
}

.indexo-page .site-map__root {
  display: flex;
  align-items: baseline;
  gap: var(--space-2xs);
  position: relative;
  width: fit-content;
  margin-inline: auto;
  padding: var(--space-2xs) var(--space-m);
  font-family: var(--cartoon-font);
  font-size: var(--fs-h4);
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--itch);
  border-radius: var(--radius-pill);
}

.indexo-page .site-map__cols {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--trunk);
  padding-top: var(--drop);
}

/* the rail: from the centre of the first item to the centre of the last,
   its ends rounding down into them */
.indexo-page .site-map__cols::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc((100% - (var(--cols) - 1) * var(--gap)) / (2 * var(--cols)) - 1px);
  right: calc((100% - (var(--cols) - 1) * var(--gap)) / (2 * var(--cols)) - 1px);
  height: var(--drop);
  border: var(--stroke) solid var(--line);
  border-bottom: 0;
  border-radius: 1.1rem 1.1rem 0 0;
}

/* the trunk from the site down to the rail */
.indexo-page .site-map__cols::after {
  content: "";
  position: absolute;
  top: calc(-1 * var(--trunk));
  left: calc(50% - 1px);
  width: var(--stroke);
  height: var(--trunk);
  background: var(--line);
}

.indexo-page .site-map__col {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-s) var(--space-xs) var(--space-xs);
  background: var(--paper-2);
  border-radius: var(--radius);
}

/* drops into the three middle items (the outer two get the rail's ends) */
.indexo-page .site-map__col:not(:first-child):not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--drop));
  left: calc(50% - 1px);
  width: var(--stroke);
  height: var(--drop);
  background: var(--line);
}

/* the node where each line meets its card */
.indexo-page .site-map__col::after {
  content: "";
  position: absolute;
  top: -0.32rem;
  left: calc(50% - 0.32rem);
  width: 0.64rem;
  height: 0.64rem;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--paper);
}

.indexo-page .site-map__col--link {
  background: transparent;
  box-shadow: inset 0 0 0 var(--stroke) var(--itch);
}

.indexo-page .site-map__top {
  margin: 0 0 var(--space-xs);
  font-family: var(--cartoon-font);
  font-size: var(--fs-body-s);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--orange);
}

.indexo-page .site-map__list {
  display: grid;
  gap: var(--space-3xs);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-label);
  line-height: 1.25;
}

.indexo-page .site-map__list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2xs);
  padding-top: var(--space-3xs);
  border-top: var(--stroke-thin) solid var(--divider);
}

.indexo-page .site-map__list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.indexo-page .site-map__list li > span {
  flex: none;
  color: var(--orange);
  font-weight: 700;
}

.indexo-page .site-map__note {
  margin: var(--space-s) 0 0;
  font-size: var(--fs-small);
  text-align: center;
  color: var(--pencil);
}

.indexo-page .site-map__root em {
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

@media (max-width: 768px) {
  /* one column, no connecting lines */
  .indexo-page .site-map__cols {
    grid-template-columns: minmax(0, 1fr);
    margin-top: var(--space-s);
    padding-top: 0;
  }

  .indexo-page .site-map__cols::before,
  .indexo-page .site-map__cols::after,
  .indexo-page .site-map__col::before,
  .indexo-page .site-map__col::after {
    display: none;
  }
}

/* page strip (Datakom, SkillBall): the page as a narrow strip, and beside each of its parts a bracket in the
   part's colour with a circle and a label. Each part's height is its height
   on the page, so the circles line up with what they name. */
.indexo-page .page-strip {
  max-width: var(--content-width);
  margin: var(--flow-gap) 0 0;
}

.indexo-page .page-strip__row {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: var(--space-m);
  align-items: stretch;
}

.indexo-page .page-strip__row > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 0 0 var(--stroke-thin) var(--divider);
}

.indexo-page .page-strip__segs {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.indexo-page .strip-seg {
  position: relative;
  flex: var(--h) 1 0;
  display: flex;
  align-items: center;
  gap: var(--space-s);
  min-height: 3.2rem;
  padding-left: var(--space-m);
}

/* the bracket: as tall as the part it belongs to */
.indexo-page .strip-seg::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--c);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pencil) 70%, transparent);
}

.indexo-page .strip-seg__dot {
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--cartoon-font);
  font-size: 1rem;
  color: var(--ink);
  width: 2.1rem;
  height: 2.1rem;
  background: var(--c);
  border-radius: 50%;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pencil) 80%, transparent);
}

.indexo-page .strip-seg__txt {
  display: grid;
  gap: var(--space-3xs);
  min-width: 0;
}

.indexo-page .strip-seg__txt b {
  font-family: var(--cartoon-font);
  font-size: var(--fs-h4);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.indexo-page .strip-seg__txt span {
  font-size: var(--fs-body-s);
  line-height: var(--lh-snug);
  color: color-mix(in srgb, var(--text) 80%, transparent);
}

@media (max-width: 768px) {
  .indexo-page .page-strip__row {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: var(--space-s);
  }

  .indexo-page .strip-seg {
    gap: var(--space-xs);
    padding-left: var(--space-s);
  }

  .indexo-page .strip-seg__dot {
    width: 1.7rem;
    height: 1.7rem;
  }

  .indexo-page .strip-seg__txt b {
    font-size: 1rem;
  }

  .indexo-page .strip-seg__txt span {
    font-size: var(--fs-label);
  }
}

/* type: small label above each group */
.indexo-page .type-label {
  margin: var(--space-s) 0 var(--space-xs);
  font-size: var(--fs-label);
  color: var(--pencil);
}

/* weights: one tile per weight, "Aa" drawn in it, name and number below */
.indexo-page .type-weights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.indexo-page .type-weights li {
  display: grid;
  gap: var(--space-3xs);
  padding: var(--space-xs) var(--space-xs);
  background: var(--paper-3);
  border-radius: var(--radius-sm);
}

.indexo-page .type-weights__aa {
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: 1.75rem;
  font-weight: var(--w, 400);
  line-height: 1.1;
}

/* text styles: name | sample at its real size | size */
.indexo-page .type-specimen {
  margin: 0;
  padding: 0;
  list-style: none;
}

.indexo-page .type-specimen li {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-2xs) 0;
  border-bottom: var(--stroke-thin) solid var(--divider);
}

.indexo-page .type-specimen li:last-child {
  border-bottom: 0;
}

.indexo-page .type-specimen__sample {
  font-size: calc(var(--fs) * 1px);
  font-weight: var(--w, 400);
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .indexo-page .type-specimen li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .indexo-page .type-specimen li .scale-label {
    grid-column: 1 / -1;
  }
}

.indexo-page .val-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.indexo-page .val-chip {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-s);
  background: var(--paper-3);
  border-radius: var(--radius-sm);
}

.indexo-page .val-chip__name {
  font-size: var(--fs-label);
  color: color-mix(in srgb, var(--text) 75%, transparent);
}

.indexo-page .val-chip__val {
  font-family: var(--cartoon-font);
  letter-spacing: 0.03em;
  color: var(--orange);
}

/* semantic tokens: swatch, name, the primitive it points to, what it is for */
.indexo-page .sem-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.indexo-page .sem {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-2xs) 0;
  border-top: var(--stroke-thin) solid var(--divider);
}

.indexo-page .sem:first-child {
  border-top: 0;
}

.indexo-page .sem__name {
  font-size: var(--fs-label);
  color: var(--orange);
  overflow-wrap: anywhere;
}

.indexo-page .sem__base {
  font-size: var(--fs-label);
  color: color-mix(in srgb, var(--text) 75%, transparent);
  overflow-wrap: anywhere;
}

.indexo-page .sem__use {
  font-size: var(--fs-small);
  line-height: var(--lh-snug);
}

@media (max-width: 768px) {
  .indexo-page .token-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .indexo-page .token-flow__arrow {
    height: 2.2rem;
    transform: rotate(90deg);
  }

  .indexo-page .tok-count {
    min-width: 0;
  }

  .indexo-page .ramp,
  .indexo-page .ramp-steps {
    grid-template-columns: 3.6rem minmax(0, 1fr);
    gap: var(--space-2xs);
  }

  .indexo-page .ramp__swatches {
    gap: var(--space-3xs);
  }

  .indexo-page .ramp__swatches .sw {
    height: 1.5rem;
    border-radius: 4px;
  }

  /* the shade numbers turn on their side, one under each swatch, so they
     never run into each other */
  .indexo-page .ramp-steps {
    align-items: start;
    font-size: 0.75rem;
  }

  .indexo-page .ramp-steps .ramp__swatches span {
    justify-self: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    line-height: 1;
  }

  .indexo-page .space-scale li {
    grid-template-columns: 4.6rem minmax(0, 1fr);
    gap: var(--space-xs);
  }

  /* spacing bars: each one is its value's share of the largest step, so the
     whole scale fits and every step is visibly longer than the one before */
  .indexo-page .space-bar {
    width: max(0.7rem, calc(var(--v) / 128 * 100%));
  }

  /* number facts: one per row, the number beside its label */
  .indexo-page .fact-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xs);
  }

  .indexo-page .fact {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    padding: var(--space-s) var(--space-m);
  }

  .indexo-page .fact__num {
    min-width: 2.2ch;
    font-size: var(--fs-h3);
  }

  .indexo-page .fact__label {
    margin-top: 0;
  }

  /* semantic rows stack: swatch and name on top, the rest underneath */
  .indexo-page .sem {
    grid-template-columns: 1.4rem minmax(0, 1fr);
    row-gap: var(--space-3xs);
  }

  .indexo-page .sem__base,
  .indexo-page .sem__use {
    grid-column: 2;
  }
}

/* ───────────── 4c. COMPONENTS: THE GROUPS AS A TABLE ───────────── */
/* each row: the group and what it is for, then its components as small chips */
.indexo-page .comp-table-wrap {
  max-width: var(--content-width);
  margin-top: var(--flow-gap);
  overflow: hidden;
  background: var(--paper-2);
  border-radius: var(--radius);
}

.indexo-page .comp-table {
  width: 100%;
  border-collapse: collapse;
}

.indexo-page .comp-table thead th {
  padding: var(--space-s) var(--space-m);
  font-family: var(--cartoon-font);
  font-weight: 400;
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  color: var(--pencil);
  background: var(--paper-3);
}

.indexo-page .comp-table tbody tr + tr th,
.indexo-page .comp-table tbody tr + tr td {
  border-top: var(--stroke-thin) solid var(--divider);
}

.indexo-page .comp-table tbody th,
.indexo-page .comp-table tbody td {
  padding: var(--space-s) var(--space-m);
  vertical-align: top;
  text-align: left;
}

.indexo-page .comp-table tbody th {
  width: 13rem;
  font-weight: 400;
}

.indexo-page .comp-group {
  display: block;
  font-family: var(--cartoon-font);
  font-size: var(--fs-h4);
  letter-spacing: 0.03em;
  line-height: var(--lh-tight);
  color: var(--orange);
}

.indexo-page .comp-what {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--fs-small);
  color: color-mix(in srgb, var(--text) 70%, transparent);
}

.indexo-page .comp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.indexo-page .comp-chips li {
  padding: var(--space-3xs) var(--space-xs);
  font-size: var(--fs-label);
  line-height: var(--lh-snug);
  background: var(--paper-3);
  border-radius: var(--radius-pill);
}

/* small headings for States and Documentation, after a paragraph or picture */
.indexo-page .project-section > .tok-sub {
  max-width: var(--content-width);
  margin-top: var(--flow-gap);
}

.indexo-page .project-section > .tok-sub + .about-description1 {
  margin-top: 0;
}

/* button states: the primary button, each state its own light tile with the
   button picture centred and the state name underneath */
.indexo-page .btn-states {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-m);
  max-width: var(--content-width);
  margin: var(--flow-gap) 0 0;
  padding: 0;
  list-style: none;
}

.indexo-page .btn-states li {
  display: grid;
  gap: var(--space-xs);
  justify-items: center;
}

.indexo-page .btn-state {
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pencil);
}

.indexo-page .btn-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 5.5rem;
  padding: var(--space-s);
  background: #f8f6f2; /* the design system's own page colour */
  border-radius: var(--radius);
}

.indexo-page .btn-tile img {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .indexo-page .btn-states {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .indexo-page .btn-states {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Junior: the four stages reuse the False Sun decision cards (number
   sticker, wobbly outline), laid out two by two */
.indexo-page .stage-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl) var(--space-m);
  max-width: var(--content-width);
}

.indexo-page .stage-list .decision-title {
  margin-bottom: var(--space-2xs);
}

.indexo-page .stage-list p {
  font-size: var(--fs-body-s);
  line-height: var(--lh-body);
}

@media (max-width: 560px) {
  .indexo-page .stage-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Junior enrolment: three screens as a flow. Each arrow is a straight line
   with a chevron head (the same arrow as the gameplay loops) that starts on
   the element the parent taps: its height on the screen is --y (in %), and
   its right edge is about 96% across, so the line begins 4% inside the
   previous screen. --sw is the screen width, worked out from the width of
   the wrapper; if that gets too small, the flow scrolls sideways instead. */
.indexo-page .enrol-flow-wrap {
  container-type: inline-size;
  max-width: var(--content-width);
  margin-top: var(--flow-gap);
  overflow-x: auto;
}

.indexo-page .enrol-flow {
  /* the first gap only holds an arrow; the second also holds its label */
  --gap-1: 2.5rem;
  --gap-2: 7rem;
  --sw: max(9.5rem, calc((100cqi - var(--gap-1) - var(--gap-2)) / 3));
  display: grid;
  grid-template-columns: var(--sw) var(--gap-1) var(--sw) var(--gap-2) var(--sw);
  width: max-content;
  padding-bottom: var(--space-xs);
}

/* two screens and one arrow; screens keep the same size as in the
   three-screen flow so the page stays consistent */
.indexo-page .enrol-flow--2 {
  grid-template-columns: var(--sw) var(--gap-1) var(--sw);
}

/* three screens with short gaps; a gap without an arrow is left empty */
.indexo-page .enrol-flow--3 {
  --sw: max(9.5rem, calc((100cqi - 2 * var(--gap-1)) / 3));
  grid-template-columns: var(--sw) var(--gap-1) var(--sw) var(--gap-1) var(--sw);
}

/* four screens, three short arrows: the screens share the width evenly */
.indexo-page .enrol-flow--4 {
  --sw: max(8rem, calc((100cqi - 3 * var(--gap-1)) / 4));
  grid-template-columns: var(--sw) var(--gap-1) var(--sw) var(--gap-1) var(--sw) var(--gap-1) var(--sw);
}

.indexo-page .enrol-step {
  /* arrows and label: the caption grey, mixed with the page colour instead
     of see-through, so it stays solid over the screens too */
  --arrow-c: color-mix(in srgb, var(--text) 75%, var(--paper));
  --line-y: calc(var(--sw) * 812 / 375 * var(--y) / 100);
  position: relative;
}

.indexo-page .enrol-step__line {
  position: absolute;
  top: var(--line-y);
  /* starts --x % across the previous screen (96% by default) */
  left: calc(var(--sw) * (var(--x, 96) / 100 - 1));
  right: 0.35rem;
  z-index: 1;
  height: var(--stroke-thick);
  background: var(--arrow-c);
  transform: translateY(-50%);
}

/* dot where the line starts, on the tapped element */
.indexo-page .enrol-step__line::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--arrow-c);
  border-radius: 50%;
  /* dark ring, so the dot also shows on the purple banner */
  box-shadow: 0 0 0 2px var(--paper);
  transform: translateY(-50%);
}

/* chevron head, as on the loop arrows */
.indexo-page .enrol-step__line::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-top: var(--stroke-thick) solid var(--arrow-c);
  border-right: var(--stroke-thick) solid var(--arrow-c);
  transform: translateY(-50%) rotate(45deg);
}

/* the step's name sits on top of the line */
.indexo-page .enrol-step__label {
  position: absolute;
  top: calc(var(--line-y) - 0.45rem);
  left: 0.4rem;
  right: 0.6rem;
  font-family: var(--cartoon-font);
  font-size: var(--fs-label);
  line-height: 1.2;
  text-align: center;
  color: var(--arrow-c);
  transform: translateY(-100%);
}

/* Junior view: the parent's and the child's dashboard side by side, with
   numbered outlines on what differs and a short note for each number. */
.indexo-page .dash-compare {
  /* outlines use the same dark fill as the number squares */
  --mark-c: var(--paper-3);
  display: grid;
  grid-template-columns: 13rem 13rem minmax(0, 1fr);
  gap: var(--space-m);
  align-items: start;
  max-width: var(--content-width);
  margin-top: var(--flow-gap);
}

.indexo-page .dash-compare__shot {
  position: relative;
}

.indexo-page .dash-mark {
  position: absolute;
  left: calc(var(--l) * 1%);
  top: calc(var(--t) * 1%);
  width: calc(var(--w) * 1%);
  height: calc(var(--h) * 1%);
  border: var(--stroke-thick) solid var(--mark-c);
  border-radius: var(--radius-sm);
}

/* number badge: the same outlined square as the section numbers (2.1 …) */
.indexo-page .dash-mark b,
.indexo-page .dash-notes b {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  font-family: var(--cartoon-font);
  font-size: var(--fs-label);
  font-weight: 400;
  line-height: 1;
  color: var(--orange);
  background: var(--paper-3);
  border: var(--stroke-thick) solid var(--pencil);
  border-radius: var(--wobble-sm);
  transform: rotate(-4deg);
}

.indexo-page .dash-mark b {
  position: absolute;
  top: -0.75rem;
  left: -0.75rem;
}

.indexo-page .dash-notes {
  display: grid;
  gap: var(--space-s);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  line-height: var(--lh-snug);
  color: color-mix(in srgb, var(--text) 85%, var(--paper));
}

.indexo-page .dash-notes li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: var(--space-xs);
  align-items: start;
}

.indexo-page .dash-notes__title {
  display: block;
  font-family: var(--cartoon-font);
  font-size: var(--fs-h4);
  line-height: var(--lh-tight);
  color: var(--orange);
}

/* key terms inside a note, in the full text colour */
.indexo-page .dash-notes strong {
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 760px) {
  .indexo-page .dash-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .indexo-page .dash-notes {
    grid-column: 1 / -1;
  }
}

/* Turning 18: the migration timeline. Columns run from left to right in
   time (see the grid lines in the HTML); each lane has a title, its events
   (tags starting on a time line) and its states (bars spanning a period).
   Colours come from the shared tag palette; the birthday line is yellow. */
.indexo-page .mig-wrap {
  max-width: var(--content-width);
  margin-top: var(--flow-gap);
  overflow-x: auto;
}

/* wide content that scrolls sideways (the timeline and the screen flows):
   width 0 + min-width 100% stops it from stretching the page column on
   phones, so only the wrapper itself scrolls (same trick as the EtherLocked
   diagrams) */
.indexo-page .mig-wrap,
.indexo-page .enrol-flow-wrap {
  width: 0;
  min-width: 100%;
  /* sideways only: no stray up-and-down scrollbar eating into the width */
  overflow-y: hidden;
}

.indexo-page .mig {
  position: relative;
  display: grid;
  grid-template-columns: 0.6fr 2.6fr 1.5fr 1.6fr 0.45fr;
  /* explicit rows, so the time lines (1 / -1) run through every lane */
  grid-template-rows: repeat(13, auto);
  row-gap: var(--space-3xs);
  min-width: 40rem;
  padding: 0 0 var(--space-xs);
}

/* vertical time lines run through every lane */
.indexo-page .mig__line {
  grid-row: 1 / -1;
  justify-self: start;
  width: var(--stroke);
  margin-left: calc(var(--stroke) / -2);
  background: var(--pencil);
}

.indexo-page .mig__line--bday {
  width: var(--stroke-thick);
  margin-left: calc(var(--stroke-thick) / -2);
  background: var(--orange);
}

.indexo-page .mig__line--short {
  opacity: 0.7;
}

.indexo-page .mig__when {
  grid-row: 1;
  justify-self: start;
  transform: translateX(-50%);
  margin-bottom: var(--space-xs);
  padding: var(--space-3xs) var(--space-2xs);
  font-family: var(--cartoon-font);
  font-size: var(--fs-label);
  white-space: nowrap;
  color: var(--text);
  background: var(--paper);
}

.indexo-page .mig__when--bday {
  color: var(--orange);
  font-size: 1.15rem;
}

.indexo-page .mig__lane {
  grid-column: 1 / -1;
  margin: var(--space-s) 0 0.1rem;
  padding-left: 0.2rem;
  font-family: var(--cartoon-font);
  font-weight: 400;
  font-size: var(--fs-h4);
  letter-spacing: 0.03em;
  color: var(--orange);
  /* sits on the page colour so the time lines pass behind it */
  background: var(--paper);
  justify-self: start;
  padding-right: 0.6rem;
}

/* events and bars: the shared tag look (palette fill and outline) */
.indexo-page .mig .tag {
  position: relative;
  z-index: 1;
  font-family: var(--cartoon-font);
  font-size: var(--fs-label);
  line-height: 1.25;
  color: var(--text);
  border: var(--stroke) solid;
  border-radius: var(--wobble-sm);
}

.indexo-page .mig__event {
  justify-self: start;
  align-self: start;
  max-width: 13rem;
  margin-left: 0.45rem;
  padding: var(--space-3xs) var(--space-2xs);
}

.indexo-page .mig__event--plain {
  position: relative;
  z-index: 1;
  font-family: var(--cartoon-font);
  font-size: var(--fs-label);
  color: var(--pencil);
}

.indexo-page .mig__bar {
  padding: var(--space-2xs) var(--space-2xs);
  text-align: center;
}

/* Retirement Planner: one whole screen with numbered outlines, and a
   numbered note for each part beside it (same marks and notes as the
   dashboard comparison) */
.indexo-page .rp-annot {
  --mark-c: var(--paper-3);
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: var(--space-l);
  align-items: start;
  max-width: var(--content-width);
  margin-top: var(--flow-gap);
}

/* each note sits beside its outline: annot-notes.js sets its top */
.indexo-page .rp-annot .dash-notes {
  position: relative;
  display: block;
}

.indexo-page .rp-annot .dash-notes li {
  position: absolute;
  left: 0;
  right: 0;
}

@media (max-width: 600px) {
  .indexo-page .rp-annot {
    grid-template-columns: minmax(0, 1fr);
  }

  /* phones: notes go back to a plain list under the screen */
  .indexo-page .rp-annot .dash-notes {
    display: grid;
    gap: var(--space-m);
  }

  .indexo-page .rp-annot .dash-notes li {
    position: static;
  }

  .indexo-page .rp-annot .screen {
    max-width: 16rem;
  }
}

/* Retirement Planner: the table of when each suggestion shows, inside the
   shared show/hide panel (the panel already adds space above it) */
.indexo-page .tech-content > .comp-table-wrap {
  margin-top: 0;
}

.indexo-page .narrative-text > p + p {
  margin-top: var(--space-s);
}

.indexo-page .narrative-image.rp-shot {
  flex-basis: 210px;
  max-width: 210px;
}

.indexo-page .rp-shot .narrative-img {
  border-radius: 1.4rem;
}

.indexo-page .rp-table td {
  font-size: var(--fs-small);
  line-height: var(--lh-snug);
}

.indexo-page .rp-table tbody th {
  width: 11rem;
}

.indexo-page .rp-table .rp-when {
  color: color-mix(in srgb, var(--text) 75%, var(--paper));
}

/* rows that share a topic: only the first one gets the dividing line */
.indexo-page .rp-table tbody tr + tr td {
  border-top: var(--stroke-thin) solid var(--divider);
}

/* Junior: short bullet list inside the text column */
.indexo-page .jr-list {
  padding-left: 1.3em;
  list-style: disc;
}

.indexo-page .jr-list li + li {
  margin-top: 0.3em;
}

.indexo-page .jr-list li::marker {
  color: var(--orange);
}

/* website redesign: old and new home page side by side, each with a small
   tag in its corner */
.indexo-page .before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-m);
  max-width: var(--content-width);
  margin-top: var(--flow-gap);
}

.indexo-page .before-after .shot {
  margin: 0;
}

/* plain label above each picture */
.indexo-page .ba-tag {
  display: block;
  margin-bottom: var(--space-xs);
  font-family: var(--cartoon-font);
  font-size: var(--fs-h4);
  letter-spacing: 0.03em;
  line-height: var(--lh-tight);
  color: var(--pencil);
}

.indexo-page .ba-tag--after {
  color: var(--orange);
}

@media (max-width: 768px) {
  .indexo-page .before-after {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* phone: each group becomes a block, its components underneath */
@media (max-width: 768px) {
  .indexo-page .comp-table thead {
    display: none;
  }

  .indexo-page .comp-table,
  .indexo-page .comp-table tbody,
  .indexo-page .comp-table tbody tr {
    display: block;
  }

  .indexo-page .comp-table tbody tr {
    position: relative;
    padding: var(--space-s) var(--space-m);
  }

  .indexo-page .comp-table tbody tr + tr {
    border-top: var(--stroke-thin) solid var(--divider);
  }

  .indexo-page .comp-table tbody tr + tr th,
  .indexo-page .comp-table tbody tr + tr td {
    border-top: 0;
  }

  .indexo-page .comp-table tbody th,
  .indexo-page .comp-table tbody td {
    display: block;
    width: auto;
    padding: 0;
  }

  .indexo-page .comp-table tbody td {
    margin-top: var(--space-xs);
  }

  .indexo-page .comp-chips li {
    font-size: var(--fs-label);
  }
}

/* ───────────── 5. PICTURES ───────────── */
/* design system boards and website pictures: a rounded frame, the picture
   edge to edge, an optional caption underneath */
.indexo-page .shot {
  max-width: var(--content-width);
  margin: var(--flow-gap) 0 0;
}

.indexo-page .shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* every screenshot on the three product pages gets the same thin pencil
   edge, so light screens do not glare on the dark page */
.indexo-page .shot img,
.indexo-page .screen img {
  outline: var(--stroke-thin) solid var(--divider);
  outline-offset: -1px;
}

/* one caption style under every picture on the three product pages */
.indexo-page .shot figcaption,
.indexo-page .screen figcaption,
.indexo-page .dk-navbar figcaption,
.indexo-page .dk-compare figcaption,
.indexo-page .sb-stage__pic figcaption,
.indexo-page .sb-ba figcaption {
  margin-top: var(--space-xs);
  font-size: var(--fs-small);
  line-height: var(--lh-snug);
  text-align: center;
  color: color-mix(in srgb, var(--text) 75%, transparent);
}

/* two pictures side by side */
.indexo-page .shot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-m);
  align-items: start;
  max-width: var(--content-width);
  margin-top: var(--flow-gap);
}

.indexo-page .shot-pair .shot {
  margin-top: 0;
}

/* phone screens: a row that shares the width evenly; each screen keeps its
   own rounded corners and gets a thin pencil outline so the light screens
   do not glare on the dark page */
.indexo-page .screen-row {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: var(--space-m);
  max-width: var(--content-width);
  margin-top: var(--flow-gap);
}

.indexo-page .screen-row--3 {
  --cols: 3;
  max-width: 44rem;
}

.indexo-page .screen {
  margin: 0;
}

.indexo-page .screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.4rem;
}

/* ───────────── 6. SMALL HEADINGS AND CARDS IN SECTIONS ───────────── */
/* flow cards inside a project section follow the content width */
.indexo-page .project-section .contribution-grid {
  max-width: var(--content-width);
  margin-inline: 0;
}

.indexo-page .project-section .contribution-card p {
  font-size: var(--fs-body-s);
  line-height: var(--lh-body);
}

/* a small step label above a card title: "1 of 4" */
/* other projects: one card per project, its screens at the top (cropped to
   the phones, on the card colour) and the text underneath; smaller features
   use the same grid without a picture */
.indexo-page .other-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-m);
  max-width: var(--content-width);
  margin-top: var(--flow-gap);
}

.indexo-page .other-card img {
  display: block;
  width: calc(100% + 2 * var(--card-pad));
  max-width: none;
  height: auto;
  margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) var(--space-s);
  border-radius: var(--radius) var(--radius) 0 0;
}

.indexo-page .other-grid .contribution-name {
  margin-top: 0;
}

.indexo-page .project-section > .tok-sub + .other-grid {
  margin-top: var(--space-s);
}

/* the smaller features are short cards, three across */
.indexo-page .other-grid--small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .indexo-page .other-grid--small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ───────────── 7. SMALL SCREENS ───────────── */
@media (max-width: 768px) {
  .indexo-page .shot-pair,
  .indexo-page .other-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* phone screens: two per row, so they stay readable */
  .indexo-page .screen-row,
  .indexo-page .screen-row--3 {
    --cols: 2;
    gap: var(--space-s);
  }

  .indexo-page .screen img {
    border-radius: 1rem;
  }
}

/* ───────────── 8. PHONES: SLIDERS AND WIDE PICTURES ─────────────
   The screen flows become a proper slider: big screens that snap into
   place one at a time, the next one peeking in at the edge, no scrollbar
   (etherlocked.js adds dots under it instead). The arrows between the
   screens stay where they were. */
@media (max-width: 600px) {
  .indexo-page .enrol-flow-wrap {
    /* edge to edge, so a screen slides in from the side of the phone */
    min-width: calc(100% + 2 * var(--page-gutter));
    margin-inline: calc(-1 * var(--page-gutter));
    padding-inline: var(--page-gutter);
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--page-gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .indexo-page .enrol-flow-wrap::-webkit-scrollbar {
    display: none;
  }

  .indexo-page .enrol-flow,
  .indexo-page .enrol-flow--2,
  .indexo-page .enrol-flow--3,
  .indexo-page .enrol-flow--4 {
    --sw: 58cqi;
    --gap-1: 2.75rem;
    --gap-2: 6rem;
    padding-bottom: 0;
  }

  /* the slider's last screen can still snap to the start */
  .indexo-page .enrol-flow::after {
    content: "";
    width: var(--page-gutter);
  }

  .indexo-page .enrol-flow .screen {
    scroll-snap-align: start;
  }

  .indexo-page .enrol-flow .screen figcaption {
    margin-top: var(--space-2xs);
    font-size: var(--fs-label);
  }
}


/* ───────────── 9. TURNING 18 ON PHONES ─────────────
   The roadmap grid needs a wide screen, so phones get the same story in two
   simple parts: a vertical timeline (when, then the steps, each with a chip
   for who it is for) and a before/after list of what changes. */
.indexo-page .mig-phone {
  display: none;
}

@media (max-width: 600px) {
  .indexo-page .mig-wrap {
    display: none;
  }

  .indexo-page .mig-phone {
    display: block;
    margin-top: var(--flow-gap);
  }

  .indexo-page .mig-phone__title {
    margin: 0 0 var(--space-s);
    font-family: var(--cartoon-font);
    font-weight: 400;
    font-size: var(--fs-h4);
    letter-spacing: 0.03em;
    color: var(--text);
  }

  .indexo-page .mig-phone__changes {
    margin-top: 0;
  }

  .indexo-page .mig-phone__title + .mig-phone__changes,
  .indexo-page .mig-phone__time + .mig-phone__title {
    margin-top: var(--space-xl);
  }

  /* who: a small chip in the lane's colour */
  .indexo-page .mig-phone__who {
    display: inline-block;
    flex: none;
    padding: 0.05em 0.55em;
    font-family: var(--cartoon-font);
    font-size: 0.85rem;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    border: var(--stroke) solid;
    border-radius: var(--radius-pill);
  }

  .indexo-page .mig-phone__who--child {
    background: color-mix(in srgb, #3f5d63 60%, transparent);
    border-color: color-mix(in srgb, #7fb0a8 70%, transparent);
  }

  .indexo-page .mig-phone__who--card {
    background: color-mix(in srgb, #54405a 60%, transparent);
    border-color: color-mix(in srgb, #a98cc9 70%, transparent);
  }

  .indexo-page .mig-phone__who--parent {
    background: color-mix(in srgb, #34466a 60%, transparent);
    border-color: color-mix(in srgb, #8ea6d6 70%, transparent);
  }

  /* the timeline: a line down the left, a dot for each moment */
  .indexo-page .mig-phone__time {
    position: relative;
    margin: 0;
    padding: 0 0 0 1.6rem;
    list-style: none;
  }

  .indexo-page .mig-phone__time::before {
    content: "";
    position: absolute;
    top: 0.6rem;
    bottom: 0.6rem;
    left: 0.45rem;
    width: var(--stroke-thick);
    background: var(--pencil);
    border-radius: var(--radius-pill);
  }

  .indexo-page .mig-phone__stop {
    position: relative;
  }

  .indexo-page .mig-phone__stop + .mig-phone__stop {
    margin-top: var(--space-l);
  }

  .indexo-page .mig-phone__stop::before {
    content: "";
    position: absolute;
    top: 0.35rem;
    left: calc(-1.6rem + 0.45rem + var(--stroke-thick) / 2);
    width: 0.9rem;
    height: 0.9rem;
    background: var(--paper);
    border: var(--stroke-thick) solid var(--pencil);
    border-radius: 50%;
    transform: translateX(-50%);
  }

  /* the birthday is the big moment: a bigger orange dot and title */
  .indexo-page .mig-phone__stop--bday::before {
    width: 1.2rem;
    height: 1.2rem;
    top: 0.25rem;
    background: var(--orange);
    border-color: var(--orange);
  }

  .indexo-page .mig-phone__when {
    display: block;
    margin-bottom: var(--space-2xs);
    font-family: var(--cartoon-font);
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--mustard);
  }

  .indexo-page .mig-phone__stop--bday .mig-phone__when {
    font-size: 1.45rem;
    color: var(--orange);
  }

  .indexo-page .mig-phone__steps {
    display: grid;
    gap: var(--space-2xs);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .indexo-page .mig-phone__steps li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 0.5rem;
    padding: var(--space-2xs) var(--space-xs);
    font-size: var(--fs-body-s);
    line-height: var(--lh-snug);
    background: var(--paper-2);
    border-radius: var(--radius);
  }

  .indexo-page .mig-phone__steps em {
    font-family: var(--cartoon-font);
    font-size: 0.8rem;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pencil);
  }

  .indexo-page .mig-phone__steps .is-required {
    box-shadow: inset 0 0 0 var(--stroke) var(--orange);
  }

  .indexo-page .mig-phone__steps .is-required em {
    color: var(--orange);
  }

  /* what changes: who, then before, a down arrow, then after */
  .indexo-page .mig-phone__changes {
    display: grid;
    gap: var(--space-s);
    margin-bottom: 0;
    padding: 0;
    list-style: none;
  }

  .indexo-page .mig-phone__changes li {
    display: grid;
    justify-items: start;
    gap: var(--space-2xs);
    padding: var(--space-s);
    background: var(--paper-2);
    border-radius: var(--radius);
  }

  .indexo-page .mig-phone__from,
  .indexo-page .mig-phone__to {
    font-size: var(--fs-body-s);
    line-height: var(--lh-snug);
  }

  .indexo-page .mig-phone__from {
    color: color-mix(in srgb, var(--text) 65%, transparent);
    text-decoration: line-through;
    text-decoration-color: color-mix(in srgb, var(--text) 40%, transparent);
  }

  /* the site's own arrow, turned to point down */
  .indexo-page .mig-phone__arrow {
    width: 0.7rem;
    margin-left: 0.2rem;
    color: var(--orange);
    transform: rotate(90deg);
  }

  .indexo-page .mig-phone__to small {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.85em;
    color: color-mix(in srgb, var(--text) 65%, transparent);
  }
}
