/* Assess one-page site — "Paper & Sky". Source of truth: STYLE-GUIDE.md */

/* ---------- Tokens (verbatim from STYLE-GUIDE.md) ---------- */
:root {
  color-scheme: light;
  --ground: #f7f6f3;
  --ground-learner: #f4f2ec;
  --surface: #ffffff;
  --surface-2: #f1efea;
  --surface-3: #e8e5de;
  --ink: #1f1e1b;
  --muted: #524f48;
  --faint: #747067;          /* large text / non-text ONLY */
  --line: #e6e3dc;
  --line-strong: #d2cec4;
  --accent: #2383e2;         /* non-text only: wordmark period, focus, rules, bars */
  --accent-hover: #1b72c7;
  --accent-text: #144a89;    /* links, labels, filled buttons */
  --accent-text-hover: #103a6d;
  --accent-ink: #ffffff;
  --accent-soft: #ddedfb;
  --accent-tint: #f2f8fe;
  --shadow-1: 0 1px 2px rgba(31,30,27,.05), 0 2px 8px rgba(31,30,27,.04);
  --shadow-2: 0 2px 4px rgba(31,30,27,.06), 0 10px 28px rgba(31,30,27,.10);
  --radius: 12px;
  --ease: cubic-bezier(.2,.7,.3,1);

  --font-mark: "Times New Roman", Times, serif;
  --font-ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: "Cascadia Mono", ui-monospace, Consolas, monospace;

  --space-xs: 4px; --space-sm: 8px; --space-md: 24px; --space-lg: 32px;
  --space-xl: 48px; --space-2xl: 64px; --space-3xl: 96px;

  /* Notebook margin (the detail borrowed from prototype variant B) */
  --gutter: 56px;            /* width of the ruled strip on the left, pinned to the window edge */
  --rule-gap: 34px;          /* spacing between ruled lines */
  --rule-bleed: 16px;        /* how far the lines run past the blue margin line before fading; keep < --pad */
  --pad: 24px;               /* content padding inside the page */
  --max: 1200px;             /* content column width */
  --bar-h: 64px;             /* height of the sticky top bar */

  /* Vertical rhythm: every section breathes the same amount (after degreed.com's spacing) */
  --section-y: clamp(80px, 10vw, 136px);   /* space above and below each section */
  --gap-kicker: 14px;        /* kicker -> headline */
  --gap-sub: 20px;           /* headline -> its one sentence */
  --gap-visual: 56px;        /* intro -> the visual it introduces */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 18px/1.6 var(--font-ui);
}
::selection { background: var(--accent-soft); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.011em; text-wrap: balance; }
p, figcaption { text-wrap: pretty; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
figure { margin: 0; min-width: 0; }
figcaption { margin-top: 10px; font-style: italic; font-size: 15px; color: var(--muted); }

.skip {
  position: absolute; left: 8px; top: -100px; z-index: 10;
  background: var(--surface); color: var(--accent-text); padding: 10px 14px; border-radius: 9px; box-shadow: var(--shadow-2);
}
.skip:focus { top: 8px; }

/* ---------- Wordmark ---------- */
.wordmark { font-family: var(--font-mark); font-weight: 700; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.wordmark .dot { color: var(--accent); }

/* ---------- Type helpers ---------- */
.label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}
.accent { color: var(--accent-text); }

/* Hand-drawn underline under a key word */
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .32em; overflow: visible; }
.scribble path { fill: none; stroke: var(--accent); stroke-width: 3px; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---------- Buttons + links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  font: 600 16px/1 var(--font-ui);
  text-decoration: none;
  color: var(--accent-ink);
  background: var(--accent-text);
  border: 1px solid var(--accent-text);
  border-radius: 9px;
  padding: 12px 22px;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: background-color .12s var(--ease), border-color .12s var(--ease);
}
.btn:hover { background: var(--accent-text-hover); border-color: var(--accent-text-hover); }
.btn:active { transform: translateY(1px); }
.btn-dashed {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px;
  font: 600 16px/1 var(--font-ui); color: var(--muted); text-decoration: none;
  border: 1px dashed var(--line-strong); border-radius: 9px; cursor: pointer;
  transition: border-color .12s var(--ease), background-color .12s var(--ease), color .12s var(--ease);
}
.btn-dashed:hover { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-text); }
.link {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.link:hover { color: var(--accent-text-hover); }

/* ---------- Layout: one centered column, notebook margin pinned to the window's left edge ---------- */
body { position: relative; }
.wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad) 0 max(var(--pad), calc(var(--gutter) + var(--pad))); }
@media (min-width: 1360px) { .wrap { padding-left: var(--pad); } }   /* wide screens: the centered column already clears the margin */

/* Faint ruled lines in the left strip. They run a little past the margin line, then fade out. */
body::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0;
  width: calc(var(--gutter) + var(--rule-bleed));
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--rule-gap) - 1px), var(--line) calc(var(--rule-gap) - 1px) var(--rule-gap));
  -webkit-mask-image: linear-gradient(to right, black calc(100% - var(--rule-bleed)), transparent);
          mask-image: linear-gradient(to right, black calc(100% - var(--rule-bleed)), transparent);
  pointer-events: none;
}
/* The thin sky-blue margin line, over everything (bands and the top bar included). */
body::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--gutter) - 1.5px);
  border-left: 1.5px solid var(--accent);
  pointer-events: none;
  z-index: 6;
}

/* ---------- Sticky top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: var(--space-lg); min-height: var(--bar-h); }
.topbar .wordmark { font-size: 26px; line-height: 1; flex: none; display: inline-flex; align-items: center; min-height: 44px; }
.sections { display: flex; gap: 0 26px; min-width: 0; flex: 1; }
.sections a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; flex: none; white-space: nowrap; }
.sections a:hover { color: var(--accent-text); }
.btn-sm { min-height: 44px; padding: 12px 18px; font-size: 15px; flex: none; }

/* ---------- Shared section pieces ---------- */
.section { padding: var(--section-y) 0; scroll-margin-top: var(--bar-h); }
.band { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { display: block; margin-bottom: var(--gap-kicker); color: var(--accent-text); }
.intro { text-align: center; margin: 0 auto var(--gap-visual); max-width: 40em; }
h2 { font-size: clamp(34px, 4.4vw, 56px); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1); padding: var(--space-lg);
}
.card h3 { font-size: 24px; margin-bottom: 6px; }
.card p { font-size: 17px; color: var(--muted); margin: 0; }
.ico {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--space-md);
  border-radius: 9px; background: var(--accent-tint); border: 1px solid var(--accent-soft); color: var(--accent-text);
}
.ico svg, .float-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cards { display: grid; gap: var(--space-md); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.also { text-align: center; margin: var(--space-lg) 0 0; color: var(--muted); font-size: 17px; }
.also .label { margin-right: 10px; }

/* ---------- Buttons added for this layout ---------- */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px 20px;
  font: 600 16px/1 var(--font-ui); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface);
  transition: border-color .12s var(--ease), color .12s var(--ease);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-paper { background: var(--ground); color: var(--ink); border-color: var(--ground); }
.btn-paper:hover { background: var(--surface); border-color: var(--surface); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 0; }
.hero-copy { text-align: center; margin-bottom: var(--gap-visual); }
.hero h1 { font-size: clamp(46px, 7.4vw, 96px); }
.deck { font-size: 22px; line-height: 1.5; max-width: 30em; margin: calc(var(--gap-sub) + .5em) auto var(--space-lg); color: var(--muted); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.hero-shot { position: relative; margin: 0; }
.hero-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow-2); }
/* Small paper cards that sit over the photo's edges */
.float {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 14px 18px;
}
.float-a { left: -24px; bottom: 12%; display: flex; align-items: center; gap: 12px; }
.float-a strong { display: block; font-size: 16px; }
.float-a span:not(.float-ico) { display: block; font-size: 14px; color: var(--muted); }
.float-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-text); }
.float-b { right: -24px; top: 10%; min-width: 180px; }
.float-b .big { display: block; font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.1; margin: 4px 0 10px; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 28px; }
.spark i { flex: 1; border-radius: 4px 4px 0 0; background: var(--accent-soft); }
.spark i.hi { background: var(--accent); }

/* ---------- Clients ---------- */
.clients { padding: var(--space-2xl) 0 var(--space-xl); text-align: center; }
.clients h2 { font-size: 12px; letter-spacing: .11em; margin-bottom: var(--space-md); }
.logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.logo-degreed { width: 150px; height: auto; color: var(--muted); }
.logos-sub { margin: var(--space-xl) 0 var(--space-md); font-size: 12px; letter-spacing: .11em; }
.logos-clients { gap: var(--space-lg) var(--space-xl); }
/* Source logos are white-on-transparent: flatten to black, then fade to the muted ink tone. */
.logos-clients img { display: block; height: auto; max-width: 100%; filter: brightness(0); opacity: .6; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); gap: var(--space-md); }
.tile-quiz { grid-row: span 2; display: flex; flex-direction: column; }
.tile-quiz .m-quiz { margin-top: var(--space-lg); box-shadow: none; background: var(--ground); }
.tile-types h3 { margin-bottom: var(--space-md); }
.tile-types .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* 8 chips = 4 even rows */
.tile-types .chips li { text-align: center; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); counter-reset: none; }
.numeral { display: block; font-family: var(--font-display); font-size: 52px; line-height: 1; color: var(--accent-text); margin-bottom: var(--space-md); }
.steps .m-link { margin-top: var(--space-md); box-shadow: none; background: var(--ground); }

/* ---------- Feature splits: copy beside a product "window" ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--gap-visual) var(--space-3xl); align-items: center; }
.split-flip .split-copy { order: 2; }
.split h2 { margin-bottom: var(--gap-sub); }
.split p { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 22em; margin: 0; }
.window { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-2); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-strong); }
.window-bar span { margin-left: 10px; font: 600 13px/1 var(--font-ui); color: var(--muted); }
.window-body { padding: var(--space-md); background: var(--ground); }
.window .m-code { border-radius: 0; }
.stack { display: grid; gap: var(--space-md); }

/* ---------- Stats ---------- */
.stats { padding: var(--space-2xl) 0; border-bottom: 1px solid var(--line); }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.stat-row > div { text-align: center; padding: 0 var(--space-md); border-left: 1px solid var(--line); }
.stat-row > div:first-child { border-left: 0; }
.stat-row dt { font: 700 12px/1.4 var(--font-ui); letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.stat-row dd { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 56px); line-height: 1.1; color: var(--accent-text); white-space: nowrap; }

/* ---------- Contact panel ---------- */
.cta { padding: var(--section-y) 0; scroll-margin-top: var(--bar-h); }
.cta-panel {
  position: relative; z-index: 7;            /* over the margin line */
  text-align: center; color: var(--ground); background: var(--ink);
  border-radius: var(--radius); padding: clamp(48px, 7vw, 88px) var(--space-lg);
}
.cta-panel h2 { color: var(--ground); margin-bottom: var(--gap-sub); }
.cta-panel p { color: #cfcbc2; font-size: 20px; margin: 0 0 var(--space-lg); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: var(--space-md); padding-bottom: var(--space-xl); }
.site-footer .wordmark { font-size: 22px; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Mockups (illustrative, no real data) ---------- */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }

.m-quiz { padding: var(--space-md); }
.m-quiz .q { font-family: var(--font-display); font-size: 21px; line-height: 1.3; margin: var(--space-sm) 0 var(--space-md); color: var(--ink); }
.m-quiz ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.m-quiz li { display: flex; align-items: center; gap: 12px; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.m-quiz .bubble { width: 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: 50%; flex: none; }
.m-quiz li.picked { border-color: var(--accent); background: var(--accent-tint); }
.m-quiz li.picked .bubble { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.m-quiz .foot { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-md); }
.m-progress { height: 3px; border-radius: 4px; background: var(--surface-3); flex: 1; margin-right: var(--space-md); position: relative; }
.m-progress::after { content: ""; position: absolute; inset: 0 60% 0 0; border-radius: 4px; background: var(--accent); }

.m-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-family: var(--font-mono); font-size: 14px; }
.m-link .url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-link .tab { font: 700 11px/1 var(--font-ui); letter-spacing: .11em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; color: var(--muted); }
.m-link .tab.on { background: var(--accent-soft); color: var(--accent-text); }

.m-bars { padding: var(--space-md); }
.m-bars .row { display: grid; grid-template-columns: 7em minmax(0, 1fr) 3em; align-items: center; gap: 12px; font-size: 15px; margin: 10px 0; }
.m-bars .bar { height: 10px; border-radius: 6px; background: var(--line-strong); }
.m-bars .bar.hi { background: var(--accent); }
.m-bars .num { font-family: var(--font-mono); font-size: 13px; text-align: right; }
.m-bars .foot { display: flex; justify-content: space-between; margin-top: var(--space-md); padding-top: 12px; border-top: 1px solid var(--line); }

.m-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.m-table th { text-align: left; font: 700 11px/1.4 var(--font-ui); letter-spacing: .11em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line-strong); }
.m-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.m-table tr:last-child td { border-bottom: 0; }

.m-code { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; padding: var(--space-md); margin: 0; white-space: pre; overflow-x: auto; background: var(--surface); }
.m-code .k { color: var(--accent-text); }

.m-roles { padding: var(--space-sm) var(--space-md); }
.m-roles .r { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.m-roles .r:last-child { border-bottom: 0; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 6px; background: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); }
.chips li.more { border-style: dashed; color: var(--muted); }

/* ---------- Responsive (product breakpoints: 480 / 780 / 900) ---------- */
@media (max-width: 1100px) {
  .float-a { left: 12px; }
  .float-b { right: 12px; }
  /* Section links scroll sideways in the bar, fading at the edge */
  .sections {
    gap: 0 20px; overflow-x: auto; scrollbar-width: none; padding-right: 28px;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent);
            mask-image: linear-gradient(to right, black calc(100% - 28px), transparent);
  }
  .sections::-webkit-scrollbar { display: none; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-flip .split-copy { order: 0; }
  .cards-3, .steps { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-quiz { grid-column: span 2; grid-row: auto; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) 0; }
  .stat-row > div:nth-child(3) { border-left: 0; }
}
@media (max-width: 780px) {
  :root { --gutter: 28px; --pad: 18px; }
  .float { display: none; }                  /* too cramped over a small photo */
}
@media (max-width: 600px) {
  .topbar .btn-sm { display: none; }        /* the hero button is right below */
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-quiz { grid-column: auto; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; --pad: 16px; --rule-bleed: 8px; --section-y: 64px; --gap-visual: 36px; --gap-sub: 14px; }
  body { font-size: 17px; }
  .hero { padding-top: var(--space-xl); }
  .hero h1 { font-size: clamp(38px, 11vw, 48px); }
  .deck { font-size: 18px; }
  .card { padding: var(--space-md); }
  .stat-row > div { padding: 0 8px; }
  .cta-panel { padding: var(--space-xl) var(--space-md); }

  .m-bars .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label num" "bar bar"; gap: 6px 12px; margin: 14px 0; }
  .m-bars .row > :first-child { grid-area: label; }
  .m-bars .bar { grid-area: bar; }
  .m-bars .num { grid-area: num; }
  .m-roles .r { flex-direction: column; align-items: flex-start; gap: 2px; }
  .m-code { font-size: 12px; padding: var(--space-md) 16px; }
  .window-body { padding: 12px; }
}

/* ======================================================================
   Motion — slow, ink-like, never bouncy. Everything that starts hidden is
   gated behind html.motion, which is only set when the visitor hasn't asked
   for reduced motion (see the inline script in index.html).
   ====================================================================== */
.wordmark .dot { display: inline-block; line-height: 1; }
.motion .topbar .wordmark .dot { transform-origin: 50% calc(100% - .23em); animation: ink-in .55s var(--ease) .5s both; }
@keyframes ink-in { from { transform: scale(0); opacity: 0; } 50% { opacity: 1; } to { transform: scale(1); opacity: 1; } }

/* Load: hero eases in, then the photo and its cards */
.motion .hero-copy > :nth-child(1) { animation: fade-up .7s var(--ease) .1s both; }
.motion .hero-copy > :nth-child(2) { animation: fade-up .7s var(--ease) .2s both; }
.motion .hero-copy > :nth-child(3) { animation: fade-up .7s var(--ease) .32s both; }
.motion .hero-copy > :nth-child(4) { animation: fade-up .7s var(--ease) .44s both; }
.motion .hero-shot picture { display: block; animation: fade-up .9s var(--ease) .55s both; }
.motion .float-a { animation: fade-up .7s var(--ease) 1.2s both; }
.motion .float-b { animation: fade-up .7s var(--ease) 1.35s both; }
@keyframes fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up   { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Scroll: blocks fade up a few pixels as they arrive */
.motion .rv { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.motion .rv.btn { transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms), background-color .12s var(--ease), border-color .12s var(--ease); }
.motion .rv.in { opacity: 1; transform: none; }

/* Hand-drawn underlines draw themselves */
.motion .scribble path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease) .35s; }
.motion .hero .scribble path { transition-delay: .9s; }
.motion .scribble.in path { stroke-dashoffset: 0; }

/* Bento quiz: the answer gets picked, then the progress bar fills */
.motion .m-quiz li, .motion .m-quiz .bubble { transition: border-color .45s var(--ease) .9s, background-color .45s var(--ease) .9s, box-shadow .45s var(--ease) .9s; }
.motion .m-quiz:not(.in) li.picked { border-color: var(--line); background-color: var(--surface); }
.motion .m-quiz:not(.in) li.picked .bubble { border-color: var(--line-strong); background-color: var(--surface); box-shadow: inset 0 0 0 3px var(--surface); }
.motion .m-progress::after { transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) 1.3s; }
.motion .m-quiz.in .m-progress::after { transform: none; }

/* Results bars grow in */
.motion .m-bars .bar { transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.motion .m-bars .row:nth-of-type(2) .bar { transition-delay: .12s; }
.motion .m-bars .row:nth-of-type(3) .bar { transition-delay: .24s; }
.motion .m-bars.in .bar { transform: none; }

/* Share link gently flips between Link and Embed */
.m-link .url { transition: opacity .35s var(--ease); }
.m-link .url.swap { opacity: 0; }
.m-link .tab { transition: background-color .35s var(--ease), color .35s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
