/* Apple-inspired, after the apple-design skill (aphlo): light neutrals, one blue accent, frosted glass over soft colour,
   8px spacing, system fonts, 300–600ms transitions on transform and opacity only. */
:root {
  color-scheme: light;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --band: #eaf2fe;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent-blue: #0071e3;
  --accent-purple: #af52de;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --border-color: rgba(0, 0, 0, 0.1);
  --footer-bg: #0f1a2b;
  --footer-text: rgba(255, 255, 255, 0.7);
  --danger-bg: rgba(255, 59, 48, 0.1);
  --danger-text: #c4281c;

  /* Type scale (about ×1.125 per step): small copy (nav, card and FAQ text, labels), text and card titles, emphasis,
     the question, the score card's label. The section title, hero and score set their own sizes. */
  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08), 0 16px 32px rgba(0, 0, 0, 0.08);

  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 600ms;
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  /* Web fonts (Layout.tsx), so Windows, Mac and phones all show the same type: Inter for Latin letters and digits,
     Noto Sans JP for Japanese. The system fonts after them only fill in while the web fonts load. */
  --font: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  --nav-height: 60px;
  --content-width: 1120px;
  /* Side margin: 16px on phones, growing with the window to 64px, so content never runs to the edge on a PC. */
  --gutter: max(clamp(var(--space-4), 5vw, var(--space-16)), env(safe-area-inset-left, 0px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + var(--space-4)); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font: 400 1rem/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
}
/* Soft colour behind everything, so the frosted glass has something to blur. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40vmax 40vmax at 12% 8%, rgba(0, 113, 227, 0.2), transparent 70%),
    radial-gradient(36vmax 36vmax at 92% 22%, rgba(175, 82, 222, 0.16), transparent 70%),
    radial-gradient(44vmax 44vmax at 70% 100%, rgba(48, 209, 88, 0.12), transparent 70%),
    var(--bg-secondary);
}
h1, h2, h3, p, ol, ul { margin: 0; }
/* hidden must win over the display of any component class. */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-inner {
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  height: var(--nav-height);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.brand { margin-right: auto; display: flex; align-items: center; gap: var(--space-2); color: var(--text-primary); font-size: 1rem; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: var(--space-6); }
.nav-links a { color: var(--text-secondary); font-size: var(--text-xs); text-decoration: none; transition: color var(--duration-fast) var(--ease-in-out); }
.nav-links a:hover { color: var(--text-primary); }
@media (max-width: 1023px) { .nav-links { display: none; } }
.progress { display: none; align-items: center; gap: var(--space-3); font-size: var(--text-sm); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.progress b { font-weight: 600; color: var(--text-primary); }
body[data-screen="question"] .progress { display: flex; }
body:not([data-screen="start"]) .nav-links,
body:not([data-screen="start"]) .nav-cta { display: none; }
.track { width: clamp(64px, 16vw, 160px); height: 4px; border-radius: var(--radius-full); background: var(--border-color); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--accent-blue); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-base) var(--ease-in-out); }

/* Shared pieces */
/* The one card surface: white, hairline border, one radius and one shadow, shared by every card on the site.
   Only the question and score cards are frosted; blurring every card would cost each frame on phones. */
.glass-card, .card, .faq-item, .bands {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}
.glass-card {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.gradient-text {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow { font-size: var(--text-xs); font-weight: 700; color: var(--accent-blue); letter-spacing: 0.08em; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 980px;
  font: 500 1rem/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease-in-out), box-shadow var(--duration-base) var(--ease-in-out),
    background-color var(--duration-base) var(--ease-in-out), color var(--duration-base) var(--ease-in-out);
}
.btn-small { min-height: 36px; padding: 0.375rem 1rem; font-size: var(--text-xs); }
.btn-primary { background: var(--accent-blue); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent-blue); border-color: var(--accent-blue); }
.btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3); }
  .btn-secondary:not(:disabled):hover { background: var(--accent-blue); color: #fff; }
}

/* Hero: copy on the left, the first question on the right */
.hero {
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--space-16) var(--gutter) var(--space-8);
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
/* Centred like every other section: the headline and its buttons, then the first question beneath. */
.hero-copy { display: grid; gap: var(--space-6); justify-items: center; text-align: center; }
.hero-title, .section-title, .result-title {
  /* Proportional widths for Japanese punctuation, so "％？" and "、" do not leave wide gaps. */
  font-feature-settings: "palt";
}
.hero-title {
  text-wrap: balance;
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
/* Who made the test and that the result is free, beneath the headline. */
.hero-lead { max-width: 40em; display: grid; gap: var(--space-1); color: var(--text-secondary); }
.hero-lead strong { color: var(--accent-blue); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.hero-test { min-width: 0; display: grid; gap: var(--space-4); justify-items: center; }

/* Questions */
.test { width: 100%; display: grid; justify-items: center; }
.question { width: min(100%, 760px); padding: var(--space-8) var(--space-6); display: grid; justify-items: center; gap: var(--space-2); text-align: center; }
.question .eyebrow { color: var(--text-secondary); }
.question-ask { font-size: clamp(var(--text-md), 1vw + 0.8rem, var(--text-lg)); font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.question-ask:focus { outline: none; }
/* Stacked, the two boxes are about twice as tall as wide, and everything else on the question screen takes about 300px (320px leaves a margin). */
.panels {
  width: min(100%, clamp(140px, (100dvh - 320px) * 0.5, 320px));
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .panels { width: 100%; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
}
@media (max-width: 767px) {
  body[data-screen="question"] .question { padding: var(--space-4); }
}
.board, .choices { display: grid; grid-template-columns: repeat(3, 1fr); }
.board { gap: 4px; padding: 4px; border-radius: var(--radius-md); background: var(--border-color); }
.choices { gap: var(--space-3); }
.cell { display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg-primary); border-radius: var(--radius-sm); }
.cell svg { display: block; width: 100%; height: 100%; }
.blank { display: grid; place-items: center; font-size: 2rem; font-weight: 600; color: var(--text-secondary); }
.option {
  padding: var(--space-1);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: var(--space-1);
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease-in-out), box-shadow var(--duration-base) var(--ease-in-out),
    border-color var(--duration-fast) var(--ease-in-out);
}
@media (hover: hover) {
  .option:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); }
}
.option:active { transform: scale(0.97); }
.option[aria-pressed="true"] { border-color: var(--accent-blue); }
.key { font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); }
.hint { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--text-secondary); }
.steps { width: 100%; margin-top: var(--space-4); display: flex; justify-content: space-between; }
.notice { width: min(100%, 760px); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--danger-bg); color: var(--danger-text); font-weight: 500; }

/* The start screen shows the first question as an invitation; the test screen shows nothing but the question. */
body[data-screen="start"] .steps { display: none; }
body:not([data-screen="start"]) .hint,
body:not([data-screen="start"]) .hero-copy,
body:not([data-screen="start"]) main > .section { display: none; }
body[data-screen="question"] .hero { padding-block: var(--space-4); }
body[data-screen="question"] .footer,
body[data-screen="scoring"] .footer { display: none; }

/* Sections */
.section { padding: var(--space-24) var(--gutter); }
.band { background: var(--band); }
.section-inner { max-width: var(--content-width); margin: 0 auto; display: grid; gap: var(--space-12); }
.section-head { display: grid; gap: var(--space-3); justify-items: center; text-align: center; }
.section-title { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.cards { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-6); }
/* Column counts that always divide the cards evenly: 4 → 1, 2 or 4 columns; 3 → 1 or 3. */
.cards-4, .cards-3 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--duration-base) var(--ease-in-out), box-shadow var(--duration-base) var(--ease-in-out);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}
.card h3 { font-size: var(--text-sm); font-weight: 600; letter-spacing: -0.01em; }
.card p { color: var(--text-secondary); font-size: var(--text-xs); }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent-blue); }
.icon { width: 24px; height: 24px; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.step-number { font-size: 1.5rem; font-weight: 600; color: rgba(0, 113, 227, 0.3); font-variant-numeric: tabular-nums; }
.cta { text-align: center; }
.logo { width: 28px; height: 28px; flex: none; }
.brand-name { white-space: nowrap; letter-spacing: 0.02em; }
.brand-region { color: var(--accent-blue); }
/* On narrow phones the header keeps the logo and the button on one line. */
@media (max-width: 420px) {
  .nav-inner { gap: var(--space-3); }
  .brand { font-size: 1rem; }
  .nav-cta { padding-inline: var(--space-3); }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.section-lead { max-width: 36em; font-size: var(--text-sm); color: var(--text-secondary); }
.narrow { max-width: 760px; }

/* IQ scale: the sample card moved by a slider, beside the table of bands */
.scale-card { gap: var(--space-4); }
.slider { width: 100%; }
/* The range input drawn to match the chart: a thin track filled in blue up to the thumb. */
.slider input { width: 100%; height: 28px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.slider input:focus-visible { outline: none; }
.slider input::-webkit-slider-runnable-track { height: 6px; border-radius: var(--radius-full); background: var(--accent-soft); }
.slider input::-moz-range-track { height: 6px; border-radius: var(--radius-full); background: var(--accent-soft); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--bg-primary); border: 4px solid var(--accent-blue); box-shadow: var(--shadow-md); }
.slider input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--bg-primary); border: 4px solid var(--accent-blue); box-shadow: var(--shadow-md); }
.slider input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.25); }
.slider input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.25); }
.bands { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; font-variant-numeric: tabular-nums; }
.bands th, .bands td { padding: var(--space-3) var(--space-4); text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border-color); }
/* Narrow phones: tighter cells so the table fits the width. */
@media (max-width: 360px) { .bands th, .bands td { padding-inline: var(--space-3); } }
@media (min-width: 600px) { .bands th, .bands td { padding-inline: var(--space-6); } }
.bands thead th { font-size: var(--text-xs); font-weight: 600; color: var(--text-secondary); background: var(--bg-secondary); }
.bands tbody th { font-weight: 600; }
.bands td:last-child { text-align: right; }
.bands tr:last-child th, .bands tr:last-child td { border-bottom: 0; }

/* Result sample: the certificate beside the sample result */
.card-sample { width: min(100%, 760px); height: auto; border-radius: var(--radius-2xl); border: 1px solid var(--border-color); box-shadow: var(--shadow-md); }

/* FAQ */
.faq { display: grid; gap: var(--space-3); }
.faq-item { padding: var(--space-4) var(--space-6); }
.faq-item summary { font-size: var(--text-xs); font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-blue); font-size: 1.25rem; line-height: 1.4; transition: transform var(--duration-base) var(--ease-in-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: var(--space-3); color: var(--text-secondary); }


/* Result sample: copy on the left, the score card on the right */
/* Two columns whose tops line up. */
.split { display: grid; gap: var(--space-12); align-items: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* The certificate sample is a wide picture, so it takes a row of its own beneath the result card, a little wider than it. */
  #result-sample .split { grid-template-columns: 1fr; justify-items: center; }
}

/* Result */
.result { max-width: calc(var(--content-width) + 2 * var(--gutter)); margin: 0 auto; padding: var(--space-12) var(--gutter) var(--space-24); display: grid; justify-items: center; gap: var(--space-8); }
.result-card { width: min(100%, 640px); margin-inline: auto; padding: var(--space-12) var(--space-8); display: grid; justify-items: center; gap: var(--space-8); text-align: center; }
.score-card { width: 100%; display: grid; justify-items: center; gap: var(--space-2); }
.score-card .eyebrow { font-size: var(--text-xl); letter-spacing: 0.02em; color: var(--text-primary); }
.score { margin-top: var(--space-1); font-size: clamp(4rem, 9vw, 5.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.level { padding: var(--space-1) var(--space-4); border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent-blue); font-weight: 600; }
.rank { font-size: var(--text-sm); color: var(--text-secondary); }
.rank b { color: var(--text-primary); font-weight: 600; }
.chart { position: relative; width: 100%; margin-top: var(--space-6); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-area { fill: var(--accent-soft); }
.chart-line { fill: none; stroke: var(--accent-blue); stroke-width: 2; }
.chart text { font: 500 18px var(--font); fill: var(--text-secondary); }
/* The taker's place: a dot on the curve, dropping a line to the axis. --plot is the plot's share of the chart's
   height (the rest holds the labels), --peak the curve's height at this IQ. */
.marker {
  position: absolute;
  left: calc((var(--iq) - var(--min)) / (var(--max) - var(--min)) * 100%);
  top: calc((1 - var(--peak)) * var(--plot));
  height: calc(var(--peak) * var(--plot));
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(var(--accent-blue), rgba(0, 113, 227, 0.15));
}
.marker::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--accent-blue);
  box-sizing: border-box;
  box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.15);
}

.result-head { display: grid; gap: var(--space-3); justify-items: center; text-align: center; }
.result-title { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.result-actions { width: min(100%, 880px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-6); }
.result-actions h2 { font-size: var(--text-md); font-weight: 600; }
.field { display: grid; gap: var(--space-1); font-size: var(--text-xs); color: var(--text-secondary); }
.field input { min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--border-color); border-radius: var(--radius-md); font: inherit; font-size: 1rem; color: var(--text-primary); background: var(--bg-primary); }

/* Scoring: a spinner between the last answer and the result */
.scoring { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: var(--space-6); }
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 5px solid var(--accent-soft); border-top-color: var(--accent-blue); animation: spin 0.9s linear infinite; }
.scoring-text { font-size: var(--text-md); font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Certificate: the picture app.js draws, in a dialog */
.certificate { width: min(100% - 2 * var(--space-4), 960px); padding: 0; border: 0; border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); background: var(--bg-secondary); }
.certificate::backdrop { background: rgba(15, 26, 43, 0.5); backdrop-filter: blur(4px); }
.certificate-bar { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4) var(--space-3) var(--space-6); background: var(--bg-primary); border-bottom: 1px solid var(--border-color); }
.certificate-bar p { margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.certificate-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 1.5rem; line-height: 1; color: var(--text-secondary); cursor: pointer; }
.certificate-image { display: block; width: calc(100% - 2 * var(--space-6)); height: auto; margin: var(--space-6); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }

/* Footer */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: var(--space-16) var(--gutter) var(--space-8); }
/* The brand on the left, the section links on the right. */
.footer-inner { max-width: var(--content-width); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: var(--space-12); }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 3fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: var(--space-2); color: #fff; font-size: 1.125rem; font-weight: 700; }
.footer-note { margin-top: var(--space-2); font-size: var(--text-xs); }
.footer-heading { color: #fff; font-weight: 600; margin-bottom: var(--space-3); }
.footer ul { padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.footer a { color: var(--footer-text); text-decoration: none; font-size: var(--text-xs); }
.footer a:hover { color: #fff; }
.footer-copy { max-width: var(--content-width); margin: var(--space-12) auto 0; padding-top: var(--space-6); border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: var(--text-xs); }

/* Motion: the hero rises in on load, the result card when it appears. */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: fade-in-up var(--duration-slow) var(--ease-out) both; }
  .hero-test { animation: fade-in-up var(--duration-slow) var(--ease-out) 150ms both; }
  .result-card { animation: fade-in-up var(--duration-slow) var(--ease-out) both; }
}
/* Scroll reveal (reveal.js): hidden below the fold, then rising into place. */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal.is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease-out) var(--reveal-delay, 0ms), transform 700ms var(--ease-out) var(--reveal-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
