/*
 * scobly.com. Tokens come from /css/tokens.css; this file uses roles, and the palette's own values only where
 * a part has one look wherever it sits (the ink's own parts; the website field, paper on the ink). No inline
 * styles or style attributes anywhere (the pages' CSP is style-src 'self'). Every page reads complete without
 * JavaScript. The home page's own screens are in /css/home.css (S-757).
 *
 * The look is the app's ink and paper (S-541, from S-531): the deep ink blue carries the masthead, the
 * opening, the closing and the footer; the screens between are paper on a ground tinted from that ink,
 * edged with hairlines, with corners just off square. Orange is what you do, the octopus's blue is what the
 * team does, yellow is the Head's highlighter, and ink is a measurement.
 */

/* ── Base ──────────────────────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--surface-page);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

h1,
h2,
h3,
p,
figure,
ol,
ul,
dl,
dd,
pre,
fieldset {
  margin: 0;
}

fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

em {
  font-style: normal;
  font-weight: var(--weight-semibold);
}

b,
strong {
  font-weight: var(--weight-bold);
}

code {
  font-family: var(--font-code);
  font-size: 0.86em;
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* An underline clear of the descenders, as thick as the face draws its own. */
a {
  color: var(--text-link);
  text-decoration-thickness: from-font;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* The focus ring: an ink outline with a marker halo (a paper outline on the ink). */
:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus-halo);
}

/* The browser's own surfaces wear the palette: the caret in the action colour, thin scrollbars, the
   highlighter for a selection. */
input {
  caret-color: var(--action);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

::selection {
  background: var(--evidence-wash);
  color: var(--text-on-marker);
}

svg text {
  font-family: var(--font-sans);
}

/* A page-colored stroke under a label, so it cuts the lines it crosses. */
.halo {
  paint-order: stroke fill;
  stroke: var(--surface-page);
  stroke-width: 5px;
  stroke-linejoin: round;
}

main {
  flex: 1 0 auto;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 30;
  padding: 12px 16px;
  background: var(--surface-inverse);
  color: var(--text-on-inverse);
  border-radius: var(--radius-control);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Words for screen readers only, such as the "Before: " and "Now: " of a struck pair. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── The ink ───────────────────────────────────────────────────────────────────────── */

/*
 * The one region of committed colour, as the app's rail: the masthead, the opening, the closing and the
 * footer stand on the deep ink blue (the home page's closing is its .screen--ink), with paper text, a
 * blue-grey for quieter text and a light periwinkle for the Head's blue. Each remaps the roles its parts
 * read, so a part reads the same on the ink as on paper.
 */
.masthead,
.hero,
.closing,
.screen--ink,
.footer {
  --surface-page: var(--rail);
  --surface-hover: var(--rail-hover);
  --text-1: var(--on-rail);
  --text-2: var(--on-rail-2);
  --text-3: var(--on-rail-2);
  --text-link: var(--on-rail);
  --line-1: var(--rail-line);
  --line-2: var(--rail-line-strong);
  --line-guide: var(--rail-line-strong);
  --head-ink: var(--on-rail-head);
  --focus-outline: var(--on-rail);
  background: var(--surface-ink);
  color: var(--text-1);
}

/* ── Type ──────────────────────────────────────────────────────────────────────────── */

.display {
  font-family: var(--font-display);
  font-size: var(--type-display);
  font-weight: var(--weight-heavy);
  font-stretch: var(--width-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}

/* The H1's second sentence starts its own line, so each promise reads whole. */
.display__line {
  display: block;
}

/* Under 480px the H1's longest word, "recommended", shares a line only at a smaller size. */
@media (max-width: 480px) {
  .hero .display {
    font-size: clamp(2rem, 1rem + 5vw, 2.75rem);
  }
}

.title {
  font-family: var(--font-display);
  font-size: var(--type-title);
  font-weight: var(--weight-heavy);
  font-stretch: var(--width-title);
  line-height: var(--leading-title);
  letter-spacing: var(--tracking-title);
}

.lead,
.section__lead {
  max-width: var(--measure);
  color: var(--text-2);
  font-size: var(--type-lead);
  font-weight: var(--weight-regular);
  line-height: 1.5;
}

/* ── Actions ───────────────────────────────────────────────────────────────────────── */

/* A solid block of the action colour, its foot a shade darker so it reads as something to press; no glow. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--action);
  box-shadow: inset 0 -2px 0 oklch(0 0 0 / 0.18);
  color: var(--text-on-action);
  font-family: var(--font-sans);
  font-size: var(--size-17);
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-short) ease, transform var(--dur-short) ease;
}

.button:hover {
  background: var(--action-hover);
}

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

.button--small {
  min-height: var(--tap);
  padding: 0 18px;
  font-size: var(--type-ui);
}

/* The secondary action, so a view keeps one filled button: an edge and the text's own colour. */
.button--quiet {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-1);
}

.button--quiet:hover {
  background: var(--surface-hover);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--text-1);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-decoration-color: var(--line-guide);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.text-link:hover {
  color: var(--text-link);
  text-decoration-color: currentColor;
}

/* ── Masthead ──────────────────────────────────────────────────────────────────────── */

/* On the ink, as the app's top bar on a phone; once the page scrolls under it, it casts a short shadow. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  transition: box-shadow var(--dur-medium) ease;
}

.masthead.is-scrolled {
  box-shadow: var(--shadow-float);
}

.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  color: var(--text-1);
  font-family: var(--font-display);
  font-size: var(--size-24);
  font-weight: var(--weight-heavy);
  font-stretch: var(--width-display);
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  transform-origin: 50% 80%;
}

@media (prefers-reduced-motion: no-preference) {
  .brand:hover .brand__mark,
  .brand:focus-visible .brand__mark {
    animation: octo-wiggle 650ms ease-in-out;
  }
}

.brand--small {
  font-size: var(--size-20);
}

.brand--small .brand__mark {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* The app's rail items: quieter text, a lighter ink under the pointer and for the open page. */
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  border-radius: var(--radius-control);
  color: var(--text-2);
  font-size: var(--type-ui);
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-short) ease, color var(--dur-short) ease;
}

.nav__link:hover {
  background: var(--surface-hover);
  color: var(--text-1);
}

.nav__link[aria-current="page"] {
  background: var(--rail-open);
  color: var(--text-1);
}

.nav .button--small {
  margin-left: var(--space-2);
}

/* Features (S-684): a disclosure, so it opens without the script; site.js only closes it on a click
   elsewhere or Escape. Its panel is the masthead's own ink. */
.nav__menu {
  position: relative;
}

.nav__menu > summary {
  gap: 6px;
  cursor: pointer;
  list-style: none;
}

.nav__menu > summary::-webkit-details-marker {
  display: none;
}

.nav__menu > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.nav__menu[open] > summary {
  background: var(--rail-open);
  color: var(--text-1);
}

.nav__menu[open] > summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.nav__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  width: 300px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: var(--radius-tile);
  background: var(--rail);
  box-shadow: 0 0 0 1px var(--rail-line-strong), var(--shadow-float);
}

.nav__item {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  color: var(--text-1);
  font-size: var(--type-ui);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.nav__item span {
  color: var(--text-2);
  font-size: var(--size-13);
  font-weight: var(--weight-medium);
}

.nav__item:hover,
.nav__item[aria-current="page"] {
  background: var(--rail-hover);
}

/* ── The octopus ───────────────────────────────────────────────────────────────────── */

/*
 * Scobly's octopus is the Head of Marketing (owner, 2026-10-24). It moves only to show what it is doing,
 * from its feet, with its shadow, in the app's own motion (apps/web/src/index.css). The site wears two
 * poses: welcome waves twice and then floats (the closings), working bobs (the loop's middle). With
 * reduced motion it stands still.
 */
.octo {
  position: relative;
  display: block;
  flex: none;
  aspect-ratio: 1;
}

.octo__img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 86%;
  user-select: none;
  -webkit-user-drag: none;
}

.octo__shadow {
  position: absolute;
  left: 27%;
  right: 27%;
  bottom: 8%;
  height: 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--octo-shadow), transparent);
  transform-origin: 50% 50%;
}

/* On the ink its shadow is the ink's own, deeper. */
.closing .octo__shadow {
  --octo-shadow: oklch(0.12 0.04 268 / 0.7);
}

@media (prefers-reduced-motion: no-preference) {
  .octo[data-octo="welcome"] .octo__img { animation: octo-wave 1.5s ease-in-out 500ms 2, octo-float 4.8s ease-in-out 3.5s infinite; }
  .octo[data-octo="working"] .octo__img { animation: octo-bob 1.1s ease-in-out infinite; }
  .octo[data-octo="welcome"] .octo__shadow { animation: octo-float-shadow 4.8s ease-in-out 3.5s infinite; }
  .octo[data-octo="working"] .octo__shadow { animation: octo-bob-shadow 1.1s ease-in-out infinite; }
}

@keyframes octo-float {
  0%, 100% { transform: none; }
  50% { transform: translateY(-3%); }
}
@keyframes octo-float-shadow {
  0%, 100% { transform: none; opacity: 1; }
  50% { transform: scaleX(0.88); opacity: 0.75; }
}
@keyframes octo-wave {
  0%, 100% { transform: none; }
  25% { transform: rotate(-7deg); }
  55% { transform: rotate(6deg); }
  80% { transform: rotate(-2deg); }
}
@keyframes octo-bob {
  0%, 100% { transform: scale(1.03, 0.96); }
  50% { transform: translateY(-6%) scale(0.98, 1.03); }
}
@keyframes octo-bob-shadow {
  0%, 100% { transform: none; opacity: 1; }
  50% { transform: scaleX(0.76); opacity: 0.5; }
}
@keyframes octo-wiggle {
  0%, 100% { transform: none; }
  20% { transform: rotate(-12deg) scale(1.08); }
  45% { transform: rotate(10deg) scale(1.08); }
  70% { transform: rotate(-5deg); }
}

/* ── Sections ──────────────────────────────────────────────────────────────────────── */

.section {
  padding-top: var(--space-section);
}

.section__head {
  display: grid;
  gap: 18px;
  max-width: 800px;
}

/* ── Hero: the opening, on the ink ─────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(56px, 7.5vw, 112px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-areas:
    "title title"
    "copy desk";
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: clamp(28px, 3.4vw, 48px);
  align-items: start;
}

.hero .display {
  grid-area: title;
  max-width: 15.5em;
}

.hero__copy {
  grid-area: copy;
  display: grid;
  align-content: start;
  gap: 32px;
  padding-top: 8px;
}

.hero__lead {
  max-width: 30em;
}

/* Two links side by side where a page has no website field (the ChatGPT Ads page, S-684). */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* The website field and its button, side by side: a paper field with an edge, the one filled button. */
.site-form {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.site-form__label {
  color: var(--text-1);
  font-size: var(--type-ui);
  font-weight: var(--weight-semibold);
}

.site-form__row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.site-form__input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--hair-strong), 0 0 0 1px var(--line-1);
  color: var(--ink);
  font-size: var(--size-18);
  font-weight: var(--weight-medium);
  transition: box-shadow var(--dur-short) ease;
}

.site-form__input::placeholder {
  color: var(--slate);
  opacity: 1;
}

.site-form__input:hover {
  box-shadow: inset 0 0 0 1px var(--guide), 0 0 0 1px var(--line-2);
}

.site-form__input:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 5px var(--focus-halo);
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
}

.site-form__note {
  color: var(--text-3);
  font-size: var(--type-data);
}

/* A member of the NVIDIA Inception program, said in a feature or industry page's opening too (S-889; owner,
   2026-11-26, asked after the home page's line, S-880: "Yes, add it"): NVIDIA's badge and the footer's
   sentence as the last line of the opening's words, under the website field, or under the early-access note
   on a page with no field. Not at the top, as on the home page (css/home.css): here the headline stands
   right under the masthead, where a line would be a label over it. It is set like the note over it, and the
   footer's row keeps NVIDIA's trademark line for the page. NVIDIA's rules for the badge are the footer's:
   its file as it came, 40px tall with its clear space, so its box stands a little over 30px, and never
   larger than Scobly's logo, the masthead's 34px mark (30px on a phone, where the badge follows, below). */
.hero__member {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  /* 24px under the note: the opening's words keep 32px between their parts (.hero__copy's gap), and the
     line belongs with the field over it. */
  margin-top: calc(-1 * var(--space-2));
  color: var(--text-3);
  font-size: var(--type-data);
  line-height: 1.4;
}

/* The clear space drawn into the file is 5px of this height on each side: the margin sets the badge's own
   edge under the field's. */
.hero__badge {
  flex: none;
  width: auto;
  height: 40px;
  margin-left: -5px;
}

/* Where the words take two lines (a phone), they break evenly. */
.hero__membership {
  min-width: 0;
  text-wrap: balance;
}

/* ── Questions ─────────────────────────────────────────────────────────────────────── */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-7) clamp(32px, 5vw, 72px);
}

/* Ruled rows on the ground, as an index: each question under a rule, a drawn plus that turns into a minus. */
.faq__list {
  display: grid;
  border-bottom: 1px solid var(--line-2);
}

.qa {
  border-top: 1px solid var(--line-2);
}

.qa__q {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 14px 52px 14px 0;
  font-size: var(--size-18);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-short) ease;
}

.qa__q::-webkit-details-marker {
  display: none;
}

.qa__q::before,
.qa__q::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  margin-top: -1px;
  border-top: 2px solid var(--line-ink);
  transition: transform var(--dur-medium) var(--ease-out);
}

.qa__q::after {
  transform: rotate(90deg);
}

.qa[open] .qa__q::after {
  transform: rotate(0deg);
}

.qa__q:hover {
  color: var(--text-link);
}

.qa__a {
  max-width: 62ch;
  padding: 0 52px 24px 0;
  color: var(--text-2);
  font-size: var(--type-reading);
  line-height: 1.55;
}

/* ── Closing: the invitation, on the ink ───────────────────────────────────────────── */

.closing {
  margin-top: var(--space-section);
  padding-block: clamp(56px, 7vw, 104px);
}

.closing__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}

.octo--closing {
  width: clamp(180px, 22vw, 290px);
}

.closing__copy {
  display: grid;
  gap: 28px;
}

.closing__head {
  display: grid;
  gap: 14px;
}

/* The four steps to start, a real sequence: each under a rule, numbered as a figure. */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.steps__step {
  display: grid;
  gap: 4px;
  align-content: start;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: var(--type-data);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  counter-increment: step;
}

.steps__step b {
  color: var(--text-1);
  font-size: var(--type-small);
}

.steps__step b::before {
  content: counter(step) ". ";
  font-variant-numeric: tabular-nums;
}

/* ── Footer: the ink again ─────────────────────────────────────────────────────────── */

.footer {
  padding-block: 32px 40px;
  border-top: 1px solid var(--line-1);
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
}

.footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}

.footer__tagline {
  color: var(--text-2);
  font-size: var(--type-ui);
  font-weight: var(--weight-medium);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin-left: auto;
  font-size: var(--type-ui);
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 8px;
  color: var(--text-2);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--text-1);
  text-decoration: underline;
}

.footer__note {
  color: var(--text-3);
  font-size: var(--type-data);
}

/* A member of the NVIDIA Inception program (S-834): NVIDIA's badge and its trademark line, in a row of their
   own under the footer's. The badge is NVIDIA's file as it came, its colours and proportions untouched. It is
   40px tall with the clear space drawn into it, so its box stands a little over the 30px NVIDIA asks for on a
   screen. NVIDIA also asks that it never stand larger than the member's own logo, so beside it Scobly's mark
   is 32px (the guides' footers, which have no badge, keep 28px). */
.footer__member {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-1);
}

/* The clear space drawn into the file is 5px of this height on each side: the margin sets the badge's own
   edge under Scobly's mark, with nothing but the page's margin to its left. */
.footer__badge {
  flex: none;
  width: auto;
  height: 40px;
  margin-left: -5px;
}

/* Beside the badge where a line of it fits, under it on a phone. */
.footer__legal {
  flex: 1 1 24em;
  max-width: 60em;
  color: var(--text-3);
  font-size: var(--size-13);
  line-height: 1.5;
}

.footer--member .brand--small .brand__mark {
  width: 32px;
  height: 32px;
}

/* ── The dive: the feature pages' water, from the sunlit surface to the reef (S-689) ───
   The page reads as one dive: a light blue that deepens a little from the surface
   down, light enough that every screen keeps the paper's roles, then a short descent
   that darkens into the ink of the closing and the reef. The water's four blues are
   tokens (--dive-0 to --dive-3 in css/tokens.css) since S-757, so the home page
   stands on them without this class. */

.dive {
  background: linear-gradient(180deg, var(--dive-0) 0, var(--dive-1) 26%, var(--dive-2) 60%, var(--dive-3) 100%);
}

/* The surface: the opening is the light, top of the water, so it takes the paper's roles back from the ink. */
.hero.hero--surface {
  --surface-page: var(--canvas);
  --surface-hover: var(--haze);
  --text-1: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--slate);
  --text-link: var(--brand);
  --line-1: var(--hair);
  --line-2: var(--hair-strong);
  --line-guide: var(--guide);
  --head-ink: var(--octo-ink);
  --focus-outline: var(--ink);
  position: relative;
  overflow: hidden;
  background: transparent;
  padding-bottom: clamp(40px, 5vw, 80px);
}

/* Light from the surface: slow rays leaning from the upper left, and the shimmer of the swell on top. */
.surface {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(90% 55% at 30% -8%, oklch(1 0 0 / 0.85), transparent 70%);
}

.surface::before,
.surface::after {
  content: "";
  position: absolute;
  inset: -20% -10% 30%;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.surface::before {
  background: repeating-linear-gradient(104deg, transparent 0 110px, oklch(1 0 0 / 0.42) 110px 150px, transparent 150px 260px, oklch(1 0 0 / 0.26) 260px 280px, transparent 280px 420px);
  transform-origin: 30% 0;
}

.surface::after {
  inset: -10% -10% 55%;
  background:
    radial-gradient(28px 10px at 20% 30%, oklch(1 0 0 / 0.55), transparent 70%),
    radial-gradient(36px 12px at 60% 18%, oklch(1 0 0 / 0.5), transparent 70%),
    radial-gradient(24px 9px at 82% 42%, oklch(1 0 0 / 0.45), transparent 70%),
    radial-gradient(30px 10px at 40% 60%, oklch(1 0 0 / 0.4), transparent 70%);
  background-size: 360px 160px;
  opacity: 0.7;
}

@media (prefers-reduced-motion: no-preference) {
  .surface::before { animation: surface-sway 14s ease-in-out infinite alternate; }
  .surface::after { animation: surface-swell 22s linear infinite; }
}

@keyframes surface-sway {
  from { transform: rotate(-2deg) translateX(-20px); }
  to { transform: rotate(2.5deg) translateX(30px); }
}

@keyframes surface-swell {
  from { background-position: 0 0; }
  to { background-position: 360px 40px; }
}

/* The descent: the page's light water darkens into the ink of the closing, with light falling into it. */
.descent {
  position: relative;
  height: clamp(200px, 22vw, 340px);
  margin-top: calc(var(--space-section) / 2);
  overflow: hidden;
  background: linear-gradient(180deg, var(--dive-3), var(--rail));
}

.descent + .closing {
  margin-top: 0;
}

.descent__rays,
.descent__bubbles {
  position: absolute;
  inset: 0;
}

.descent__rays {
  background: repeating-linear-gradient(100deg, transparent 0 140px, oklch(1 0 0 / 0.1) 140px 190px, transparent 190px 340px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}

.descent__bubbles {
  background:
    radial-gradient(circle at 12% 70%, oklch(1 0 0 / 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 18% 40%, oklch(1 0 0 / 0.4) 0 3px, transparent 4px),
    radial-gradient(circle at 76% 80%, oklch(1 0 0 / 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 81% 50%, oklch(1 0 0 / 0.35) 0 3px, transparent 4px),
    radial-gradient(circle at 47% 90%, oklch(1 0 0 / 0.4) 0 2px, transparent 3px);
  background-size: 100% 220px;
}

@media (prefers-reduced-motion: no-preference) {
  .descent__bubbles { animation: descent-rise 9s linear infinite; }
  .descent__rays { animation: surface-sway 16s ease-in-out infinite alternate; }
}

@keyframes descent-rise {
  from { background-position: 0 0; }
  to { background-position: 0 -220px; }
}

@media print {
  .surface,
  .descent {
    display: none;
  }
}

/* ── Questions set larger (S-689, slice 5) ─────────────────────────────────────────── */

.faq .qa__q {
  font-size: clamp(var(--type-ui), 1rem + 0.45vw, 1.375rem);
  padding-block: 22px;
}

@media (min-width: 1001px) {
  .faq__title {
    position: sticky;
    top: calc(var(--header-height) + 32px);
    align-self: start;
  }
}

/* ── Scobly lives on the page (S-689): js/companion.js draws it on a canvas over the whole viewport,
   under the masthead, letting clicks through; its line sits in a bubble above its head. While it is
   here the questions' still octopus steps aside for it. ─────────────────────────────────────── */
:root {
  --companion-octo: var(--octo);
  --companion-shade: oklch(from var(--octo) calc(l - 0.07) c h);
  --companion-light: oklch(from var(--octo) calc(l + 0.07) calc(c * 0.85) h);
  --companion-eye: oklch(0.2 0.045 268);
  --companion-paper: #ffffff;
  --companion-action: var(--brand);
  --companion-mark: var(--marker);
  --companion-ink: oklch(0.18 0.04 268);
}

.companion {
  position: fixed;
  inset: 0;
  z-index: 15;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.companion__probe {
  position: absolute;
}

.companion__say {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 16;
  max-width: 260px;
  margin: 0;
  padding: 9px 13px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-raised);
  color: var(--text-1);
  font-size: var(--type-data);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  box-shadow: 0 0 0 1px var(--line-1), 0 14px 26px -14px oklch(0.25 0.09 255 / 0.6);
  pointer-events: none;
  opacity: 0;
  transform: translate(calc(var(--x, -400px) - 12px), calc(var(--y, -400px) - 100%));
  transition: opacity 260ms ease;
}

.companion__say.is-on {
  opacity: 1;
}

.companion__say.is-hidden {
  opacity: 0;
}

.has-companion .faq__octo {
  display: none;
}

@media print {
  .companion,
  .companion__say {
    display: none;
  }
}

/* ── Polish (S-690): one headline rhythm ───────────────────────────────────────────── */

/* On the feature pages every screen's head is the same: a small label in the team's blue over the
   headline, left-aligned at one size. */
.eyebrow {
  margin: 0;
  color: var(--head-ink);
  font-size: var(--type-data);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dive .section__head {
  gap: 14px;
}

.dive > .section {
  padding-block: clamp(72px, 8vw, 128px);
}

.dive > .section + .section {
  margin-top: 0;
}

.dive > .hero--surface {
  padding-bottom: clamp(48px, 6vw, 88px);
}

.faq__side {
  display: grid;
  align-content: start;
  gap: 14px;
}

@media (min-width: 1001px) {
  .faq__side {
    position: sticky;
    top: calc(var(--header-height) + 32px);
    align-self: start;
  }

  .faq__side .faq__title {
    position: static;
  }
}

/* ── Polish, part 2 (S-691): warmer questions and small details ────────────────────── */

/* Questions: Scobly thinking beside them, a line for anything else, and the open answer tinted. */
.faq__octo {
  width: clamp(110px, 12vw, 150px);
  height: auto;
  margin-top: 12px;
}

.faq__more {
  margin: 0;
  color: var(--text-2);
  font-size: var(--type-ui);
}

.faq__more a {
  color: var(--text-link);
  font-weight: var(--weight-semibold);
}

.dive .qa {
  border-radius: 12px;
  transition: background var(--dur-medium) ease;
}

.dive .qa[open] {
  background: var(--surface-raised);
  box-shadow: 0 0 0 1px var(--line-1);
}

.dive .qa .qa__q,
.dive .qa .qa__a {
  padding-inline: 16px;
}

/* Small details: a gentle lift under the pointer on the buttons. */
.dive .button {
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background 180ms ease;
}

.dive .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px oklch(from var(--brand) l c h / 0.7);
}

/* Each screen fades up once, the first time it comes into view (dive.js adds is-in). Without the
   script, or with reduced motion, every screen simply shows. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-armed .dive > .section:not(.is-in) > .wrap {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal-armed .dive > .section > .wrap {
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  }
}

@media (max-width: 760px) {
  .faq__octo {
    display: none;
  }
}

/* Bubbles from a tap on the open water (bubbles.js draws them on this canvas, as the reef's), in the
   team's blue. */
.tap-sea {
  position: fixed;
  inset: 0;
  z-index: 14;
  width: 100vw;
  height: 100vh;
  color: oklch(from var(--octo) l c h / 0.85);
  pointer-events: none;
}

@media print {
  .tap-sea { display: none; }
}

/* The feature pages wear the dive (S-692): its water and surface opening, a label over every heading,
   and the screens after the opening alternating light water and paper white. */
.dive--feature > .section:nth-of-type(odd) {
  background: var(--paper);
}

/* The surface's light plays under the opening's words and drawing, never over them. */
.hero--surface > :not(.surface) {
  position: relative;
}

/* A feature screen's label sits over its headline, in its own row of the screen's grid. */
.dive--feature .fx__grid > .eyebrow {
  grid-area: eyebrow;
  align-self: end;
  margin-bottom: -8px;
}

.dive--feature .fx__grid {
  grid-template-areas:
    "eyebrow eyebrow"
    "title title"
    "text text"
    "spot panel";
}

.dive--feature .fx--flip .fx__grid {
  grid-template-areas:
    "eyebrow eyebrow"
    "title title"
    "text text"
    "panel spot";
}

@media (max-width: 1000px) {
  .dive--feature .fx__grid,
  .dive--feature .fx--flip .fx__grid {
    grid-template-areas:
      "eyebrow"
      "title"
      "text"
      "spot"
      "panel";
  }
}

.dive--feature .fx-hero__art {
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line-1), 0 36px 60px -36px oklch(0.25 0.09 255 / 0.6);
}

.dive--feature .fx-hero__caption {
  color: var(--text-3);
}

/* ── The reef: the home page's closing sinks into the octopus's sea (S-686) ────────────
   The closing stands centred over it with no octopus of its own: the reef's octopus holds
   the rock's edge under the website field. js/reef.js draws it on the canvas from these
   colours and its drawings (images/reef/); without the script the octopus waves from a
   still sea of the same ink. */

.closing--reef {
  padding-bottom: clamp(8px, 2vw, 24px);
}

.closing--reef .closing__grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 880px;
  text-align: center;
}

.closing--reef .closing__head,
.closing--reef .site-form {
  justify-items: center;
}

.closing--reef .steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: left;
}

.closing--reef .site-form {
  display: grid;
  width: min(100%, 560px);
  margin-inline: auto;
}

.closing--reef .site-form__row {
  width: 100%;
}

.footer--reef {
  --reef-top: var(--rail);
  --reef-deep: oklch(from var(--rail) calc(l * 0.62) c h);
  --reef-far: oklch(from var(--rail) calc(l * 1.12) calc(c * 0.9) h);
  --reef-light: oklch(0.93 0.05 225);
  --reef-octo: var(--octo);
  --reef-octo-shade: oklch(from var(--octo) calc(l - 0.07) c h);
  --reef-octo-light: oklch(from var(--octo) calc(l + 0.16) calc(c * 0.6) h);
  --reef-eye: oklch(0.2 0.045 268);
  --reef-paper: #ffffff;
  --reef-paper-line: oklch(0.8 0.015 268);
  --reef-coral: var(--brand);
  --reef-star: var(--marker);
  --reef-ink: oklch(0.1 0.03 268);
  padding-top: 0;
  border-top: 0;
  background: var(--reef-deep);
}

.reef {
  position: relative;
  height: clamp(320px, 36vw, 520px);
  overflow: hidden;
  background: linear-gradient(var(--reef-top), var(--reef-deep));
  touch-action: pan-y;
}

.reef__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.reef.is-over-octo {
  cursor: pointer;
}

/* Without the script: the octopus waves from behind a rock of the deep. */
.reef__still {
  position: absolute;
  inset: auto 0 0;
  display: none;
  justify-items: center;
  height: 34%;
  background: radial-gradient(42% 100% at 50% 100%, var(--reef-deep) 99%, transparent 100%);
}

.reef__octo {
  width: 180px;
  height: auto;
  margin-top: -132px;
}

.reef:not(.is-live) .reef__canvas {
  display: none;
}

.reef:not(.is-live) .reef__still {
  display: grid;
}

@media (max-width: 640px) {
  .closing--reef .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  .reef {
    display: none;
  }
}

/* ── Document pages: privacy, ScoblyBot, guides, not found ─────────────────────────── */

.doc {
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: var(--space-section);
}

.doc__head {
  max-width: 820px;
}

.doc__title {
  font-family: var(--font-display);
  font-size: var(--type-doc-title);
  font-weight: var(--weight-heavy);
  font-stretch: var(--width-display);
  line-height: 1;
  letter-spacing: -0.036em;
}

.doc__head .lead {
  margin-top: 20px;
}

.doc__meta {
  margin-top: 16px;
  color: var(--text-3);
  font-size: var(--type-ui);
}

.doc__specimen {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  box-shadow: var(--shadow-edge);
  font-family: var(--font-code);
  font-size: var(--type-ui);
  overflow-wrap: anywhere;
}

.doc__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-top: var(--space-10);
  align-items: start;
}

/* Guides: the list as a grid of cards, each a guide's cover over its title, a few lines on it, its date and
   reading time. Each entry is written by its guide's own pull request, from the site's post recipe, as an
   article.qa holding a .qa__q link, a .qa__a and a .doc__meta: these rules draw that markup as a card, so
   the recipe needs no change, and the release adds the cover and writes the date out (tools/stamp.mjs). */
.doc--guides .prose--wide {
  grid-column: 1 / -1;
  max-width: none;
}

.doc--guides .faq__list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-9) var(--gutter);
  border-bottom: 0;
}

.doc--guides .qa {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-top: 0;
}

/* The show-more button's hidden cards: the card's own display would show them. */
.doc--guides .qa[hidden] {
  display: none;
}

/* The covers are 1376 by 768; the box holds 16 by 9 whatever the file is, so a late cover moves nothing. */
.guide-cover,
.doc--guides .qa:not(:has(.guide-cover))::before {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  background: var(--surface-sunken);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

/* A guide with no cover, and an entry the release hasn't dressed yet: the octopus on the masthead's ink. */
.doc--guides .qa:not(:has(.guide-cover))::before {
  content: "";
  background: var(--surface-ink) url("/images/octopus/logo-128.webp") center / 64px no-repeat;
}

.doc--guides .qa__q {
  display: block;
  min-height: 0;
  margin-top: var(--space-4);
  padding: 0;
  font-size: var(--size-19);
  font-weight: var(--weight-bold);
  line-height: 1.3;
  text-wrap: balance;
  overflow-wrap: anywhere;
  cursor: auto;
}

/* The questions' drawn plus has no place on a card. */
.doc--guides .qa__q::before,
.doc--guides .qa__q::after {
  content: none;
}

/* One link per card, named by its title and stretched over the whole card, so the cover and the words
   under it all open the guide. Nothing lifts or zooms: the title underlines. */
.doc--guides .qa__q a {
  color: var(--text-1);
  text-decoration: none;
}

.doc--guides .qa__q a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
}

.doc--guides .qa:hover .qa__q a,
.doc--guides .qa__q a:focus-visible {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* The focus ring wraps the card, not the title's lines. */
.doc--guides .qa__q a:focus-visible {
  outline: 0;
  box-shadow: none;
}

.doc--guides .qa__q a:focus-visible::after {
  outline: 2px solid var(--focus-outline);
  outline-offset: 6px;
  box-shadow: 0 0 0 11px var(--focus-halo);
}

.doc--guides .qa__a {
  display: flex;
  flex: 1;
  flex-direction: column;
  max-width: none;
  margin-top: var(--space-2);
  padding: 0;
  font-size: var(--type-ui);
  line-height: 1.5;
}

.doc--guides .qa__a > p:first-child {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* The date and reading time sit on the card's last line, level across a row whatever the titles' lengths. */
.doc--guides .qa__a .doc__meta {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--type-data);
}

.guide-min {
  white-space: nowrap;
}

/* The newest guide leads: its cover beside its words, across the whole row. */
@media (min-width: 861px) {
  .doc--guides .qa:first-of-type {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: 1fr auto;
    column-gap: var(--space-8);
    align-items: center;
    padding-bottom: var(--space-9);
    border-bottom: 1px solid var(--line-2);
  }

  .doc--guides .qa:first-of-type > .guide-cover,
  .doc--guides .qa:first-of-type:not(:has(.guide-cover))::before {
    grid-row: 1 / span 2;
  }

  .doc--guides .qa:first-of-type .qa__q {
    align-self: end;
    margin-top: 0;
    font-family: var(--font-display);
    font-size: var(--size-36);
    font-weight: var(--weight-heavy);
    font-stretch: var(--width-title);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .doc--guides .qa:first-of-type .qa__a {
    align-self: start;
    margin-top: var(--space-4);
    font-size: var(--type-reading);
    line-height: 1.55;
  }

  .doc--guides .qa:first-of-type .qa__a > p:first-child {
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }

  .doc--guides .qa:first-of-type .qa__a .doc__meta {
    margin-top: 0;
    padding-top: var(--space-4);
  }

  .doc--guides .qa:first-of-type .qa__q a::after {
    bottom: var(--space-9);
  }
}

@media (max-width: 1000px) {
  .doc--guides .faq__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .doc--guides .qa:first-of-type {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .doc--guides .faq__list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-8);
  }
}

/* The show-more button, which the page's script adds once the list runs past what it shows at first. */
.guides-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

@media print {
  .doc--guides .qa[hidden] {
    display: flex;
  }

  .guides-more {
    display: none;
  }
}

.toc {
  grid-column: 1 / span 3;
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding-top: 6px;
}

.toc__title {
  color: var(--text-3);
  font-size: var(--type-data);
  font-weight: var(--weight-bold);
}

.toc ol {
  margin-top: 10px;
  border-left: 1px solid var(--line-2);
}

.toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--text-2);
  font-size: var(--type-ui);
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  color: var(--text-1);
  border-left-color: var(--line-ink);
}

.prose {
  grid-column: 5 / -1;
  max-width: 44em;
  color: var(--text-1);
  font-size: var(--type-reading);
  line-height: 1.65;
}

.prose--wide {
  grid-column: 1 / span 8;
}

.prose h2 {
  margin-top: 56px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: var(--size-28);
  font-weight: var(--weight-heavy);
  font-stretch: var(--width-title);
  letter-spacing: -0.024em;
  line-height: 1.15;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 30px;
  margin-bottom: 8px;
  font-size: var(--size-20);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.prose p + p,
.prose ul + p,
.prose p + ul,
.prose dl + p {
  margin-top: 14px;
}

.prose ul {
  margin-top: 12px;
}

.prose ul li {
  position: relative;
  padding-left: 22px;
}

.prose ul li + li {
  margin-top: 8px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--text-3);
}

.prose dl {
  margin-top: 12px;
}

.prose dt {
  margin-top: 18px;
  font-weight: var(--weight-bold);
}

.prose dd {
  margin-top: 4px;
  color: var(--text-1);
}

.prose code {
  padding: 1px 5px;
  border-radius: var(--radius-chip);
  background: var(--surface-band);
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

/* ── A guide's own parts: what Scobly's posts carry beside paragraphs and bullets ───── */

/* Numbered steps keep their numbers: the browser's own markers, so a screen reader reads one list, in the
   quieter text and set as figures. */
.prose ol {
  margin-top: 12px;
  padding-left: 1.75em;
  list-style: decimal;
}

.prose ol > li {
  padding-left: 4px;
}

.prose ol > li + li {
  margin-top: 8px;
}

.prose ol > li::marker {
  color: var(--text-3);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

/* A bulleted list's square is its own: a numbered list inside one keeps its numbers. */
.prose ol > li::before {
  content: none;
}

.prose ol + p {
  margin-top: 14px;
}

/* The cover, a diagram or a poster: the picture with a hairline edge and a card's corners, its caption under
   it in the quietest text. */
.prose figure {
  margin-block: var(--space-7);
}

.prose > figure:first-child {
  margin-top: 0;
}

.prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.prose figcaption {
  margin-top: 10px;
  color: var(--text-3);
  font-size: var(--type-data);
  line-height: 1.45;
}

/* A tip or a warning: a paper strip with an edge, as a notice is, never a coloured side edge. */
.prose blockquote {
  margin: var(--space-6) 0;
  padding: 16px 20px;
  border-radius: var(--radius-tile);
  background: var(--surface-raised);
  box-shadow: var(--shadow-edge);
}

/* A table, as the app's: rows at 14 px with hairlines between them only, the header in the quieter text,
   numbers as figures. A bare one (from a post's Markdown) is its own panel and scrolls inside it on a phone;
   Scobly's designed one has its label over a panel the table scrolls in. */
.prose > table {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-block: var(--space-7);
  overflow-x: auto;
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.prose > table,
.scobly-table table {
  border-collapse: collapse;
  font-size: var(--type-data);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.prose > table th,
.prose > table td,
.scobly-table th,
.scobly-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-1);
  text-align: left;
  vertical-align: top;
}

.prose > table th,
.scobly-table th {
  border-bottom-color: var(--line-2);
  color: var(--text-2);
  font-weight: var(--weight-semibold);
  vertical-align: bottom;
}

.prose > table tbody tr:last-child td,
.scobly-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Scobly's designed table, in the classes Scobly writes where a page refuses style attributes (S-564). */
.scobly-table {
  margin-block: var(--space-7);
}

.scobly-table .scobly-table__title {
  margin: 0 0 10px;
  color: var(--text-1);
  font-size: var(--type-small);
  font-weight: var(--weight-bold);
  line-height: 1.35;
  text-wrap: balance;
}

.scobly-table__frame {
  overflow-x: auto;
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.scobly-table table {
  width: 100%;
}

.scobly-table .scobly-table__label {
  font-weight: var(--weight-semibold);
}

.scobly-table .scobly-table__num {
  text-align: right;
  white-space: nowrap;
}

.scobly-table .scobly-table__category {
  white-space: nowrap;
}

/* A repeated value's mark: the team's blue or ink, filled, as a ring or as a square, always beside its word. */
.scobly-table__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--head);
  vertical-align: 0.05em;
}

.scobly-table__dot--2 {
  background: var(--line-ink);
}

.scobly-table__dot--3,
.scobly-table__dot--4 {
  background: none;
  box-shadow: inset 0 0 0 2px var(--head);
}

.scobly-table__dot--4 {
  box-shadow: inset 0 0 0 2px var(--line-ink);
}

.scobly-table__dot--5,
.scobly-table__dot--6 {
  border-radius: 1px;
}

.scobly-table__dot--6 {
  background: var(--line-ink);
}

/* The measure's bar is a measurement, so ink on a quiet track; the number beside it is what's read. */
.scobly-table__bar {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  width: 110px;
  height: 6px;
  margin-right: 12px;
  border: 0;
  border-radius: 3px;
  background: var(--track-bg);
  vertical-align: middle;
}

.scobly-table__bar::-webkit-meter-bar {
  height: 6px;
  border: 0;
  border-radius: 3px;
  background: var(--track-bg);
}

.scobly-table__bar::-webkit-meter-optimum-value {
  border-radius: 3px;
  background: var(--line-ink);
}

.scobly-table__bar::-moz-meter-bar {
  border-radius: 3px;
  background: var(--line-ink);
}

.scobly-table__value {
  display: inline-block;
  min-width: 64px;
}

/* Scobly's call to action in a post, in the classes Scobly writes where a page refuses style attributes
   (S-564): a paper card with a hairline, the business's name over a headline set wide and heavy, a line of
   text, and its one filled button. A promo paragraph is words in the post, its link a link. */
.scobly-cta {
  margin-block: var(--space-7);
  padding: 22px 24px 24px;
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.scobly-cta .scobly-cta__tag {
  margin: 0 0 8px;
  color: var(--text-3);
  font-size: var(--type-data);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
}

.scobly-cta .scobly-cta__headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--size-24);
  font-weight: var(--weight-heavy);
  font-stretch: var(--width-title);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.scobly-cta .scobly-cta__body {
  margin: 8px 0 0;
  max-width: var(--measure);
  color: var(--text-2);
  font-size: var(--type-small);
  line-height: 1.5;
}

.scobly-cta .scobly-cta__button {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: var(--tap);
  margin-top: 18px;
  padding: 0 18px;
  border-radius: var(--radius-control);
  background: var(--action);
  box-shadow: inset 0 -2px 0 oklch(0 0 0 / 0.18);
  color: var(--text-on-action);
  font-size: var(--type-ui);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--dur-short) ease, transform var(--dur-short) ease;
}

.scobly-cta .scobly-cta__button:hover {
  background: var(--action-hover);
}

.scobly-cta .scobly-cta__button:active {
  transform: translateY(1px);
}

.scobly-cta--promo-paragraph {
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.scobly-cta--promo-paragraph .scobly-cta__headline {
  font-family: var(--font-sans);
  font-size: var(--type-reading);
  font-weight: var(--weight-bold);
  font-stretch: normal;
  letter-spacing: 0;
}

.scobly-cta--promo-paragraph .scobly-cta__button {
  display: inline-block;
  min-height: 0;
  margin-top: 6px;
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--text-link);
  font-size: inherit;
  text-decoration: underline;
}

.scobly-cta--promo-paragraph .scobly-cta__button:hover {
  background: none;
}

.summary {
  padding: 22px 26px 24px;
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.summary__title {
  font-size: var(--size-20);
  font-weight: var(--weight-bold);
}

.summary ul {
  margin-top: 10px;
}

/* A statement that must stand out: a paper strip with a hairline, never a coloured side edge. */
.notice {
  margin: 16px 0;
  padding: 16px 20px;
  border-radius: var(--radius-tile);
  background: var(--surface-raised);
  box-shadow: var(--shadow-edge);
  font-weight: var(--weight-medium);
}

/* Not found: a broken link, drawn */

.lost {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-8);
  align-items: center;
}

.lost__copy {
  grid-column: 1 / span 7;
}

.lost__copy .lead {
  margin-top: 22px;
}

.lost__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-7);
  margin-top: var(--space-8);
}

.lost__viz {
  grid-column: 9 / -1;
  width: 100%;
  max-width: 340px;
  height: auto;
  overflow: visible;
}

.l-link {
  fill: none;
  stroke: var(--head);
  stroke-width: 2;
  stroke-linecap: round;
}

.l-broken {
  fill: none;
  stroke: var(--state-fail);
  stroke-width: 2;
  stroke-dasharray: 5 5;
  stroke-linecap: round;
}

.l-page {
  fill: var(--head);
}

.l-here {
  fill: var(--surface-page);
  stroke: var(--state-fail);
  stroke-width: 2;
}

.l-x {
  fill: none;
  stroke: var(--state-fail);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.l-t {
  fill: var(--text-1);
  font-size: 15px;
  font-weight: var(--weight-semibold);
}

.l-t--fail {
  fill: var(--state-fail);
  font-weight: var(--weight-bold);
}

/* ── Responsive ────────────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "copy"
      "desk";
  }

  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    grid-column: 1 / -1;
    position: static;
    margin-bottom: var(--space-8);
    padding: 16px 20px 18px;
    border-radius: var(--radius-card);
    background: var(--surface-raised);
    box-shadow: var(--shadow-card);
  }

  .toc ol {
    columns: 2 16em;
    column-gap: var(--gutter);
    border-left: 0;
  }

  .toc li {
    break-inside: avoid;
  }

  .toc a {
    padding-left: 0;
    border-left: 0;
  }

  .prose,
  .prose--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .lost__copy,
  .lost__viz {
    grid-column: 1 / -1;
  }

  .closing__grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The masthead's row has to fit between the page's gutters, so its links leave one at a time as the page
   narrows (S-836): from 900px down the link to the page itself (Guides, on Guides, where the reader already
   is), from 816px down Questions, and the rest at 720px. With every link the row needs 864px on Guides,
   787px on the other pages and 764px on a guide, and it ran up to 119px past the edge of a narrower page.
   These two steps are in em, so a reader's larger text size, which widens every link, moves them out with it. */
@media (max-width: 56.25em) {
  .nav__link[aria-current="page"] {
    display: none;
  }
}

@media (max-width: 51em) {
  .nav__link[href$="#questions"] {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav__link:not(.nav__link--signin) {
    display: none;
  }

  /* With its summary gone the Features menu would still stand in the row, taking a gap with nothing in it,
     and a menu left open would keep its panel with no way to shut it. */
  .nav__menu {
    display: none;
  }

  .footer__links {
    margin-left: -8px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  /* The brand and the row may come as near as 12px on a phone. At 375px, where Sign in comes back, the row
     had 8px to spare, and each kind of browser sets the same words a few pixels wider or narrower (S-836). */
  .masthead__bar {
    min-height: 64px;
    gap: var(--space-3);
  }

  .brand {
    font-size: var(--size-20);
  }

  .brand__mark {
    width: 30px;
    height: 30px;
  }

  /* NVIDIA's badge in an opening is never larger than the mark over it, and never under its own least on a
     screen, so its box is 30px here too: 165.1896 of the file's 216 units, the rest its clear space. */
  .hero__badge {
    height: calc(30px * 216 / 165.1896);
  }

  .display {
    font-stretch: 100%;
  }

  .site-form__row {
    flex-wrap: wrap;
  }

  .site-form__input {
    flex-basis: 100%;
  }

  .site-form__row .button {
    width: 100%;
  }

  .qa__q {
    font-size: var(--size-17);
  }
}

@media (max-width: 374px) {
  .nav__link--signin {
    display: none;
  }
}

/* ── The scenes: drawn in the page's own palette, the octopus in each ───────────────── */

.scene {
  position: relative;
  margin: 0;
}

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

.scene__octo {
  position: absolute;
  width: 21%;
  min-width: 120px;
  height: auto;
  left: 40%;
  bottom: 9%;
  filter: drop-shadow(0 10px 10px rgb(0 0 0 / 0.25));
}

/* The feature pages' scenes (S-684): the octopus under the card on the right. */
.scene--ad .scene__octo,
.scene--week .scene__octo,
.scene--reddit .scene__octo {
  left: auto;
  right: 3%;
  bottom: 8%;
  width: 20%;
}

.scene__caption {
  margin-top: 6px;
  color: var(--text-3);
  font-size: var(--size-13);
  font-weight: var(--weight-medium);
}

/* The palette, by role: paper and ink, the Head's blue for the team's things, orange for what you do,
   green for what checks out. */
.ill-paper { fill: var(--paper); }
.ill-paper-2 { fill: var(--canvas); }
.ill-edge { fill: none; stroke: var(--hair-strong); stroke-width: 1.5; }
.ill-ink { fill: var(--ink); }
.ill-bar { fill: var(--hair-strong); }
.ill-bar-2 { fill: var(--hair); }
.ill-blue { fill: var(--octo); }
.ill-blue-wash { fill: var(--octo-wash); }
.ill-orange { fill: var(--action); }
.ill-good-box { fill: var(--good-wash); stroke: var(--good); stroke-width: 1.2; }
.ill-dash { fill: none; stroke: var(--on-rail-2); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
.ill-stroke-blue { fill: none; stroke: var(--octo); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ill-stroke-orange { fill: none; stroke: var(--action); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ill-stroke-good { fill: none; stroke: var(--good); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ill-shadow { fill: var(--octo-shadow); }

.ill-t {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
}

.ill-t--small { font-size: 11px; font-weight: 500; fill: var(--slate); }
.ill-t--good { fill: var(--good); font-size: 11px; font-weight: 600; }
.ill-t--paper { fill: var(--paper); }

@media (max-width: 640px) {
  .scene__octo { min-width: 90px; }
}

/* The feature pages' scenes bob their octopus once in view (site.js adds is-playing). */
@media (prefers-reduced-motion: no-preference) {
  .scene.is-playing .scene__octo {
    animation: scene-bob 3.2s ease-in-out infinite;
  }
}

@keyframes scene-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── Still: with reduced motion the octopus holds its pose ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .octo .octo__img,
  .octo .octo__shadow {
    animation: none !important;
  }
}

/* ── Forced colors and print ───────────────────────────────────────────────────────── */

@media (forced-colors: active) {
  .button,
  .site-form__input,
  .prose blockquote,
  .prose > table,
  .scobly-table__frame,
  .scobly-cta:not(.scobly-cta--promo-paragraph),
  .scobly-cta:not(.scobly-cta--promo-paragraph) .scobly-cta__button {
    border: 1px solid CanvasText;
  }

  .scobly-table__dot {
    forced-color-adjust: none;
    background: CanvasText;
    box-shadow: none;
  }
}

/* The member line of an opening goes with the masthead: on paper NVIDIA's badge would stand with no logo of
   Scobly's by it, and the footer's row says the membership beside Scobly's own mark. */
@media print {
  .masthead,
  .skip,
  .site-form,
  .hero__member {
    display: none;
  }

  /* Paper prints without its backgrounds, so the ink's regions print as paper, in ink. */
  .hero,
  .closing,
  .footer {
    --text-1: var(--ink);
    --text-2: var(--ink-2);
    --text-3: var(--slate);
    --head-ink: var(--octo-ink);
    --line-1: var(--hair);
    --line-2: var(--hair-strong);
    background: none;
    color: var(--text-1);
  }

  /* A post's button prints without its fill, so its words print in ink inside an edge. */
  .scobly-cta .scobly-cta__button {
    background: none;
    box-shadow: inset 0 0 0 1px var(--line-2);
    color: var(--text-1);
  }

  .octo .octo__img,
  .octo .octo__shadow {
    animation: none !important;
  }
}

/* ── The feature pages' screens (S-684): AI SEO, ChatGPT Ads and Social ─────────────────
   Each screen is a split: the headline and its line beside one paper panel ruled into
   cells, each cell a small drawing in the team's blue, a name and its line. A strip of
   figures says the rules in numbers. Used only on ai-seo, chatgpt-ads and reddit-marketing. */

.fx {
  padding-top: var(--space-section);
}

.fx__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "title title"
    "text text"
    "spot panel";
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 18px;
  align-items: end;
}

/* The headline has the full width, so it keeps to a line or two (owner: "title in multiple lines is
   also not looking good"); a wider gap opens before the drawing and panel. */
.fx__head > .title {
  max-width: 24em;
}

.fx__grid > :last-child,
.fx__head > .fx-spot {
  margin-top: clamp(14px, 2vw, 30px);
}

/* The headline and its words share the top row; the drawing and the panel share the row under it,
   stretched to one height, so neither side leaves an empty corner (owner: "this empty space of the
   left below boxes is not looking good .. we will need a different layout"). */
.fx__head {
  display: contents;
}

.fx__head > .title {
  grid-area: title;
}

.fx__head > .fx__text {
  grid-area: text;
  max-width: 46em;
}

.fx__head > .fx-spot {
  grid-area: spot;
}

.fx__grid > :last-child {
  grid-area: panel;
  align-self: stretch;
}

.fx--flip .fx__grid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    "title title"
    "text text"
    "panel spot";
}

.fx__text {
  display: grid;
  gap: 14px;
  color: var(--text-2);
  font-size: var(--type-body);
  line-height: 1.6;
  text-wrap: pretty;
}

.fx__text p {
  margin: 0;
}

/* One track that may shrink, so a wide table in it (the industry pages' costs) scrolls in its own frame. */
.fx__text {
  grid-template-columns: minmax(0, 1fr);
}

.fx__text .scobly-table table {
  min-width: 640px;
}

/* The panel: paper on the ground, its cells divided by hairlines (no cards in cards). */
.cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius-panel);
  background: var(--hair);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.cells--one {
  grid-template-columns: minmax(0, 1fr);
}

.cell {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--surface-raised);
}

.cell:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.cells--one .cell {
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 18px;
  row-gap: 4px;
}

.cells--one .cell__icon {
  grid-row: 1 / span 2;
}

.cell__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-tile);
  background: var(--head-wash);
  color: var(--head-ink);
}

.cell__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cell__name {
  margin: 0;
  color: var(--text-1);
  font-size: var(--size-18);
  font-weight: var(--weight-bold);
  line-height: 1.3;
  text-wrap: balance;
}

.cell__text {
  margin: 0;
  color: var(--text-2);
  font-size: var(--size-15);
  line-height: 1.55;
  text-wrap: pretty;
}

/* The rules in numbers: one panel, four cells, each a figure over its words. */
.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius-panel);
  background: var(--hair);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.figure {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--surface-raised);
}

.figure__value {
  color: var(--text-1);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem);
  font-weight: var(--weight-heavy);
  font-stretch: var(--width-figure);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.figure__label {
  color: var(--text-2);
  font-size: var(--size-15);
  font-weight: var(--weight-medium);
  line-height: 1.45;
}

/* A rulebook: rows under hairlines, each a tick in the pass colour beside the rule. */
.rulebook {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius-panel);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.rulebook .rulebook__title {
  display: flex;
  border-top: 0;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  color: var(--text-1);
  font-weight: var(--weight-bold);
}

.rulebook .rulebook__title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--head);
}

.rulebook li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 24px;
  border-top: 1px solid var(--hair);
  color: var(--text-1);
  font-size: var(--size-15);
  line-height: 1.45;
}

.rulebook li span {
  color: var(--text-2);
}

.rulebook svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  fill: none;
  stroke: var(--state-pass);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The next feature: a paper strip of the other two pages. */
.fx-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius-panel);
  background: var(--hair);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.fx-more a {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 24px 28px;
  background: var(--surface-raised);
  color: var(--text-2);
  font-size: var(--size-15);
  text-decoration: none;
  transition: background-color var(--dur-short) ease;
}

.fx-more a:hover {
  background: var(--surface-hover);
}

.fx-more b {
  color: var(--text-link);
  font-size: var(--size-18);
}

.fx-more b::after {
  content: " →";
}

/* The industries hub's three playbooks, side by side until a card would be too narrow to read. */
.fx-more--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .fx-more--three {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1000px) {
  .fx__grid,
  .fx--flip .fx__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "text"
      "spot"
      "panel";
    align-items: start;
  }

  .figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cells,
  .fx-more {
    grid-template-columns: minmax(0, 1fr);
  }

  .cell:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* The feature pages' section headlines, a size down from a screen's: they introduce a panel. */
.fx__head .title {
  font-size: clamp(1.65rem, 1.2rem + 2.4vw, 3.1rem);
}

/* The drawings' sprite: symbols only, never shown itself. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ── The feature pages' drawings and motion (S-684) ────────────────────────────────────
   The hero is a scene: Nano Banana's drawing fills it, the headline sits over its calm left, and four
   cards float over the drawing. js/features.js moves them: the drawing and each card shift with the
   pointer anywhere on the page by their depth, a card near the pointer is pushed aside and springs
   back, and every card drifts on its own. It sets each one's --x and --y. */

.fx-hero {
  position: relative;
  overflow: hidden;
}

/* The headline across the top, the words under it, then the drawing at the content's full width
   (owner: "lets make it below the title? otherwise title is going into multiple lines", "no make
   images full width of the content"). */
.fx-hero__grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "copy"
    "art";
  row-gap: clamp(24px, 3vw, 40px);
}

.fx-hero .display {
  max-width: 16em;
}

.fx-hero .hero__copy {
  max-width: 40em;
  padding-top: 0;
}

.fx-hero__art {
  position: relative;
  grid-area: art;
  margin-top: clamp(8px, 2vw, 24px);
}

.fx-hero__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-panel);
  box-shadow: 0 0 0 1px var(--rail-line), 0 40px 80px -40px oklch(0.06 0.05 268 / 0.85);
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0);
  will-change: transform;
}

/* The cards sit on the drawing, so they keep their places on it at any width. */
.fx-hero__chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fx-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-tile);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hair), 0 18px 40px -16px oklch(0.08 0.05 268 / 0.7);
  color: var(--slate);
  font-size: var(--size-13);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) rotate(var(--r, 0deg));
  will-change: transform;
}

.fx-chip b {
  color: var(--ink);
  font-weight: var(--weight-bold);
}

.fx-chip svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--good);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fx-chip--1 { top: 6%; left: 3%; }
.fx-chip--2 { bottom: 9%; left: 8%; }
.fx-chip--3 { top: 10%; right: 3%; }
.fx-chip--4 { bottom: 7%; right: 10%; }

.fx-hero__caption {
  padding-block: 10px clamp(20px, 3vw, 36px);
  text-align: right;
}

@media (max-width: 1000px) {
  .fx-hero__chips {
    display: none;
  }
}

@media (max-width: 640px) {
  .fx-hero__art {
    margin-inline: -16px;
  }

  .fx-hero__art img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
  }
}

/* The product scene's stage: a panel of the ink between the paper screens. */
.fx-stage {
  --text-3: var(--on-rail-2);
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(24px, 5vw, 64px) clamp(16px, 6vw, 96px) clamp(20px, 3vw, 36px);
  border-radius: var(--radius-panel);
  background: var(--surface-ink);
}

.fx-stage .scene {
  max-width: 880px;
  margin-inline: auto;
}

/* Each screen's spot drawing, beside its panel and as tall as it: Nano Banana's, whole and at its own
   shape, centred on the ink it was drawn on (#162442, read from the drawings), its edges faded into it,
   so a tall panel never stretches or crops it (owner: "image looks stretched"). */
.fx-spot {
  container-type: size;
  position: relative;
  align-self: stretch;
  min-height: 260px;
  margin: 0;
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: #162442;
  box-shadow: 0 0 0 1px var(--hair), 0 18px 40px -26px oklch(0.2 0.05 268 / 0.55);
}

/* As tall as the box allows at its own 4:3, and up to half again wider than the box when the box is tall;
   never taller than the box. Its own shape always; only plain ink at its sides is cut. */
.fx-spot img {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(150cqw, 133cqh);
  max-width: none;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  transform: translate3d(-50%, calc(-50% + var(--py, 0px)), 0);
  will-change: transform;
}

@media (max-width: 1000px) {
  .fx-spot {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* A screen's spot as a scene of the work itself, in cards (owner, 2026-11-12: "users look at image and
   try to understand rather than text"): the answer that names the site, the crawlers let in, the clicks
   that dipped and came back, the journal with Undo. A stage of a set size, centred in the spot, its cards
   placed on it; they keep their own colours and arrive one by one the first time the screen comes into
   view. */
.fx-spot--work {
  --ws-glow: oklch(1 0 0 / 0.65);
  min-height: 460px;
  background:
    radial-gradient(120% 80% at 85% 0%, var(--ws-glow), transparent 60%),
    linear-gradient(165deg, var(--dive-0), var(--dive-2));
}

.ws {
  --ink-c: oklch(0.215 0.03 266);
  --muted-c: oklch(0.47 0.03 266);
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100% - 32px, 440px);
  height: clamp(400px, 100% - 48px, 540px);
  transform: translate(-50%, -50%);
  color: var(--ink-c);
  font-size: 13.5px;
  line-height: 1.4;
}

.ws__card {
  --r: 0deg;
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 0 0 1px oklch(0.215 0.03 266 / 0.08), 0 26px 44px -24px oklch(0.25 0.09 255 / 0.55);
  transform: rotate(var(--r));
}

.ws__card > * {
  margin: 0;
}

.ws__kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-c);
  font-size: 12px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
}

.ws__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8fa3ff;
}

.ws__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--weight-heavy);
  font-stretch: var(--width-title);
  line-height: 1.2;
}

.ws__tick {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ws__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e3f5ea;
  color: #157a4a;
  font-size: 12px;
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

.ws__pill--wait {
  background: #fff1d6;
  color: #8a5300;
}

.ws__pill--down {
  background: #ffe4dc;
  color: #b2401b;
}

.ws__button {
  padding: 3px 10px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px oklch(0.215 0.03 266 / 0.18);
  color: var(--ink-c);
  font-size: 12px;
  font-weight: var(--weight-semibold);
}

/* The dark cards: an AI assistant's answer, and a terminal. */
.ws__card--answer {
  --ink-c: #ffffff;
  --muted-c: #b9c3f5;
  background: linear-gradient(170deg, #2a3990, #18215a);
  color: #ffffff;
}

.ws__card--code {
  --muted-c: #8f98bd;
  background: #0f1424;
  color: #e8ebf7;
  font-family: var(--font-code);
  font-size: 12.5px;
}

.ws__card--blue {
  --muted-c: #dfe5ff;
  background: linear-gradient(165deg, #5a78ff, #3651e6);
  color: #ffffff;
}

.ws__card--yellow {
  --muted-c: #5b4f17;
  background: #ffd23f;
  color: #1c1a10;
}

.ws__ask {
  align-self: flex-end;
  max-width: 86%;
  padding: 8px 11px;
  border-radius: 12px 12px 2px 12px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: var(--weight-medium);
}

.ws__answer {
  font-size: 14px;
  line-height: 1.5;
}

.ws__mark {
  padding: 1px 4px;
  border-radius: 3px;
  background: #ffd23f;
  color: #1c1a10;
  font-weight: var(--weight-semibold);
}

.ws__source {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #dfe5ff;
  font-size: 12px;
}

.ws__source b {
  color: #ffffff;
}

.ws__source .ws__tick {
  color: #8ff0b8;
}

.ws__rows {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.ws__rows li {
  display: flex;
  white-space: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ws__card--code .ws__rows li span {
  color: #8ff0b8;
}

.ws__card--code .ws__rows li span::before {
  content: "✓ ";
}

/* The journal: one row per piece of work, its state and its Undo. */
.ws__journal {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
}

.ws__journal li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid oklch(0.215 0.03 266 / 0.08);
}

.ws__journal small {
  display: block;
  color: var(--muted-c);
  font-size: 11.5px;
}

.ws__journal b {
  font-weight: var(--weight-semibold);
}

.ws__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--muted-c);
  font-size: 12px;
  font-weight: var(--weight-medium);
}

.ws__toggle::after {
  content: "";
  width: 26px;
  height: 15px;
  border-radius: 999px;
  background: oklch(0.215 0.03 266 / 0.14);
  box-shadow: inset 2px 0 0 1px #ffffff;
}

.ws__toggle--plain::after {
  content: none;
}

/* A page's clicks over twelve weeks: the dip, the refresh, the climb back. */
.ws__chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ws__chart .ws__area {
  fill: #d8e6ff;
}

.ws__chart .ws__line {
  fill: none;
  stroke: #3651e6;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ws__chart .ws__dip {
  fill: #ff5f1f;
}

.ws__chart .ws__mark-line {
  stroke: #3651e6;
  stroke-width: 1.2;
  stroke-dasharray: 3 3;
}

.ws__chart .ws__pin {
  fill: #ffffff;
  stroke: #3651e6;
  stroke-width: 2.2;
}

.ws__steps {
  display: grid;
  gap: 7px;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}

.ws__steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws__steps i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #157a4a;
}

.ws__steps .is-down i {
  background: #ff5f1f;
}

.ws__steps .is-up i {
  background: #3651e6;
}

.ws__big {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: var(--weight-heavy);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* AI answers: the crawlers let in, behind the answer that names the site, and llms.txt published. */
.ws--answers .ws__card--code { --r: 2.5deg; top: 0; right: 0; width: 66%; }
.ws--answers .ws__card--answer { --r: -1.5deg; top: clamp(150px, 50% - 70px, 200px); left: 0; width: 80%; }
.ws--answers .ws__card--chip { --r: 2deg; right: 4px; bottom: 0; flex-direction: row; align-items: center; padding: 10px 14px; }

/* After it publishes: one page's twelve weeks, the lesson, and the Score. */
.ws--after .ws__card--page { --r: -1deg; top: 0; left: 0; width: 94%; }
.ws--after .ws__card--yellow { --r: -2.5deg; bottom: 14px; left: 4px; width: 46%; }
.ws--after .ws__card--blue { --r: 2deg; right: 2px; bottom: 0; width: 46%; }

/* You stay in charge: the journal with Undo, the pull request, the file to paste. */
.ws--charge .ws__card--journal { --r: -1deg; top: 0; left: 0; width: 92%; }
.ws--charge .ws__card--code { --r: 1.5deg; bottom: 70px; left: 6px; width: 62%; }
.ws--charge .ws__card--chip { --r: -2deg; right: 0; bottom: 0; flex-direction: row; align-items: center; padding: 10px 14px; }

.ws__rows .is-no {
  color: #ff9a76;
}

.ws__card--code .ws__rows li span.is-no {
  color: #ff9a76;
}

.ws__card--code .ws__rows li span.is-no::before {
  content: "✕ ";
}

.ws__card--code .ws__rows li span.is-plain {
  color: #e8ebf7;
}

.ws__card--code .ws__rows li span.is-plain::before {
  content: none;
}

.ws__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ws__row--end {
  justify-content: space-between;
}

.ws__button--go {
  background: #c2410c;
  box-shadow: none;
  color: #ffffff;
}

.ws__card--answer .ws__button,
.ws__card--blue .ws__button {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.ws__mid {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: var(--weight-heavy);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.ws__mid small {
  color: var(--muted-c);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--weight-medium);
  letter-spacing: 0;
}

/* The month's spend against the budget, with the 80% line plans stop at. */
.ws__bar {
  position: relative;
  height: 12px;
  margin: 4px 0 18px;
  border-radius: 999px;
  background: oklch(0.215 0.03 266 / 0.09);
}

.ws__bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5a78ff, #3651e6);
}

.ws__bar-cap {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 80%;
  width: 2px;
  border-radius: 2px;
  background: #c2410c;
}

.ws__bar-cap::after {
  content: "80% · plans stop here";
  position: absolute;
  top: 100%;
  right: -2px;
  margin-top: 3px;
  color: #c2410c;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

/* A search result, the site's own page among them. */
.ws__serp {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}

.ws__serp li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--muted-c);
}

.ws__serp li b {
  width: 14px;
  color: var(--muted-c);
  font-weight: var(--weight-semibold);
}

.ws__serp .is-you {
  background: #eaf2ff;
  color: var(--ink-c);
  font-weight: var(--weight-semibold);
}

.ws__serp .is-you b {
  color: #3651e6;
}

/* Four figures, each with its change against the period before. */
.ws__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ws__metric {
  display: grid;
  gap: 1px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f3f6fd;
}

.ws__metric small {
  color: var(--muted-c);
  font-size: 11.5px;
}

.ws__metric b {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--weight-heavy);
}

.ws__metric i {
  color: #157a4a;
  font-size: 11.5px;
  font-style: normal;
  font-weight: var(--weight-semibold);
}

.ws__source-line {
  color: var(--muted-c);
  font-size: 11.5px;
}

/* A week of posts: two days filled, the rest left alone. */
.ws__week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.ws__day {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 54px;
  padding: 6px 5px;
  border-radius: 8px;
  background: #f3f6fd;
  color: var(--muted-c);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  text-align: center;
}

.ws__day--post {
  background: #fff1ea;
  box-shadow: inset 0 0 0 1.5px #ff7a3c;
  color: #b2401b;
}

.ws__day span {
  justify-self: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f1f;
}

.ws__card .ws__steps .is-post i {
  background: #ff5f1f;
}

/* A post as it reads on a subreddit: where, the title, its flair, its votes. */
.ws__post-title {
  font-size: 15px;
  font-weight: var(--weight-bold);
  line-height: 1.3;
}

.ws__flair {
  padding: 2px 8px;
  border-radius: 999px;
  background: #dfe5ff;
  color: #2a3990;
  font-size: 11.5px;
  font-weight: var(--weight-semibold);
}

.ws__votes {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted-c);
  font-size: 12.5px;
  font-weight: var(--weight-semibold);
}

.ws__votes b {
  color: #ff5f1f;
}

.ws__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 54px;
  padding: 0 2px;
}

.ws__bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: #c9d3ff;
}

.ws__bars i:nth-child(1) { height: 92%; }
.ws__bars i:nth-child(2) { height: 74%; }
.ws__bars i:nth-child(3) { height: 66%; background: #3651e6; }
.ws__bars i:nth-child(4) { height: 48%; }
.ws__bars i:nth-child(5) { height: 40%; }

.ws__cover {
  height: 46px;
  margin: -14px -16px 2px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(120deg, #ffe0cc, #ffd23f 55%, #c9d3ff);
}

.ws__card--answer .ws__flair {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* ChatGPT Ads: the budget and the 80% line, a raise refused, the first campaign waiting. */
.ws--budget .ws__card--page { --r: -1deg; top: 0; left: 0; width: 94%; }
.ws--budget .ws__card--code { --r: 1.5deg; top: clamp(196px, 50% - 20px, 236px); left: 4px; width: 64%; }
.ws--budget .ws__card--yellow { --r: -2.5deg; right: 0; bottom: 0; width: 42%; }

/* Ads and search: the page that ranks, the campaign halved, the ad group that becomes a post. */
.ws--search .ws__card--page { --r: -1.5deg; top: 0; left: 0; width: 76%; }
.ws--search .ws__card--answer { --r: 1.5deg; top: clamp(150px, 50% - 60px, 190px); right: 0; width: 78%; }
.ws--search .ws__card--yellow { --r: -2deg; bottom: 0; left: 4px; width: 58%; }

/* How each number is counted: four figures, each naming its source, and Google's beside, never added. */
.ws--count .ws__card--page { --r: -1deg; top: 0; left: 0; width: 94%; }
.ws--count .ws__card--code { --r: 2deg; bottom: 34px; left: 6px; width: 66%; }
.ws--count .ws__card--chip { --r: -2deg; right: 0; bottom: 0; flex-direction: row; align-items: center; padding: 10px 14px; }

/* Social's plan: a week with two posts, a rested subreddit, and the 1 in 4 rule. */
.ws--plan .ws__card--page { --r: -1deg; top: 0; left: 0; width: 96%; }
.ws--plan .ws__card--code { --r: 1.5deg; top: clamp(214px, 50% - 10px, 250px); left: 4px; width: 62%; }
.ws--plan .ws__card--yellow { --r: -2deg; right: 0; bottom: 0; width: 46%; }

/* The rules: a draft, and the subreddit's rulebook checked against it. */
.ws--rules .ws__card--page { --r: -1.5deg; top: 0; left: 0; width: 88%; }
.ws--rules .ws__card--code { --r: 1.5deg; top: clamp(150px, 50% - 50px, 210px); right: 0; width: 80%; }

/* Your pages: a blog post with its chart, and the Reddit post made from it. */
.ws--pages .ws__card--page { --r: -2deg; top: 0; left: 0; width: 66%; }
.ws--pages .ws__card--answer { --r: 1.5deg; right: 0; bottom: 34px; width: 80%; }
.ws--pages .ws__card--chip { --r: -2deg; bottom: 0; left: 6px; flex-direction: row; align-items: center; padding: 10px 14px; }

/* Results: the posted thread read after an hour, a day and three days, and what it taught. */
.ws--score .ws__card--page { --r: -1deg; top: 0; left: 0; width: 92%; }
.ws--score .ws__card--yellow { --r: -2.5deg; bottom: 36px; left: 4px; width: 50%; }
.ws--score .ws__card--chip { --r: 2deg; right: 0; bottom: 0; flex-direction: row; align-items: center; padding: 10px 14px; }

@media (max-width: 1000px) {
  .fx-spot--work {
    aspect-ratio: auto;
    min-height: 460px;
  }
}

@media (max-width: 520px) {
  .fx-spot--work {
    min-height: 540px;
  }

  .ws--budget .ws__card--code {
    top: 200px;
    width: 82%;
  }

  .ws--plan .ws__card--code {
    width: 82%;
  }
}

@media (max-width: 420px) {
  .ws {
    font-size: 12.5px;
  }

  .ws__card--code {
    font-size: 11.5px;
  }

  .ws--answers .ws__card--code {
    width: 80%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ws__card {
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .reveal-armed .section:not(.is-in) .ws__card {
    opacity: 0;
    transform: translateY(18px) rotate(var(--r));
  }

  .section.is-in .ws > :nth-child(1) { transition-delay: 0.15s; }
  .section.is-in .ws > :nth-child(2) { transition-delay: 0.45s; }
  .section.is-in .ws > :nth-child(3) { transition-delay: 0.75s; }
  .section.is-in .ws > :nth-child(4) { transition-delay: 1s; }
}

/* The figures' live drawings, made by the script: a ring, a clock, dots, a bar, a scale, a week. */
.figure__viz {
  display: block;
  height: 34px;
  margin-bottom: 6px;
}

.figure__viz svg {
  height: 100%;
  width: auto;
  max-width: 100%;
  overflow: visible;
}

.viz-track { fill: none; stroke: var(--hair-strong); }
.viz-line { fill: none; stroke: var(--head); stroke-linecap: round; }
.viz-dot { fill: var(--hair-strong); }
.viz-dot.is-lit { fill: var(--head); }
.viz-hand { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; transform-origin: 17px 17px; }
.viz-face { fill: none; stroke: var(--hair-strong); stroke-width: 2; }
.viz-mark { fill: var(--ink); }
.viz-fill { fill: var(--head); }

@media (prefers-reduced-motion: no-preference) {
  /* Panels: what the script marks waits, then arrives in turn once in view. */
  [data-reveal] > * {
    transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
  }

  [data-reveal]:not(.is-in) > * {
    opacity: 0;
    transform: translateY(18px);
  }

  [data-reveal] > :nth-child(2) { transition-delay: 70ms; }
  [data-reveal] > :nth-child(3) { transition-delay: 140ms; }
  [data-reveal] > :nth-child(4) { transition-delay: 210ms; }
  [data-reveal] > :nth-child(5) { transition-delay: 280ms; }
  [data-reveal] > :nth-child(6) { transition-delay: 350ms; }
  [data-reveal] > :nth-child(7) { transition-delay: 420ms; }
  [data-reveal] > :nth-child(8) { transition-delay: 490ms; }

  /* The rulebook's ticks draw themselves, row by row. */
  .rulebook[data-reveal] svg use {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
  }

  .rulebook.is-in svg use {
    animation: fx-draw 420ms var(--ease-out) forwards;
  }

  .rulebook.is-in li:nth-child(2) svg use { animation-delay: 300ms; }
  .rulebook.is-in li:nth-child(3) svg use { animation-delay: 420ms; }
  .rulebook.is-in li:nth-child(4) svg use { animation-delay: 540ms; }
  .rulebook.is-in li:nth-child(5) svg use { animation-delay: 660ms; }
  .rulebook.is-in li:nth-child(6) svg use { animation-delay: 780ms; }
  .rulebook.is-in li:nth-child(7) svg use { animation-delay: 900ms; }
  .rulebook.is-in li:nth-child(8) svg use { animation-delay: 1020ms; }

  /* The product scene follows the scroll: --p runs 0 to 1 as its stage crosses the screen. The ad
     rises, the budget fills, the line draws and each check lands at its own point. */
  .scene[data-scrub] .fx-rise {
    opacity: clamp(0, calc(var(--p, 1) * 4 - 0.4), 1);
    transform: translateY(calc((1 - clamp(0, var(--p, 1) * 2.4, 1)) * 30px));
  }

  .scene[data-scrub] .fx-fill {
    transform-box: fill-box;
    transform-origin: left center;
    transform: scaleX(clamp(0, calc(var(--p, 1) * 1.6 - 0.25), 1));
  }

  .scene[data-scrub] .fx-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: clamp(0, calc(1.2 - var(--p, 1) * 1.6), 1);
  }

  .scene[data-scrub] .fx-pop {
    --at: 0.45;
    transform-box: fill-box;
    transform-origin: center;
    opacity: clamp(0, calc((var(--p, 1) - var(--at)) * 10), 1);
    transform: scale(clamp(0.6, calc(0.6 + (var(--p, 1) - var(--at)) * 5), 1));
  }

  .scene[data-scrub] .fx-pop:nth-of-type(2) { --at: 0.52; }
  .scene[data-scrub] .fx-pop:nth-of-type(3) { --at: 0.59; }
  .scene[data-scrub] .fx-pop:nth-of-type(4) { --at: 0.66; }

  /* The figures' drawings keep going: the clock's hand turns, lit dots breathe, a week lights day by
     day, the bar fills to its limit and starts again, the Score's dot wanders slowly. */
  .viz-hand { animation: viz-turn 6s linear infinite; }
  .viz-hand--short { animation-duration: 72s; }
  .viz-dot.is-lit { animation: viz-breathe 2.4s ease-in-out infinite; }
  .viz-seq .viz-dot { animation: viz-seq var(--cycle, 7s) steps(1, end) infinite; animation-delay: var(--d, 0s); }
  .viz-fill { animation: viz-fill 4.2s var(--ease-in-out) infinite; transform-box: fill-box; transform-origin: left center; }
  .viz-wander { animation: viz-wander 9s ease-in-out infinite alternate; }
  .viz-ring { transition: stroke-dashoffset 1400ms var(--ease-out); }
}

@keyframes fx-draw { to { stroke-dashoffset: 0; } }
@keyframes viz-turn { to { transform: rotate(360deg); } }
@keyframes viz-breathe { 50% { opacity: 0.45; } }
@keyframes viz-seq { 0% { fill: var(--hair-strong); } 1%, 70% { fill: var(--head); } 71%, 100% { fill: var(--hair-strong); } }
@keyframes viz-fill { 0% { transform: scaleX(0); } 70%, 88% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes viz-wander { from { transform: translateX(0); } to { transform: translateX(var(--wander, 40px)); } }

/* The pointer lights the panels as it passes: the hairlines brighten toward it and the cells under
   it take a breath of the team's blue (js/features.js keeps --mx and --my on the page). */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cells,
  .figures,
  .fx-more {
    background: radial-gradient(280px circle at var(--mx, -999px) var(--my, -999px), var(--head), var(--hair) 100%) fixed;
  }

  .cell,
  .figure,
  .fx-more a {
    background: radial-gradient(380px circle at var(--mx, -999px) var(--my, -999px), color-mix(in oklch, var(--head) 9%, var(--surface-raised)), var(--surface-raised) 100%) fixed;
  }

  .cell__icon {
    transition: transform 420ms var(--ease-spring);
  }

  .cell:hover .cell__icon {
    transform: translateY(-3px) rotate(-6deg) scale(1.06);
  }
}

@media print, (scripting: none) {
  [data-reveal] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
