/* ==========================================================================
   Ilumi — the How it works page (how-it-works.html)
   Loaded after css/styles.css, whose header, buttons and tokens it uses as
   they are. Everything here is scoped to .how / .how-*, so nothing on the
   homepage changes. The grounds, faces and inks are the homepage's own: the
   questions section's paper, the why section's night, EB Garamond for
   headings, Newsreader for anything said, Geist for the rest. The spec and
   what each line may claim are in README.md, "The How it works page".
   ========================================================================== */

.how-page {
  background: #fbf6f0; /* the page is one sheet of the questions section's paper */
  background-image: none;
}
.how {
  --h-text: "Geist", var(--font-sans);
  --h-display: "Newsreader", var(--font-serif);
  --h-paper: #fbf6f0;
  --h-card: #f4ece1;      /* a shade under the paper: the outside of a step card */
  --h-canvas: #fdfbf7;    /* the app's canvas: the inside of a step card */
  --h-ink: #1c1a17;
  --h-muted: rgb(28 26 23 / 0.66);
  --h-line: rgb(28 26 23 / 0.13);
  --h-night: #131a31;
  --h-cream: #fdf9ee;
  --h-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --coral: #e8503a;
  --blue: #2f6fd0;
  --amber: #f2b01e;
  overflow-x: clip;
  background: var(--h-paper);
  color: var(--h-ink);
  font-family: var(--h-text);
}
.how section { position: relative; }
.how-wrap { margin: 0 auto; max-width: 1312px; padding: 0 20px; }
@media (min-width: 640px) { .how-wrap { padding: 0 40px; } }

/* ---------- Shared: eyebrow, heading, lede (the homepage's own) ---------- */
.how-head { max-width: 640px; }
.how-head-center { margin: 0 auto; max-width: 820px; text-align: center; }
.how-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--h-muted); font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.how-eyebrow-mark { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgb(233 182 56 / 0.2); box-shadow: inset 0 0 0 1px rgb(233 182 56 / 0.5); }
.how-eyebrow-mark svg { width: 9px; height: 12px; fill: var(--color-gold); }
.how-eyebrow-night { color: rgb(253 249 238 / 0.7); }
.how-eyebrow-night .how-eyebrow-mark { background: rgb(233 182 56 / 0.14); box-shadow: inset 0 0 0 1px rgb(233 182 56 / 0.34); }
.how-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(38px, 4.3vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.how-title-xl { font-size: clamp(46px, 6vw, 88px); letter-spacing: -0.028em; }
.how-lede {
  margin-top: 20px;
  color: rgb(28 26 23 / 0.75);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  text-wrap: balance;
}
.how-head-center .how-lede { margin-left: auto; margin-right: auto; max-width: 34em; }
@media (min-width: 760px) { .how-title > span { display: block; } }

/* The plain lines between hairlines, as in the homepage's why and grows
   sections: no frames, no icons, no hover, so nothing looks pressable. */
.how-points { display: grid; gap: 0 40px; margin-top: 56px; }
.how-points li { padding: 22px 0 24px; border-top: 1px solid var(--h-line); }
.how-points h3 { font-family: var(--h-display); font-size: 21px; line-height: 1.3; letter-spacing: -0.012em; }
.how-points p { max-width: 30em; margin-top: 8px; color: var(--h-muted); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }
@media (min-width: 760px) {
  .how-points-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-points-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.how-sound { font-family: var(--h-display); font-style: italic; color: var(--h-ink); }
.how-faces { display: flex; margin-top: 16px; }
.how-faces img { width: 30px; height: 30px; border-radius: 50%; background: #f1eee6; box-shadow: 0 0 0 2px var(--h-paper); }
.how-faces img + img { margin-left: -8px; }

/* ==========================================================================
   1. The first day: the opening and four step cards
   ========================================================================== */
.how-start { padding: 148px 0 104px; }
@media (min-width: 1000px) { .how-start { padding: 176px 0 136px; } }

.how-steps { display: grid; gap: 20px; margin-top: 64px; counter-reset: none; }
@media (min-width: 700px) { .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .how-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 80px; } }

/* A card is a panel inside a panel, as the reference's are: the outside a
   shade under the paper with a hairline, the inside the app's canvas. */
.how-step {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 28px;
  border-radius: 28px;
  background: var(--h-card);
  box-shadow: inset 0 0 0 1px rgb(28 26 23 / 0.06), 0 0 0 4px rgb(255 255 255 / 0.55);
}
.how-step-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border-radius: 20px;
  background: var(--h-canvas);
  box-shadow: inset 0 0 0 1px rgb(28 26 23 / 0.05);
  container-type: inline-size;
}
.how-step-label {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgb(28 26 23 / 0.7);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
/* Who does the step: you, or your child. */
.how-step-who { padding: 4px 10px; border-radius: 999px; background: rgb(28 26 23 / 0.05); letter-spacing: 0.08em; font-size: 11px; }
.how-step-title { margin: 22px 14px 0; font-family: var(--h-display); font-size: 23px; line-height: 1.22; letter-spacing: -0.014em; text-wrap: balance; }
.how-step-body { margin: 10px 14px 0; color: var(--h-muted); font-size: 15px; line-height: 1.58; text-wrap: pretty; }

/* The small pieces of the app inside the cards. Sizes in em, from the card's width. */
.how-mock { width: 100%; padding: 13% 9% 4%; font-size: clamp(11px, 4.4cqi, 16px); }

/* Step 01: one of the three questions about what the child can do. */
.how-mock-ask { display: grid; gap: 1em; }
.how-mock-q { font-family: var(--h-display); font-size: 1.12em; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.how-mock-pills { display: flex; flex-wrap: wrap; gap: 0.45em; }
.how-mock-pills span { padding: 0.45em 0.85em; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgb(28 26 23 / 0.14); font-size: 0.86em; white-space: nowrap; }
.how-mock-pills .is-on { background: var(--h-ink); color: var(--h-cream); box-shadow: none; }

/* Step 02: the first session's three stops, the first two lit. */
.how-mock-path { display: grid; gap: 0.9em; justify-items: center; padding-top: 16%; }
.how-stops { display: flex; align-items: center; width: 100%; }
.how-stop { flex: none; display: grid; place-items: center; width: 3.6em; height: 3.6em; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px rgb(28 26 23 / 0.12); }
.how-stop img { width: 2.9em; height: 2.9em; border-radius: 50%; background: #f1eee6; opacity: 0.45; filter: grayscale(0.6); }
.how-stop.is-lit { box-shadow: inset 0 0 0 2.5px var(--accent), 0 6px 16px -8px var(--accent); }
.how-stop.is-lit img { opacity: 1; filter: none; }
.how-stop-line { flex: 1; height: 2px; margin: 0 0.3em; border-radius: 2px; background: rgb(28 26 23 / 0.12); }
.how-stop-line.is-lit { background: linear-gradient(90deg, var(--coral), var(--amber)); }
.how-stop-names { display: flex; justify-content: space-between; width: 100%; color: var(--h-muted); font-size: 0.8em; }
.how-stop-names span { width: 4.5em; text-align: center; }
.how-stop-names span:first-child { margin-left: -0.45em; }
.how-stop-names span:last-child { margin-right: -0.45em; }

/* Step 03: the results screen's first line, on the homepage's slip of paper. */
.how-mock-slip { padding-top: 16%; }
.how-slip {
  padding: 1.05em 1.15em 1.1em;
  border-radius: 0.5em;
  background: #fff6de;
  box-shadow: 0 14px 26px -16px rgb(80 60 10 / 0.45), 0 1px 3px rgb(80 60 10 / 0.12);
  transform: rotate(-1.4deg);
}
.how-slip-label { color: #b4371f; font-size: 0.68em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.how-slip-says { margin-top: 0.45em; font-family: var(--h-display); font-size: 1.1em; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.how-slip-chip { display: inline-block; margin-top: 0.8em; padding: 0.3em 0.7em; border-radius: 999px; background: rgb(232 80 58 / 0.13); color: #8f2c18; font-size: 0.74em; }

/* Step 04: camp by day, the rabbit by its door, a tap on it. */
.how-step-stage-camp { background: #dfe6cf; }
.how-camp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 60%; }
.how-step-stage-camp::after { content: ""; position: absolute; inset: 0 0 auto; height: 34%; background: linear-gradient(rgb(253 251 247 / 0.78), rgb(253 251 247 / 0)); pointer-events: none; }
.how-camp-rabbit { position: absolute; left: 47%; bottom: 13%; width: auto; height: 42%; filter: drop-shadow(0 8px 10px rgb(46 36 12 / 0.3)); }
.how-tap {
  position: absolute;
  left: calc(47% + 1.6cqi);
  bottom: 31%;
  width: 14cqi;
  height: 14cqi;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.95), 0 0 18px 4px rgb(233 182 56 / 0.55);
  transform: translate(0, 50%);
}
@media (prefers-reduced-motion: no-preference) {
  .how-tap { animation: how-tap 2.6s var(--h-ease) infinite; }
  @keyframes how-tap {
    0% { opacity: 0; transform: translate(0, 50%) scale(0.5); }
    25% { opacity: 1; }
    70%, 100% { opacity: 0; transform: translate(0, 50%) scale(1.35); }
  }
}

/* ==========================================================================
   2. Inside a session: the picture and the six rows
   ========================================================================== */
.how-session { padding: 40px 0 112px; }
/* One panel holds the picture and the rows, as the reference's does (measured
   there: 16px of padding and gap, 32px corners outside and 20px inside). From
   1000px the picture is as tall as the six rows, and the rows are always the
   same height together (below), so nothing on the page moves when one opens. */
.how-session-grid {
  display: grid;
  gap: 12px;
  margin-top: 48px;
  padding: 12px;
  border-radius: 28px;
  background: #fffaf3;
  box-shadow: inset 0 0 0 1px rgb(28 26 23 / 0.05), 0 40px 70px -50px rgb(80 60 10 / 0.35);
}
@media (min-width: 1000px) {
  .how-session { padding: 56px 0 144px; }
  .how-session-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; margin-top: 64px; padding: 16px; border-radius: 32px; align-items: stretch; }
}

/* The pictures share one box and cross-fade; the open row's is on. */
.how-pictures {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: #1d2236;
  container-type: inline-size;
}
@media (min-width: 1000px) { .how-pictures { aspect-ratio: auto; min-height: 520px; } }
.how-pictures::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(10 10 10 / 0.08); pointer-events: none; }
.how-picture {
  position: absolute;
  inset: 0;
  margin: 0;
  background: linear-gradient(180deg, rgb(10 12 24 / 0) 40%, rgb(10 12 24 / 0.4) 100%), var(--scene) var(--scene-x, 50%) 50% / cover no-repeat;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.1s var(--h-ease);
}
.how-picture.is-on { opacity: 1; transform: none; }
.how-picture-guide { position: absolute; left: 5%; bottom: 4%; width: auto; height: 34%; filter: drop-shadow(0 10px 12px rgb(46 36 12 / 0.35)); }
.how-picture-says {
  position: absolute;
  left: 28%;
  right: 5%;
  bottom: 9%;
  display: grid;
  justify-items: start;
  gap: 0.7em;
  font-size: clamp(11px, 2.9cqi, 17px);
}
.how-picture-close { left: 7%; justify-items: start; }
/* What the guide says: the homepage reading scene's night-glass bubble. */
.how-bubble {
  max-width: 21em;
  padding: 0.65em 0.95em 0.72em;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 1.05em 1.05em 1.05em 0.3em;
  background: rgb(13 17 42 / 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 18px 34px -18px rgb(2 4 16 / 0.7);
  color: var(--h-cream);
  font-family: var(--h-display);
  font-size: 1.22em;
  line-height: 1.32;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
/* The child's part, on a strip of the app's paper. */
.how-word, .how-line, .how-tiles, .how-tag {
  padding: 0.5em 0.9em 0.55em;
  border-radius: 0.7em;
  background: var(--h-canvas);
  box-shadow: 0 16px 30px -16px rgb(2 4 16 / 0.6);
  color: var(--h-ink);
}
.how-word { font-family: var(--h-text); font-size: 2em; font-weight: 600; letter-spacing: 0.02em; }
.how-line { font-size: 1.5em; font-weight: 600; letter-spacing: 0.01em; }
.how-line span { color: rgb(28 26 23 / 0.35); }
.how-line .is-read { color: var(--coral); }
.how-line .is-next { color: var(--h-ink); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 0.12em; text-underline-offset: 0.2em; }
.how-tag { padding: 0.35em 0.8em; border-radius: 999px; font-size: 0.86em; font-weight: 500; }
.how-tiles { display: flex; gap: 0.4em; padding: 0.5em; background: rgb(253 251 247 / 0.94); }
.how-tiles-read span { box-shadow: inset 0 0 0 1.5px rgb(232 80 58 / 0.45), 0 2px 0 rgb(232 80 58 / 0.3) !important; color: var(--coral) !important; }
.how-tiles span { display: grid; place-items: center; width: 1.9em; height: 2.1em; border-radius: 0.4em; background: #fff; box-shadow: inset 0 0 0 1.5px rgb(47 111 208 / 0.45), 0 2px 0 rgb(47 111 208 / 0.3); color: var(--blue); font-size: 1.4em; font-weight: 600; }
/* The close: the rank, one number and a ring, as at camp. */
.how-rank { position: relative; display: grid; place-items: center; width: 4.2em; height: 4.2em; border-radius: 50%; background: var(--h-canvas); box-shadow: 0 16px 30px -16px rgb(2 4 16 / 0.6); }
.how-rank svg { position: absolute; inset: 0.3em; width: calc(100% - 0.6em); height: calc(100% - 0.6em); transform: rotate(-90deg); fill: none; }
.how-rank-track { stroke: rgb(28 26 23 / 0.1); stroke-width: 3.5; }
.how-rank-fill { stroke: var(--color-gold); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0.25; }
.how-rank > span { font-family: var(--h-display); font-size: 1.6em; font-weight: 500; }

/* The rows, numbered as the reference's are: the open one is a panel of
   night, with its line and a thin bar that says how far through the session
   this step is. */
.how-rows { display: grid; gap: 10px; align-content: start; }
.how-row { border-radius: 20px; background: var(--h-card); box-shadow: inset 0 0 0 1px rgb(28 26 23 / 0.05); transition: background-color 0.5s var(--h-ease), color 0.5s var(--h-ease); }
.how-row h3 { font-size: inherit; }
.how-row-btn { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; width: 100%; padding: 12px 20px 12px 12px; text-align: left; border-radius: inherit; cursor: pointer; }
.how-row.is-open .how-row-btn { cursor: default; }
.how-row-btn:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.how-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--h-canvas);
  box-shadow: inset 0 0 0 1px rgb(28 26 23 / 0.07);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  transition: background-color 0.5s var(--h-ease), color 0.5s var(--h-ease), box-shadow 0.5s var(--h-ease);
}
.how-row-title { font-family: var(--h-display); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.25; letter-spacing: -0.014em; }
.how-row-mark { position: relative; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; opacity: 0.55; transition: opacity 0.3s ease; }
.how-row-mark::before, .how-row-mark::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; margin: -0.75px 0 0 -5px; border-radius: 1px; background: currentColor; transition: transform 0.5s var(--h-ease); }
.how-row-mark::after { transform: rotate(90deg); }
/* The body opens and shuts over the same half second on the same curve as
   every other row's, so one opening and one shutting cancel out. */
.how-row-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--h-ease); }
.how-row-body > div { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; overflow: hidden; min-height: 0; padding: 0 22px 0 84px; }
.how-row-body p { max-width: 36em; color: var(--h-muted); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; opacity: 0; transition: opacity 0.3s ease; }
.how-row-bar { display: block; flex: none; height: 4px; margin-bottom: 20px; border-radius: 4px; background: rgb(253 249 238 / 0.14); }
.how-row-bar::before { content: ""; display: block; width: calc(var(--at, 1) / 6 * 100%); height: 100%; border-radius: inherit; background: var(--color-gold); }
.how-row[data-step="1"] { --at: 1; }
.how-row[data-step="2"] { --at: 2; }
.how-row[data-step="3"] { --at: 3; }
.how-row[data-step="4"] { --at: 4; }
.how-row[data-step="5"] { --at: 5; }
.how-row[data-step="6"] { --at: 6; }
.how-row.is-open { background: var(--h-night); color: var(--h-cream); }
.how-row.is-open .how-num { background: rgb(233 182 56 / 0.16); box-shadow: inset 0 0 0 1px rgb(233 182 56 / 0.55); color: var(--color-gold); }
.how-row.is-open .how-row-mark::after { transform: rotate(180deg); }
.how-row.is-open .how-row-mark::before { transform: rotate(180deg); }
.how-row.is-open .how-row-body { grid-template-rows: 1fr; }
.how-row.is-open .how-row-body p { color: rgb(253 249 238 / 0.8); opacity: 1; transition: opacity 0.4s ease 0.15s; }
@media (hover: hover) {
  .how-row:not(.is-open):hover { background: #efe5d6; }
  .how-row:not(.is-open) .how-row-btn:hover .how-row-mark { opacity: 0.9; }
}
/* From 1000px every row's body is the same height, whatever its line count:
   with one row always open, the six together never change height, and the
   picture beside them never does either. */
@media (min-width: 1000px) {
  .how-row-body p { height: 4.8em; } /* room for three lines, which the copy takes in a narrow column */
}
@media (min-width: 1240px) {
  .how-row-body p { height: 3.3em; } /* two lines, which is all the copy is from here */
}
@media (max-width: 559px) {
  .how-row-btn { gap: 14px; }
  .how-num { width: 44px; height: 44px; border-radius: 12px; font-size: 14px; }
  .how-row-body > div { padding-left: 70px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .how-row, .how-num, .how-row-body, .how-row-body p, .how-picture, .how-row-mark::before, .how-row-mark::after { transition: none; }
  .how-picture { transform: none; }
}
/* Without JS every row stands open and the first picture shows. */
html:not(.js) .how-row-body { grid-template-rows: 1fr; }
html:not(.js) .how-row-body p { opacity: 1; }
html:not(.js) .how-row-bar { display: none; }
html:not(.js) .how-row-body p { height: auto; }
html:not(.js) .how-row-body > div { padding-bottom: 20px; }

/* ==========================================================================
   3. One a day: camp at night
   ========================================================================== */
.how-day { padding: 0 0 112px; }
.how-night {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  border-radius: 32px;
  background:
    linear-gradient(90deg, rgb(12 16 40 / 0.86) 0%, rgb(12 16 40 / 0.6) 40%, rgb(12 16 40 / 0) 72%),
    linear-gradient(0deg, rgb(12 16 40 / 0.55) 0%, rgb(12 16 40 / 0) 55%),
    url(../assets/guides/ground-camp-night.webp) 70% 50% / cover no-repeat #0b1030;
  color: var(--h-cream);
}
.how-night-copy { max-width: 620px; padding: 48px 28px; }
.how-night .how-lede { color: rgb(253 249 238 / 0.85); text-wrap: pretty; }
@media (min-width: 1000px) {
  .how-night { min-height: min(78vh, 680px); }
  .how-night-copy { padding: 72px 72px 80px; }
}
@media (max-width: 759px) {
  .how-night { min-height: 600px; background:
    linear-gradient(0deg, rgb(12 16 40 / 0.92) 0%, rgb(12 16 40 / 0.7) 45%, rgb(12 16 40 / 0) 80%),
    url(../assets/guides/ground-camp-night.webp) 72% 50% / cover no-repeat #0b1030; }
}

/* ==========================================================================
   4. Moving up: three good days fill a step
   ========================================================================== */
.how-up { padding: 24px 0 120px; }
.how-up-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .how-up-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 80px; align-items: center; }
  .how-up-grid .how-points { grid-column: 1 / -1; margin-top: 24px; }
}
.how-climb {
  padding: 40px 28px 36px;
  border-radius: 28px;
  background: var(--h-canvas);
  box-shadow: inset 0 0 0 1px rgb(28 26 23 / 0.07), 0 30px 60px -40px rgb(80 60 10 / 0.35);
}
@media (min-width: 640px) { .how-climb { padding: 52px 44px 44px; } }
.how-climb-days { display: flex; flex-wrap: wrap; gap: 10px; }
.how-day-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgb(28 26 23 / 0.1); font-size: 14px; }
.how-day-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--coral); box-shadow: inset 0 0 0 3px #ffd9d2; }
/* Four steps, each in the middle of its quarter, so the names under them line up.
   The line runs from the first middle to the last; its coloured part to the step being learned. */
.how-climb-path { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); place-items: center; height: 30px; margin-top: 44px; }
.how-climb-path::before, .how-climb-path::after { content: ""; position: absolute; top: 50%; left: 12.5%; height: 2px; margin-top: -1px; }
.how-climb-path::before { right: 12.5%; background: rgb(28 26 23 / 0.13); }
.how-climb-path::after { width: 25%; background: var(--coral); }
.how-climb-step { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px rgb(28 26 23 / 0.2); }
.how-climb-step.is-done { background: var(--coral); box-shadow: none; }
.how-climb-step.is-here { width: 30px; height: 30px; background: var(--coral); box-shadow: 0 0 0 6px rgb(232 80 58 / 0.16); }
.how-climb-spark { position: absolute; left: 50%; bottom: calc(100% + 10px); width: 15px; height: 20px; margin-left: -7.5px; fill: var(--color-gold); filter: drop-shadow(0 0 6px rgb(233 182 56 / 0.8)); }
.how-climb-names { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; color: var(--h-muted); font-size: 13px; line-height: 1.35; text-align: center; }
.how-climb-names span:nth-child(2) { color: var(--h-ink); font-weight: 500; }
/* The three days light one after another when the card comes in, then the step. */
@media (prefers-reduced-motion: no-preference) {
  .js .how-climb:not(.is-in) .how-day-dot { background: #fff; box-shadow: inset 0 0 0 1.5px rgb(28 26 23 / 0.2); }
  .js .how-climb:not(.is-in) .how-climb-step.is-here { background: #fff; box-shadow: inset 0 0 0 1.5px rgb(28 26 23 / 0.2); }
  .js .how-climb:not(.is-in) .how-climb-spark { opacity: 0; transform: translateY(6px); }
  .how-day-dot, .how-climb-step.is-here { transition: background-color 0.4s ease, box-shadow 0.4s ease; }
  .how-climb-spark { transition: opacity 0.5s ease 1.6s, transform 0.6s var(--h-ease) 1.6s; }
  .how-day-chip:nth-child(1) .how-day-dot { transition-delay: 0.2s; }
  .how-day-chip:nth-child(2) .how-day-dot { transition-delay: 0.6s; }
  .how-day-chip:nth-child(3) .how-day-dot { transition-delay: 1s; }
  .how-climb-step.is-here { transition-delay: 1.4s; }
}

/* ==========================================================================
   5. When it's hard: a panel of night
   ========================================================================== */
.how-stuck { padding: 0 12px 120px; }
@media (min-width: 640px) { .how-stuck { padding: 0 16px 140px; } }
.how-panel {
  margin: 0 auto;
  max-width: 1440px;
  border-radius: 32px;
  background: radial-gradient(90% 60% at 50% 0%, #22305a 0%, rgb(34 48 90 / 0) 70%), linear-gradient(180deg, #1a2342 0%, var(--h-night) 100%);
  color: var(--h-cream);
}
.how-panel-inner { margin: 0 auto; max-width: 1312px; padding: 88px 20px 56px; }
@media (min-width: 640px) { .how-panel-inner { padding: 112px 40px 72px; } }
.how-panel .how-lede { color: rgb(253 249 238 / 0.72); }

.how-helps { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 960px) { .how-helps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 72px; } }
.how-help {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 28px;
  border-radius: 24px;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 1px rgb(255 255 255 / 0.1), inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.how-help-tag { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgb(0 0 0 / 0.22); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); color: rgb(253 249 238 / 0.9); font-size: 13.5px; font-weight: 500; }
.how-help-tag img { width: 28px; height: 28px; border-radius: 50%; background: #f1eee6; box-shadow: 0 0 0 2px var(--accent); }
.how-help-lines { display: grid; gap: 14px; margin-top: 26px; }
.how-help-lines li { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--accent); }
.how-help-when { color: rgb(253 249 238 / 0.55); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.how-help-says { font-family: var(--h-display); font-size: 19px; line-height: 1.38; letter-spacing: -0.008em; text-wrap: pretty; }
.how-help-note { margin-top: auto; padding-top: 22px; color: rgb(253 249 238 / 0.68); font-size: 14.5px; line-height: 1.58; text-wrap: pretty; }

.how-pattern {
  display: grid;
  gap: 28px;
  margin-top: 16px;
  padding: 30px 26px;
  border-radius: 24px;
  background: rgb(255 255 255 / 0.04);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
}
@media (min-width: 960px) { .how-pattern { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 36px 40px; } }
.how-pattern h3 { font-family: var(--h-display); font-size: 23px; line-height: 1.25; letter-spacing: -0.012em; }
.how-pattern p { max-width: 36em; margin-top: 10px; color: rgb(253 249 238 / 0.72); font-size: 15.5px; line-height: 1.62; text-wrap: pretty; }
.how-pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.how-pairs li { display: grid; gap: 2px; padding: 14px 10px; border-radius: 16px; background: var(--h-canvas); color: var(--h-ink); text-align: center; }
.how-pairs span { font-size: 20px; font-weight: 600; letter-spacing: 0.01em; }
.how-pairs span + span { color: rgb(28 26 23 / 0.45); font-weight: 500; font-size: 16px; }

/* ==========================================================================
   6. Two views
   ========================================================================== */
.how-views { padding: 0 0 128px; }
.how-view-grid { display: grid; gap: 20px; margin-top: 56px; }
@media (min-width: 900px) { .how-view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 64px; } }
.how-view { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; }
.how-view-child { background: var(--h-card); box-shadow: inset 0 0 0 1px rgb(28 26 23 / 0.06); }
.how-view-you { background: #fff; box-shadow: inset 0 0 0 1px rgb(28 26 23 / 0.08), 0 30px 60px -40px rgb(80 60 10 / 0.3); }
.how-view-art { margin: 10px 10px 0; overflow: hidden; aspect-ratio: 16 / 7; border-radius: 20px; }
.how-view-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%; }
/* The Progress tab, small. */
.how-progress { display: grid; align-content: center; gap: 18px; padding: 0 8%; background: #fdfbf7; box-shadow: inset 0 0 0 1px rgb(28 26 23 / 0.06); }
.how-progress-label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.how-progress-label img { width: 26px; height: 26px; border-radius: 50%; background: #f1eee6; }
.how-progress-path { position: relative; display: flex; justify-content: space-between; align-items: center; height: 24px; }
.how-progress-path::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; margin-top: -1px; background: linear-gradient(90deg, rgb(232 80 58 / 0.55) 0 44%, rgb(28 26 23 / 0.12) 44% 100%); }
.how-progress-path span { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px rgb(28 26 23 / 0.2); }
.how-progress-path .is-placed { box-shadow: inset 0 0 0 2px var(--coral); }
.how-progress-path .is-done { background: rgb(232 80 58 / 0.75); box-shadow: none; }
.how-progress-path .is-now { width: 22px; height: 22px; background: var(--coral); box-shadow: 0 0 0 5px rgb(232 80 58 / 0.16); }
.how-progress-path em { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); color: var(--h-muted); font-size: 11.5px; font-style: normal; white-space: nowrap; }
.how-progress-foot { margin-top: 14px; color: var(--h-muted); font-size: 12.5px; }
.how-view-text { display: flex; flex-direction: column; flex: 1; padding: 30px 30px 32px; }
@media (min-width: 640px) { .how-view-text { padding: 36px 40px 40px; } }
.how-view h3 { font-family: var(--h-display); font-size: 27px; line-height: 1.2; letter-spacing: -0.016em; }
.how-view-sub { margin-top: 6px; color: var(--h-muted); font-size: 14.5px; }
.how-list { display: grid; gap: 0; margin-top: 20px; }
.how-list li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--h-line); font-size: 15.5px; line-height: 1.5; }
.how-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 9px; height: 12px; background: var(--color-gold); clip-path: path("M4.5 0 Q3.5 5.3 0 6.3 Q3.5 7.3 4.5 12 Q5.5 7.3 9 6.3 Q5.5 5.3 4.5 0Z"); }
.how-never { margin-top: auto; padding-top: 22px; color: var(--h-muted); font-size: 14.5px; line-height: 1.55; }
.how-never span { color: var(--h-ink); font-weight: 500; }

/* ==========================================================================
   7. Close
   ========================================================================== */
.how-end { padding: 24px 0 0; text-align: center; }
.how-end-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 32px; }
.how-link { color: var(--h-ink); font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: rgb(28 26 23 / 0.3); text-underline-offset: 4px; }
.how-link:hover { text-decoration-color: currentColor; }
/* The waitlist's painting, on white, laid on the paper by multiply as there. */
.how-end-art { display: block; width: min(720px, 92vw); height: auto; margin: 36px auto 0; mix-blend-mode: multiply; }

/* ==========================================================================
   The way in: each marked piece fades up once as it comes into the window
   (initReveal in js/how.js). The markup is the finished still.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }
  .js [data-reveal] { transition: opacity 0.8s ease calc(var(--d, 0) * 1s), transform 1s var(--h-ease) calc(var(--d, 0) * 1s); }
}

/* Small fixes, by width. */
@media (max-width: 639px) { .how-progress { aspect-ratio: auto; padding: 22px 20px 18px; } }
/* Over the camp painting the step label stands on chips of the app's paper. */
.how-step-stage-camp .how-step-label > span { padding: 4px 10px; border-radius: 999px; background: rgb(253 251 247 / 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (min-width: 700px) and (max-width: 1199px) { .how-step-stage { aspect-ratio: 16 / 10; } }
