/* ==========================================================================
   Fuzuhost — drawn product UI, and the bento grid it sits in.

   These are not illustrations of concepts, they are drawings of the thing you
   will actually use: an address bar mid-search, the tier ladder as a picker,
   cPanel installing WordPress, a browser padlock going from "Not secure" to
   secure, a mailbox on your own domain. A first-timer learns more from seeing
   the interface than from a paragraph about it.

   Everything here is CSS and inline SVG. There is no photography on the live
   site and none is introduced; house rule 15's "the client's own photography
   first" resolves to the client's own *artwork*, and where a product has no
   artwork at all, it gets drawn rather than photographed.

   Motion: each mock plays a short staggered entrance when it scrolls into
   view, and responds to hover. House rule 13 rules out typing effects,
   parallax, carousels and particles, so the search mock does not type itself —
   its rows arrive, and its cursor nudges. All of it is off under
   prefers-reduced-motion, at the foot of this file.
   ========================================================================== */

/* ==========================================================================
   1. The bento grid
   ========================================================================== */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.75rem, 1.6vw, 1.15rem);
}
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
@media (max-width: 940px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento > *, .bento .half-on-tablet { grid-column: span 1; }
}

/* A bento cell. The artwork sits in the top half on its own tint, the words
   underneath — which is what stops a grid of these reading as a slide deck. */
.cell {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform var(--dur-ui) var(--ease),
              box-shadow var(--dur-ui) var(--ease),
              border-color var(--dur-ui) var(--ease);
}
a.cell:hover, a.cell:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
  color: inherit;
}
.cell__art {
  position: relative;
  padding: clamp(1rem, 2.4vw, 1.6rem);
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  min-height: 170px;
  display: flex; align-items: center; justify-content: center;
}
.cell__art--plain { background: var(--cream); }
/* a cell whose artwork is a picture rather than drawn UI (house rule 15) */
.cell__art img { border-radius: var(--radius-img); max-width: 100%; height: auto; }
.cell__body { padding: clamp(1rem, 2vw, 1.3rem); }
.cell__body h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.cell__body p { color: var(--color-text-muted); font-size: var(--step--1); margin: 0; }
.cell__link { margin: .8rem 0 0 !important; }
.cell__body .arrow { font-size: var(--step--1); color: var(--color-primary); }
.section--ink .cell__body .arrow { color: var(--color-accent); }

/* the corner mark on a cell that leads somewhere */
.cell__go {
  position: absolute; top: .9rem; right: .9rem; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-surface); border: 1px solid var(--line);
  color: var(--color-primary);
  transition: transform var(--dur-ui) var(--ease), background-color var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease);
}
.cell__go svg { width: 15px; height: 15px; }
a.cell:hover .cell__go { background: var(--color-accent); color: #06181f; transform: translate(2px, -2px); }

/* A cell on the dark explainer band. */
.section--ink .cell { background: var(--dark-surface); border-color: var(--dark-line); }
.section--ink .cell__art { background: rgba(255, 255, 255, .045); border-bottom-color: var(--dark-line); }
.section--ink .cell__body h3 { color: var(--on-dark); }
.section--ink .cell__body p { color: var(--on-dark-muted); }
.section--ink a.cell:hover { border-color: rgba(255, 255, 255, .28); }
.section--ink .cell__go { background: rgba(255, 255, 255, .1); border-color: var(--dark-line); color: var(--color-accent); }

/* ==========================================================================
   2. The mock frame and its parts
   ========================================================================== */

.mock {
  position: relative;
  width: 100%; max-width: 20rem;
  font-size: var(--step--1);
  line-height: 1.35;
}
.mock--wide { max-width: 26rem; }

/* a panel: the surface a piece of interface sits on */
.mock__panel {
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: .55rem;
}
.section--ink .mock__panel { background: var(--ink-2); border-color: var(--dark-line); color: var(--on-dark); }

/* an address or search bar */
.mock__bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .5rem .6rem;
  border-radius: 999px;
  background: var(--color-bg);
  border: 1px solid var(--line);
  font-size: var(--step--1);
  white-space: nowrap; overflow: hidden;
}
.section--ink .mock__bar { background: rgba(255, 255, 255, .06); border-color: var(--dark-line); }
.mock__bar svg { width: 15px; height: 15px; flex: none; color: var(--color-text-muted); }
.mock__bar .u { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mock__bar .u b { font-weight: 600; }
.mock__bar .u i { font-style: normal; color: var(--color-primary); font-weight: 700; }
.mock__go {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-accent); color: #06181f;
}
.mock__go svg { width: 13px; height: 13px; color: currentColor; }

/* a result row */
.mock__row {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .55rem;
  border-radius: 9px;
  margin-top: .35rem;
  background: var(--color-bg);
  font-size: var(--step--2);
}
.section--ink .mock__row { background: rgba(255, 255, 255, .05); }
.mock__row .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__row .t { margin-left: auto; flex: none; font-weight: 700; font-family: var(--font-display); }
.mock__row svg { width: 14px; height: 14px; flex: none; }
.mock__row--yes { background: color-mix(in srgb, var(--mint) 30%, var(--color-bg)); }
.mock__row--yes svg, .mock__row--yes .t { color: #0a4a22; }
[data-theme="dark"] .mock__row--yes { background: color-mix(in srgb, var(--mint) 22%, var(--color-surface)); }
[data-theme="dark"] .mock__row--yes svg, [data-theme="dark"] .mock__row--yes .t { color: #0a3a1c; }
.mock__row--no { opacity: .62; }
.mock__row--no .n { text-decoration: line-through; }

/* a small pill */
.mock__chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .55rem; border-radius: 999px;
  font-size: var(--step--2); font-weight: 700;
  font-family: var(--font-display);
  background: var(--color-primary-soft); color: var(--color-primary);
}
.mock__chip--ok { background: color-mix(in srgb, var(--mint) 42%, transparent); color: #0a4a22; }

/* a toggle switch */
.mock__toggle {
  display: inline-block; width: 34px; height: 19px; flex: none;
  border-radius: 999px; background: var(--line-strong); position: relative;
  transition: background-color .45s var(--ease);
}
.mock__toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-xs);
  transition: transform .45s var(--ease);
}
.mock__toggle { background: var(--color-accent); }
.mock__toggle::after { transform: translateX(15px); }

/* ==========================================================================
   The drawn cursor, and the demonstrations it drives
   --------------------------------------------------------------------------
   Each mock plays one short sequence on a loop: the pointer travels to a
   control, presses it, and the result follows.

   Everything inside a single mock shares one duration and carries its stagger
   in the keyframe percentages rather than in `animation-delay`, because a
   delay on an infinite animation offsets the whole cycle and the pointer
   drifts out of step with the thing it is supposedly clicking.

   Two rules stop this becoming noise. Nothing runs until the mock is on
   screen, and it stops again when the mock scrolls away — js/main.js toggles
   `.is-playing`. And every mock has its own duration, so a page of them never
   pulses in unison.

   The resting state — no JavaScript, or reduced motion — is the *end* of the
   sequence rather than the start, so a mock with the script removed shows its
   result instead of an empty panel waiting for an animation that never comes.
   ========================================================================== */

.mock__cursor {
  position: absolute; z-index: 4; width: 22px; height: 22px;
  filter: drop-shadow(0 2px 4px rgba(13, 22, 27, .32));
  pointer-events: none;
}
.mock__cursor svg { width: 100%; height: 100%; display: block; }

/* where each pointer comes to rest: the control it presses */
.cur--search { right: 13%; top: 11%; }
.cur--ladder { right: 7%; top: 47%; }
.cur--install { left: 15%; top: 50%; }
.cur--toggle { right: 12%; top: 13%; }

/* and where it travels in from */
.cur--search  { --fx: -86px; --fy: 78px; }
.cur--ladder  { --fx: -70px; --fy: -54px; }
.cur--install { --fx: 96px; --fy: 64px; }
.cur--toggle  { --fx: -78px; --fy: 86px; }

/* The press is a brief scale down. That reads as a click without needing a
   ripple, which would have to be drawn and positioned per control. */
@keyframes cur-travel {
  0%   { transform: translate(var(--fx), var(--fy)) scale(1); opacity: 0; }
  5%   { opacity: 1; }
  18%  { transform: translate(0, 0) scale(1); opacity: 1; }
  22%  { transform: translate(0, 0) scale(.76); }
  27%  { transform: translate(0, 0) scale(1); }
  82%  { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--fx), var(--fy)) scale(1); opacity: 0; }
}
.is-playing .mock__cursor { animation: cur-travel var(--loop, 4.8s) var(--ease) infinite; }

/* --- what the press produces --------------------------------------------- */

@keyframes mock-appear-1 {
  0%, 22%  { opacity: 0; transform: translateY(9px); }
  29%, 82% { opacity: 1; transform: none; }
  100%     { opacity: 0; transform: translateY(9px); }
}
@keyframes mock-appear-2 {
  0%, 26%  { opacity: 0; transform: translateY(9px); }
  33%, 82% { opacity: 1; transform: none; }
  100%     { opacity: 0; transform: translateY(9px); }
}
@keyframes mock-appear-3 {
  0%, 30%  { opacity: 0; transform: translateY(9px); }
  37%, 82% { opacity: 1; transform: none; }
  100%     { opacity: 0; transform: translateY(9px); }
}
@keyframes mock-appear-4 {
  0%, 34%  { opacity: 0; transform: translateY(9px); }
  41%, 82% { opacity: 1; transform: none; }
  100%     { opacity: 0; transform: translateY(9px); }
}

[data-mock].is-playing .mock__panel > *:nth-child(2),
[data-mock].is-playing .mock__mail .addr:nth-child(1) { animation: mock-appear-1 var(--loop, 4.8s) var(--ease) infinite; }
[data-mock].is-playing .mock__panel > *:nth-child(3),
[data-mock].is-playing .mock__mail .addr:nth-child(2) { animation: mock-appear-2 var(--loop, 4.8s) var(--ease) infinite; }
[data-mock].is-playing .mock__panel > *:nth-child(4),
[data-mock].is-playing .mock__mail .addr:nth-child(3) { animation: mock-appear-3 var(--loop, 4.8s) var(--ease) infinite; }
[data-mock].is-playing .mock__panel > *:nth-child(5) { animation: mock-appear-4 var(--loop, 4.8s) var(--ease) infinite; }
/* the bar at the top of a panel is the thing being pressed, not a result */
[data-mock].is-playing .mock__panel > .mock__bar { animation: none; }
/* `.is-playing` is set ON the mock, not on an ancestor of it — writing these
   as `.is-playing [data-mock] ...` matched nothing and the result rows never
   moved, which is the same trap the scroll reveal fell into earlier. */

/* The ladder reads the other way round from the search: the four rungs are
   already on screen and the pointer comes down to choose one. So the rungs do
   not fade in with the generic result animation — only the highlight moves,
   and it lands on the frame the pointer presses. The override needs the same
   specificity as the nth-child rule it is replacing, hence the full chain. */
[data-mock].is-playing .mock__panel > .mock__rung { animation: none; }
@keyframes rung-pick {
  0%, 22%  { background-color: transparent; transform: none; }
  29%, 82% { background-color: color-mix(in srgb, var(--tier) 15%, transparent); transform: translateX(4px); }
  100%     { background-color: transparent; transform: none; }
}
[data-mock].is-playing .mock__panel > .mock__rung--on {
  animation: rung-pick var(--loop, 4.8s) var(--ease) infinite;
}

/* the application tile lighting up, and the install running */
@keyframes tile-pick {
  0%, 22%  { border-color: var(--line); background-color: var(--color-bg); color: var(--color-text-muted); }
  29%, 82% { border-color: var(--color-accent); background-color: var(--color-primary-soft); color: var(--color-primary); }
  100%     { border-color: var(--line); background-color: var(--color-bg); color: var(--color-text-muted); }
}
.is-playing .mock__tile--on { animation: tile-pick var(--loop, 4.8s) var(--ease) infinite; }

@keyframes install-run {
  0%, 25%  { width: 0; }
  66%, 84% { width: 100%; }
  100%     { width: 0; }
}
.is-playing .mock__progress i { animation: install-run var(--loop, 4.8s) var(--ease-out) infinite; }

/* the switch being thrown */
@keyframes toggle-on {
  0%, 22%  { background-color: var(--line-strong); }
  29%, 82% { background-color: var(--color-accent); }
  100%     { background-color: var(--line-strong); }
}
@keyframes toggle-knob {
  0%, 22%  { transform: translateX(0); }
  29%, 82% { transform: translateX(15px); }
  100%     { transform: translateX(0); }
}
.is-playing .mock__toggle { animation: toggle-on var(--loop, 4.8s) var(--ease) infinite; }
.is-playing .mock__toggle::after { animation: toggle-knob var(--loop, 4.8s) var(--ease) infinite; }

/* The padlock arriving. No pointer on this one: nobody clicks a padlock, the
   browser draws it once the certificate is in place. */
@keyframes secure-before { 0%, 24% { opacity: 1; } 33%, 82% { opacity: 0; } 100% { opacity: 1; } }
@keyframes secure-after  { 0%, 24% { opacity: 0; } 33%, 82% { opacity: 1; } 100% { opacity: 0; } }
.is-playing .mock__browser .state .before { animation: secure-before var(--loop, 4.8s) var(--ease) infinite; }
.is-playing .mock__browser .state .after  { animation: secure-after var(--loop, 4.8s) var(--ease) infinite; }

/* the four steps filling in order */
@keyframes step-dot-1 {
  0%, 12%  { border-color: var(--line-strong); background-color: var(--color-surface); }
  20%, 84% { border-color: var(--color-accent); background-color: var(--color-accent); }
  100%     { border-color: var(--line-strong); background-color: var(--color-surface); }
}
@keyframes step-dot-2 {
  0%, 24%  { border-color: var(--line-strong); background-color: var(--color-surface); }
  32%, 84% { border-color: var(--color-accent); background-color: var(--color-accent); }
  100%     { border-color: var(--line-strong); background-color: var(--color-surface); }
}
@keyframes step-dot-3 {
  0%, 36%  { border-color: var(--line-strong); background-color: var(--color-surface); }
  44%, 84% { border-color: var(--color-accent); background-color: var(--color-accent); }
  100%     { border-color: var(--line-strong); background-color: var(--color-surface); }
}
@keyframes step-dot-4 {
  0%, 48%  { border-color: var(--line-strong); background-color: var(--color-surface); }
  56%, 84% { border-color: var(--color-accent); background-color: var(--color-accent); }
  100%     { border-color: var(--line-strong); background-color: var(--color-surface); }
}
.is-playing .mock__steps li:nth-child(1) .dot { animation: step-dot-1 var(--loop, 4.8s) var(--ease) infinite; }
.is-playing .mock__steps li:nth-child(2) .dot { animation: step-dot-2 var(--loop, 4.8s) var(--ease) infinite; }
.is-playing .mock__steps li:nth-child(3) .dot { animation: step-dot-3 var(--loop, 4.8s) var(--ease) infinite; }
.is-playing .mock__steps li:nth-child(4) .dot { animation: step-dot-4 var(--loop, 4.8s) var(--ease) infinite; }

/* Each mock gets its own length, so a page of them never pulses together. */
.cell:nth-child(6n+1) [data-mock] { --loop: 4.6s; }
.cell:nth-child(6n+2) [data-mock] { --loop: 5.2s; }
.cell:nth-child(6n+3) [data-mock] { --loop: 4.2s; }
.cell:nth-child(6n+4) [data-mock] { --loop: 5.6s; }
.cell:nth-child(6n+5) [data-mock] { --loop: 4.9s; }
.cell:nth-child(6n+6) [data-mock] { --loop: 5s; }

/* a labelled row of the ladder */
.mock__rung {
  display: flex; align-items: center; gap: .45rem;
  padding: .4rem .55rem; border-radius: 8px; margin-top: .3rem;
  background: var(--color-bg);
  font-size: var(--step--2);
  border-left: 3px solid var(--tier, var(--line-strong));
  transition: background-color .4s var(--ease), transform .4s var(--ease);
}
.mock__rung .p { margin-left: auto; font-family: var(--font-display); font-weight: 700; }
.mock__rung--on { background: color-mix(in srgb, var(--tier) 15%, transparent); transform: translateX(4px); }

/* an application tile, for the one-click install */
.mock__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.mock__tile {
  aspect-ratio: 1; border-radius: 8px;
  background: var(--color-bg); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  transition: border-color .4s var(--ease), background-color .4s var(--ease), color .4s var(--ease);
}
.mock__tile svg { width: 17px; height: 17px; }
.mock__tile--on {
  border-color: var(--color-accent);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.mock__progress {
  height: 5px; border-radius: 3px; background: var(--line);
  margin-top: .55rem; overflow: hidden;
}
.mock__progress i {
  display: block; height: 100%; width: 0; border-radius: 3px;
  background: var(--color-accent);
  transition: width 1.5s var(--ease-out) .35s;
}
.mock__progress i { width: 100%; }

/* the four steps */
.mock__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.mock__steps li {
  display: grid; grid-template-columns: auto 1fr; gap: .6rem;
  align-items: start; margin: 0; padding: .3rem 0;
  font-size: var(--step--2);
  position: relative;
}
.mock__steps .dot {
  width: 15px; height: 15px; border-radius: 50%; margin-top: .1rem;
  border: 2px solid var(--line-strong); background: var(--color-surface);
  position: relative; z-index: 1;
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.mock__steps li + li .dot::before {
  content: ""; position: absolute; left: 50%; top: -1.05rem;
  width: 2px; height: 1.05rem; transform: translateX(-50%);
  background: var(--line-strong);
}
.mock__steps .dot { border-color: var(--color-accent); background: var(--color-accent); }
.is-in .mock__steps li:nth-child(1) .dot { transition-delay: .1s; }
.is-in .mock__steps li:nth-child(2) .dot { transition-delay: .3s; }
.is-in .mock__steps li:nth-child(3) .dot { transition-delay: .5s; }
.is-in .mock__steps li:nth-child(4) .dot { transition-delay: .7s; }

/* the browser bar that goes from "Not secure" to secure */
.mock__browser {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--color-surface);
}
.mock__browser .chrome {
  display: flex; align-items: center; gap: .4rem;
  padding: .45rem .55rem; background: var(--color-bg);
  border-bottom: 1px solid var(--line);
}
.mock__browser .dots { display: flex; gap: .2rem; }
.mock__browser .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.mock__browser .addr {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: .3rem;
  background: var(--color-surface); border: 1px solid var(--line);
  border-radius: 999px; padding: .2rem .5rem; font-size: var(--step--2);
  white-space: nowrap; overflow: hidden;
}
.mock__browser .addr svg { width: 12px; height: 12px; flex: none; }
.mock__browser .state { position: relative; display: inline-flex; align-items: center; }
.mock__browser .state > * { transition: opacity .5s var(--ease); }
.mock__browser .state .before { color: var(--simba-ink); font-weight: 600; }
.mock__browser .state .after { position: absolute; inset: 0; opacity: 0; display: inline-flex; align-items: center; gap: .25rem; color: #0a4a22; font-weight: 700; }
.mock__browser .state .before { opacity: 0; }
.mock__browser .state .after { opacity: 1; }
.mock__browser .page { padding: .7rem .6rem; display: grid; gap: .3rem; }
.mock__browser .page i { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.mock__browser .page i:nth-child(1) { width: 70%; }
.mock__browser .page i:nth-child(2) { width: 90%; }
.mock__browser .page i:nth-child(3) { width: 55%; }

/* a mailbox row */
.mock__mail { display: grid; gap: .3rem; }
.mock__mail .addr {
  display: flex; align-items: center; gap: .4rem;
  padding: .45rem .55rem; border-radius: 9px;
  background: var(--color-bg); font-size: var(--step--2);
}
/* an inline SVG with no width attribute fills its flex line, which turned each
   mailbox row into a giant envelope */
.mock__mail .addr svg { width: 15px; height: 15px; flex: none; color: var(--color-text-muted); }
.mock__mail .addr b { font-weight: 600; }

/* ==========================================================================
   4. The DNS panel
   ==========================================================================
   A drawn record editor, in the same frame as the other mocks. The values are
   the example domain pointing at itself and one address from RFC 5737's
   documentation range — a drawing of the interface that invents nothing about
   Fuzuhost's own infrastructure. */
.mock__dns { margin-top: .4rem; }
.mock__dns .r {
  display: grid; grid-template-columns: 3.6rem 4rem 1fr; align-items: center; gap: .5rem;
  padding: .42rem .55rem; border-radius: 9px; margin-top: .3rem;
  background: var(--color-bg); font-size: var(--step--2);
}
.mock__dns .ty {
  font-family: var(--font-display); font-weight: 800; font-size: var(--step--2);
  text-align: center; padding: .1rem 0; border-radius: 6px;
  background: color-mix(in srgb, var(--tier, var(--color-primary)) 15%, transparent);
  color: var(--tier-ink, var(--color-primary));
}
.mock__dns .h { color: var(--color-text-muted); font-weight: 600; }
.mock__dns .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mock__dns .r--head { background: none; padding-block: .1rem; margin-top: .45rem; }
.mock__dns .r--head span {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step--2);
  letter-spacing: .07em; text-transform: uppercase; color: var(--color-text-muted);
}
/* mocks.css animates the direct children of a panel, so the whole record block
   arrived as one fade. The block is opted out and the rows carry the stagger
   themselves, which is what the other mocks' rows do. */
[data-mock].is-playing .mock__panel > .mock__dns { animation: none; }
[data-mock].is-playing .mock__dns .r:nth-child(1) { animation: mock-appear-1 var(--loop, 4.8s) var(--ease) infinite; }
[data-mock].is-playing .mock__dns .r:nth-child(2) { animation: mock-appear-2 var(--loop, 4.8s) var(--ease) infinite; }
[data-mock].is-playing .mock__dns .r:nth-child(3) { animation: mock-appear-3 var(--loop, 4.8s) var(--ease) infinite; }
[data-mock].is-playing .mock__dns .r:nth-child(4) { animation: mock-appear-4 var(--loop, 4.8s) var(--ease) infinite; }

/* The pointer uses the system's own `cur-travel`: a resting position over the
   record it presses and the corner it travels in from. The row lights on the
   press, which `cur-travel` puts at 22 per cent of the cycle. */
.cur--dns { left: 60%; top: 42%; --fx: -72px; --fy: 78px; }
.mock__dns .r--edit { outline: 2px solid transparent; }
.is-playing .mock__dns .r--edit { animation: dns-pick var(--loop, 4.8s) var(--ease) infinite; }
@keyframes dns-pick {
  0%, 20%   { outline-color: transparent; background: var(--color-bg); }
  28%, 82%  { outline-color: var(--color-accent); background: var(--color-primary-soft); }
  100%      { outline-color: transparent; background: var(--color-bg); }
}

/* ==========================================================================
   3. The signpost
   ==========================================================================
   The page asked for a picture of "your own address on the savanna", and the
   site has no artwork for it — so it is drawn, in the same flat cartoon the
   scenes are painted in, from the palette tokens rather than from fixed hex.
   The boards sway when the section arrives, the way the other drawn pieces
   move; it all stops under prefers-reduced-motion at the foot of this file. */
.cell__art--tall { min-height: 250px; }
.signpost-frame {
  border-radius: var(--radius-img); overflow: hidden;
  min-height: 22rem; display: flex;
}
/* stacked on a phone there is no second column to match, so it goes back to
   its own proportions rather than stretching to whatever the row happens to be */
@media (max-width: 860px) {
  .signpost-frame { min-height: 0; }
}

/* ==========================================================================
   The WHM window — the Reseller page's drawing
   ==========================================================================
   The second drawing for this slot. The first was a shopfront on the savanna
   and it was turned down for not communicating; four replacements were
   compared in design/reseller-art-variants.html and this one was chosen.

   It is mostly labels, so the sizes below are the working part of the drawing
   rather than a finish on it. Everything is the display face: at these sizes
   the body face goes soft against flat colour.

   Motion: each account is picked out in turn and the empty slot beneath them
   pulses. The stagger is in the keyframe percentages rather than in
   animation-delay, for the reason the crates' is — a delay on an infinite
   animation offsets the whole cycle, and four rows offset against each other
   drift apart instead of taking turns.

   Two earlier versions of that motion were wrong, and both failed the same
   way. The first dipped each row to .45 mid-cycle, which read as a rendering
   fault rather than as an arrival. The second had the rows start at opacity 0
   and arrive in turn — truer to the argument, but it means most stills of the
   drawing catch a half-empty list, and a screenshot, a thumbnail and the
   moment the section scrolls into view are all stills. The rule the crates
   already follow is the right one: the resting state is the finished state,
   and the motion is only a nudge on top of it. That is also what reduced
   motion leaves, so it needs no separate handling. */
.whm-scene { display: block; }
.whm-scene .whm-t {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  fill: var(--color-text-muted);
}
.whm-scene .whm-t--logo { font-size: 15px; font-weight: 800; fill: var(--ink); }
.whm-scene .whm-t--win { font-size: 15px; font-weight: 800; fill: #fff; letter-spacing: .06em; }
.whm-scene .whm-t--win2 { font-size: 13px; font-weight: 700; fill: var(--on-dark-muted); letter-spacing: .14em; }
.whm-scene .whm-t--cap { font-size: 13px; font-weight: 800; letter-spacing: .16em; }
.whm-scene .whm-t--count { font-size: 13px; font-weight: 700; }
.whm-scene .whm-t--acct { font-size: 15px; font-weight: 600; fill: var(--color-text); }
.whm-scene .whm-t--gb { font-size: 13px; font-weight: 700; }
.whm-scene .whm-t--new { font-size: 15px; font-weight: 700; fill: var(--color-primary); }
.whm-scene .whm-row { transform-box: fill-box; }
.is-in .whm-scene .whm-row--1 { animation: whm-pick-1 7.6s var(--ease) infinite; }
.is-in .whm-scene .whm-row--2 { animation: whm-pick-2 7.6s var(--ease) infinite; }
.is-in .whm-scene .whm-row--3 { animation: whm-pick-3 7.6s var(--ease) infinite; }
.is-in .whm-scene .whm-row--4 { animation: whm-pick-4 7.6s var(--ease) infinite; }
.is-in .whm-scene .whm-new { animation: whm-new 7.6s var(--ease) infinite; }
@keyframes whm-pick-1 { 0%, 4%, 20%, 100% { transform: none; } 12% { transform: translateX(6px); } }
@keyframes whm-pick-2 { 0%, 20%, 36%, 100% { transform: none; } 28% { transform: translateX(6px); } }
@keyframes whm-pick-3 { 0%, 36%, 52%, 100% { transform: none; } 44% { transform: translateX(6px); } }
@keyframes whm-pick-4 { 0%, 52%, 68%, 100% { transform: none; } 60% { transform: translateX(6px); } }
@keyframes whm-new { 0%, 70% { opacity: .55; } 82% { opacity: 1; } 94%, 100% { opacity: .55; } }

/* Squeezed into a phone the whole scene is 960 units in about 350 px and the
   post titles stop being readable. Below the breakpoint it keeps a legible
   width and the wrapper scrolls sideways instead — the same thing the wide
   tables do, with the same shadow cue on the edge you can still travel to. */
@media (max-width: 860px) {
  .trail-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-img);
    background-image:
      linear-gradient(to right, var(--cream), transparent),
      linear-gradient(to left, var(--cream), transparent),
      linear-gradient(to right, var(--scroll-shadow), transparent),
      linear-gradient(to left, var(--scroll-shadow), transparent);
    background-position: left center, right center, left center, right center;
    background-size: 34px 100%, 34px 100%, 18px 100%, 18px 100%;
    background-repeat: no-repeat;
    background-attachment: local, local, scroll, scroll;
  }
}

/* Twice per stride, not once: the body is lowest at each contact, when the
   legs are apart, and highest at the passing pose between them. At 0.45s it
   rose and fell once per stride, which put the high point on the second
   contact and made him bounce rather than walk. */

/* ==========================================================================
   3. Entrances. Each mock plays a short stagger when it arrives.
   ========================================================================== */

/* The resting state is the finished sequence. Without the script, or under
   reduced motion, every mock simply shows its result. */
[data-mock] .mock__row,
[data-mock] .mock__rung,
[data-mock] .mock__mail .addr { opacity: 1; transform: none; }

/* ==========================================================================
   The journey: four numbered steps, each carrying the interface it happens in
   --------------------------------------------------------------------------
   This replaced a two-column split whose left was a display headline and whose
   right was a small panel, with a band of empty cream between them. The steps
   are the point of the section, so they now take the full width and each one
   shows the screen that step actually happens on.

   The artwork panel is a fixed height rather than a min-height: the four mocks
   have different natural heights and, left to themselves, the cells finish at
   four different sizes.
   ========================================================================== */

.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.8rem, 1.8vw, 1.3rem); }
@media (max-width: 1000px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .journey { grid-template-columns: 1fr; } }

.journey__step {
  display: flex; flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}
.journey__step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.journey__art {
  position: relative;
  padding: 1.1rem;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  height: 222px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
/* At a quarter of the page the panel is about 240 px wide, which clips the
   longer labels ("cPanel · Softaculous", the address bar and its state). The
   mock is given its full width and scaled down instead, so nothing is cut and
   the proportions stay the same as everywhere else it appears. */
.journey__art .mock { width: 17rem; max-width: none; transform: scale(.86); transform-origin: center; }
@media (max-width: 1000px) { .journey__art .mock { width: 18rem; transform: none; } }

.journey__n {
  position: absolute; left: .9rem; top: .9rem; z-index: 5;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--on-dark);
  font-family: var(--font-display); font-weight: 700; font-size: var(--step--2);
}
.journey__body { padding: 1rem 1.1rem 1.2rem; }
.journey__body h3 { font-size: var(--step-1); margin-bottom: .2rem; }
.journey__body p { color: var(--color-text-muted); font-size: var(--step--1); margin: 0; }

/* ==========================================================================
   4. The glossary
   ========================================================================== */

/* Three groups — your name, your space, your tools — so a beginner sees
   which words belong together (design/glossary-variants.html, B). */
.term-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.6rem); }
.term-group {
  background: var(--color-surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.4vw, 1.8rem); box-shadow: var(--shadow-xs);
}
.term-group__head {
  display: flex; align-items: center; gap: .75rem;
  padding-bottom: 1rem; margin-bottom: .3rem; border-bottom: 2px solid var(--color-accent);
}
.term-group__head h3 { margin: 0; font-size: var(--step-2); flex: 1; }
.term-group__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-text-on-primary);
}
.term-group__icon svg { width: 19px; height: 19px; }
.term-group__n { font-family: var(--font-display); font-weight: 700; font-size: var(--step--1); letter-spacing: .04em; color: var(--color-text-muted); }
.term-group dl { margin: 0; }
.term-group dl > div { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.term-group dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.term-group dt { font-family: var(--font-display); font-weight: 700; margin-bottom: .15rem; }
.term-group dd { margin: 0; color: var(--color-text-muted); font-size: var(--step--1); line-height: 1.55; }
@media (max-width: 900px) { .term-groups { grid-template-columns: 1fr; max-width: 34rem; } }

/* ==========================================================================
   5. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  /* every sequence off; the resting state is already the finished one */
  .is-playing *, .mock__cursor { animation: none !important; }
  .is-in .whm-scene .whm-row, .is-in .whm-scene .whm-new,
  .is-in .whm-scene .whm-led { animation: none !important; }
  [data-mock] .mock__row,
  [data-mock] .mock__rung,
  [data-mock] .mock__mail .addr { opacity: 1 !important; transform: none !important; }
  .mock__progress i { width: 100% !important; }
  .mock__toggle { background: var(--color-accent) !important; }
  .mock__toggle::after { transform: translateX(15px) !important; }
  .mock__steps .dot { border-color: var(--color-accent) !important; background: var(--color-accent) !important; }
  .mock__browser .state .before { opacity: 0 !important; }
  .mock__browser .state .after { opacity: 1 !important; }
  /* the pointer has nowhere to travel, so it rests on the control it presses */
  .mock__cursor { opacity: 1 !important; transform: none !important; }
  .cell { transition: none !important; }
}

