:root {
  color-scheme: dark;
  --glass-panel: rgb(32 30 39 / 72%);
  --glass-inset: rgb(17 16 23 / 60%);
  --glass-raised: rgb(46 40 56 / 65%);
  --glass-edge: rgb(222 208 237 / 23%);
  --border: #39393f;
  --text: #efeff1;
  --muted: #b6b5bf;
  --violet: #ded0ed;
  --violet-surface: #302936;
  --acid: #c6f564;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; isolation: isolate; background: #17141f; color: var(--text); }
h1, h2, h3, p, figure, dl, dd, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, [role="tabpanel"]:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
[hidden] { display: none !important; }
section[id], .journey-panel { scroll-margin-top: 24px; }

.heading-1 { font-size: 60px; line-height: 1; font-weight: 600; }
.heading-2 { font-size: 48px; line-height: 1; font-weight: 600; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.title-3, .body-2, .body-3, .button-md { font-size: 16px; line-height: 24px; }
.title-4, .journey-nav, .journey-notes dd { font-size: 14px; line-height: 20px; }
.caption-3, .caption-4, .caption-5, .chips, .journey-notes dt { font-size: 12px; line-height: 16px; }
.title-3, .title-4, .body-2, .caption-4 { font-weight: 500; }
.caption-3, .button-md { font-weight: 600; }
.body-2, .body-3, .caption-5 { color: var(--muted); }

.wrap { width: min(1560px, calc(100% - 2 * clamp(16px, 5vw, 96px))); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 5;
  top: 16px;
  left: 16px;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--acid);
  color: #172009;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
#shader-background, .ambient-wash { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
#shader-background canvas { display: block; }
.ambient-wash { background: #100e1a; opacity: .5; }
.landing-masthead {
  position: fixed;
  z-index: 4;
  inset: 0 0 auto;
  border-bottom: 1px solid var(--glass-edge);
  background: rgb(24 20 32 / 94%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 0s linear 240ms;
}
.landing-masthead.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}
.landing-masthead .masthead { border-bottom: 0; }
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 16px;
  border-bottom: 1px solid #ede0fa26;
}
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 8px; text-decoration: none; }
.brand img { display: block; border-radius: 8px; }
.brand span { color: #ede0fa; font: 600 24px/32px Georgia, serif; letter-spacing: -.06em; }
.masthead nav { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.masthead nav a, .top-link { color: var(--muted); text-decoration: none; }
.masthead nav a { font-size: 14px; line-height: 20px; font-weight: 500; padding-block: 8px; }
.masthead nav a:hover, .top-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.masthead-download { justify-self: end; font-size: 14px; line-height: 20px; font-weight: 600; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-block-size: 100vh;
  min-block-size: 100dvh;
  align-content: center;
  justify-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(48px, 6vw, 96px) 80px;
}
.hero-copy { width: min(100%, 820px); text-align: center; }
.eyebrow { color: var(--violet); letter-spacing: .12em; text-transform: uppercase; }
.signal { display: inline-block; margin-right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #b896da; vertical-align: 2px; }
.hero h1 { margin-top: 16px; letter-spacing: -.055em; }
.hero h1 span { color: var(--acid); }
.hero-intro { max-width: 61ch; margin: 24px auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-actions a { justify-content: center; min-height: 44px; padding-inline: 16px; }
.primary {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--acid);
  color: #172009;
  text-decoration: none;
  transition: transform 240ms var(--ease);
}
.primary:hover { background: #d9ff95; transform: translateY(-1px); }
.primary:active { transform: translateY(1px); }
.secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--glass-edge);
  border-radius: 4px;
  background: var(--glass-inset);
  color: var(--text);
  text-decoration: none;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.secondary:hover { background: var(--violet-surface); transform: translateY(-1px); }
.secondary:active { transform: none; }
.hero-note { margin-top: 12px; }

.workflow-overview {
  width: min(100%, 1360px);
  min-width: 0;
  scroll-margin-top: 24px;
}
.workflow-overview :is(h2, h3, p, ol) { margin: 0; }
.workflow-overview .five-header { display: flex; justify-content: flex-end; }
.workflow-overview .five-eyebrow { color: var(--violet); font-size: 11px; line-height: 16px; font-weight: 650; letter-spacing: .055em; text-transform: uppercase; }
.workflow-overview .five-eyebrow span { color: var(--acid); margin-inline-end: 3px; }
.workflow-overview .five-replay { min-height: 44px; cursor: pointer; }
.workflow-overview .five-line {
  height: 1px; overflow: hidden; margin-top: 20px;
  background: var(--glass-edge); pointer-events: none;
}
.workflow-overview .five-line > span {
  display: block; width: 20%; height: 100%; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--acid), transparent);
}
.workflow-overview.is-playing .five-line > span {
  animation: qiq-five-sweep var(--sequence-duration) ease-in-out both;
}
@keyframes qiq-five-sweep { to { transform: translateX(500%); } }
.workflow-overview .five-cards:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.workflow-overview .five-cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(175px, 1fr); gap: 8px;
  margin-top: 12px; padding: 0 0 8px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #79628a transparent;
}
.workflow-overview .five-card {
  min-width: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--glass-edge); border-radius: 8px;
  background: var(--glass-panel); transition: border-color 260ms var(--ease);
}
.workflow-overview .five-card.is-active { border-color: #829653; }
.workflow-overview .five-scene {
  display: grid; align-content: center; gap: 5px; min-height: 178px; padding: 8px;
  border-bottom: 1px solid var(--glass-edge); background: radial-gradient(ellipse at 57% 55%, #332642, #1c1923 82%);
}
.workflow-overview .five-copy { padding: 10px; }
.workflow-overview h3 { margin: 4px 0 7px; font-size: 18px; line-height: 1.13; letter-spacing: -.025em; }
.workflow-overview .five-copy > p:last-child { color: var(--muted); font-size: 13px; }
.workflow-overview :is(.scene-row, .chip, .handoff, .art-name) { font-size: 11px; line-height: 15px; }
.workflow-overview :is(.scene-row, .handoff, .art-name, .chip) { display: flex; align-items: center; gap: 4px; }
.workflow-overview .scene-row { padding: 4px; background: #252131; border-radius: 4px; }
.workflow-overview .scene-row svg, .workflow-overview .handoff svg, .workflow-overview .art-name svg { flex: none; width: 12px; height: 12px; }
.workflow-overview .search { border: 1px solid var(--glass-edge); color: var(--muted); }
.workflow-overview .accent { color: var(--acid); margin-inline-start: auto; }
.workflow-overview .handoff { padding: 4px; color: var(--acid); }
.workflow-overview .composer-prompt { min-height: 32px; }
.workflow-overview :is(.composer-direction, .analysis-fields) { display: flex; flex-wrap: wrap; gap: 3px; }
.workflow-overview .chip { padding: 2px 4px; background: #3c2e49; border-radius: 4px; color: var(--violet); }
.workflow-overview .swatch { width: 8px; height: 8px; border-radius: 50%; background: #e4b48d; }
.workflow-overview .artwork { display: block; width: 100%; height: 82px; object-fit: cover; object-position: center 54%; border: 1px solid var(--glass-edge); border-radius: 4px; }
.workflow-overview .file-thumb { width: 25px; height: 21px; flex: none; }
.workflow-overview .art-name { color: var(--muted); }
.workflow-overview .render-meter { height: 3px; border-radius: 4px; background: #46404e; }
.workflow-overview .render-meter span { display: block; height: 100%; border-radius: inherit; background: var(--acid); transform-origin: left; }
.workflow-overview .gallery-chip, .workflow-overview .return-path { background: #3a2d48; color: var(--violet); }
.workflow-overview .return-index { color: var(--acid); margin-inline-start: auto; }
.workflow-overview.is-playing .library.is-active .library-match { animation: qiq-five-in 380ms var(--ease) both; }
.workflow-overview.is-playing .library.is-active .library-lora { animation: qiq-five-in 380ms 140ms var(--ease) both; }
.workflow-overview.is-playing .is-active .handoff { animation: qiq-five-in 330ms 620ms var(--ease) both; }
.workflow-overview.is-playing .composer.is-active .composer-assets { animation: qiq-five-in 360ms var(--ease) both; }
.workflow-overview.is-playing .composer.is-active .composer-prompt { animation: qiq-five-in 360ms 170ms var(--ease) both; }
.workflow-overview.is-playing .composer.is-active .composer-direction { animation: qiq-five-in 360ms 350ms var(--ease) both; }
.workflow-overview.is-playing .generation.is-active .render-meter span { animation: qiq-five-meter 620ms ease-out both; }
.workflow-overview.is-playing .generation.is-active :is(.generated-art, .art-name) { animation: qiq-five-in 410ms 590ms var(--ease) both; }
.workflow-overview.is-playing .output.is-active .artwork { animation: qiq-five-in 400ms var(--ease) both; }
.workflow-overview.is-playing .output.is-active .gallery-chip { animation: qiq-five-in 400ms 440ms var(--ease) both; }
.workflow-overview.is-playing .analyze.is-active .analysis-fields { animation: qiq-five-in 420ms 180ms var(--ease) both; }
.workflow-overview.is-playing .analyze.is-active .return-path { animation: qiq-five-return 550ms 620ms var(--ease) both; }
@keyframes qiq-five-in { from { opacity: 0; transform: translateX(-7px); } }
@keyframes qiq-five-meter { from { transform: scaleX(.03); } }
@keyframes qiq-five-return { from { opacity: 0; transform: translateX(7px); } 70% { color: #c6f564; } }
@media (max-width: 1050px) {
  .workflow-overview .five-cards { grid-auto-columns: clamp(190px, 37%, 270px); }
}
@media (max-width: 490px) {
  .workflow-overview .five-cards { grid-auto-columns: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  .workflow-overview .five-replay { display: none; }
  .workflow-overview * { animation: none !important; transition: none !important; }
}

.showcase-chapter { justify-items: center; }
.showcase {
  width: min(100%, 1120px);
  margin-inline: auto;
  min-width: 0;
  border: 1px solid #65586b;
  border-radius: 8px;
  background: var(--glass-panel);
  box-shadow: 0 24px 64px rgb(8 6 14 / 40%);
}
.showcase-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-edge);
}
.showcase-brand { display: inline-flex; align-items: center; gap: 8px; }
.showcase-brand img { border-radius: 4px; }
.showcase-brand span { color: var(--muted); }
.showcase-tools, .showcase-controls { display: flex; align-items: center; gap: 8px; }
.showcase-badge { padding: 4px 8px; border: 1px solid var(--glass-edge); border-radius: 4px; }
.slide-step { justify-content: center; width: 32px; height: 32px; padding: 0; font: inherit; cursor: pointer; }
.slide-position { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.showcase .showcase-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 0; }
.showcase-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; padding: 16px; }
.showcase-art { align-self: start; overflow: hidden; border: 1px solid var(--glass-edge); border-radius: 4px; background: var(--glass-inset); }
.showcase-art img { display: block; width: 100%; height: auto; }
.showcase-art figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 8px; padding: 8px 12px; }
.showcase-views { display: grid; gap: 8px; }
.showcase-view { padding: 16px; border: 1px solid var(--glass-edge); border-radius: 4px; background: var(--glass-inset); }
.showcase.is-enhanced .showcase-view { grid-area: 1 / 1; }
.showcase.is-enhanced .showcase-view[hidden] { display: block !important; visibility: hidden; }
.showcase-view h2 { margin: 4px 0 8px; font-size: 20px; line-height: 1.2; letter-spacing: -.025em; }
.showcase-view dl > div { padding: 8px 0; }
.showcase-view dl > div + div { border-top: 1px solid var(--glass-edge); }
.showcase-view dt { color: var(--muted); font-size: 12px; line-height: 16px; }
.showcase-view dd { margin-top: 2px; color: var(--text); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.showcase-view[data-entering] { animation: showcase-veil 260ms var(--ease); }
.showcase-view[data-entering="forward"] { --showcase-offset: 6px; }
.showcase-view[data-entering="backward"] { --showcase-offset: -6px; }
@keyframes showcase-veil {
  from { opacity: .76; transform: translateX(var(--showcase-offset)); }
}

.signup-main {
  display: grid;
  min-height: calc(100svh - 69px);
  place-items: center;
  padding-block: 48px;
}
.signup-card {
  width: min(100%, 540px);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  background: var(--glass-panel);
}
.signup-card h1 { margin-block: 12px 16px; }
.signup-card .secondary { margin-top: 24px; }

.content-surface { border-top: 1px solid var(--glass-edge); }
.content-surface > .chapter {
  scroll-margin-top: 0;
  padding-block-start: max(80px, calc(var(--landing-masthead-height, 0px) + 16px));
}
.content-surface .journey-panel { scroll-margin-top: calc(var(--landing-masthead-height, 0px) + 16px); }
.section { padding-block: 80px; }
.section h2 { margin-top: 12px; letter-spacing: -.045em; }
.section-lead {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 16px 40px;
  margin-bottom: 32px;
}
.section-lead > p { max-width: 43ch; }

.workflow-study { display: none; }
.chapter-pending:not(:focus-within) { opacity: 0; pointer-events: none; }
.chapter-entered:not(:focus-within) { transition: opacity 400ms var(--ease); }
.chapter-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; margin-top: 16px; }
.chapter-end > p { margin-right: auto; }
.chapter-next { display: inline-flex; align-items: center; gap: 8px; color: var(--violet); padding: 8px 0; text-decoration: none; }
.chapter-next:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

.journey, .feature, .return-section, .questions {
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  background: var(--glass-panel);
  backdrop-filter: blur(5px);
}

.journey-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 8px 0;
  background: var(--glass-inset);
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid var(--border);
}
.journey-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 4px;
  border-radius: 4px 4px 0 0;
  border-top: 2px solid transparent;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.journey-nav span { color: var(--muted); font-variant-numeric: tabular-nums; }
.journey-nav a:hover { background: var(--violet-surface); color: var(--text); }
.journey-nav a[aria-selected="true"] { border-top-color: var(--acid); background: var(--glass-raised); color: var(--text); }
.journey-nav a[aria-selected="true"] span { color: var(--acid); }
.journey-nav a:focus-visible, .journey-panel:focus-visible { outline-offset: -4px; }
.journey-panels { padding: 0 32px; }
.journey-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px 48px;
  min-height: 220px;
  padding: 32px 0;
}
.journey-panel + .journey-panel { border-top: 1px solid var(--border); }
.journey.is-enhanced .journey-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
.journey.is-enhanced .journey-panel { grid-area: 1 / 1; border-top: 0; }
/* Inactive stages size the shared row but stay hidden and inert. */
.journey.is-enhanced .journey-panel[hidden] { display: grid !important; visibility: hidden; }
.journey-copy h3 { margin: 8px 0; text-wrap: initial; letter-spacing: -.035em; }
.journey-copy .body-3 { max-width: 56ch; }
.journey-notes { padding: 0 16px; border: 1px solid var(--border); border-radius: 4px; background: var(--glass-inset); }
.journey-notes div { padding: 12px 0; }
.journey-notes div + div { border-top: 1px solid var(--border); }
.journey-notes dt { margin-bottom: 4px; color: var(--muted); }
.journey-notes dd { color: var(--violet); }
.journey-panel[data-entering] { animation: directional-veil 500ms var(--ease); }
.journey-panel[data-entering="forward"] { --stage-offset: 16px; }
.journey-panel[data-entering="backward"] { --stage-offset: -16px; }
@keyframes directional-veil {
  from { transform: translateX(var(--stage-offset)); opacity: .45; }
  to { transform: translateX(0); opacity: 1; }
}

.foundations { border-top: 1px solid var(--glass-edge); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feature { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.feature h3 { letter-spacing: -.035em; text-wrap: initial; }
.feature-kicker { display: flex; align-items: center; gap: 12px; color: var(--violet); }
.feature-kicker span { color: var(--muted); }
.feature-example { margin-top: auto; padding: 16px; border: 1px solid var(--border); border-radius: 4px; background: var(--glass-inset); }
.example-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.chips span { padding: 4px 8px; border: 1px solid #574661; border-radius: 4px; color: var(--violet); background: var(--violet-surface); }
.gallery-example { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; }
.gallery-example img { display: block; border-radius: 4px; object-fit: cover; }
.gallery-example .chips { grid-column: 1 / -1; margin-top: 0; }

.return-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  align-items: center;
  gap: 32px 64px;
  padding: 48px 40px;
  background: rgb(44 34 53 / 72%);
}
.return-copy .body-3 { max-width: 55ch; margin-top: 16px; }
.return-path { list-style: none; padding: 0; }
.return-path li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 12px 0; }
.return-path li + li { border-top: 1px solid #4e4059; }
.return-path li > span { color: var(--violet); font-variant-numeric: tabular-nums; }
.return-path h3 { text-wrap: initial; }

.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.questions { padding-inline: 24px; }
.questions details + details { border-top: 1px solid var(--glass-edge); }
.questions summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after {
  content: "";
  width: 16px;
  height: 8px;
  margin-right: 4px;
  flex: none;
  background: var(--violet);
  clip-path: polygon(0 15%, 50% 68%, 100% 15%, 100% 40%, 50% 93%, 0 40%);
}
.questions details[open] summary::after { transform: rotate(180deg); }
.questions summary:hover { color: var(--violet); }
.questions p { max-width: 64ch; padding-bottom: 16px; }
.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-block: 1px solid var(--glass-edge); padding-block: 32px; }
.last-chapter .closing { margin-top: 48px; }

.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 24px; }
.top-link { justify-self: end; }
.footer-links { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }

@media (min-width: 1024px) and (min-height: 760px) {
  .chapter {
    display: grid;
    align-content: center;
    min-block-size: 100svh;
    padding-block: 48px;
  }
  .chapter[id] { scroll-margin-top: 0; }
  .last-chapter { min-block-size: calc(100svh - 80px); }
  .feature { padding: 32px; }
  .feature-example { padding: 24px; }
  .gallery-example img { width: 96px; height: 72px; }
  .return-section { padding: 64px; }
  .return-path li { padding-block: 24px; }
}

@media (min-width: 1240px) {
  .workflow-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
    gap: 24px;
  }
  .journey.is-enhanced { display: flex; flex-direction: column; }
  .journey.is-enhanced .journey-panels { flex: 1; }
  .journey-panel { gap: 24px; }
  .workflow-study {
    display: grid;
    align-content: center;
    padding: 8px;
    border: 1px solid var(--glass-edge);
    border-radius: 8px;
    background: var(--glass-panel);
  }
  .workflow-study img { display: block; width: 100%; height: auto; border-radius: 4px; }
  .workflow-study figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; padding: 8px 4px 4px; }
}

@media (min-width: 1500px) {
  .heading-2 { font-size: 60px; }
  .section-lead { margin-bottom: 40px; }
}

@media (min-width: 851px) {
  .hero .heading-1 { font-size: clamp(52px, 5.5vw, 80px); }
}

@media (min-width: 1051px) {
  .hero { gap: 24px; padding-block: 32px 24px; }
  .hero .heading-1 { font-size: clamp(48px, 4.6vw, 72px); margin-top: 0; }
  .hero-intro { margin-block: 16px; }
  .workflow-overview .five-line { margin-top: 12px; }
  .workflow-overview .five-cards { margin-top: 8px; }
  .workflow-overview .five-scene { min-height: 160px; }
}

@media (min-width: 851px) and (min-height: 600px) {
  .showcase-chapter { display: grid; align-content: center; min-height: 100svh; }
}

@media (max-width: 1040px) {
  .heading-1 { font-size: 48px; }
}
@media (max-width: 850px) {
  .faq { grid-template-columns: 1fr; }
  .hero { padding-block: 48px 64px; }
  .section { padding-block: 48px; }
  .journey-panel { min-height: 240px; gap: 24px; }
  .feature-grid { gap: 16px; }
  .feature { padding: 16px; }
  .return-section { gap: 24px; padding-inline: 24px; }
}
@media (max-width: 620px) {
  .heading-1, .heading-2 { font-size: 36px; line-height: 40px; }
  .heading-3 { font-size: 30px; line-height: 36px; }
  .masthead { grid-template-columns: 1fr auto; gap: 4px 8px; padding-block: 12px 8px; }
  .masthead nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 4px 16px; }
  .hero { padding-top: 32px; }
  .hero-intro { margin-block: 16px; }
  .showcase-body { grid-template-columns: 1fr; gap: 8px; padding: 8px; }
  .showcase-header { padding: 8px; }
  .showcase-tools { flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap; }
  .showcase-view { padding: 12px; }
  .section-lead, .feature-grid, .return-section, .journey-panel { grid-template-columns: 1fr; }
  .section-lead { margin-bottom: 24px; }
  .journey-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journey-nav a { gap: 4px; padding-inline: 2px; }
  .journey-panels { padding: 0 16px; }
  .journey-panel { min-height: auto; padding-block: 24px; gap: 16px; }
  .return-section { padding-inline: 16px; }
  .faq { gap: 16px; }
  .questions { padding-inline: 16px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary, .secondary, .chapter-entered:not(:focus-within) { transition: none; }
  .primary:hover, .primary:active, .secondary:hover { transform: none; }
  .showcase-view[data-entering] { animation: none; }
  .chapter-pending:not(:focus-within) { opacity: 1; pointer-events: auto; }
  .landing-masthead { transition: none; transform: none; }
  .journey-panel[data-entering] { animation: none; }
}
