@font-face {
  font-family: "Graphik";
  src: url("assets/fonts/Graphik-Regular-Web.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Task 3 rebuild: physical stamp workshop */
.stamp-brief-layout,
.stamp-editor-layout {
  align-items: stretch;
}

.stamp-client-scene {
  min-height: 500px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #f7f7f4;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px) 0 0 / 32px 32px,
    #1c1d1e;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
}

.stamp-client-scene__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.stamp-client-scene__head span {
  color: #aeb1b2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.stamp-client-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 52px 28px 30px;
}

.stamp-client-product {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 0;
}

.stamp-client-product > span {
  position: relative;
  display: block;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1.05;
  border: 1px solid rgb(255 255 255 / 18%);
  background: #c9a47b;
  box-shadow: 0 22px 24px rgb(0 0 0 / 28%);
}

.stamp-client-product.is-clay > span {
  border-radius: 50% 50% 22% 22%;
  background: #b87854;
}

.stamp-client-product.is-clay > span::after {
  position: absolute;
  left: 22%;
  right: 22%;
  top: 13%;
  height: 16%;
  border: 4px solid rgb(66 40 26 / 42%);
  border-radius: 50%;
  content: "";
}

.stamp-client-product.is-leather > span {
  border-radius: 10px 20px 12px 24px;
  background:
    radial-gradient(circle at 30% 30%, rgb(255 255 255 / 10%) 0 1px, transparent 2px) 0 0 / 9px 9px,
    #73482e;
  transform: rotate(-4deg);
}

.stamp-client-product.is-tag > span {
  border-radius: 8px;
  background: #d9caaa;
  clip-path: polygon(0 0, 84% 0, 100% 20%, 100% 100%, 0 100%);
}

.stamp-client-product > i {
  position: absolute;
  top: 42%;
  display: grid;
  place-items: center;
  width: 66px;
  height: 46px;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: transparent;
  font-style: normal;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  transform: translateY(-50%);
}

.stamp-client-product.is-clay > i {
  color: rgb(78 43 25 / 68%);
  border-color: rgb(78 43 25 / 58%);
  box-shadow:
    inset 0 2px 3px rgb(57 31 18 / 28%),
    0 1px 0 rgb(255 226 196 / 24%);
  text-shadow: 0 1px 0 rgb(255 218 183 / 18%);
}

.stamp-client-product.is-leather > i {
  color: #382217;
  border-color: #40271a;
  box-shadow:
    inset 0 2px 3px rgb(20 10 5 / 45%),
    0 1px 0 rgb(221 166 120 / 24%);
  text-shadow: 0 1px 0 rgb(207 146 102 / 24%);
  transform: translateY(-50%) rotate(-4deg);
}

.stamp-client-product.is-tag > i {
  height: 42px;
  border-width: 2px;
  border-radius: 8px;
  color: #2f2a22;
  background: rgb(255 255 255 / 8%);
  box-shadow: inset 0 0 0 2px rgb(47 42 34 / 10%);
}

.stamp-client-product strong {
  font-size: 13px;
}

.stamp-client-request {
  display: grid;
  grid-template-columns: 46px 72px 1fr;
  align-items: end;
  width: calc(100% - 56px);
  margin: 24px 28px;
  padding: 14px 18px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 16px;
  background: #111213;
}

.stamp-client-request__handle {
  z-index: 2;
  width: 42px;
  height: 72px;
  border-radius: 17px 17px 8px 8px;
  background: linear-gradient(90deg, #aaa69d, #ece9df 46%, #9a968d);
}

.stamp-client-request__base {
  position: relative;
  width: 76px;
  height: 24px;
  margin-left: -14px;
  border-radius: 8px;
  background: #d8d4ca;
}

.stamp-client-request__base::after {
  position: absolute;
  inset: 5px 13px;
  display: grid;
  place-items: center;
  border: 1px solid #77736c;
  border-radius: 50%;
  color: #5d5a54;
  content: "MA";
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
}

.stamp-client-request p {
  display: grid;
  gap: 3px;
  margin: 0 0 7px 14px;
}

.stamp-client-request small { color: #b7b9ba; }

.stamp-editor-layout {
  display: grid;
  grid-template-columns: minmax(430px, .92fr) minmax(520px, 1.08fr);
  gap: 22px;
}

.stamp-editor-screen .stamp-stage-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stamp-editor-screen h1 {
  max-width: 12ch;
  font-size: clamp(40px, 3.5vw, 52px);
  line-height: .98;
}

.stamp-editor-screen .lead {
  margin-top: 10px;
  font-size: 16px;
}

.stamp-editor-screen .stamp-shape-picker {
  gap: 8px;
  margin-top: 16px;
}

.stamp-editor-screen .stamp-shape-button {
  min-height: 68px;
  padding: 10px;
  font-size: 12px;
}

.stamp-editor-screen .stamp-shape-button > span {
  width: 30px;
  height: 23px;
}

.stamp-editor-screen .stamp-brand-field {
  margin-top: 10px;
}

.stamp-editor-screen .stamp-brand-field .field {
  min-height: 46px;
}

.stamp-editor-screen .stamp-controls {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.stamp-editor-screen .stamp-control {
  padding: 10px 12px;
}

.stamp-editor-screen .stamp-control > small:last-child,
.stamp-editor-screen .stamp-control-scale { display: none; }

.stamp-editor-screen .action-row { margin-top: 12px; }

.stamp-editor-preview-panel {
  display: grid;
  min-height: 460px;
  padding: 18px;
  color: #f8f8f5;
  background: #1c1d1e;
}

.stamp-editor-visual {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 0;
}

.stamp-editor-view {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 24px 24px,
    #252729;
}

.stamp-editor-view header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.stamp-editor-view header span,
.stamp-editor-view p {
  color: #b8bbbc;
  font-size: 11px;
}

.stamp-editor-view header strong,
.stamp-editor-view p strong { color: #fff; }

.stamp-editor-view p { margin: 0; }

.stamp-top-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 174px;
  height: 112px;
  margin: auto;
  border: var(--stamp-line-width) solid #292927;
  border-radius: 18px;
  color: #252522;
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 22%) 0 1px, transparent 1px 4px),
    #d8d5cc;
  box-shadow: 0 17px 22px rgb(0 0 0 / 35%), inset 0 0 0 4px rgb(255 255 255 / 24%);
  font-size: 27px;
  font-weight: var(--stamp-letter-weight);
  letter-spacing: .07em;
  transition: border-width var(--motion-normal) var(--motion-easing), font-weight var(--motion-normal) var(--motion-easing);
}

.stamp-editor-visual[data-shape="round"] .stamp-top-face { width: 126px; height: 126px; border-radius: 50%; }
.stamp-editor-visual[data-shape="hexagon"] .stamp-top-face { border-radius: 0; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }

.stamp-top-face i {
  position: absolute;
  inset: 17%;
  border: var(--stamp-line-width) solid currentColor;
  border-radius: inherit;
  opacity: .65;
}

.stamp-section-object {
  position: relative;
  width: 250px;
  height: 130px;
  margin: auto;
}

.stamp-section-handle,
.stamp-section-collar,
.stamp-section-base,
.stamp-section-relief,
.stamp-section-surface {
  position: absolute;
  left: 50%;
  display: block;
  transform: translateX(-50%);
}

.stamp-section-handle {
  top: 7px;
  width: 54px;
  height: 72px;
  border: 1px solid #77746e;
  border-radius: 19px 19px 9px 9px;
  background: linear-gradient(90deg, #9d9990, #edeae1 45%, #8a877f);
}

.stamp-section-handle::after {
  position: absolute;
  inset: 18px 12px 11px;
  border: 3px solid #77736c;
  border-top: 0;
  border-bottom: 0;
  content: "";
}

.stamp-section-collar {
  top: 69px;
  width: 90px;
  height: 17px;
  border-radius: 7px;
  background: #c4c0b6;
}

.stamp-section-base {
  top: 82px;
  width: 176px;
  height: 22px;
  border-radius: 10px 10px 5px 5px;
  background: #dbd8cf;
  box-shadow: 0 5px 10px rgb(0 0 0 / 28%);
}

.stamp-section-relief {
  top: 102px;
  display: flex;
  justify-content: space-around;
  width: 132px;
  height: var(--stamp-relief-lift);
  transition: height var(--motion-normal) var(--motion-easing);
}

.stamp-section-relief i {
  width: var(--stamp-line-width);
  min-width: 3px;
  height: 100%;
  background: #d8d5cc;
}

.stamp-section-surface {
  top: calc(104px + var(--stamp-relief-lift));
  width: 216px;
  height: 2px;
  background: #777b7c;
  transition: top var(--motion-normal) var(--motion-easing);
}

.stamp-adjustment-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.stamp-adjustment-button {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.stamp-adjustment-button.is-selected {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary);
}

.stamp-refine-preview {
  margin-top: 12px;
  padding: 10px;
  border-radius: 16px;
  color: #fff;
  background: #1c1d1e;
}

.stamp-refine-preview .stamp-editor-visual {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 160px;
}

.stamp-refine-preview .stamp-editor-view { padding: 10px; }
.stamp-refine-preview .stamp-top-face { transform: scale(.72); }
.stamp-refine-preview .stamp-section-object { transform: scale(.72); }

.stamp-refine-preview[data-line-state="thin"] .stamp-top-face > span,
.stamp-refine-preview[data-line-state="thin"] .stamp-top-face i {
  opacity: .42;
}

.stamp-refine-preview[data-line-state="thin"] .stamp-top-face i {
  border-style: dashed;
}

.stamp-refine-preview[data-line-state="suitable"] .stamp-top-face {
  box-shadow: 0 17px 22px rgb(0 0 0 / 35%), inset 0 0 0 4px rgb(255 255 255 / 24%), 0 0 0 4px rgb(116 170 120 / 34%);
}

.stamp-refine-preview[data-line-state="thick"] .stamp-top-face > span {
  letter-spacing: -.06em;
}

.stamp-refine-preview[data-line-state="thick"] .stamp-top-face i {
  inset: 24%;
  box-shadow: 0 0 0 3px currentColor;
}

.stamp-control[data-line-state="thin"] em {
  background: #5c4b3e;
}

.stamp-control[data-line-state="suitable"] em {
  background: #397a4b;
}

.stamp-control[data-line-state="thick"] em {
  background: #8a473b;
}

.stamp-line-status {
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface);
}

.stamp-line-status strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.stamp-line-status p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
}

.stamp-line-status.is-thin {
  border-color: #b79a7e;
  background: #f4eee8;
}

.stamp-line-status.is-suitable {
  border-color: #8ec394;
  background: #edf6ee;
}

.stamp-line-status.is-thick {
  border-color: #d39a8e;
  background: #f8ece9;
}

.physical-stamp {
  width: 170px;
  height: 190px;
}

.physical-stamp__handle {
  left: 50%;
  width: 62px;
  height: 116px;
  border: 1px solid #77746e;
  border-radius: 23px 23px 10px 10px;
  background: linear-gradient(90deg, #99958c, #efebe2 46%, #848179);
  transform: translateX(-50%);
}

.physical-stamp__handle::after {
  position: absolute;
  inset: 28px 14px 17px;
  border: 4px solid #77736c;
  border-top: 0;
  border-bottom: 0;
  content: "";
}

.physical-stamp__face {
  left: 50%;
  bottom: 2px;
  width: 164px;
  height: 72px;
  transform: translateX(-50%);
}

@media (max-width: 980px) {
  .stamp-editor-layout { grid-template-columns: 1fr; }
  .stamp-editor-preview-panel { min-height: 430px; }
}

@media (max-width: 767px) {
  .stamp-client-scene { min-height: 380px; }
  .stamp-client-scene__head { display: grid; padding: 12px 14px; }
  .stamp-client-products { gap: 7px; padding: 34px 12px 20px; }
  .stamp-client-product strong { font-size: 11px; }
  .stamp-client-product > i { width: 54px; height: 38px; font-size: 14px; }
  .stamp-client-product.is-tag > i { height: 34px; }
  .stamp-client-request { width: calc(100% - 24px); margin: 16px 12px; }
  .stamp-editor-layout { display: flex; flex-direction: column; }
  .stamp-editor-screen h1 { font-size: 38px; }
  .stamp-editor-screen .stamp-controls { grid-template-columns: 1fr; }
  .stamp-editor-preview-panel { order: -1; min-height: 420px; padding: 12px; }
  .stamp-editor-view { min-height: 190px; padding: 12px; }
  .stamp-top-face { transform: scale(.84); }
  .stamp-section-object { transform: scale(.82); }
  .stamp-adjustment-picker { grid-template-columns: 1fr; }
  .stamp-refine-preview .stamp-editor-visual { grid-template-columns: 1fr; grid-template-rows: repeat(2, 180px); }
}

@font-face {
  font-family: "Graphik";
  src: url("assets/fonts/Graphik-Semibold-Web.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Graphik";
  src: url("assets/fonts/Graphik-Bold-Web.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-dark: #000000;
  --surface: #f5f5f5;
  --surface-dark: #202020;
  --text: #000000;
  --text-on-dark: #ffffff;
  --primary: #3d3bff;
  --primary-hover: #302ee6;
  --accent-mint: #b8e8b6;
  --accent-peach: #ffc38e;
  --accent-lime: #d8ff28;
  --accent-pink: #f7c8ff;
  --accent-lavender: #968bab;
  --accent-gray: #c4c4c4;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 72px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --motion-fast: 160ms;
  --motion-normal: 220ms;
  --motion-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Graphik", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-lime);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
}

h1 {
  max-width: 14ch;
  font-size: clamp(44px, 5.3vw, 68px);
  font-weight: 700;
  line-height: 0.98;
}

h2 {
  max-width: 18ch;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.03;
}

h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.12;
}

.noscript {
  padding: var(--space-md);
  background: var(--accent-peach);
  text-align: center;
}

.app-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  background: var(--bg);
}

.header-inner {
  width: min(var(--container), calc(100% - 48px));
  min-height: 72px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  gap: var(--space-lg);
}

.brand-button,
.text-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-button {
  width: max-content;
  padding: 0;
}

.brand-logo {
  width: 126px;
  height: auto;
}

.text-button {
  justify-self: end;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-pill);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.order-progress {
  width: min(420px, 100%);
  justify-self: center;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-sm);
}

.progress-label {
  white-space: nowrap;
  font-size: 14px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width var(--motion-normal) var(--motion-easing);
}

.app {
  min-height: 100vh;
}

.app:focus {
  outline: none;
}

.screen {
  min-height: 100vh;
  padding: 112px 0 var(--space-3xl);
  animation: reveal var(--motion-normal) var(--motion-easing);
}

.screen-center {
  display: grid;
  align-items: center;
}

.task-progress {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.task-progress__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-progress__indicators {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.task-progress__indicator {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent-gray);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition:
    border-color var(--motion-fast) var(--motion-easing),
    background var(--motion-fast) var(--motion-easing);
}

.task-progress__indicator.is-current {
  border-color: var(--primary);
  background: var(--primary);
}

.task-progress__indicator.is-complete {
  border-color: var(--accent-mint);
  background: var(--accent-mint);
}

.step-progress {
  margin-bottom: var(--space-md);
}

.step-progress__inner p {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.step-progress__track {
  height: 4px;
  overflow: hidden;
  margin-top: 7px;
  border-radius: var(--radius-pill);
  background: #dedede;
}

.step-progress__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width var(--motion-fast) var(--motion-easing);
}

.printer-workshop-screen .step-progress__track {
  background: rgb(255 255 255 / 24%);
}

.app.has-simulation-progress .screen {
  padding-top: 88px;
}

.app.has-simulation-progress .screen .eyebrow,
.app.has-simulation-progress .screen .order-badge {
  display: none;
}

.app.has-simulation-progress .screen .eyebrow + h1,
.app.has-simulation-progress .screen .eyebrow + h2,
.app.has-simulation-progress .screen .order-badge + h1,
.app.has-simulation-progress .screen .order-badge + h2 {
  margin-top: 0;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.container.narrow {
  width: min(760px, calc(100% - 48px));
}

.container.medium {
  width: min(940px, calc(100% - 48px));
}

.center-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.center-copy h1,
.center-copy h2 {
  margin-inline: auto;
}

.eyebrow,
.order-badge,
.mini-tag {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border-radius: var(--radius-pill);
  background: var(--surface);
  padding: var(--space-xs) var(--space-md);
  font-size: 14px;
}

.eyebrow.blue,
.order-badge {
  background: var(--primary);
  color: var(--text-on-dark);
}

.eyebrow + h1,
.eyebrow + h2,
.order-badge + h1,
.order-badge + h2 {
  margin-top: var(--space-lg);
}

.lead {
  max-width: 680px;
  margin-top: var(--space-lg);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
}

.supporting {
  max-width: 680px;
  margin-top: var(--space-md);
}

.hero-layout {
  min-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-xl);
  align-items: stretch;
}

.hero-copy,
.hero-media {
  min-width: 0;
  border-radius: var(--radius-lg);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(32px, 4vw, 48px);
  background: var(--surface);
}

.hero-copy .eyebrow {
  border: 1px solid rgb(67 61 255 / 18%);
  background: #eeedff;
  color: #3934d6;
  font-weight: 700;
}

.hero-copy-heading,
.hero-copy-details {
  display: contents;
}

.hero-copy h1 {
  margin-top: var(--space-lg);
  font-size: clamp(38px, 3.7vw, 52px);
  line-height: 0.98;
}

.hero-copy .lead {
  max-width: 540px;
  margin-top: var(--space-md);
  font-size: 18px;
  line-height: 1.32;
}

.hero-copy .hero-lead-secondary {
  margin-top: 0;
}

.hero-social-proof {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  border: 1px solid #d9d7ee;
  border-radius: 999px;
  background: linear-gradient(110deg, #fff 0%, #f5f4ff 100%);
  padding: 10px 14px;
  color: #292832;
  box-shadow: 0 7px 18px rgb(61 59 255 / 10%), inset 0 1px rgb(255 255 255 / 90%);
  font-size: 12px;
  line-height: 1.1;
}

.hero-social-proof::after {
  position: absolute;
  top: -70%;
  left: -38%;
  width: 18%;
  height: 240%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 48%), transparent);
  content: "";
  pointer-events: none;
  transform: rotate(16deg);
}

.hero-social-proof__rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #17181a;
  font-weight: 800;
  white-space: nowrap;
}

.hero-social-proof__star {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #d0a74a;
  border-radius: 50%;
  background: #fff1bb;
  color: #8a6410;
  box-shadow: inset 0 1px rgb(255 255 255 / 80%);
  font-size: 12px;
  font-style: normal;
  line-height: 1;
  transform: rotate(-8deg);
}

.hero-social-proof__dot {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #aaa8c7;
  box-shadow: none;
}

.hero-social-proof strong {
  min-width: 0;
  font-weight: 650;
}

.hero-social-proof strong b {
  color: #292832;
  font-weight: 800;
}

.hero-screen .btn-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 12px 28px rgb(67 61 255 / 25%);
}

.hero-screen .btn-primary::after {
  position: absolute;
  z-index: 1;
  top: -85%;
  left: -42%;
  width: 24%;
  height: 270%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 72%), transparent);
  content: "";
  pointer-events: none;
  transform: rotate(18deg) translateX(-180%);
  animation: hero-cta-sheen 4.6s ease-in-out infinite;
}

.hero-screen .btn-primary:hover {
  box-shadow: 0 16px 36px rgb(67 61 255 / 34%);
}

.hero-screen .btn-primary:focus-visible {
  outline: 3px solid rgb(216 255 40 / 78%);
  outline-offset: 4px;
}

@keyframes hero-cta-sheen {
  0%, 52% { transform: rotate(18deg) translateX(-180%); }
  76%, 100% { transform: rotate(18deg) translateX(740%); }
}

.hero-copy .meta-row {
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.hero-copy .stat-pill {
  padding: 6px var(--space-sm);
  font-size: 13px;
}

.hero-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--surface);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.hero-people-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--surface-dark);
}

.hero-people-grid img {
  min-width: 0;
  object-position: center;
}

.hero-people-grid img:first-child {
  object-position: 50% 44%;
}

.hero-people-grid img:last-child {
  object-position: 54% center;
}

.hero-media-caption {
  position: absolute;
  right: var(--space-lg);
  bottom: var(--space-lg);
  left: var(--space-lg);
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.hero-media-caption span,
.stat-pill {
  border-radius: var(--radius-pill);
  background: var(--bg);
  padding: var(--space-xs) var(--space-md);
  font-size: 14px;
}

.hero-media-caption span {
  background: var(--accent-gray);
  color: var(--text);
  font-weight: 600;
}

.meta-row,
.action-row,
.artifact-row,
.result-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.meta-row {
  margin-top: var(--space-md);
}

.hero-copy .action-row {
  width: 100%;
  margin-top: var(--space-md);
}

.hero-copy .action-row .btn {
  width: 100%;
}

.hero-copy .hero-cta-note {
  max-width: 420px;
  margin-top: var(--space-xs);
  color: #8a8b94;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.action-row {
  margin-top: var(--space-xl);
  align-items: center;
}

.btn {
  min-height: 56px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  transition:
    background var(--motion-fast) var(--motion-easing),
    transform var(--motion-fast) var(--motion-easing);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-dark);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

.btn-light {
  background: var(--bg);
  color: var(--text);
}

.btn-link {
  min-height: auto;
  background: transparent;
  padding-inline: var(--space-xs);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.promise-grid,
.route-grid,
.result-grid,
.trust-grid {
  display: grid;
  gap: var(--space-md);
}

.promise-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-xl);
}

.promise-card,
.result-card,
.trust-card,
.brief-card,
.insight-card,
.route-card,
.form-panel {
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.promise-card,
.result-card,
.trust-card {
  padding: var(--space-xl);
}

.promise-card:first-child {
  background: var(--accent-mint);
}

.promise-card:nth-child(2) {
  background: var(--accent-peach);
}

.promise-card:nth-child(3) {
  background: var(--accent-pink);
}

.promise-card:nth-child(4) {
  background: var(--accent-lime);
}

.card-number {
  display: block;
  margin-bottom: var(--space-lg);
  font-size: 14px;
}

.promise-card p,
.result-card p,
.trust-card p {
  margin-top: var(--space-sm);
}

.selector-grid {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

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

.selector-card {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: var(--space-md);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: var(--space-lg);
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--motion-fast) var(--motion-easing),
    transform var(--motion-fast) var(--motion-easing);
}

.selector-card:hover {
  transform: translateY(-2px);
}

.selector-card.is-selected {
  border-color: var(--text);
}

.selection-control {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 2px solid var(--text);
  background: var(--bg);
}

.selection-control--single {
  border-radius: 50%;
}

.selection-control--single::after {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
  transform: scale(0);
  transition: transform var(--motion-fast) var(--motion-easing);
}

.selection-card--single.is-selected .selection-control--single {
  border-color: var(--primary);
}

.selection-card--single.is-selected .selection-control--single::after {
  transform: scale(1);
}

.case-diagnosis-screen .selection-card {
  transition:
    border-color 180ms var(--motion-easing),
    background-color 180ms var(--motion-easing),
    box-shadow 180ms var(--motion-easing),
    transform var(--motion-fast) var(--motion-easing);
}

.case-diagnosis-screen .selection-card.is-answer-error {
  border-color: #d94436;
  background: #fff3f1;
  box-shadow: 0 0 0 3px rgb(217 68 54 / 10%);
}

.case-diagnosis-screen .selection-card.is-answer-success {
  border-color: #16834b;
  background: #effaf3;
  box-shadow: 0 0 0 3px rgb(22 131 75 / 10%);
}

.case-diagnosis-screen .selection-card.is-answer-error .selection-control--single {
  border-color: #d94436;
}

.case-diagnosis-screen .selection-card.is-answer-error .selection-control--single::after {
  background: #d94436;
}

.case-diagnosis-screen .selection-card.is-answer-success .selection-control--single {
  border-color: #16834b;
}

.case-diagnosis-screen .selection-card.is-answer-success .selection-control--single::after {
  background: #16834b;
}

.selection-answer-status {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.selection-answer-status--error { background: #d94436; }
.selection-answer-status--success { background: #16834b; }

.selection-control--multiple {
  border-radius: 6px;
}

.selection-control--multiple::after {
  position: absolute;
  top: 4px;
  left: 7px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: "";
  opacity: 0;
  transform: rotate(45deg) scale(0.7);
}

.selection-card--multiple.is-selected .selection-control--multiple {
  border-color: var(--primary);
  background: var(--primary);
}

.selection-card--multiple.is-selected .selection-control--multiple::after {
  opacity: 1;
}

.selection-instruction {
  margin-top: var(--space-md);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.selector-copy {
  display: grid;
  gap: 4px;
}

.selector-copy strong {
  font-weight: 600;
  line-height: 1.2;
}

.selector-copy span {
  font-size: 16px;
}

.selector-meta {
  border-radius: var(--radius-pill);
  background: var(--bg);
  padding: 6px var(--space-sm);
  font-size: 13px;
  white-space: nowrap;
}

.requirement-selection-status {
  display: flex;
  align-items: center;
  min-height: 36px;
  margin-top: 14px;
  border: 1px solid rgb(0 0 0 / 10%);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 72%);
  padding: 7px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.selection-instruction + .requirement-selection-status {
  margin-top: 7px;
}

.task2-requirements-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}

.task2-requirements-progress__track {
  overflow: hidden;
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgb(0 0 0 / 10%);
}

.task2-requirements-progress__track i {
  display: block;
  width: var(--task2-selection-progress);
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width var(--motion-normal) var(--motion-easing);
}

.task2-requirements-progress strong {
  min-width: 36px;
  color: var(--text);
  font-size: 13px;
  line-height: 1;
  text-align: right;
}

.selection-limit-note {
  margin-top: 10px;
  border: 1px solid rgb(65 60 255 / 18%);
  border-radius: var(--radius-sm);
  background: rgb(65 60 255 / 7%);
  padding: 9px 12px;
  color: #3f3b69;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.selection-limit-note[hidden] {
  display: none;
}

.requirement-selection-status.is-ready {
  border-color: rgb(70 115 0 / 22%);
  background: rgb(205 255 122 / 28%);
  color: #355900;
}

.requirement-selection-status.is-warning {
  border-color: rgb(255 105 90 / 42%);
  background: rgb(255 105 90 / 12%);
  color: #9b271d;
}

.repair-requirements__copy .requirement-selection-status + .selector-grid {
  margin-top: 10px;
}

.repair-requirements__copy .action-row:has(.btn:not(:disabled)) .btn {
  box-shadow: 0 9px 22px rgb(65 60 255 / 22%);
}

.feedback {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface-dark);
  padding: var(--space-lg);
  color: var(--text-on-dark);
  animation: reveal var(--motion-normal) var(--motion-easing);
}

.feedback strong {
  display: block;
  margin-bottom: var(--space-xs);
}

.feedback p {
  color: inherit;
}

.case-task-screen .action-row {
  margin-top: var(--space-md);
}

.case-question-hint {
  margin-top: var(--space-xs);
  font-size: 16px;
  line-height: 1.4;
}

.case-task-screen .work-panel .selector-grid {
  margin-top: var(--space-md);
}

.printer-workshop-screen {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.printer-workshop-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(560px, 1.18fr);
  gap: var(--space-xl);
  align-items: center;
}

.printer-workshop-copy h1 {
  max-width: 10ch;
  font-size: clamp(46px, 4.5vw, 62px);
}

.printer-workshop-copy .lead {
  max-width: 580px;
  color: var(--text-on-dark);
  font-size: 18px;
}

.printer-workshop-copy .insight-card {
  margin-top: var(--space-md);
  background: rgb(255 255 255 / 10%);
  color: var(--text-on-dark);
  padding: var(--space-md);
}

.printer-workshop-copy .insight-card p {
  color: inherit;
}

.printer-workbench {
  display: grid;
  gap: var(--space-md);
}

.printer-machine {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius-lg);
  background: #282828;
  box-shadow: 0 24px 70px rgb(0 0 0 / 32%);
}

.printer-chamber {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 36px 36px,
    radial-gradient(circle at 50% 70%, #3f3f45, #151517 72%);
}

.printer-chamber::before,
.printer-chamber::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 12px;
  border-radius: 8px;
  background: #080808;
}

.printer-chamber::before {
  left: 24px;
}

.printer-chamber::after {
  right: 24px;
}

.printer-gantry {
  position: absolute;
  z-index: 3;
  top: 58px;
  left: 42px;
  width: calc(100% - 84px);
  height: 14px;
  border-radius: 8px;
  background: #090909;
}

.printer-nozzle {
  position: absolute;
  top: 7px;
  left: 48%;
  width: 44px;
  height: 54px;
  border-radius: 0 0 8px 8px;
  background: #121212;
  transform: translateX(-50%);
}

.printer-nozzle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -17px;
  width: 10px;
  height: 18px;
  background: var(--accent-peach);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.printer-bed {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 72%;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(#777, #242424);
  box-shadow: 0 12px 0 #0d0d0e;
  transform: translateX(-50%);
}

.printer-print-part {
  --print-progress: 0%;
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 178px;
  height: 118px;
  overflow: hidden;
  clip-path: inset(calc(100% - var(--print-progress)) 0 0);
  transform: translateX(-50%);
  transition: clip-path 260ms linear;
}

.printer-print-part img {
  position: absolute;
  top: -48px;
  left: 50%;
  width: 220px;
  max-width: none;
  height: 220px;
  object-fit: contain;
  transform: translateX(-50%);
}

.printer-machine.is-printing .printer-gantry {
  animation: printer-gantry-scan 620ms ease-in-out infinite alternate;
}

.printer-machine.is-printing .printer-nozzle::after {
  box-shadow: 0 0 18px var(--accent-peach);
}

.printer-machine.is-complete .printer-print-part {
  --print-progress: 100%;
}

.printer-control-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: var(--space-md);
  padding: var(--space-md);
}

.printer-display {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border: 2px solid #111;
  border-radius: var(--radius-md);
  background: #d9ffd6;
  color: #102012;
  padding: var(--space-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.printer-display-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  border-bottom: 1px solid rgb(16 32 18 / 25%);
  padding-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.printer-status {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.printer-status strong {
  font-size: 16px;
}

.printer-status span,
.printer-file span {
  font-size: 12px;
}

.printer-file-list {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}

.printer-file {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-sm);
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 5px 7px;
  text-align: left;
  cursor: pointer;
}

.printer-file:hover,
.printer-file.is-selected {
  border-color: #102012;
  background: rgb(16 32 18 / 10%);
}

.printer-file strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.printer-file-feedback {
  display: grid;
  gap: 2px;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.25;
}

.printer-file-feedback strong {
  font-size: 12px;
}

.printer-file-feedback span {
  font-size: 11px;
}

.printer-progress {
  height: 7px;
  overflow: hidden;
  border: 1px solid #102012;
  border-radius: var(--radius-pill);
}

.printer-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #102012;
  transition: width 260ms linear;
}

.printer-progress-label {
  display: block;
  margin-top: 3px;
  text-align: right;
  font-size: 11px;
  font-weight: 800;
}

.printer-physical-controls {
  display: grid;
  gap: 8px;
  align-content: center;
}

.printer-physical-controls button {
  min-height: 44px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 10px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.printer-physical-controls button:hover:not(:disabled) {
  border-color: var(--accent-mint);
}

.printer-physical-controls button:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.printer-physical-controls .printer-start-button:not(:disabled) {
  background: var(--primary);
}

.printer-test-button {
  justify-self: start;
}

@keyframes printer-gantry-scan {
  from {
    transform: translateX(-22px);
  }
  to {
    transform: translateX(22px);
  }
}

@media (min-width: 769px) {
  .printer-workshop-screen {
    padding-top: 92px;
    padding-bottom: 40px;
  }

  .case-requirements-screen {
    padding-top: 96px;
    padding-bottom: calc(var(--space-xl) + 20px);
  }

  .case-requirements-screen h1 {
    margin-top: var(--space-sm);
    font-size: clamp(52px, 5vw, 64px);
  }

  .case-requirements-screen .lead {
    margin-top: var(--space-sm);
    font-size: 20px;
    line-height: 1.35;
  }

  .case-requirements-screen .selector-grid {
    gap: 10px;
    margin-top: var(--space-md);
  }

  .case-requirements-screen .selector-card {
    min-height: 72px;
    padding: var(--space-sm) var(--space-md);
  }

  .case-requirements-screen .action-row {
    margin-top: var(--space-sm);
  }

  .case-diagnosis-screen {
    padding-top: 96px;
    padding-bottom: calc(var(--space-xl) + 20px);
  }

  .case-diagnosis-screen .scene-layout {
    gap: var(--space-lg);
  }

  .case-diagnosis-screen .scene-copy h1 {
    margin-top: var(--space-md);
    font-size: clamp(48px, 4.6vw, 62px);
  }

  .case-diagnosis-screen .scene-copy .lead {
    margin-top: var(--space-md);
    font-size: 18px;
    line-height: 1.4;
  }

  .case-diagnosis-screen .insight-card {
    margin-top: var(--space-md);
    padding: var(--space-md);
  }

  .case-diagnosis-screen .work-panel {
    padding: var(--space-md);
  }

  .case-diagnosis-screen .artifact {
    min-height: 140px;
  }

  .case-diagnosis-screen .artifact-label {
    right: var(--space-sm);
    bottom: var(--space-sm);
  }

  .case-diagnosis-screen .work-panel h3 {
    margin-top: var(--space-sm);
  }

  .case-diagnosis-screen .case-question-hint {
    font-size: 14px;
  }

  .case-diagnosis-screen .work-panel .selector-grid {
    gap: 10px;
    margin-top: var(--space-sm);
  }

  .case-diagnosis-screen .selector-card {
    min-height: 64px;
    padding: 10px var(--space-sm);
  }

  .case-diagnosis-screen .selector-copy strong {
    font-size: 16px;
  }

  .case-diagnosis-screen .action-row {
    margin-top: var(--space-sm);
  }

  .case-correction-screen {
    padding-top: 96px;
    padding-bottom: calc(var(--space-xl) + 20px);
  }

  .case-correction-screen h1 {
    margin-top: var(--space-sm);
    font-size: clamp(50px, 5vw, 62px);
  }

  .case-correction-screen .lead {
    margin-top: var(--space-sm);
    font-size: 20px;
    line-height: 1.35;
  }

  .case-correction-screen .selector-grid {
    gap: 10px;
    margin-top: var(--space-md);
  }

  .case-correction-screen .selector-card {
    min-height: 64px;
    padding: 10px var(--space-md);
  }

  .case-correction-screen .action-row {
    margin-top: var(--space-sm);
  }
}

.personalization-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgb(0 0 0 / 64%);
  padding: var(--space-lg);
}

.personalization-popup {
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: var(--space-xl);
  animation: reveal var(--motion-normal) var(--motion-easing);
}

.personalization-popup h2 {
  max-width: none;
  font-size: clamp(34px, 4vw, 48px);
}

.personalization-popup p {
  margin-top: var(--space-md);
  font-size: 20px;
  line-height: 1.4;
}

.personalization-popup .action-row {
  margin-top: var(--space-lg);
}

.curator-response {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface-dark);
  padding: var(--space-md);
  color: var(--text-on-dark);
  animation: curator-response-in 180ms var(--motion-easing);
}

.onboarding-selection-instruction {
  margin-top: var(--space-md);
  color: rgba(0, 0, 0, .62);
  font-size: 14px;
  font-weight: 700;
}

.onboarding-selection-instruction + .selector-grid {
  margin-top: var(--space-xs);
}

.onboarding-progress {
  display: grid;
  gap: 10px;
  color: rgba(0, 0, 0, .58);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.onboarding-progress__track {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.onboarding-progress__track > span {
  height: 4px;
  border-radius: var(--radius-pill);
  background: #d9d9d5;
}

.onboarding-progress__track > span.is-active {
  background: var(--primary);
}

.onboarding-question-layout {
  display: grid;
}

.onboarding-question-screen {
  overflow-x: clip;
}

.onboarding-question-copy {
  position: relative;
  isolation: isolate;
  min-width: 0;
}

.onboarding-question-copy::before {
  position: absolute;
  z-index: 0;
  top: 48%;
  right: -132px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b9b5ff 12%, #b8e8b6 88%);
  content: "";
  filter: blur(52px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(.92);
}

.onboarding-question-copy:has(.selector-card.is-selected)::before {
  animation: onboarding-selection-bubble 240ms ease-out both;
}

.onboarding-question-copy > * {
  position: relative;
  z-index: 1;
}

.onboarding-question-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 32px;
  background: #f2f1ff;
}

.onboarding-question-visual::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.onboarding-question-visual::after {
  inset: -24%;
  background:
    radial-gradient(ellipse at 54% 60%, rgb(184 232 182 / 72%) 0 4%, transparent 18%),
    linear-gradient(112deg, transparent 38%, rgb(255 255 255 / 76%) 48%, rgb(255 195 142 / 52%) 52%, transparent 63%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-42%) rotate(-8deg);
}

.onboarding-question-layout:has(.selector-card.is-selected) .onboarding-question-visual::after {
  animation: onboarding-ribbon-pulse 600ms ease-out both;
}

.onboarding-question-visual picture {
  position: absolute;
  inset: 0;
  display: block;
  animation: onboarding-hero-in 240ms cubic-bezier(.22, 1, .36, 1) both;
}

.onboarding-question-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.onboarding-question-screen.is-feedback-open .onboarding-question-visual picture {
  animation: none;
}

.onboarding-question-screen.is-feedback-open .onboarding-question-visual::after {
  animation-play-state: paused;
}

.onboarding-question-container .selector-card {
  position: relative;
  transition:
    border-color 120ms var(--motion-easing),
    background-color 120ms var(--motion-easing),
    box-shadow 120ms var(--motion-easing),
    color 120ms var(--motion-easing),
    transform 120ms var(--motion-easing);
}

.onboarding-question-container .selector-card.is-selected {
  border-color: #3d3bff;
  background: #f2f1ff;
  box-shadow: 0 12px 40px rgb(61 59 255 / 12%);
  color: var(--text);
}

.onboarding-question-container .selector-card.is-selected .selection-control--single {
  border-color: #3d3bff;
  background: #3d3bff;
}

.onboarding-question-container .selector-card.is-selected .selection-control--single::after {
  background: #fff;
}

@keyframes onboarding-selection-bubble {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(.92);
  }
  to {
    opacity: .16;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes onboarding-ribbon-pulse {
  0% {
    opacity: 0;
    transform: translateX(-42%) rotate(-8deg);
  }
  30% {
    opacity: .7;
  }
  100% {
    opacity: 0;
    transform: translateX(42%) rotate(-8deg);
  }
}

@keyframes onboarding-hero-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body:has(.onboarding-feedback) {
  overflow: hidden;
}

.onboarding-feedback {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.onboarding-feedback__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(18 18 20 / 58%);
  backdrop-filter: blur(7px);
  animation: onboarding-feedback-backdrop-in 180ms var(--motion-easing) 220ms both;
}

.onboarding-feedback__dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: 28px;
  box-shadow: 0 24px 64px rgb(0 0 0 / 28%);
  animation: onboarding-feedback-dialog-in 200ms var(--motion-easing) 220ms both;
}

.onboarding-feedback.has-media .onboarding-feedback__dialog {
  max-height: 90dvh;
  overscroll-behavior: contain;
}

.onboarding-feedback__label {
  display: inline-flex;
  border-radius: var(--radius-pill);
  background: var(--accent-lime);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.onboarding-feedback__media {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  margin-top: 18px;
  border-radius: var(--radius-md);
}

.onboarding-feedback__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: onboarding-feedback-media-in 500ms ease-out both;
}

.onboarding-feedback__media[data-effect="reveal"] img {
  animation-name: onboarding-feedback-media-reveal;
}

.onboarding-feedback__media[data-effect="lamp"] img {
  animation-name: onboarding-feedback-media-lamp;
}

.onboarding-feedback__dialog h2 {
  max-width: none;
  margin-top: 18px;
  font-size: 32px;
  line-height: 1.05;
}

.onboarding-feedback__dialog p {
  margin-top: 10px;
  color: rgba(0, 0, 0, .68);
  font-size: 17px;
  line-height: 1.4;
}

.onboarding-feedback__dialog .btn {
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
}

.onboarding-feedback__dialog .btn:focus-visible {
  outline-color: #3d3bff;
}

@keyframes onboarding-feedback-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes onboarding-feedback-dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes onboarding-feedback-media-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes onboarding-feedback-media-reveal {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateY(8px) scale(.985);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes onboarding-feedback-media-lamp {
  from {
    opacity: 0;
    filter: brightness(.85);
    transform: translateY(8px) scale(.985);
  }
  to {
    opacity: 1;
    filter: brightness(1);
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-feedback__media img {
    animation: none;
    clip-path: inset(0);
    filter: brightness(1);
    opacity: 1;
    transform: none;
  }
}

.age-range-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.age-range-grid .selector-card {
  min-height: 56px;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
}

.age-range-grid .selection-control {
  width: 22px;
  height: 22px;
}

.age-range-grid .selector-copy strong {
  font-size: 15px;
  line-height: 1.2;
}

.curator-response__label {
  align-self: start;
  border-radius: var(--radius-pill);
  background: var(--accent-mint);
  padding: 5px 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.curator-response__copy h3 {
  font-size: 20px;
}

.curator-response__copy p {
  margin-top: 4px;
  color: inherit;
  font-size: 15px;
  line-height: 1.35;
}

.curator-response .btn {
  min-height: 48px;
  padding: var(--space-sm) var(--space-md);
}

.task1-curator-response {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px var(--space-md);
}

.task1-curator-response__heading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.task1-curator-response__heading .curator-response__label {
  flex: 0 0 auto;
}

.task1-curator-response__heading h3 {
  font-size: 18px;
}

.task1-curator-response .curator-response__copy p {
  max-width: 760px;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.3;
}

.task1-response-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.task1-response-tags span {
  border-radius: var(--radius-pill);
  background: rgb(205 255 122 / 16%);
  padding: 4px 9px;
  color: var(--text);
  color: var(--accent-mint);
  font-size: 11px;
  font-weight: 700;
}

.task1-response-decisions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.task1-response-decisions span {
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 7%);
  padding: 5px 9px;
  color: #e9eaea;
  font-size: 11px;
}

.task1-response-decisions span:last-child {
  border-color: rgb(205 255 122 / 28%);
  color: var(--accent-mint);
}

.task1-curator-response .btn {
  min-height: 44px;
  white-space: nowrap;
}

.task1-diagnosis-response {
  border: 1px solid transparent;
  transition:
    border-color 180ms var(--motion-easing),
    background-color 180ms var(--motion-easing);
}

.task1-diagnosis-response.is-error {
  border-color: rgb(255 105 90 / 58%);
  background: #251716;
}

.task1-diagnosis-response.is-success {
  border-color: rgb(116 211 147 / 55%);
  background: #15241b;
}

.task1-diagnosis-response.is-plausible {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  border-color: rgb(127 137 255 / 58%);
  background: #191833;
}

.task1-diagnosis-response.is-plausible .task1-curator-response__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 5px;
}

.task1-diagnosis-response .curator-response__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.task1-diagnosis-response.is-error .curator-response__label {
  background: #b93329;
}

.task1-diagnosis-response.is-success .curator-response__label {
  background: #16834b;
}

.task1-diagnosis-response.is-plausible .curator-response__label {
  background: #413cff;
}

.task1-diagnosis-response .curator-response__label > span {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 18%);
  font-size: 10px;
  line-height: 1;
}

@media (min-width: 769px) {
  .task1-diagnosis-response .btn {
    padding: 10px 8px;
  }

  body:has(.engineering-menu) .task1-diagnosis-response .btn {
    grid-column: 2;
  }

  body:has(.engineering-menu) .task1-diagnosis-response {
    grid-template-columns: minmax(0, 1fr) auto 64px;
  }

  body:has(.engineering-menu) .task1-diagnosis-response.is-plausible {
    grid-template-columns: minmax(0, 1fr);
  }

}

.task1-first-result-screen h1,
.task1-result-screen h1 {
  max-width: 18ch;
}

.task1-check-grid,
.task1-summary-grid {
  margin-top: var(--space-lg);
}

.task1-check-grid .result-card,
.task1-summary-grid .result-card {
  padding: var(--space-lg);
  text-align: left;
}

.task1-check-grid .requirements,
.task1-summary-grid .requirements {
  gap: 6px;
  margin-top: var(--space-md);
  font-size: 17px;
}

.task1-diagnosis-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: var(--space-lg);
  align-items: start;
  margin-top: var(--space-lg);
}

.task1-diagnosis-layout .artifact {
  min-height: 310px;
}

.task1-diagnosis-layout .selector-grid {
  margin-top: 0;
}

.task1-personal-summary h3:not(:first-child) {
  margin-top: var(--space-md);
}

.task1-personal-summary p {
  margin-top: var(--space-xs);
}

.task1-result-screen {
  position: relative;
  overflow: hidden;
}

.task1-result-container {
  position: relative;
  z-index: 2;
  text-align: left;
}

.task1-result-container > .lead {
  max-width: 700px;
  margin-top: 12px;
}

.task1-result-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.task1-result-facts article,
.task1-personal-result > div {
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 14px 16px;
}

.task1-result-facts span,
.task1-personal-result span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.task1-result-facts strong,
.task1-personal-result strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.3;
}

.task1-result-decision {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.task1-result-decision b {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.task1-result-decision.is-required {
  border-top: 1px solid rgb(0 0 0 / 10%);
  padding-top: 6px;
}

.task1-personal-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  padding: 10px;
  color: var(--text-on-dark);
}

.task1-personal-result > div {
  background: rgb(255 255 255 / 8%);
}

.task1-personal-result .is-result {
  grid-column: 1 / -1;
  background: rgb(205 255 122 / 14%);
}

.task1-personal-result .is-result span,
.task1-personal-result .is-result strong {
  color: var(--accent-mint);
}

.task1-result-container > .action-row {
  margin-top: 14px;
}

.task1-result-container > .action-row .btn {
  min-height: 52px;
}

.case2-trial-results {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.case2-trial-results div {
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: var(--space-md);
}

.case2-trial-results p {
  margin-top: 3px;
  font-size: 16px;
  line-height: 1.35;
}

.case2-personal-summary h3:not(:first-child) {
  margin-top: var(--space-md);
}

.case2-personal-summary p {
  margin-top: var(--space-xs);
}

@keyframes curator-response-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.practice-transition-screen {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  animation: practice-section-in 260ms ease-out;
}

.practice-transition-screen .eyebrow {
  background: var(--primary);
}

.practice-transition-container h1 {
  max-width: 19ch;
  font-size: clamp(42px, 4.5vw, 58px);
}

.practice-transition-container .lead {
  max-width: 900px;
  color: inherit;
  font-size: 19px;
}

.practice-transition-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.practice-transition-card {
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  padding: var(--space-lg);
}

.practice-transition-card h3 {
  font-size: 24px;
}

.practice-transition-card p {
  margin-top: var(--space-xs);
  font-size: 16px;
  line-height: 1.4;
}

.practice-transition-container .action-row {
  margin-top: var(--space-lg);
}

.scene-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: var(--space-xl);
  align-items: start;
}

.scene-copy {
  position: sticky;
  top: 112px;
}

.scene-copy .lead {
  font-size: 20px;
}

.brief-card {
  overflow: hidden;
}

.brief-visual {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: var(--space-xl);
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

.brief-body {
  padding: var(--space-xl);
}

.brief-body h3 + p {
  margin-top: var(--space-sm);
}

.requirements {
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.requirements li {
  position: relative;
  padding-left: 28px;
}

.requirements li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
}

.work-panel {
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--space-xl);
}

.work-panel h3 {
  margin-top: var(--space-md);
}

.work-panel .selector-card {
  background: var(--bg);
}

.substep {
  font-size: 14px;
}

.artifact {
  position: relative;
  width: min(100%, 500px);
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.artifact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/gradient-workbench.png") center / cover;
  opacity: 0.85;
}

.part-latch {
  position: relative;
  z-index: 1;
  width: 168px;
  height: 94px;
  border-radius: var(--radius-md);
  background: var(--primary);
  transform: rotate(-8deg);
}

.part-latch::before,
.part-latch::after {
  content: "";
  position: absolute;
  background: var(--primary);
}

.part-latch::before {
  width: 36px;
  height: 70px;
  top: -48px;
  right: 24px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.part-latch::after {
  width: 64px;
  height: 34px;
  right: -30px;
  bottom: 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.part-latch.is-cracked .crack {
  position: absolute;
  z-index: 3;
  top: -17px;
  right: 27px;
  width: 6px;
  height: 76px;
  background: var(--text);
  transform: rotate(21deg);
}

.part-latch.is-fixed::before {
  width: 46px;
  right: 19px;
}

.artifact-label {
  position: absolute;
  z-index: 2;
  right: var(--space-md);
  bottom: var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--bg);
  padding: var(--space-xs) var(--space-md);
  font-size: 14px;
}

.process-demo {
  position: relative;
  z-index: 1;
  width: 82%;
  height: 180px;
  border-radius: var(--radius-md);
  background: var(--surface-dark);
}

.process-box {
  position: absolute;
  top: 38px;
  left: 42px;
  width: 118px;
  height: 102px;
  border-radius: var(--radius-sm);
  background: var(--accent-peach);
  transform: rotate(-7deg);
  transition:
    left var(--motion-normal) var(--motion-easing),
    transform var(--motion-normal) var(--motion-easing);
}

.process-guide {
  position: absolute;
  right: 34px;
  bottom: 28px;
  width: 210px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--primary);
}

.process-guide::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 96px;
  border-radius: var(--radius-sm);
  background: var(--primary);
}

.process-demo.is-tight .process-box {
  left: 178px;
  transform: rotate(0);
}

.process-demo.is-working .process-box {
  left: 158px;
  transform: rotate(0);
}

.prototype-demo {
  position: relative;
  z-index: 1;
  width: 240px;
  height: 142px;
  border-radius: 44px;
  background: var(--surface-dark);
  transform: rotate(-6deg);
  transition: transform var(--motion-normal) var(--motion-easing);
}

.prototype-demo::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: var(--radius-lg);
  background: var(--primary);
}

.prototype-demo::after {
  content: "";
  position: absolute;
  top: 52px;
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-lime);
}

.prototype-demo.is-improved {
  transform: rotate(0) scaleX(1.08);
}

.prototype-demo.is-improved::after {
  right: 44px;
}

.stamp-screen h1 {
  max-width: 12ch;
  font-size: clamp(42px, 4.6vw, 58px);
}

.stamp-screen .lead {
  margin-top: var(--space-md);
  font-size: 18px;
  line-height: 1.4;
}

.stamp-brief-layout,
.stamp-lab-layout,
.stamp-test-layout,
.stamp-refine-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: var(--space-xl);
  align-items: center;
}

.stamp-workshop-products {
  display: flex;
  align-items: end;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.stamp-product {
  position: relative;
  display: block;
  background: var(--accent-peach);
  box-shadow: inset 0 -8px 0 rgb(0 0 0 / 8%);
}

.stamp-product--dish {
  width: 88px;
  height: 38px;
  border-radius: 10px 10px 26px 26px;
}

.stamp-product--tag {
  width: 62px;
  height: 88px;
  border-radius: 12px;
  background: var(--accent-mint);
  transform: rotate(-5deg);
}

.stamp-product--tag::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  transform: translateX(-50%);
}

.stamp-product--clay {
  width: 118px;
  height: 66px;
  border-radius: 24px 18px 22px 16px;
  background: var(--accent-lavender);
  transform: rotate(3deg);
}

.stamp-route-card,
.stamp-preview-panel,
.stamp-model-panel,
.stamp-test-scene,
.stamp-first-result {
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.stamp-route-card {
  min-height: 440px;
  padding: var(--space-xl);
  display: grid;
  align-content: center;
  gap: var(--space-xl);
}

.stamp-blank-product {
  position: relative;
  min-height: 205px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #f2c297, #d89a75);
  box-shadow: inset 0 -18px 28px rgb(95 45 18 / 12%);
}

.stamp-blank-product::before {
  content: "";
  width: 170px;
  height: 105px;
  border-radius: 32px 26px 30px 24px;
  background: rgb(255 255 255 / 22%);
  border: 2px dashed rgb(76 38 20 / 26%);
}

.stamp-blank-product span {
  position: absolute;
  align-self: end;
  margin-bottom: var(--space-md);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 13px;
}

.stamp-route {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stamp-route li {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  font-size: 12px;
}

.stamp-route li span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-on-dark);
  font-weight: 700;
}

.stamp-route li strong {
  line-height: 1.2;
}

.stamp-stage-copy {
  min-width: 0;
}

.stamp-brand-field {
  display: grid;
  gap: 8px;
  margin-top: var(--space-lg);
}

.stamp-brand-field label {
  font-size: 16px;
  font-weight: 600;
}

.stamp-brand-field small,
.stamp-control small {
  color: #646464;
  font-size: 13px;
}

.stamp-shape-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: var(--space-md);
}

.stamp-shape-button {
  position: relative;
  min-height: 86px;
  padding: 10px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.stamp-shape-button .selection-control {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 18px;
  height: 18px;
  border-width: 1.5px;
}

.stamp-shape-button .selection-control--single::after {
  inset: 4px;
}

.stamp-shape-button.is-selected .selection-control--single {
  border-color: var(--primary);
}

.stamp-shape-button.is-selected .selection-control--single::after {
  transform: scale(1);
}

.stamp-shape-button.is-selected {
  border-color: var(--text);
  background: var(--bg);
}

.stamp-shape-button > span {
  width: 38px;
  height: 30px;
  display: block;
  border: 3px solid var(--primary);
}

.stamp-shape-button > span[data-shape="round"] {
  width: 32px;
  border-radius: 50%;
}

.stamp-shape-button > span[data-shape="rounded_rectangle"] {
  border-radius: 8px;
}

.stamp-shape-button > span[data-shape="hexagon"] {
  border: 0;
  background: var(--primary);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.stamp-stage-note {
  margin-top: var(--space-md);
  padding-left: 14px;
  border-left: 3px solid var(--accent-mint);
  font-size: 15px;
  line-height: 1.4;
}

.stamp-preview-panel,
.stamp-model-panel {
  min-height: 450px;
  padding: var(--space-xl);
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-md);
  overflow: hidden;
}

.stamp-preview-caption {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stamp-flat-mark,
.stamp-model__face,
.physical-stamp__face,
.stamp-imprint {
  display: grid;
  place-items: center;
  border: solid currentColor;
  text-align: center;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.stamp-flat-mark {
  width: 280px;
  height: 210px;
  padding: var(--space-lg);
  border-width: 10px;
  color: var(--primary);
  font-size: clamp(28px, 4vw, 50px);
  background: var(--bg);
}

.stamp-flat-mark[data-shape="round"],
.stamp-model[data-shape="round"] .stamp-model__face,
.physical-stamp[data-shape="round"] .physical-stamp__face,
.stamp-imprint[data-shape="round"] {
  border-radius: 50%;
}

.stamp-flat-mark[data-shape="rounded_rectangle"],
.stamp-model[data-shape="rounded_rectangle"] .stamp-model__face,
.physical-stamp[data-shape="rounded_rectangle"] .physical-stamp__face,
.stamp-imprint[data-shape="rounded_rectangle"] {
  border-radius: 24px;
}

.stamp-flat-mark[data-shape="hexagon"],
.stamp-model[data-shape="hexagon"] .stamp-model__face,
.physical-stamp[data-shape="hexagon"] .physical-stamp__face,
.stamp-imprint[data-shape="hexagon"] {
  border: 0;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.stamp-flat-mark[data-shape="hexagon"] {
  background: var(--primary);
  color: var(--text-on-dark);
}

.stamp-model {
  position: relative;
  width: 290px;
  height: 260px;
  display: grid;
  justify-items: center;
  align-content: end;
  perspective: 600px;
}

.stamp-model__handle {
  position: absolute;
  z-index: 0;
  top: 6px;
  width: 94px;
  height: 132px;
  border-radius: 42px 42px 22px 22px;
  background: linear-gradient(90deg, #1c1c1c, #565656 55%, #171717);
  box-shadow: 0 14px 24px rgb(0 0 0 / 18%);
}

.stamp-model__base {
  position: relative;
  z-index: 1;
  width: 250px;
  height: 170px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: var(--surface-dark);
  box-shadow: 0 18px 28px rgb(0 0 0 / 18%);
  transform: rotateX(54deg) rotateZ(-4deg);
}

.stamp-model__face {
  width: 190px;
  height: 118px;
  padding: 16px;
  border-width: 5px;
  background: var(--primary);
  color: var(--text-on-dark);
  font-size: 30px;
  box-shadow: 0 0 0 0 var(--accent-lime);
  transition:
    border-width var(--motion-normal) var(--motion-easing),
    box-shadow var(--motion-normal) var(--motion-easing),
    transform var(--motion-normal) var(--motion-easing);
}

.stamp-model[data-shape="hexagon"] .stamp-model__face {
  background: var(--primary);
}

.stamp-model[data-relief="low"] .stamp-model__face {
  box-shadow: 0 3px 0 var(--accent-lime);
  transform: translateY(4px);
}

.stamp-model[data-relief="medium"] .stamp-model__face {
  box-shadow: 0 8px 0 var(--accent-lime);
}

.stamp-model[data-relief="high"] .stamp-model__face {
  box-shadow: 0 15px 0 var(--accent-lime);
  transform: translateY(-5px);
}

.stamp-model[data-lines="thin"] .stamp-model__face {
  border-width: 2px;
  font-weight: 400;
}

.stamp-model[data-lines="medium"] .stamp-model__face {
  border-width: 5px;
  font-weight: 600;
}

.stamp-model[data-lines="thick"] .stamp-model__face {
  border-width: 10px;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.stamp-model-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.stamp-model-legend span,
.stamp-version-chips span {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 12px;
}

.stamp-controls {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.stamp-control {
  padding: var(--space-md);
  display: grid;
  gap: 9px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.stamp-control.is-recommended {
  border-color: var(--accent-mint);
  background: #eff9ee;
}

.stamp-control > span {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

.stamp-control em {
  color: var(--primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.stamp-control input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.stamp-printing {
  text-align: center;
}

.stamp-printing h1 {
  max-width: none;
  margin-inline: auto;
}

.stamp-print-bed {
  position: relative;
  width: min(560px, 100%);
  height: 300px;
  margin: var(--space-xl) auto var(--space-md);
  overflow: hidden;
  border: 18px solid var(--surface-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(#dfe3e8 1px, transparent 1px), linear-gradient(90deg, #dfe3e8 1px, transparent 1px), #f5f6f7;
  background-size: 24px 24px;
}

.stamp-print-head {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 12%;
  width: 78px;
  height: 55px;
  border-radius: 8px 8px 16px 16px;
  background: var(--surface-dark);
  animation: stamp-head-scan 900ms ease-in-out infinite alternate;
}

.stamp-print-head::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 14px;
  height: 20px;
  background: var(--primary);
  transform: translateX(-50%);
}

.stamp-print-object {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 230px;
  height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 26px;
  background: var(--primary);
  color: var(--text-on-dark);
  font-size: 30px;
  font-weight: 700;
  transform: translateX(-50%);
  clip-path: inset(100% 0 0);
  animation: stamp-build 2200ms linear forwards;
}

.stamp-print-object[data-shape="round"] {
  width: 170px;
  border-radius: 50%;
}

.stamp-print-object[data-shape="hexagon"] {
  clip-path: polygon(50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%);
  animation: stamp-build-hex 2200ms linear forwards;
}

.stamp-print-scan {
  position: absolute;
  z-index: 2;
  right: 20%;
  bottom: 28px;
  width: 160px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--accent-lime);
  box-shadow: 0 0 14px var(--accent-lime);
  animation: stamp-layer-scan 420ms ease-in-out infinite alternate;
}

.stamp-print-progress {
  width: min(560px, 100%);
  height: 8px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.stamp-print-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
  animation: stamp-progress 2200ms linear forwards;
}

.stamp-test-layout {
  align-items: start;
}

.stamp-version-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: var(--space-md);
}

.stamp-version-chips span {
  background: var(--surface);
}

.stamp-test-scene {
  position: relative;
  min-height: 470px;
  padding: var(--space-xl);
  display: grid;
  justify-items: center;
  align-content: space-between;
  overflow: hidden;
  background: linear-gradient(145deg, #f6f6f6, #e9e9e9);
}

.stamp-test-scene.has-result {
  place-items: center;
}

.physical-stamp {
  position: relative;
  z-index: 3;
  width: 190px;
  height: 190px;
  display: grid;
  justify-items: center;
  align-content: end;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: transform var(--motion-fast) var(--motion-easing);
}

.physical-stamp.is-dragging {
  cursor: grabbing;
  transition: none;
}

.physical-stamp.is-pressing {
  transform: translateY(165px) scale(0.96) !important;
}

.physical-stamp__handle {
  position: absolute;
  top: 0;
  width: 76px;
  height: 104px;
  border-radius: 35px 35px 16px 16px;
  background: var(--surface-dark);
}

.physical-stamp__face {
  position: relative;
  z-index: 1;
  width: 174px;
  height: 112px;
  padding: 12px;
  border-width: 5px;
  background: var(--primary);
  color: var(--text-on-dark);
  font-size: 24px;
  box-shadow: 0 10px 0 var(--accent-lime);
}

.physical-stamp[data-lines="thin"] .physical-stamp__face {
  border-width: 2px;
  font-weight: 400;
}

.physical-stamp[data-lines="thick"] .physical-stamp__face {
  border-width: 10px;
  letter-spacing: -0.05em;
}

.stamp-clay-target {
  position: relative;
  z-index: 1;
  width: min(340px, 90%);
  height: 155px;
  display: grid;
  place-items: center;
  border-radius: 44px 38px 42px 34px;
  background: linear-gradient(145deg, #efbd90, #d58c63);
  box-shadow: inset 0 -15px 26px rgb(89 40 18 / 14%);
}

.stamp-clay-target i {
  position: absolute;
  width: 190px;
  height: 100px;
  border: 2px dashed rgb(70 35 20 / 32%);
  border-radius: 28px;
}

.stamp-clay-target span {
  position: absolute;
  bottom: 10px;
  font-size: 12px;
  font-weight: 600;
}

.stamp-drag-hint {
  position: absolute;
  bottom: 18px;
  right: 18px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 12px;
}

.stamp-test-fallback {
  margin-top: var(--space-lg);
}

.stamp-curator-response {
  margin-top: var(--space-lg);
}

.stamp-result-visual {
  min-height: 190px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #efbd90, #d58c63);
}

.stamp-imprint {
  position: relative;
  width: 190px;
  height: 120px;
  padding: 14px;
  border-width: 5px;
  color: #6c321e;
  font-size: 28px;
}

.stamp-imprint[data-shape="hexagon"] {
  background: rgb(108 50 30 / 10%);
}

.stamp-imprint[data-outcome="faint"] {
  opacity: 0.3;
  border-style: dashed;
}

.stamp-imprint[data-outcome="faint"]::after {
  content: "";
  position: absolute;
  inset: 38% -4px -4px 42%;
  background: #df9f76;
}

.stamp-imprint[data-outcome="damaged"] {
  border-style: dashed;
  transform: rotate(-2deg) skewX(-7deg);
}

.stamp-imprint[data-outcome="damaged"] i,
.stamp-imprint[data-outcome="damaged"] i::before,
.stamp-imprint[data-outcome="damaged"] i::after {
  position: absolute;
  width: 30px;
  height: 6px;
  display: block;
  background: #efbd90;
  content: "";
}

.stamp-imprint[data-outcome="damaged"] i {
  top: 24px;
  right: 20px;
  transform: rotate(22deg);
}

.stamp-imprint[data-outcome="damaged"] i::before {
  top: 42px;
  right: 105px;
}

.stamp-imprint[data-outcome="damaged"] i::after {
  top: 75px;
  right: 18px;
}

.stamp-imprint[data-outcome="merged"] {
  border-width: 11px;
  font-weight: 700;
  letter-spacing: -0.1em;
  filter: blur(0.7px);
}

.stamp-imprint[data-outcome="clear"] {
  box-shadow: inset 0 0 0 2px rgb(108 50 30 / 12%);
}

.stamp-refine-layout {
  align-items: start;
}

.stamp-first-result {
  min-height: 480px;
  padding: var(--space-lg);
  display: grid;
  align-content: center;
  gap: var(--space-md);
}

.stamp-first-result .stamp-result-visual {
  min-height: 230px;
}

.stamp-first-result p {
  font-size: 15px;
  line-height: 1.4;
}

.stamp-refine-model {
  height: 175px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.stamp-refine-model .stamp-model {
  transform: scale(0.68);
}

.stamp-comparison-screen h1 {
  max-width: none;
}

.stamp-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.stamp-comparison-grid article {
  padding: var(--space-md);
  display: grid;
  gap: var(--space-sm);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.stamp-comparison-grid .stamp-result-visual {
  min-height: 180px;
}

.stamp-change-summary {
  margin-top: var(--space-md);
  padding: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 8px var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface-dark);
  color: var(--text-on-dark);
  font-size: 14px;
}

.stamp-change-summary strong {
  width: 100%;
}

.stamp-comparison-screen .stamp-curator-response {
  grid-template-columns: minmax(0, 1fr) 180px;
}

.stamp-comparison-screen .stamp-curator-response .stamp-result-visual {
  min-height: 100px;
}

.stamp-comparison-screen .stamp-curator-response .stamp-imprint {
  width: 130px;
  height: 78px;
  font-size: 18px;
}

.stamp-final-screen h1 {
  max-width: 15ch;
}

.stamp-final-sign {
  margin-top: var(--space-md);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

.stamp-final-sign .stamp-flat-mark {
  width: 110px;
  height: 82px;
  flex: 0 0 auto;
  padding: 9px;
  border-width: 5px;
  font-size: 18px;
}

.stamp-final-sign div > span,
.stamp-final-sign div > strong,
.stamp-final-sign div > p {
  display: block;
}

.stamp-final-sign div > span,
.stamp-final-sign div > p {
  font-size: 13px;
}

.stamp-final-sign div > strong {
  margin-top: 2px;
  font-size: 24px;
}

.stamp-final-versions {
  margin-top: var(--space-md);
}

.stamp-result-summary {
  padding: var(--space-md);
}

.stamp-result-summary .stamp-result-visual {
  min-height: 125px;
}

.stamp-result-summary .stamp-imprint {
  width: 130px;
  height: 82px;
  border-width: 4px;
  font-size: 18px;
}

.stamp-result-summary p {
  font-size: 14px;
}

.stamp-final-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
}

.stamp-final-steps li {
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}

.stamp-curator-final {
  margin-top: var(--space-sm);
  font-size: 14px;
  font-weight: 600;
}

.stamp-final-screen .insight-card {
  margin-top: var(--space-md);
  padding: var(--space-md);
}

.stamp-final-screen .action-row,
.stamp-comparison-screen .action-row {
  margin-top: var(--space-md);
}

.stamp-final-container {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.stamp-final-copy h1 {
  font-size: clamp(42px, 4vw, 58px);
  line-height: 0.98;
}

.stamp-final-copy .stamp-final-sign,
.stamp-final-copy .insight-card {
  margin-top: 16px;
}

.stamp-final-copy .insight-card {
  padding: 16px;
  font-size: 14px;
  line-height: 1.35;
}

.stamp-final-copy .action-row {
  margin-top: 16px;
}

.stamp-final-detail .stamp-final-versions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.stamp-final-detail .stamp-result-summary {
  padding: 14px;
}

.stamp-final-detail .stamp-result-summary .stamp-result-visual {
  min-height: 112px;
}

.stamp-final-detail .stamp-final-steps {
  margin-top: 14px;
}

.simulation-summary-screen .simulation-summary-container > h1 {
  max-width: 14ch;
  font-size: clamp(48px, 5vw, 64px);
  line-height: 0.96;
}

.simulation-summary-screen .lead {
  margin-top: 14px;
}

.simulation-summary-screen .artifact-row {
  margin-top: 18px;
}

.simulation-summary-screen .artifact-mini {
  min-height: 112px;
  padding: 18px;
}

.simulation-summary-screen .insight-card,
.simulation-summary-screen .action-row {
  margin-top: 16px;
}

.simulation-summary-screen .insight-card {
  padding: 18px;
}

.full-profile-screen {
  padding-bottom: 32px;
}

.full-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.full-profile-summary h1 {
  max-width: 12ch;
  font-size: clamp(44px, 4.2vw, 60px);
  line-height: 0.98;
}

.full-profile-summary .lead {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.42;
}

.full-profile-summary .profile-personalization-note {
  margin-top: 12px;
}

.full-profile-screen .profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.full-profile-screen .result-card,
.full-profile-screen .insight-card {
  padding: 16px;
}

.full-profile-screen .result-card h3,
.full-profile-screen .insight-card strong {
  font-size: 16px;
}

.full-profile-screen .result-card p,
.full-profile-screen .insight-card p,
.full-profile-screen .requirements,
.full-profile-screen .skills-list {
  font-size: 14px;
  line-height: 1.4;
}

.full-profile-details {
  display: grid;
  gap: 10px;
}

.full-profile-details .skills-card,
.full-profile-details .consult-preview,
.full-profile-details .insight-card,
.full-profile-details .action-row {
  margin-top: 0;
}

.full-profile-details .skills-list,
.full-profile-details .requirements {
  margin-top: 8px;
}

.full-profile-details .action-row .btn {
  width: 100%;
}

@keyframes stamp-head-scan {
  to { left: 72%; }
}

@keyframes stamp-build {
  to { clip-path: inset(0); }
}

@keyframes stamp-build-hex {
  to { clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
}

@keyframes stamp-layer-scan {
  to { transform: translateY(-115px); }
}

@keyframes stamp-progress {
  to { width: 100%; }
}

.insight-card {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
}

.insight-card strong {
  display: block;
  margin-bottom: var(--space-xs);
}

.insight-card.dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

.insight-card.dark p {
  color: inherit;
}

.route-grid {
  grid-template-columns: 1.15fr 0.85fr;
  margin-top: var(--space-xl);
}

.route-card {
  padding: var(--space-xl);
}

.route-card.primary-route {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

.route-card.primary-route p {
  color: inherit;
}

.route-card h3 + p,
.route-card p + p {
  margin-top: var(--space-sm);
}

.route-card .mini-tag {
  margin-bottom: var(--space-lg);
  color: var(--text);
}

.result-pills {
  margin-top: var(--space-lg);
}

.result-pills span {
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text);
  padding: var(--space-xs) var(--space-md);
  font-size: 14px;
}

.artifact-row {
  margin-top: var(--space-xl);
}

.artifact-mini {
  flex: 1 1 180px;
  min-height: 160px;
  display: grid;
  align-content: end;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  background: var(--surface);
}

.artifact-mini:nth-child(1) {
  background: var(--accent-mint);
}

.artifact-mini:nth-child(2) {
  background: var(--accent-peach);
}

.artifact-mini:nth-child(3) {
  background: var(--accent-pink);
}

.artifact-mini strong {
  font-weight: 600;
}

.form-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: var(--space-xl);
  align-items: start;
}

.form-panel {
  padding: var(--space-xl);
}

.field-group + .field-group {
  margin-top: var(--space-lg);
}

.field-group label,
.field-title {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 16px;
  font-weight: 600;
}

.field,
.select-field {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--accent-gray);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: var(--space-md);
  color: var(--text);
}

.field:focus,
.select-field:focus {
  border-color: var(--text);
}

.field.is-invalid {
  border-color: #c62828;
}

.field::placeholder {
  color: var(--accent-gray);
}

.field-error {
  min-height: 18px;
  margin-top: 6px;
  color: #c62828;
  font-size: 13px;
  line-height: 1.35;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.lead-form-layout {
  align-items: center;
}

.lead-capture-panel,
.profile-phone-panel {
  max-width: 620px;
}

.lead-route-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.lead-route-summary span {
  border-radius: 999px;
  background: var(--surface);
  padding: 10px 14px;
  font-size: 14px;
}

.lead-capture-panel .skb-consent__item[data-skb-consent="pd"] {
  margin-top: var(--space-md);
}

.lead-capture-panel .prototype-note,
.profile-phone-panel .prototype-note {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
}

.pre-simulation-screen {
  padding-bottom: var(--space-xl);
}

.pre-simulation-screen .lead-form-layout {
  gap: clamp(28px, 4vw, 56px);
}

.pre-simulation-screen .scene-copy {
  position: static;
}

.pre-simulation-screen .scene-copy h1 {
  max-width: 11ch;
}

.pre-simulation-screen .scene-copy .lead {
  max-width: 460px;
  margin-top: var(--space-md);
  font-size: 18px;
}

.pre-simulation-screen .lead-capture-panel {
  width: 100%;
  max-width: 560px;
  padding: 24px;
}

.pre-simulation-screen .field-group + .field-group {
  margin-top: 12px;
}

.pre-simulation-screen .field-group label {
  margin-bottom: 4px;
  font-size: 14px;
}

.pre-simulation-screen .field {
  min-height: 48px;
  padding: 12px 14px;
}

.pre-simulation-screen .field:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.pre-simulation-screen .field-error {
  min-height: 0;
  margin-top: 4px;
}

.pre-simulation-screen .field-error:empty {
  display: none;
}

.pre-simulation-screen .lead-capture-panel .skb-consent__item[data-skb-consent="pd"] {
  margin-top: 12px;
}

.pre-simulation-screen .form-panel .btn-primary {
  min-height: 50px;
  margin-top: 14px;
}

.pre-simulation-screen .lead-capture-panel .skb-consent__note,
.pre-simulation-screen .lead-capture-panel .skb-consent__item[data-skb-consent="ads"] {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 767px) {
  .pre-simulation-screen {
    padding-top: 76px;
    padding-bottom: 20px;
  }

  .pre-simulation-screen .lead-form-layout {
    gap: 14px;
  }

  .pre-simulation-screen .scene-copy h1 {
    margin-top: 10px;
    font-size: 30px;
  }

  .pre-simulation-screen .scene-copy .lead {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.32;
  }

  .pre-simulation-screen .lead-capture-panel {
    padding: 16px;
  }

  .pre-simulation-screen .field-group + .field-group {
    margin-top: 10px;
  }

  .pre-simulation-screen .field {
    min-height: 46px;
  }

  .pre-simulation-screen .lead-capture-panel .skb-consent__note,
  .pre-simulation-screen .lead-capture-panel .skb-consent__item {
    font-size: 13px;
    line-height: 1.3;
  }
}

.profile-teaser-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: var(--space-xl);
  align-items: start;
}

.profile-preview-card {
  margin-top: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--space-lg);
}

.profile-preview-card > span,
.profile-saved-for {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
}

.profile-preview-card h2 {
  margin: var(--space-xs) 0 var(--space-sm);
}

.profile-preview-strength {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--accent-lime);
  padding: var(--space-md);
}

.profile-preview-strength p {
  margin: 4px 0 0;
}

.profile-locked-sections {
  position: relative;
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.profile-locked-sections::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.94));
  content: "";
}

.profile-locked-sections article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--accent-gray);
  border-radius: var(--radius-md);
  background: var(--bg);
  padding: var(--space-md);
  filter: blur(3px);
  opacity: 0.72;
}

.profile-phone-panel {
  position: sticky;
  top: 104px;
}

.profile-phone-panel h2 {
  margin: var(--space-xs) 0 var(--space-lg);
}

.practice-insights-card,
.consultation-next-card {
  margin-top: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  padding: var(--space-lg);
  color: var(--text-on-dark);
  text-align: left;
}

.simulation-summary-screen .practice-insights-card {
  animation: practice-insights-card-in 550ms ease-out both;
}

.simulation-summary-screen .practice-insights-card h2,
.simulation-summary-screen .practice-insights-card li {
  animation: practice-insights-item-in 550ms ease-out both;
}

.simulation-summary-screen .practice-insights-card h2 {
  max-width: none;
  animation-delay: 450ms;
}

.simulation-summary-screen .practice-insights-card li:nth-child(1) {
  animation-delay: 1200ms;
}

.simulation-summary-screen .practice-insights-card li:nth-child(2) {
  animation-delay: 2200ms;
}

.simulation-summary-screen .practice-insights-card li:nth-child(3) {
  animation-delay: 3200ms;
}

.simulation-summary-screen .practice-insights-card li:nth-child(4) {
  animation-delay: 4200ms;
}

@keyframes practice-insights-card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
}

@keyframes practice-insights-item-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.practice-insights-card h2,
.consultation-next-card h2 {
  font-size: 22px;
}

.practice-insights-list,
.profile-route-benefits,
.profile-result-card ul {
  display: grid;
  gap: 10px;
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
}

.practice-insights-list li,
.profile-route-benefits li,
.profile-result-card li {
  position: relative;
  padding-left: 30px;
  line-height: 1.4;
}

.practice-insights-list li::before,
.profile-route-benefits li::before,
.profile-result-card li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  content: "✓";
}

.practice-insights-card .practice-insights-list li::before,
.consultation-next-card .practice-insights-list li::before {
  color: var(--accent-lime);
}

.profile-scenario-card {
  border: 1px solid #dfdfdf;
}

.profile-result-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--space-lg);
}

.profile-result-card h2 {
  font-size: 22px;
}

.profile-result-card p {
  margin-top: 8px;
}

.profile-strength-card {
  background: var(--accent-lime);
}

.profile-phone-panel > p {
  line-height: 1.45;
}

.profile-route-benefits {
  margin-bottom: var(--space-lg);
}

.profile-phone-panel .field-group {
  margin-top: var(--space-lg);
}

.consultation-next-card {
  width: min(620px, 100%);
}

@media (min-width: 768px) and (max-height: 1120px) {
  .simulation-summary-screen {
    min-height: 100svh;
    align-items: start;
    padding-top: 88px;
    padding-bottom: 20px;
  }

  .simulation-summary-screen .eyebrow.blue {
    margin-top: 16px;
  }

  .simulation-summary-screen .simulation-summary-container > h1 {
    max-width: 18ch;
    font-size: clamp(46px, 4.4vw, 58px);
    line-height: 0.95;
  }

  .simulation-summary-screen .lead {
    max-width: 820px;
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.36;
  }

  .simulation-summary-screen .practice-insights-card {
    margin-top: 14px;
    padding: 18px 20px;
  }

  .simulation-summary-screen .practice-insights-card h2 {
    font-size: 20px;
  }

  .simulation-summary-screen .practice-insights-list {
    gap: 6px;
    margin-top: 10px;
    font-size: 16px;
  }

  .simulation-summary-screen .practice-insights-list li {
    line-height: 1.32;
  }

  .simulation-summary-screen .action-row {
    margin-top: 12px;
  }

  .simulation-summary-screen .btn {
    min-height: 52px;
    padding-block: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .simulation-summary-screen .practice-insights-card,
  .simulation-summary-screen .practice-insights-card h2,
  .simulation-summary-screen .practice-insights-card li {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Final profile: partial result, route teaser and primary lead action. */
.profile-teaser-copy > .profile-strength-card,
.profile-growth-teaser,
.profile-route-teaser {
  margin-top: var(--space-md);
}

.profile-teaser-copy > .eyebrow {
  font-weight: 700;
}

.profile-growth-teaser {
  overflow: hidden;
  border: 1px solid #dfdfeb;
  border-radius: var(--radius-lg);
  background: #f7f7fa;
  padding: 18px var(--space-lg);
}

.profile-growth-teaser h2 {
  margin: 0;
  font-size: 22px;
}

.profile-growth-teaser__preview {
  position: relative;
  overflow: hidden;
  height: 42px;
  margin-top: 8px;
}

.profile-growth-teaser__preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(247 247 250 / 8%), rgb(247 247 250 / 92%) 74%, #f7f7fa);
  content: "";
  pointer-events: none;
}

.profile-growth-teaser__preview p {
  margin: 0;
  color: #65637c;
  font-size: 15px;
  line-height: 1.35;
  filter: blur(3px);
}

.profile-growth-teaser__preview span {
  display: block;
  width: 72%;
  height: 10px;
  margin-top: 8px;
  border-radius: var(--radius-pill);
  background: #8c8a9d;
  opacity: 0.32;
  filter: blur(4px);
}

.profile-route-teaser {
  overflow: hidden;
  border: 1px solid #deddf4;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #f5f4ff, #efeff5);
  padding: var(--space-lg);
}

.profile-route-teaser__eyebrow {
  color: #55527d;
  font-size: 14px;
  font-weight: 600;
}

.profile-route-teaser h2 {
  margin-top: 6px;
  font-size: 22px;
}

.profile-route-teaser__preview {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
}

.profile-route-teaser__preview::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 54%;
  background: linear-gradient(180deg, rgb(243 242 251 / 4%), #f3f2fb 92%);
  content: "";
  pointer-events: none;
}

.profile-route-teaser__first {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: #4d4b64;
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 88%);
}

.profile-route-teaser__first span {
  color: var(--primary);
  font-weight: 700;
}

.profile-route-teaser__continuation {
  display: grid;
  gap: 10px;
  margin-top: 13px;
  opacity: 0.42;
  filter: blur(4px);
}

.profile-route-teaser__continuation span {
  width: 82%;
  height: 12px;
  border-radius: var(--radius-pill);
  background: #77758d;
}

.profile-route-teaser__continuation span:nth-child(2) {
  width: 68%;
}

.profile-route-teaser__continuation span:nth-child(3) {
  width: 76%;
}

.profile-phone-panel {
  overflow: hidden;
  border: 2px solid rgb(61 59 255 / 34%);
  background: linear-gradient(160deg, #f6f5ff 0%, #ecebff 100%);
  box-shadow: 0 22px 60px rgb(61 59 255 / 18%);
}

.profile-phone-panel::before {
  display: block;
  height: 6px;
  margin: calc(var(--space-xl) * -1) calc(var(--space-xl) * -1) var(--space-lg);
  background: var(--primary);
  content: "";
}

.profile-phone-panel > .eyebrow {
  position: relative;
  overflow: hidden;
  font-weight: 800;
}

.profile-phone-panel > .eyebrow::after {
  position: absolute;
  top: -45%;
  bottom: -45%;
  left: -40%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 72%), transparent);
  content: "";
  pointer-events: none;
  transform: translateX(0) skewX(-22deg);
  animation: profile-badge-shine 3.4s ease-in-out infinite;
}

@keyframes profile-badge-shine {
  0%,
  55% {
    transform: translateX(0) skewX(-22deg);
  }

  100% {
    transform: translateX(600%) skewX(-22deg);
  }
}

.profile-phone-panel h2 {
  max-width: 13ch;
  margin-bottom: var(--space-md);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.02;
}

@media (prefers-reduced-motion: reduce) {
  .profile-phone-panel > .eyebrow::after {
    animation: none;
  }
}

.profile-form-context {
  max-width: 36ch;
  color: #4c4a67;
}

.profile-phone-panel .profile-route-benefits {
  gap: 12px;
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
}

.profile-phone-panel .profile-route-benefits li {
  padding-left: 28px;
  font-size: 15px;
}

.profile-phone-panel .field {
  border-color: rgb(61 59 255 / 26%);
  background: #fff;
}

.profile-phone-panel .btn-primary {
  width: 100%;
  min-height: 60px;
  box-shadow: 0 12px 24px rgb(61 59 255 / 24%);
  font-size: 16px;
}

@media (max-width: 767px) {
  .profile-teaser-screen {
    padding-top: 76px;
    padding-bottom: 24px;
  }

  .profile-teaser-layout {
    display: grid;
    gap: 12px;
  }

  .profile-teaser-copy {
    display: contents;
  }

  .profile-teaser-copy > .eyebrow {
    order: 1;
    margin-top: 2px;
  }

  .profile-teaser-copy > h1 {
    order: 2;
    margin-top: 2px;
    font-size: 34px;
    line-height: 1;
  }

  .profile-person-name,
  .profile-teaser-copy > .lead {
    display: none;
  }

  .profile-scenario-card {
    order: 3;
    margin-top: 0;
    padding: 16px;
  }

  .profile-scenario-card h2 {
    margin-block: 4px 6px;
    font-size: 27px;
  }

  .profile-scenario-card p {
    font-size: 15px;
    line-height: 1.36;
  }

  .profile-teaser-copy > .profile-strength-card {
    order: 4;
    margin-top: 0;
    padding: 16px;
  }

  .profile-growth-teaser {
    order: 5;
    margin-top: 0;
    padding: 16px;
  }

  .profile-growth-teaser h2 {
    font-size: 20px;
  }

  .profile-growth-teaser__preview {
    height: 34px;
    margin-top: 6px;
  }

  .profile-route-teaser {
    order: 6;
    margin-top: 0;
    padding: 16px;
  }

  .profile-route-teaser h2 {
    font-size: 20px;
  }

  .profile-route-teaser__preview {
    height: 82px;
    margin-top: 12px;
  }

  .profile-route-teaser__first {
    font-size: 14px;
  }

  .profile-phone-panel {
    order: 7;
    margin-top: 0;
    padding: 18px;
  }

  .profile-phone-panel::before {
    margin: -18px -18px 16px;
  }

  .profile-phone-panel .eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    font-size: 11px;
  }

  .profile-phone-panel h2 {
    max-width: 15ch;
    margin: 0 0 10px;
    font-size: 30px;
  }

  .profile-form-context {
    font-size: 15px;
    line-height: 1.35;
  }

  .profile-phone-panel .profile-route-benefits {
    gap: 7px;
    margin: 12px 0 14px;
  }

  .profile-phone-panel .profile-route-benefits li {
    font-size: 14px;
    line-height: 1.32;
  }

  .profile-phone-panel .field-group {
    margin-top: 12px;
  }

  .profile-phone-panel .field {
    min-height: 50px;
  }

  .profile-phone-panel .btn-primary {
    min-height: 56px;
  }

  .profile-strength-card h2 {
    font-size: 20px;
  }

  .profile-strength-card p {
    font-size: 15px;
    line-height: 1.36;
  }
}

.profile-contact-note {
  margin-top: var(--space-md);
  font-size: 14px;
  line-height: 1.45;
}

.profile-assembly-screen .analysis-list {
  width: 100%;
}

.check-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  align-items: start;
  font-size: 14px;
  cursor: pointer;
}

.check-row input {
  appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid var(--text);
  border-radius: 8px;
  background: var(--bg);
}

.check-row input:checked {
  border: 6px solid var(--primary);
}

.form-error {
  min-height: 22px;
  margin-top: var(--space-sm);
  font-size: 14px;
}

.prototype-note {
  margin-top: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--accent-lime);
  padding: var(--space-md);
  font-size: 14px;
}

.skills-list {
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.skills-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: start;
  gap: var(--space-sm);
}

.skills-list li::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--primary);
}

.full-route {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.full-route .result-card:first-child {
  background: var(--accent-lime);
}

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

.trust-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-lg);
}

.confirmation {
  margin-top: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  padding: var(--space-xl);
  color: var(--text-on-dark);
}

.confirmation p {
  max-width: 700px;
  margin-top: var(--space-sm);
  color: inherit;
}

.consultation-summary {
  width: min(620px, 100%);
  display: grid;
  gap: var(--space-xs);
  margin: var(--space-lg) 0 0;
  text-align: left;
}

.consultation-summary div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: var(--space-sm) var(--space-md);
}

.consultation-summary dt,
.consultation-summary dd {
  min-width: 0;
  margin: 0;
}

.consultation-summary dt {
  color: #646464;
  font-size: 14px;
}

.consultation-summary dd {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.confirmation-actions {
  justify-content: center;
}

.loader {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-lg);
  border: 10px solid var(--surface);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader.is-complete {
  border-color: var(--accent-mint);
  animation: none;
}

body:has(.starting-analysis-screen) .engineering-menu {
  display: none;
}

.starting-analysis-screen {
  min-height: 100dvh;
  overflow: hidden;
  padding-top: 90px;
  padding-bottom: 18px;
  background: #fff;
  transition: opacity 200ms ease;
}

.starting-analysis-container {
  --loader-progress: 0%;
  --loader-print-bottom: 18%;
  display: grid;
  justify-items: center;
  align-content: center;
  opacity: 0;
  text-align: center;
  transition: opacity 140ms ease;
}

.starting-analysis-container.is-loaded {
  opacity: 1;
}

.starting-analysis-title {
  max-width: none;
  margin: 0;
  font-size: clamp(40px, 4vw, 54px);
  line-height: 1;
}

.starting-analysis-visual {
  position: relative;
  width: min(62%, 65dvh, 510px);
  aspect-ratio: 1;
  margin-top: 8px;
  overflow: visible;
  isolation: isolate;
}

.starting-analysis-base,
.starting-analysis-asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.starting-analysis-base {
  z-index: 0;
  border-radius: 20%;
}

.starting-analysis-asset {
  opacity: 0;
  transition:
    opacity 200ms ease,
    filter 200ms ease;
  will-change: opacity, filter, clip-path;
}

.starting-analysis-asset.is-active {
  z-index: 1;
  opacity: 1;
}

.starting-analysis-asset[data-starting-asset="1"] {
  -webkit-mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 calc(var(--loader-progress) - 2.5%),
    transparent calc(var(--loader-progress) + 1.5%),
    transparent 100%
  );
  mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 calc(var(--loader-progress) - 2.5%),
    transparent calc(var(--loader-progress) + 1.5%),
    transparent 100%
  );
}

.starting-analysis-asset[data-starting-asset="1"].is-active {
  animation: starting-loader-build-glow 1100ms ease-in-out infinite;
}

.starting-analysis-container.is-finalizing .starting-analysis-asset[data-starting-asset="2"].is-active {
  animation: starting-loader-ready 540ms ease-out both;
}

.starting-analysis-container.is-reduced-motion .starting-analysis-asset,
.starting-analysis-container.is-reduced-motion .starting-analysis-asset.is-active {
  animation: none;
  clip-path: none;
}

.starting-analysis-scan-line {
  position: absolute;
  z-index: 3;
  top: 26%;
  left: 17%;
  width: 66%;
  height: 3px;
  border-radius: 99px;
  background: #3d3bff;
  box-shadow:
    0 0 7px rgb(61 59 255 / 95%),
    0 0 22px rgb(61 59 255 / 62%);
  opacity: 0;
  pointer-events: none;
}

.starting-analysis-container[data-state="0"] .starting-analysis-scan-line {
  opacity: 1;
  animation: starting-loader-scan-line 1400ms linear both;
}

.starting-analysis-print-pulse {
  position: absolute;
  z-index: 3;
  bottom: var(--loader-print-bottom);
  left: 50%;
  width: 8px;
  height: 26px;
  border-radius: 99px;
  background: rgb(147 177 255 / 86%);
  box-shadow:
    0 0 10px rgb(61 59 255 / 88%),
    0 0 24px rgb(61 59 255 / 58%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.starting-analysis-print-pulse::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 112px;
  height: 3px;
  border-radius: 99px;
  background: rgb(61 59 255 / 72%);
  box-shadow: 0 0 18px rgb(61 59 255 / 68%);
  content: "";
  transform: translateX(-50%);
}

.starting-analysis-container[data-asset="1"] .starting-analysis-print-pulse {
  opacity: 1;
  animation: starting-loader-print-pulse 920ms ease-in-out infinite;
}

.starting-analysis-container.is-reduced-motion .starting-analysis-scan-line,
.starting-analysis-container.is-reduced-motion .starting-analysis-print-pulse {
  animation: none;
}

.starting-analysis-loader {
  position: relative;
  width: min(420px, 58%);
  height: 8px;
  margin-top: 1px;
  border-radius: 99px;
  background: #e8e8ee;
}

.starting-analysis-loader__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--loader-progress);
  min-width: 0;
  border-radius: inherit;
  background: #3d3bff;
}

.starting-analysis-loader__fill i {
  position: absolute;
  top: 50%;
  right: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3d3bff;
  box-shadow: 0 0 9px rgb(61 59 255 / 52%);
  transform: translateY(-50%);
}

.starting-analysis-container.is-finalizing .starting-analysis-loader__fill {
  transition: width 300ms cubic-bezier(.22, 1, .36, 1);
}

.starting-analysis-status {
  position: relative;
  width: 100%;
  height: 34px;
  margin-top: 12px;
  overflow: hidden;
  color: #000;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.35;
}

.starting-analysis-status span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.starting-analysis-status span.is-active {
  opacity: 1;
  transform: translateY(0);
}

.starting-analysis-status span.is-active ~ span {
  transform: translateY(8px);
}

.starting-analysis-personalization {
  display: none;
}

@keyframes starting-loader-scan-line {
  from { top: 26%; }
  to { top: 68%; }
}

@keyframes starting-loader-build-glow {
  0%, 100% { filter: drop-shadow(0 10px 18px rgb(61 59 255 / 12%)); }
  50% { filter: drop-shadow(0 10px 29px rgb(61 59 255 / 34%)); }
}

@keyframes starting-loader-print-pulse {
  0%, 100% {
    filter: brightness(.88);
    transform: translate(-50%, -2px);
  }
  50% {
    filter: brightness(1.35);
    transform: translate(-50%, 5px);
  }
}

@keyframes starting-loader-ready {
  0% {
    filter: drop-shadow(0 8px 14px rgb(91 237 194 / 4%));
  }
  55% {
    filter: drop-shadow(0 10px 34px rgb(91 237 194 / 38%));
  }
  100% {
    filter: drop-shadow(0 10px 22px rgb(91 237 194 / 18%));
  }
}

.analysis-list {
  width: min(100%, 560px);
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.analysis-list li {
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: var(--space-md) var(--space-lg);
  opacity: 0.35;
  transform: translateY(4px);
  transition:
    opacity var(--motion-fast) var(--motion-easing),
    transform var(--motion-fast) var(--motion-easing);
}

.analysis-list li.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.profile-grid,
.skills-card,
.consult-preview {
  margin-top: var(--space-lg);
}

.skills-card {
  background: var(--accent-lime);
}

.consult-preview {
  background: var(--accent-pink);
}

.form-panel .btn-primary {
  width: 100%;
  margin-top: var(--space-lg);
}

.confetti-dot {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--accent-lime);
  transform: rotate(8deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .task1-result-facts,
  .task1-personal-result {
    grid-template-columns: minmax(0, 1fr);
  }

  .task1-personal-result .is-result {
    grid-column: auto;
  }

  .task1-result-facts {
    gap: 7px;
    margin-top: 16px;
  }

  .task1-result-facts article,
  .task1-personal-result > div {
    padding: 12px 13px;
  }

  .task1-result-container {
    padding-top: 6px;
    padding-bottom: 8px;
  }

  .task1-result-container h1 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .task1-result-container > .lead {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.3;
  }

  .task1-result-facts {
    margin-top: 10px;
  }

  .task1-result-facts strong {
    font-size: 13px;
  }

  .task1-result-container > .action-row {
    margin-top: 10px;
  }

}

/* Task 3: adaptive sign plate and unambiguous hand-stamp editor. */
.stamp-client-product > i {
  width: min(82px, 72%);
  height: 42px;
  border-radius: 10px;
  font-size: 13px;
  letter-spacing: .06em;
}

.stamp-client-product.is-clay > i,
.stamp-client-product.is-leather > i,
.stamp-client-product.is-tag > i {
  border-radius: 9px;
}

.stamp-client-request {
  position: relative;
  display: block;
  min-height: 102px;
  padding: 13px 18px 13px 166px;
}

.stamp-client-request__handle {
  position: absolute;
  z-index: 3;
  left: 29px;
  top: 8px;
  width: 64px;
  height: 48px;
  border: 1px solid #77736d;
  border-radius: 27px 27px 15px 15px / 21px 21px 13px 13px;
  background: linear-gradient(90deg, #8d8982, #efebe2 47%, #827f78);
  box-shadow: inset 0 1px rgb(255 255 255 / 40%), 0 8px 12px rgb(0 0 0 / 24%);
}

.stamp-client-request__handle::after {
  position: absolute;
  inset: 15px 14px 9px;
  border-right: 3px solid #77736d;
  border-left: 3px solid #77736d;
  border-radius: 6px;
  content: "";
}

.stamp-client-request__neck {
  position: absolute;
  z-index: 2;
  left: 43px;
  top: 51px;
  width: 36px;
  height: 16px;
  border-radius: 7px;
  background: #c5c1b7;
}

.stamp-client-request__base {
  position: absolute;
  left: 0;
  top: 64px;
  display: grid;
  place-items: center;
  width: 122px;
  height: 26px;
  margin: 0;
  border: 1px solid #85817a;
  border-radius: 10px 10px 5px 5px;
}

.stamp-client-request__base::after { content: none; }

.stamp-client-request__base i {
  color: #58554f;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
}

.stamp-client-request p {
  min-height: 74px;
  align-content: center;
  margin: 0;
}

.stamp-shape-button > span[data-shape="rectangle"] { border-radius: 3px; }
.stamp-shape-button > span[data-shape="capsule"] { width: 40px; border-radius: 999px; }

.stamp-brand-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.stamp-brand-meta strong {
  flex: 0 0 auto;
  color: #3f4447;
  font-size: 13px;
}

.stamp-brand-status {
  margin: 0;
  padding: 7px 9px;
  border-radius: 8px;
  background: #edf5ef;
  color: #286244;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.stamp-brand-status.is-short,
.stamp-brand-status.is-long {
  background: #f7eee8;
  color: #865035;
}

.stamp-brand-field .field[aria-invalid="true"] {
  border-color: #b97954;
  box-shadow: 0 0 0 3px rgb(185 121 84 / 12%);
}

.stamp-editor-preview-panel {
  min-height: 520px;
}

.stamp-editor-visual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(220px, 1fr) minmax(170px, .72fr);
}

.stamp-editor-view--imprint {
  grid-column: 1 / -1;
}

.stamp-top-face {
  width: min(var(--stamp-face-width, 188px), calc(100% - 24px));
  min-width: 168px;
  height: 104px;
  padding: 18px 22px;
  overflow: hidden;
  box-sizing: border-box;
  white-space: nowrap;
  font-size: 24px;
  letter-spacing: .055em;
  transition:
    width var(--motion-normal) var(--motion-easing),
    border-width var(--motion-normal) var(--motion-easing),
    font-weight var(--motion-normal) var(--motion-easing);
}

.stamp-editor-visual[data-shape="rectangle"] .stamp-top-face { border-radius: 5px; }
.stamp-editor-visual[data-shape="capsule"] .stamp-top-face { border-radius: 999px; }
.stamp-editor-visual[data-stamp-text-state="long"] .stamp-top-face { box-shadow: 0 0 0 4px rgb(185 121 84 / 24%); }

.stamp-section-object {
  width: min(330px, 100%);
  height: 142px;
}

.stamp-section-handle {
  top: 7px;
  width: 78px;
  height: 54px;
  border-radius: 30px 30px 16px 16px / 22px 22px 14px 14px;
}

.stamp-section-handle::after {
  inset: 17px 17px 9px;
  border-width: 0 4px;
  border-style: solid;
  border-color: #77736c;
  border-radius: 7px;
}

.stamp-section-collar {
  top: 55px;
  width: 48px;
  height: 18px;
}

.stamp-section-base {
  top: 69px;
  width: min(var(--stamp-face-width, 188px), calc(100% - 48px));
  height: 24px;
  transition: width var(--motion-normal) var(--motion-easing);
}

.stamp-section-relief {
  top: 91px;
  width: min(calc(var(--stamp-face-width, 188px) - 42px), calc(100% - 84px));
}

.stamp-section-surface {
  top: calc(94px + var(--stamp-relief-lift));
  width: min(calc(var(--stamp-face-width, 188px) + 22px), 100%);
}

.stamp-section-label {
  position: absolute;
  z-index: 4;
  padding: 2px 5px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  background: rgb(28 29 30 / 82%);
  color: #d8dbdc;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.1;
}

.stamp-section-label--handle { left: calc(50% + 43px); top: 17px; }
.stamp-section-label--neck { left: calc(50% + 30px); top: 55px; }
.stamp-section-label--plate { right: 2px; top: 74px; }
.stamp-section-label--relief { left: 2px; top: 98px; }

.stamp-live-imprint {
  position: relative;
  display: grid;
  place-items: center;
  width: min(var(--stamp-face-width, 188px), calc(100% - 24px));
  min-width: 168px;
  height: 84px;
  margin: auto;
  padding: 16px 20px;
  overflow: hidden;
  box-sizing: border-box;
  border: var(--stamp-line-width) solid rgb(83 47 30 / 64%);
  border-radius: 13px;
  color: rgb(78 43 25 / 76%);
  background:
    radial-gradient(circle at 20% 30%, rgb(255 255 255 / 12%) 0 1px, transparent 2px) 0 0 / 9px 9px,
    #b87854;
  box-shadow: inset 0 2px 4px rgb(57 31 18 / 30%), 0 8px 15px rgb(0 0 0 / 22%);
  font-size: 23px;
  font-weight: var(--stamp-letter-weight);
  letter-spacing: .055em;
  line-height: 1;
  white-space: nowrap;
  transition: width var(--motion-normal) var(--motion-easing);
}

.stamp-editor-visual[data-shape="rectangle"] .stamp-live-imprint { border-radius: 4px; }
.stamp-editor-visual[data-shape="capsule"] .stamp-live-imprint { border-radius: 999px; }

.stamp-live-imprint i {
  position: absolute;
  inset: 15%;
  border: max(1px, calc(var(--stamp-line-width) * .7)) solid currentColor;
  border-radius: inherit;
  opacity: .5;
}

.stamp-model__base {
  width: min(calc(var(--stamp-face-width, 188px) + 30px), 320px);
}

.stamp-model__face {
  width: min(var(--stamp-face-width, 188px), 290px);
  min-width: 168px;
  box-sizing: border-box;
  white-space: nowrap;
  font-size: 25px;
}

.stamp-model[data-shape="rectangle"] .stamp-model__face,
.physical-stamp[data-shape="rectangle"] .physical-stamp__face,
.stamp-imprint[data-shape="rectangle"],
.stamp-flat-mark[data-shape="rectangle"] { border-radius: 5px; }

.stamp-model[data-shape="capsule"] .stamp-model__face,
.physical-stamp[data-shape="capsule"] .physical-stamp__face,
.stamp-imprint[data-shape="capsule"],
.stamp-flat-mark[data-shape="capsule"] { border-radius: 999px; }

.stamp-imprint {
  width: min(var(--stamp-face-width, 188px), calc(100% - 24px));
  min-width: 168px;
  box-sizing: border-box;
  white-space: nowrap;
  font-size: 23px;
}

@media (max-width: 640px) {
  .stamp-client-products { padding: 28px 10px 16px; }
  .stamp-client-product > i { width: min(68px, 80%); height: 36px; font-size: 11px; }
  .stamp-client-request { min-height: 98px; margin: 12px; padding: 12px 10px 12px 138px; }
  .stamp-client-request p { min-height: 72px; }
  .stamp-client-request p strong { font-size: 13px; }
  .stamp-client-request p small { font-size: 10px; }

  .stamp-editor-screen .stamp-shape-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stamp-editor-screen .stamp-shape-button {
    min-height: 78px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 8px 5px;
    font-size: 10px;
    text-align: center;
  }

  .stamp-editor-preview-panel {
    min-height: 650px;
    padding: 10px;
  }

  .stamp-editor-visual {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(190px, auto));
  }

  .stamp-editor-view--imprint { grid-column: auto; }
  .stamp-top-face { transform: none; }
  .stamp-section-object { transform: none; }
  .stamp-brand-meta { align-items: flex-start; }
  .stamp-brand-meta small { max-width: 27ch; }
}

@media (max-width: 340px) {
  .stamp-editor-screen .stamp-shape-picker { grid-template-columns: 1fr; }
  .stamp-editor-screen .stamp-shape-button { min-height: 52px; }
  .stamp-editor-preview-panel { min-height: 630px; }
}

/* Final regression pass: keep primary actions visible on short desktop viewports. */
@media (min-width: 900px) and (max-height: 820px) {
  .hero-layout {
    min-height: calc(100vh - 136px);
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero-copy {
    padding: 28px 34px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 3.25vw, 46px);
    line-height: 1;
  }

  .hero-media {
    min-height: 500px;
  }

  .case2-requirements-screen .workflow-case-copy h1 {
    font-size: 38px;
    line-height: 1;
  }

  .case2-requirements-screen .workflow-case-copy .lead {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.3;
  }

  .case2-requirements-screen .workflow-requirement-grid {
    gap: 8px;
    margin-top: 10px;
  }

  .case2-requirements-screen .workflow-requirement-card {
    min-height: 54px;
    padding-block: 8px;
  }

  .stamp-editor-screen {
    padding-top: 60px;
    padding-bottom: 24px;
  }

  .stamp-editor-screen h1 {
    font-size: 46px;
    line-height: 1;
  }

  .stamp-editor-screen .stamp-shape-button {
    min-height: 58px;
    padding-block: 8px;
  }

  .consultation-confirmation-screen {
    padding-top: 88px;
    padding-bottom: 24px;
  }

  .consultation-confirmation-screen h1 {
    font-size: 56px;
  }

  .consultation-confirmation-screen .lead {
    margin-top: 14px;
    font-size: 20px;
  }

  .consultation-confirmation-screen .consultation-summary {
    margin-top: 16px;
  }

  .consultation-confirmation-screen .consultation-summary div {
    padding-block: 10px;
  }

  .consultation-confirmation-screen .prototype-note,
  .consultation-confirmation-screen .confirmation-actions {
    margin-top: 14px;
  }
}

/* Final physical proportions for the draggable stamp override legacy prototype styles. */
.stamp-test-scene .physical-stamp {
  width: 170px;
  height: 190px;
}

.stamp-test-scene .physical-stamp__handle {
  left: 50%;
  width: 62px;
  height: 116px;
  border: 1px solid #77746e;
  border-radius: 23px 23px 10px 10px;
  background: linear-gradient(90deg, #99958c, #efebe2 46%, #848179);
  transform: translateX(-50%);
}

.stamp-test-scene .physical-stamp__handle::after {
  position: absolute;
  inset: 28px 14px 17px;
  border: 4px solid #77736c;
  border-top: 0;
  border-bottom: 0;
  content: "";
}

.stamp-test-scene .physical-stamp__face {
  left: 50%;
  bottom: 2px;
  width: 164px;
  height: 72px;
  transform: translateX(-50%);
}

.stamp-first-diagnosis-layout {
  display: grid;
  grid-template-columns: minmax(430px, .9fr) minmax(540px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.stamp-first-diagnosis-screen h1 {
  max-width: 11ch;
  font-size: clamp(40px, 3.8vw, 56px);
  line-height: .98;
}

.stamp-first-diagnosis-screen .lead {
  margin-top: 12px;
  font-size: 16px;
}

.stamp-failure-inspection {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 12px;
  min-height: 520px;
  padding: 18px;
  border-radius: 24px;
  color: #f7f7f4;
  background: #1d1e1f;
}

.stamp-failure-inspection article {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 24px 24px,
    #27292a;
}

.stamp-failure-inspection article > span:first-child {
  padding: 12px 14px;
  color: #c4c6c7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.stamp-inspection-object .physical-stamp {
  position: relative;
  inset: auto;
  margin: auto;
  cursor: default;
}

.stamp-inspection-material {
  padding-bottom: 14px;
}

.stamp-inspection-imprint {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(100% - 28px);
  min-height: 390px;
  margin: 0 14px;
  overflow: visible;
  border-radius: 20px;
  color: #6e5848;
  background:
    radial-gradient(circle at 28% 23%, rgb(255 255 255 / 34%) 0 1px, transparent 2px) 0 0 / 12px 12px,
    #d5b48e;
  box-shadow: inset 0 0 34px rgb(90 55 30 / 20%);
}

.stamp-inspection-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 72%;
  height: 48%;
  border: 8px solid currentColor;
  border-right-color: transparent;
  border-radius: 22px;
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 760;
  letter-spacing: .08em;
  opacity: .82;
  filter: blur(.45px);
}

.stamp-inspection-imprint[data-shape="round"] .stamp-inspection-mark {
  width: 57%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
}

.stamp-inspection-imprint[data-shape="hexagon"] .stamp-inspection-mark {
  border: 0;
  border-radius: 0;
  background: currentColor;
  color: #d5b48e;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.stamp-inspection-mark::after {
  position: absolute;
  top: 43%;
  right: -9px;
  width: 34%;
  height: 14px;
  background: #d5b48e;
  box-shadow: -38px 25px 0 #d5b48e;
  content: "";
}

.stamp-problem-zone {
  position: absolute;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 2px solid #ff4f45;
  border-radius: 50%;
  background: rgb(255 79 69 / 18%);
  box-shadow: 0 0 0 5px rgb(255 79 69 / 10%);
}

.stamp-problem-zone b {
  position: absolute;
  left: 25px;
  top: -4px;
  width: max-content;
  max-width: 126px;
  padding: 5px 7px;
  border-radius: 7px;
  color: #fff;
  background: #2a2020;
  font-size: 10px;
  font-style: normal;
  line-height: 1.15;
}

.stamp-problem-zone.is-line { left: 21%; top: 37%; }
.stamp-problem-zone.is-gap { right: 19%; top: 47%; }
.stamp-problem-zone.is-letter { left: 42%; bottom: 31%; }
.stamp-problem-zone.is-gap b { right: 25px; left: auto; }

.stamp-diagnosis {
  margin-top: 16px;
}

.stamp-diagnosis h2 {
  font-size: 24px;
  line-height: 1.05;
}

.stamp-diagnosis > p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.stamp-diagnosis-options {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.stamp-diagnosis-option {
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}

.stamp-diagnosis-option.is-selected {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary);
}

.stamp-diagnosis > .btn {
  margin-top: 10px;
}

.stamp-diagnosis-feedback {
  margin-top: 10px;
  padding: 12px 14px;
  border-left: 3px solid #ff5c52;
  border-radius: 10px;
  background: #f4eded;
}

.stamp-diagnosis-feedback.is-correct {
  border-left-color: #75aa79;
  background: #eef4ee;
}

.stamp-diagnosis-feedback p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
}

.stamp-diagnosis-feedback .btn {
  min-height: 44px;
  margin-top: 9px;
}

.profile-personalization-note {
  margin-top: 14px;
  padding: 11px 14px;
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .stamp-first-diagnosis-layout { grid-template-columns: 1fr; }
  .stamp-failure-inspection { min-height: 480px; }
}

@media (max-width: 767px) {
  .stamp-first-diagnosis-layout {
    display: grid;
    gap: 18px;
  }

  .stamp-first-diagnosis-layout .stamp-stage-copy { display: contents; }
  .stamp-first-diagnosis-layout .stamp-stage-copy h1 { order: 1; }
  .stamp-first-diagnosis-layout .stamp-stage-copy > .lead { order: 2; }
  .stamp-first-diagnosis-layout .stamp-failure-inspection { order: 3; }
  .stamp-first-diagnosis-layout .stamp-diagnosis { order: 4; }

  .stamp-first-diagnosis-screen h1 { font-size: 38px; }
  .stamp-failure-inspection {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 12px;
  }
  .stamp-inspection-object { min-height: 270px; }
  .stamp-inspection-imprint { min-height: 310px; }
  .stamp-problem-zone b { max-width: 112px; }
  .profile-personalization-note { font-size: 13px; }
}

@media (max-width: 980px) {
  .stamp-final-container,
  .full-profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .stamp-final-copy h1,
  .full-profile-summary h1,
  .simulation-summary-screen .simulation-summary-container > h1 {
    font-size: 38px;
  }

  .stamp-final-detail .stamp-final-versions,
  .full-profile-screen .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stamp-final-detail .stamp-result-summary .stamp-result-visual {
    min-height: 132px;
  }

  .simulation-summary-screen .artifact-mini {
    min-height: 92px;
  }
}

.engineering-menu {
  position: relative;
  z-index: 100;
}

.engineering-menu__toggle {
  position: fixed;
  right: var(--space-lg);
  bottom: var(--space-lg);
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--bg-dark);
  padding: var(--space-sm) var(--space-lg);
  color: var(--text-on-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.engineering-menu__panel {
  position: fixed;
  z-index: 101;
  top: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-md);
  width: min(420px, calc(100% - 32px));
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  padding: var(--space-lg);
  color: var(--text-on-dark);
}

body:has(.case3-creator-screen) .engineering-menu__toggle {
  right: auto;
  left: var(--space-lg);
}

.engineering-menu__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.engineering-menu__header h2 {
  margin-top: 4px;
  color: var(--text-on-dark);
  font-size: 26px;
  line-height: 1.05;
}

.engineering-menu__caption {
  font-size: 13px;
}

.engineering-menu__close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-dark);
  color: var(--text-on-dark);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.engineering-menu__current {
  width: max-content;
  margin-top: var(--space-lg);
  border-radius: var(--radius-pill);
  background: var(--primary);
  padding: 6px var(--space-sm);
  font-size: 13px;
}

.engineering-menu__field {
  margin-top: var(--space-md);
}

.engineering-menu__field label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-on-dark);
  font-size: 13px;
  font-weight: 600;
}

.engineering-menu__field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--accent-gray);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: var(--space-sm);
  color: var(--text);
  font-size: 14px;
}

.engineering-menu__details {
  margin-top: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--surface-dark);
  padding: var(--space-md);
}

.engineering-menu__details summary {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.engineering-menu__details-body {
  padding-top: 1px;
}

.engineering-menu__calibration-controls {
  display: grid;
  gap: 14px;
  margin-top: var(--space-md);
}

.engineering-menu__calibration-control {
  display: grid;
  gap: 7px;
}

.engineering-menu__calibration-control > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  color: var(--text-on-dark);
  font-size: 12px;
  font-weight: 600;
}

.engineering-menu__calibration-control output {
  min-width: 56px;
  border-radius: 7px;
  background: rgb(255 255 255 / 10%);
  padding: 4px 7px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.engineering-menu__calibration-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
}

.engineering-menu__calibration-inputs input[type="range"] {
  width: 100%;
  min-height: 28px;
  margin: 0;
  accent-color: var(--primary);
  cursor: ew-resize;
  touch-action: pan-x;
}

.engineering-menu__calibration-inputs input[type="number"] {
  width: 76px;
  min-height: 34px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 7px;
  background: rgb(255 255 255 / 8%);
  padding: 5px 7px;
  color: var(--text-on-dark);
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.engineering-menu__calibration-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: var(--space-md);
  color: var(--text-on-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
}

.engineering-menu__calibration-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }

.engineering-menu__calibration-help {
  margin: 10px 0 0;
  color: rgb(255 255 255 / 62%);
  font-size: 10px;
  line-height: 1.4;
}

.engineering-menu__calibration-notice {
  margin: 10px 0 0;
  border-radius: 8px;
  background: rgb(255 255 255 / 8%);
  padding: 9px 10px;
  color: rgb(255 255 255 / 70%);
  font-size: 10px;
  line-height: 1.35;
}

.engineering-menu__calibration-control input:disabled {
  opacity: .36;
  cursor: not-allowed;
}

.engineering-menu__calibration-guides {
  display: grid;
  gap: 6px;
  margin-top: var(--space-md);
  color: rgb(255 255 255 / 72%);
  font-size: 11px;
}

.engineering-menu__calibration-guides span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.engineering-menu__calibration-guides i {
  display: block;
  width: 22px;
  height: 2px;
  background: #48cdff;
}

.engineering-menu__calibration-guides .is-helmet {
  border-top: 2px dashed #ff5c67;
  background: transparent;
}

.engineering-menu__calibration-guides .is-axis { height: 1px; }
.engineering-menu__calibration-guides .is-top { height: 1px; background: #cdff7a; }

.engineering-menu__calibration-actions {
  display: grid;
  gap: 8px;
  margin-top: var(--space-md);
}

.engineering-menu__calibration-layer-controls {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 14%);
  padding-top: 14px;
}

.engineering-menu__calibration-layer-controls > strong {
  color: #c9f45b;
  font-size: 10px;
  letter-spacing: .08em;
}

.engineering-menu__calibration-layer-controls .engineering-menu__calibration-toggle {
  margin: 0;
}

.engineering-menu__calibration-actions button {
  min-height: 42px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 8px 10px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.engineering-menu__calibration-actions button:first-child {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--text-on-dark);
}

.engineering-menu__calibration-actions button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.engineering-menu__calibration-status {
  min-height: 17px;
  margin: 10px 0 0;
  color: rgb(255 255 255 / 68%);
  font-size: 11px;
}

.engineering-menu__state-list {
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-md) 0 0;
}

.engineering-menu__state-list div {
  display: grid;
  gap: 2px;
}

.engineering-menu__state-list dt {
  font-size: 12px;
  opacity: 0.72;
}

.engineering-menu__state-list dd {
  margin: 0;
  font-size: 14px;
}

.engineering-menu__profile-grid {
  display: grid;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.engineering-menu__profile {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: var(--space-sm);
  color: var(--text);
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

.engineering-menu__profile.is-active {
  background: var(--primary);
  color: var(--text-on-dark);
}

.engineering-menu__note {
  margin-top: var(--space-lg);
  color: var(--text-on-dark);
  font-size: 12px;
  opacity: 0.75;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes practice-section-in {
  from {
    opacity: 0;
    filter: brightness(0.55);
  }
  to {
    opacity: 1;
    filter: brightness(1);
  }
}

.promise-mobile-screen {
  display: none;
}

@media (min-width: 641px) {
  .onboarding-question-screen {
    padding-top: 96px;
    padding-bottom: 32px;
  }

  .container.onboarding-question-container {
    width: min(1320px, calc(100% - 48px));
  }

  .onboarding-question-layout {
    min-height: calc(100dvh - 128px);
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    align-items: stretch;
    gap: clamp(32px, 4vw, 64px);
  }

  .onboarding-question-copy {
    align-self: start;
    padding: clamp(48px, 7vh, 68px) 0 22px;
  }

  .onboarding-question-container .onboarding-progress + h1 {
    margin-top: 22px;
  }

  .onboarding-question-container h1 {
    max-width: none;
    font-size: clamp(38px, 3.2vw, 48px);
    line-height: 1.04;
  }

  .onboarding-question-container .lead {
    max-width: 1040px;
    margin-top: var(--space-sm);
    font-size: 17px;
    line-height: 1.3;
  }

  .onboarding-question-container .selector-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .onboarding-question-container .selector-card {
    min-height: 64px;
    padding: 14px 18px;
  }

  .onboarding-question-container .selector-copy strong {
    font-size: 16px;
  }

  .onboarding-question-visual {
    min-height: 560px;
  }

  .starting-analysis-screen {
    padding-top: 92px;
    padding-bottom: 40px;
  }

  .practice-transition-screen {
    padding-top: 92px;
    padding-bottom: 40px;
  }

  .practice-transition-container .eyebrow + h1 {
    margin-top: var(--space-md);
  }

  .practice-transition-container .lead {
    margin-top: var(--space-md);
  }

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

  .stage-desktop-screen {
    padding-top: 96px;
    padding-bottom: var(--space-2xl);
  }

  .container.stage-desktop-container {
    width: min(var(--container), calc(100% - 48px));
  }

  .stage-desktop-container .eyebrow + h1 {
    margin-top: var(--space-md);
  }

  .stage-desktop-container h1 {
    max-width: none;
    font-size: clamp(42px, 4vw, 54px);
    line-height: 1;
  }

  .stage-desktop-container .lead {
    max-width: 1040px;
    margin-top: var(--space-sm);
    font-size: 18px;
    line-height: 1.35;
  }

  .stage-desktop-container .selector-grid {
    gap: var(--space-sm);
    margin-top: 20px;
  }

  .stage-desktop-container .selector-card {
    min-height: 72px;
    padding: var(--space-sm) var(--space-md);
  }

  .stage-desktop-container .selector-copy strong {
    font-size: 17px;
  }

  .stage-desktop-container .selector-card:last-child {
    grid-column: 1 / -1;
  }

  .stage-desktop-container .feedback {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
  }

  .stage-desktop-container .feedback strong {
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .stage-desktop-container .action-row {
    margin-top: var(--space-sm);
    padding-right: 220px;
  }
}

@media (min-width: 981px) {
  .how-screen {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .container.how-container {
    width: min(var(--container), calc(100% - 48px));
  }

  .how-container .eyebrow + h1 {
    margin-top: var(--space-md);
  }

  .how-container h1 {
    max-width: none;
    font-size: clamp(44px, 4vw, 56px);
    line-height: 1;
  }

  .how-intro {
    max-width: 1120px;
    margin-top: var(--space-md);
    font-size: 18px;
    line-height: 1.35;
  }

  .how-intro p + p {
    margin-top: var(--space-xs);
  }

  .how-container .promise-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
    margin-top: 20px;
  }

  .how-container .promise-card {
    min-height: 150px;
    padding: var(--space-lg);
  }

  .how-container .card-number {
    margin-bottom: var(--space-sm);
  }

  .how-container .promise-card h3 {
    font-size: 24px;
  }

  .how-container .promise-card p {
    font-size: 16px;
    line-height: 1.35;
  }

  .how-container .action-row {
    margin-top: var(--space-md);
    padding-right: 220px;
  }
}

@media (max-width: 980px) {
  .how-screen {
    display: none;
  }

  .promise-mobile-screen {
    display: block;
  }

  .promise-mobile-screen {
    display: grid;
  }

  .header-inner {
    grid-template-columns: 140px 1fr 140px;
  }

  .hero-layout,
  .scene-layout,
  .form-layout,
  .profile-teaser-layout,
  .route-grid,
  .printer-workshop-layout,
  .stamp-brief-layout,
  .stamp-lab-layout,
  .stamp-test-layout,
  .stamp-refine-layout {
    grid-template-columns: 1fr;
  }

  .stamp-stage-copy {
    order: -1;
  }

  .stamp-preview-panel,
  .stamp-model-panel,
  .stamp-first-result {
    min-height: 390px;
  }

  .printer-workshop-layout {
    gap: var(--space-lg);
  }

  .printer-workshop-copy h1 {
    max-width: none;
  }

  .hero-media {
    min-height: 440px;
    order: -1;
  }

  .hero-copy {
    min-height: auto;
  }

  .scene-copy {
    position: static;
  }

  .profile-phone-panel {
    position: static;
    max-width: none;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 24px;
  }

  .header-inner,
  .container,
  .container.narrow,
  .container.medium {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    min-height: 64px;
    grid-template-columns: 116px 1fr;
  }

  .brand-logo {
    width: 110px;
  }

  .text-button {
    display: none;
  }

  .order-progress {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .progress-label {
    text-align: right;
  }

  .screen {
    padding: 88px 0 var(--space-2xl);
  }

  .task-progress {
    justify-content: flex-end;
    gap: 7px;
    font-size: 11px;
  }

  .task-progress__label {
    max-width: 165px;
    white-space: normal;
    text-align: right;
  }

  .task-progress__indicators {
    gap: 4px;
  }

  .task-progress__indicator {
    width: 15px;
    height: 15px;
    font-size: 9px;
  }

  .app.has-simulation-progress .screen {
    min-height: auto;
    padding-top: 80px;
  }

  .step-progress {
    margin-bottom: var(--space-sm);
  }

  .curator-response {
    grid-template-columns: 1fr;
  }

  .curator-response__label {
    width: max-content;
  }

  .curator-response .btn {
    width: 100%;
  }

  .task1-diagnosis-layout {
    grid-template-columns: 1fr;
  }

  .task1-curator-response,
  .task1-diagnosis-layout .task1-curator-response {
    grid-template-columns: 1fr;
  }

  .task1-curator-response__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .task1-diagnosis-layout .artifact {
    min-height: 240px;
  }

  .printer-workshop-screen {
    padding-bottom: 96px;
  }

  .printer-workshop-copy h1 {
    font-size: 38px;
  }

  .printer-chamber {
    height: 230px;
  }

  .printer-control-panel {
    grid-template-columns: 1fr;
  }

  .printer-physical-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-layout {
    min-height: auto;
    gap: var(--space-md);
  }

  .hero-media {
    min-height: 310px;
  }

  .hero-media img {
    object-position: 64% center;
  }

  .hero-people-grid img:first-child {
    object-position: 50% 44%;
  }

  .hero-people-grid img:last-child {
    object-position: 54% center;
  }

  .hero-copy,
  .work-panel,
  .brief-body,
  .promise-card,
  .result-card,
  .trust-card,
  .route-card,
  .form-panel {
    padding: var(--space-lg);
  }

  .lead-screen h1,
  .profile-teaser-screen h1 {
    font-size: 38px;
  }

  .lead-route-summary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-preview-card,
  .profile-locked-sections article {
    padding: var(--space-md);
  }

  .promise-grid,
  .selector-grid.two-col,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .selector-card {
    grid-template-columns: 24px 1fr;
    padding: var(--space-md);
  }

  .selector-meta {
    grid-column: 2;
    width: max-content;
  }

  .artifact {
    min-height: 230px;
  }

  .process-demo {
    width: 92%;
  }

  .process-guide {
    right: 18px;
    width: 150px;
  }

  .process-demo.is-tight .process-box {
    left: 94px;
  }

  .process-demo.is-working .process-box {
    left: 76px;
  }

  .prototype-demo {
    width: 210px;
  }

  .stamp-screen h1 {
    font-size: 38px;
  }

  .stamp-route-card,
  .stamp-preview-panel,
  .stamp-model-panel,
  .stamp-test-scene,
  .stamp-first-result {
    padding: var(--space-lg);
  }

  .stamp-route-card {
    min-height: 390px;
  }

  .stamp-shape-picker,
  .stamp-comparison-grid {
    grid-template-columns: 1fr;
  }

  .stamp-shape-button {
    grid-template-columns: 42px 1fr;
    justify-items: start;
    min-height: 64px;
  }

  .stamp-preview-panel,
  .stamp-model-panel {
    min-height: 330px;
  }

  .stamp-flat-mark {
    width: 230px;
    height: 170px;
  }

  .stamp-model {
    transform: scale(0.84);
  }

  .stamp-test-scene {
    min-height: 430px;
  }

  .stamp-curator-response,
  .stamp-comparison-screen .stamp-curator-response {
    grid-template-columns: 1fr;
  }

  .stamp-final-sign {
    align-items: flex-start;
  }

  .stamp-final-steps {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .action-row {
    width: 100%;
  }

  .btn-link {
    width: auto;
  }

  .engineering-menu__toggle {
    right: var(--space-md);
    bottom: var(--space-md);
  }

  .engineering-menu__panel {
    top: var(--space-xs);
    right: var(--space-xs);
    bottom: var(--space-xs);
    width: calc(100% - 16px);
    padding: var(--space-md);
  }
}

@media (min-width: 769px) {
  .case2-entry-screen,
  .case2-first-version-screen,
  .case2-requirements-screen,
  .case2-diagnosis-screen,
  .case2-correction-screen,
  .case2-result-screen {
    padding-top: 96px;
    padding-bottom: calc(var(--space-xl) + 20px);
  }

  .case2-entry-screen h1 {
    font-size: clamp(42px, 4.2vw, 56px);
  }

  .case2-entry-screen .lead,
  .case2-first-version-screen .lead {
    margin-top: var(--space-md);
    font-size: 18px;
    line-height: 1.4;
  }

  .case2-entry-screen .brief-visual,
  .case2-first-version-screen .brief-visual {
    min-height: 190px;
    padding: var(--space-md);
  }

  .case2-entry-screen .artifact,
  .case2-first-version-screen .artifact {
    min-height: 190px;
  }

  .case2-entry-screen .brief-body {
    padding: var(--space-lg);
  }

  .case2-entry-screen .brief-body .action-row {
    margin-top: var(--space-md);
  }

  .case2-metrics {
    gap: 8px;
    margin-top: var(--space-md);
  }

  .case2-metrics .stat-pill {
    font-size: 14px;
  }

  .case2-requirements-screen h1,
  .case2-diagnosis-screen h1,
  .case2-correction-screen h1,
  .case2-result-screen h1 {
    margin-top: var(--space-sm);
    font-size: clamp(48px, 4.8vw, 62px);
  }

  .case2-requirements-screen .lead,
  .case2-diagnosis-screen .lead,
  .case2-correction-screen .lead,
  .case2-result-screen .lead {
    margin-top: var(--space-sm);
    font-size: 20px;
    line-height: 1.35;
  }

  .case2-requirements-screen .selector-grid,
  .case2-diagnosis-screen .selector-grid,
  .case2-correction-screen .selector-grid {
    gap: 10px;
    margin-top: var(--space-md);
  }

  .case2-requirements-screen .selector-card,
  .case2-diagnosis-screen .selector-card,
  .case2-correction-screen .selector-card {
    min-height: 64px;
    padding: 10px var(--space-md);
  }

  .case2-requirements-screen .action-row,
  .case2-diagnosis-screen .action-row,
  .case2-correction-screen .action-row {
    margin-top: var(--space-sm);
  }

  .case2-first-version-screen h1 {
    font-size: clamp(38px, 3.4vw, 44px);
  }

  .case2-first-version-screen .scene-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
    gap: var(--space-lg);
  }

  .case2-first-version-screen .scene-copy .lead {
    margin-top: var(--space-sm);
    font-size: 16px;
  }

  .case2-first-version-screen .insight-card {
    margin-top: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
  }

  .case2-first-version-screen .action-row {
    margin-top: var(--space-sm);
  }

  .case2-result-grid {
    margin-top: var(--space-md);
  }

  .case2-result-grid .result-card {
    padding: var(--space-sm) var(--space-md);
  }

  .case2-result-grid .requirements {
    gap: 4px;
    margin-top: var(--space-sm);
    font-size: 17px;
  }

  .case2-result-screen .insight-card {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
  }

  .case2-result-screen .action-row {
    margin-top: var(--space-sm);
  }
}

/* Task 3: engineering workshop visual */
.stamp-screen {
  --stamp-workbench: #202020;
  --stamp-plastic: #f5f5f5;
  --stamp-muted: #b8b8b8;
}

.stamp-screen h1 {
  max-width: 13ch;
}

.stamp-technical-brief {
  display: grid;
  gap: 8px;
  margin: var(--space-lg) 0 0;
}

.stamp-technical-brief div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.stamp-technical-brief dt,
.stamp-technical-brief dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.stamp-technical-brief dt {
  font-weight: 600;
}

.stamp-route-card,
.stamp-preview-panel,
.stamp-model-panel,
.stamp-test-scene {
  color: var(--text-on-dark);
  background: var(--stamp-workbench);
  box-shadow: none;
}

.stamp-route-card {
  min-height: 470px;
  padding: var(--space-lg);
  align-content: center;
  gap: var(--space-md);
}

.stamp-route-card .stamp-model {
  margin-inline: auto;
}

.stamp-route {
  padding-top: var(--space-sm);
}

.stamp-route li {
  color: var(--text-on-dark);
}

.stamp-route li span {
  background: var(--primary);
}

.stamp-preview-caption {
  color: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.stamp-shape-button {
  min-height: 92px;
  color: var(--text);
  background: var(--surface);
}

.stamp-shape-button.is-selected {
  border-color: var(--primary);
  background: var(--bg);
}

.stamp-shape-button > span {
  border-color: var(--text);
}

.stamp-shape-button > span[data-shape="hexagon"] {
  background: var(--text);
}

.stamp-preview-panel,
.stamp-model-panel {
  min-height: 470px;
  padding: var(--space-lg);
}

.stamp-flat-mark {
  border-width: 6px;
  color: var(--text-on-dark);
  background: transparent;
}

.stamp-flat-mark[data-shape="hexagon"] {
  color: var(--text-on-dark);
  background: var(--primary);
}

.stamp-model {
  width: 330px;
  height: 300px;
  align-content: end;
  perspective: 800px;
}

.stamp-model__reference {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--stamp-muted);
  font-size: 12px;
  font-weight: 600;
}

.stamp-model__axis {
  position: absolute;
  z-index: 3;
  bottom: 8px;
  display: flex;
  align-items: center;
  color: var(--stamp-muted);
  font-size: 11px;
}

.stamp-model__axis::before {
  width: 42px;
  height: 1px;
  margin-right: 6px;
  background: currentColor;
  content: "";
}

.stamp-model__axis--x {
  left: 0;
}

.stamp-model__axis--z {
  left: 58px;
  transform: rotate(-52deg);
  transform-origin: left center;
}

.stamp-model__handle {
  top: 16px;
  width: 82px;
  height: 132px;
  border-radius: var(--radius-md);
  background: var(--stamp-plastic);
  box-shadow: none;
}

.stamp-model__base {
  width: 250px;
  height: 162px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: none;
  transform: rotateX(58deg) rotateZ(-5deg);
}

.stamp-model__face {
  width: 190px;
  height: 112px;
  border-width: var(--stamp-line-width);
  border-bottom-width: calc(var(--stamp-line-width) + var(--stamp-relief-lift));
  border-color: #ffffff;
  border-bottom-color: #302ee6;
  border-radius: var(--radius-md);
  color: var(--text-on-dark);
  background: var(--primary);
  box-shadow: none;
  font-weight: var(--stamp-letter-weight);
  transform: translateY(calc(var(--stamp-relief-lift) * -0.3));
  transition: border-width var(--motion-normal) var(--motion-easing), transform var(--motion-normal) var(--motion-easing);
}

.stamp-model[data-shape="round"] .stamp-model__face {
  border-radius: 50%;
}

.stamp-model[data-shape="hexagon"] .stamp-model__face {
  border: 0;
  background: var(--primary);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  transform: translateY(calc(var(--stamp-relief-lift) * -0.3));
}

.stamp-dimension {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
  background: #000000;
  font-size: 11px;
  line-height: 1.15;
}

.stamp-dimension strong {
  font-size: 13px;
}

.stamp-dimension--relief {
  top: 90px;
  right: 0;
}

.stamp-dimension--lines {
  right: 4px;
  bottom: 34px;
}

.stamp-model-legend span,
.stamp-version-chips span {
  color: var(--text-on-dark);
  background: #000000;
}

.stamp-version-chips--center {
  justify-content: center;
}

.stamp-controls {
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.stamp-control {
  padding: var(--space-md);
  gap: 8px;
  border: 0;
  background: var(--surface);
}

.stamp-control.is-recommended {
  border: 2px solid var(--primary);
  background: var(--surface);
}

.stamp-control em {
  min-width: 74px;
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  color: var(--text-on-dark);
  background: var(--text);
  text-align: center;
}

.stamp-control input[type="range"] {
  height: 28px;
  margin: 0;
  appearance: none;
  background: transparent;
}

.stamp-control input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: var(--radius-pill);
  background: #d8d8d8;
}

.stamp-control input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: var(--primary);
}

.stamp-control input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: var(--radius-pill);
  background: #d8d8d8;
}

.stamp-control input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
}

.stamp-control-scale {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
}

.stamp-control-scale small {
  color: var(--text);
  font-size: 11px;
}

.stamp-print-bed {
  border-color: var(--stamp-workbench);
  background: var(--surface);
}

.stamp-print-head {
  border-radius: var(--radius-sm);
  background: #000000;
}

.stamp-print-head::after {
  background: var(--primary);
}

.stamp-print-object {
  border-radius: var(--radius-md);
  color: var(--text);
  background: var(--stamp-plastic);
  font-weight: var(--stamp-letter-weight);
}

.stamp-print-scan {
  background: var(--primary);
  box-shadow: none;
}

.physical-stamp__handle {
  border-radius: var(--radius-md);
  background: var(--stamp-plastic);
}

.physical-stamp__face {
  border-width: var(--stamp-line-width);
  border-bottom-width: calc(var(--stamp-line-width) + var(--stamp-relief-lift));
  border-color: #ffffff;
  border-bottom-color: #302ee6;
  border-radius: var(--radius-md);
  color: var(--text-on-dark);
  background: var(--primary);
  box-shadow: none;
  font-weight: var(--stamp-letter-weight);
}

.stamp-clay-target {
  width: min(360px, 90%);
  height: 155px;
  border-radius: var(--radius-lg);
  color: var(--text);
  background: var(--stamp-plastic);
  box-shadow: none;
}

.stamp-clay-target i {
  border-color: #8f8f8f;
  border-radius: var(--radius-md);
}

.stamp-drag-hint {
  color: var(--text);
  background: var(--bg);
}

.stamp-result-visual {
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.stamp-test-scene.has-result {
  place-items: center;
  align-content: center;
}

.stamp-test-scene .stamp-result-visual {
  width: min(360px, 92%);
  min-height: 260px;
}

.stamp-test-scene .stamp-imprint {
  width: 230px;
  height: 145px;
}

.stamp-imprint {
  border-width: var(--stamp-line-width);
  color: var(--text);
  font-weight: var(--stamp-letter-weight);
}

.stamp-imprint[data-outcome="faint"]::after,
.stamp-imprint[data-outcome="damaged"] i,
.stamp-imprint[data-outcome="damaged"] i::before,
.stamp-imprint[data-outcome="damaged"] i::after {
  background: var(--surface);
}

.stamp-imprint[data-outcome="merged"] {
  border-width: calc(var(--stamp-line-width) + 3px);
  font-weight: var(--stamp-letter-weight);
}

.stamp-first-result {
  box-shadow: none;
}

.stamp-refine-model {
  height: 240px;
  color: var(--text-on-dark);
  background: var(--stamp-workbench);
}

.stamp-refine-model .stamp-model {
  transform: scale(0.72);
}

@media (max-width: 980px) {
  .stamp-model {
    width: min(330px, 100%);
    margin-inline: auto;
  }

  .stamp-route-card,
  .stamp-preview-panel,
  .stamp-model-panel,
  .stamp-test-scene {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .stamp-technical-brief div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .stamp-route-card,
  .stamp-preview-panel,
  .stamp-model-panel,
  .stamp-test-scene {
    min-height: 360px;
    padding: var(--space-md);
  }

  .stamp-model {
    width: 280px;
    height: 270px;
    transform: scale(0.9);
  }

  .stamp-dimension--relief {
    right: 8px;
  }

  .stamp-control > span:first-child {
    align-items: center;
  }

  .stamp-control-scale {
    gap: 6px;
  }
}

/* Mobile-first rebuild of the active 24-screen route.
   The existing desktop rules stay intact; this layer replaces the mobile
   composition component by component to avoid duplicating markup or logic. */
@media (max-width: 767px) {
  :root {
    --mobile-gutter: 16px;
    --mobile-section-gap: 24px;
  }

  html,
  body {
    min-width: 0;
  }

  body {
    font-size: 16px;
    line-height: 1.42;
  }

  button,
  input,
  select {
    min-width: 0;
  }

  h1,
  h2,
  h3 {
    max-width: none;
    overflow-wrap: anywhere;
  }

  h1,
  .hero-copy h1,
  .printer-workshop-copy h1,
  .stamp-screen h1,
  .lead-screen h1,
  .profile-teaser-screen h1 {
    font-size: clamp(30px, 9vw, 34px);
    line-height: 1.02;
  }

  h2 {
    font-size: 28px;
    line-height: 1.08;
  }

  h3,
  .promise-card h3,
  .practice-transition-card h3 {
    font-size: 22px;
  }

  .app-header {
    padding-top: env(safe-area-inset-top);
  }

  .header-inner {
    width: auto;
    min-height: 64px;
    margin-right: max(var(--mobile-gutter), env(safe-area-inset-right));
    margin-left: max(var(--mobile-gutter), env(safe-area-inset-left));
    padding-right: 50px;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
  }

  .brand-logo {
    width: 104px;
  }

  .text-button {
    display: none;
  }

  .order-progress {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .progress-label {
    font-size: 12px;
    line-height: 1.2;
    text-align: right;
  }

  .progress-track {
    height: 6px;
  }

  body.is-simulation-screen .header-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  body.is-simulation-screen .brand-button {
    display: none;
  }

  .task-progress {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
  }

  .task-progress__label {
    max-width: none;
    white-space: normal;
    text-align: left;
  }

  .task-progress__indicator {
    width: 17px;
    height: 17px;
    font-size: 10px;
  }

  .app,
  .screen {
    min-width: 0;
    min-height: 100dvh;
  }

  .screen,
  .app.has-simulation-progress .screen {
    padding-top: calc(78px + env(safe-area-inset-top));
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .screen-center {
    align-items: start;
  }

  .container,
  .container.narrow,
  .container.medium,
  .header-inner,
  .container.stage-desktop-container,
  .container.how-container {
    min-width: 0;
  }

  .container,
  .container.narrow,
  .container.medium,
  .container.stage-desktop-container,
  .container.how-container {
    width: auto;
    margin-right: max(var(--mobile-gutter), env(safe-area-inset-right));
    margin-left: max(var(--mobile-gutter), env(safe-area-inset-left));
  }

  .step-progress {
    margin-bottom: 12px;
  }

  .step-progress__inner p {
    font-size: 13px;
  }

  .lead,
  .hero-copy .lead,
  .stamp-screen .lead,
  .scene-copy .lead,
  .printer-workshop-copy .lead {
    max-width: none;
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.4;
  }

  .eyebrow,
  .order-badge,
  .mini-tag {
    padding: 7px 12px;
    font-size: 13px;
  }

  .eyebrow + h1,
  .eyebrow + h2,
  .order-badge + h1,
  .order-badge + h2 {
    margin-top: 16px;
  }

  .action-row,
  .hero-copy .action-row,
  .practice-transition-container .action-row,
  .stamp-final-screen .action-row,
  .stamp-comparison-screen .action-row {
    width: 100%;
    margin-top: 20px;
  }

  .btn {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px;
    line-height: 1.2;
  }

  .btn-link {
    width: auto;
  }

  .hero-layout,
  .scene-layout,
  .form-layout,
  .profile-teaser-layout,
  .route-grid,
  .printer-workshop-layout,
  .stamp-brief-layout,
  .stamp-lab-layout,
  .stamp-test-layout,
  .stamp-refine-layout {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--mobile-section-gap);
  }

  .hero-copy {
    order: 0;
    padding: 20px;
  }

  .hero-copy h1 {
    margin-top: 16px;
  }

  .hero-copy .meta-row {
    margin-top: 14px;
  }

  .hero-copy .stat-pill,
  .hero-media-caption span {
    padding: 6px 10px;
    font-size: 12px;
  }

  .hero-copy .hero-cta-note {
    font-size: 12px;
  }

  .hero-media {
    order: 0;
    min-height: 270px;
  }

  .hero-media-caption {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .hero-media-caption span {
    width: fit-content;
  }

  .selector-grid,
  .selector-grid.two-col,
  .promise-grid,
  .result-grid,
  .trust-grid,
  .stamp-comparison-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .onboarding-question-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .screen.onboarding-question-screen {
    padding-bottom: 24px;
  }

  .onboarding-question-copy::before {
    top: 66%;
    right: -54px;
    width: 190px;
    height: 190px;
    filter: blur(44px);
  }

  .onboarding-question-visual {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 20px;
  }

  .onboarding-question-visual img {
    object-fit: contain;
    object-position: center;
    transform: none;
  }

  .onboarding-question-container .selector-grid,
  .case-task-screen .selector-grid {
    gap: 8px;
    margin-top: 14px;
  }

  .onboarding-question-container .selector-grid {
    grid-auto-rows: 1fr;
  }

  .onboarding-question-container h1 {
    font-size: 30px;
    line-height: 1.04;
  }

  .onboarding-question-container .age-range-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 14px;
  }

  .onboarding-question-container .age-range-grid .selector-card {
    min-height: 48px;
    padding: 10px 12px;
  }

  .onboarding-question-container .age-range-grid .selector-card:last-child {
    grid-column: auto;
  }

  .onboarding-question-container .onboarding-progress + h1 {
    margin-top: 12px;
  }

  .onboarding-question-container .selector-card {
    min-height: 56px;
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 12px 14px;
  }

  .onboarding-question-container .selector-copy strong {
    font-size: 16px;
    line-height: 1.2;
  }

  @media (max-width: 360px) {
    .onboarding-question-container h1 {
      font-size: 28px;
    }
  }

  .onboarding-feedback {
    padding: 20px;
  }

  .onboarding-feedback__dialog {
    max-height: calc(100dvh - 40px);
    padding: 22px;
  }

  .onboarding-feedback__dialog h2 {
    margin-top: 16px;
    font-size: 28px;
    line-height: 1.06;
  }

  .onboarding-feedback__dialog p {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.35;
  }

  .onboarding-feedback__dialog .btn {
    min-height: 48px;
    margin-top: 18px;
  }

  .selector-card {
    min-height: 56px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .case-diagnosis-screen .selection-card {
    grid-template-columns: 24px minmax(0, 1fr) 24px;
  }

  .selector-copy strong {
    font-size: 16px;
    line-height: 1.25;
  }

  .selector-copy span {
    font-size: 14px;
  }

  .selector-meta {
    grid-column: 2;
  }

  .curator-response,
  .task1-curator-response,
  .stamp-curator-response,
  .stamp-comparison-screen .stamp-curator-response {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .curator-response__label {
    width: max-content;
  }

  .curator-response__copy h3,
  .task1-curator-response__heading h3 {
    font-size: 18px;
  }

  .curator-response__copy p,
  .task1-curator-response .curator-response__copy p {
    font-size: 14px;
  }

  .curator-response .btn,
  .task1-curator-response .btn {
    width: 100%;
    white-space: normal;
  }

  .personalization-overlay {
    align-items: end;
    padding: 12px max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .personalization-popup {
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 20px;
  }

  .personalization-popup h2 {
    font-size: 28px;
  }

  .personalization-popup p {
    font-size: 16px;
  }

  .scene-copy {
    position: static;
  }

  .brief-visual,
  .artifact {
    min-height: 220px;
    padding: 16px;
  }

  .brief-body,
  .work-panel,
  .promise-card,
  .result-card,
  .trust-card,
  .route-card,
  .form-panel {
    padding: 20px;
  }

  .task1-entry-screen .scene-copy,
  .task1-entry-screen .brief-card,
  .task1-entry-screen .brief-body,
  .case2-entry-screen .scene-copy,
  .case2-entry-screen .brief-card,
  .case2-entry-screen .brief-body,
  .case2-first-version-screen .scene-copy,
  .case2-first-version-screen .brief-card {
    display: contents;
  }

  .task1-entry-screen h1,
  .case2-entry-screen h1,
  .case2-first-version-screen h1 {
    order: 1;
  }

  .task1-entry-screen .scene-copy > .lead,
  .case2-entry-screen .scene-copy > .lead,
  .case2-first-version-screen .scene-copy > .lead {
    order: 2;
  }

  .case2-entry-screen .case2-metrics {
    order: 3;
  }

  .task1-entry-screen .brief-visual,
  .case2-entry-screen .brief-visual,
  .case2-first-version-screen .brief-visual {
    order: 4;
  }

  .task1-entry-screen .brief-body > *,
  .case2-entry-screen .brief-body > *,
  .case2-first-version-screen .case2-trial-results,
  .case2-first-version-screen .brief-body {
    order: 5;
  }

  .task1-entry-screen .action-row,
  .case2-entry-screen .action-row,
  .case2-first-version-screen .action-row {
    order: 6;
  }

  .task1-diagnosis-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .task1-diagnosis-layout .artifact {
    min-height: 210px;
  }

  .task1-check-grid .requirements,
  .task1-summary-grid .requirements,
  .requirements {
    margin-top: 12px;
    font-size: 15px;
  }

  .printer-workshop-layout {
    display: flex;
    flex-direction: column;
  }

  .printer-workshop-copy,
  .printer-workbench {
    width: 100%;
    min-width: 0;
  }

  .printer-chamber {
    height: 230px;
  }

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

  .printer-physical-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .printer-file,
  .printer-physical-controls button {
    min-height: 48px;
  }

  .process-demo {
    width: min(100%, 280px);
  }

  .case2-first-version-screen .brief-visual {
    min-height: 240px;
  }

  .lead-form-layout {
    align-items: start;
  }

  .lead-route-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 18px;
  }

  .field,
  .select-field {
    min-height: 52px;
    font-size: 16px;
  }

  .field-group + .field-group {
    margin-top: 16px;
  }

  .starting-analysis-screen {
    padding-top: calc(72px + env(safe-area-inset-top));
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .starting-analysis-title {
    max-width: 11ch;
    font-size: clamp(30px, 9vw, 36px);
    line-height: 1.02;
  }

  .starting-analysis-visual {
    width: min(100%, 44dvh, 370px);
    margin-top: 10px;
  }

  .starting-analysis-loader {
    width: min(100%, 300px);
    margin-top: 2px;
  }

  .starting-analysis-status {
    height: 31px;
    margin-top: 10px;
    font-size: clamp(18px, 5.2vw, 21px);
  }

  .starting-analysis-personalization {
    display: grid;
    width: min(100%, 370px);
    gap: 7px;
    margin-top: 16px;
    text-align: left;
  }

  .starting-analysis-personalization > p {
    margin: 0 0 1px;
    color: #777783;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .starting-analysis-personalization__step {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    min-height: 48px;
    padding: 7px 11px;
    overflow: hidden;
    border: 1px solid #dedee8;
    border-radius: 14px;
    background: #f7f7fa;
    opacity: 0.42;
    transform: translateY(3px);
    transition: opacity 240ms ease, transform 240ms ease, border-color 240ms ease, background 240ms ease;
  }

  .starting-analysis-personalization__step::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 20%, rgb(61 59 255 / 10%) 50%, transparent 80%);
    content: "";
    pointer-events: none;
    transform: translateX(-110%);
  }

  .starting-analysis-personalization__step i {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid #bdbdcc;
    border-radius: 50%;
    color: transparent;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
  }

  .starting-analysis-personalization__step span {
    min-width: 0;
  }

  .starting-analysis-personalization__step small,
  .starting-analysis-personalization__step strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .starting-analysis-personalization__step small {
    color: #777783;
    font-size: 10px;
    font-weight: 700;
  }

  .starting-analysis-personalization__step strong {
    margin-top: 1px;
    font-size: 13px;
    line-height: 1.15;
  }

  .starting-analysis-container[data-state="0"] [data-personalization-step="0"],
  .starting-analysis-container[data-state="1"] [data-personalization-step="0"],
  .starting-analysis-container[data-state="1"] [data-personalization-step="1"],
  .starting-analysis-container[data-state="2"] .starting-analysis-personalization__step {
    border-color: rgb(61 59 255 / 34%);
    background: #f3f2ff;
    opacity: 1;
    transform: translateY(0);
  }

  .starting-analysis-container[data-state="0"] [data-personalization-step="0"]::after,
  .starting-analysis-container[data-state="1"] [data-personalization-step="1"]::after,
  .starting-analysis-container[data-state="2"] [data-personalization-step="2"]::after {
    animation: starting-personalization-sweep 1100ms ease-in-out infinite;
  }

  .starting-analysis-container[data-state="1"] [data-personalization-step="0"] i,
  .starting-analysis-container[data-state="2"] .starting-analysis-personalization__step i {
    border-color: #3d3bff;
    background: #3d3bff;
    color: #fff;
  }

  @keyframes starting-personalization-sweep {
    to { transform: translateX(110%); }
  }

  .profile-preview-card,
  .profile-locked-sections article {
    padding: 16px;
  }

  .profile-locked-sections article {
    filter: none;
    opacity: 0.58;
  }

  .profile-phone-panel {
    position: static;
    max-width: none;
  }

  .artifact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 20px;
  }

  .artifact-mini {
    min-height: 92px;
    padding: 16px;
  }

  .consultation-summary {
    margin-top: 18px;
  }

  .consultation-summary div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 12px 14px;
  }

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

  .stamp-brief-layout,
  .stamp-lab-layout,
  .stamp-test-layout,
  .stamp-refine-layout {
    align-items: start;
  }

  .stamp-stage-copy {
    order: 0;
  }

  .stamp-route-card,
  .stamp-preview-panel,
  .stamp-model-panel,
  .stamp-test-scene {
    min-height: 320px;
    padding: 16px;
  }

  .stamp-route-card {
    gap: 16px;
  }

  .stamp-route li {
    font-size: 10px;
  }

  .stamp-route li span {
    width: 30px;
    height: 30px;
  }

  .stamp-brand-field {
    margin-top: 18px;
  }

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

  .stamp-shape-button {
    min-height: 56px;
    grid-template-columns: 40px minmax(0, 1fr);
    justify-items: start;
    padding: 10px 14px;
    font-size: 14px;
  }

  .stamp-preview-panel {
    min-height: 280px;
  }

  .stamp-model-panel {
    order: -1;
    min-height: 310px;
  }

  .stamp-flat-mark {
    width: min(230px, 100%);
    height: 170px;
  }

  .stamp-model {
    width: min(270px, 100%);
    height: 250px;
    transform: scale(0.86);
  }

  .stamp-control {
    padding: 14px;
  }

  .stamp-control input[type="range"] {
    height: 44px;
  }

  .stamp-control input[type="range"]::-webkit-slider-thumb {
    width: 30px;
    height: 30px;
    margin-top: -13px;
  }

  .stamp-control input[type="range"]::-moz-range-thumb {
    width: 30px;
    height: 30px;
  }

  .stamp-test-layout .stamp-stage-copy {
    display: contents;
  }

  .stamp-test-layout .stamp-stage-copy h1 {
    order: 1;
  }

  .stamp-test-layout .stamp-stage-copy .lead {
    order: 2;
  }

  .stamp-test-layout .stamp-version-chips {
    order: 3;
  }

  .stamp-test-layout .stamp-test-scene {
    order: 4;
  }

  .stamp-test-layout .stamp-test-fallback,
  .stamp-test-layout .stamp-curator-response {
    order: 5;
  }

  .stamp-test-scene {
    min-height: 350px;
  }

  .physical-stamp {
    width: 160px;
    height: 170px;
  }

  .physical-stamp__face {
    width: 150px;
    height: 100px;
  }

  .stamp-clay-target {
    width: min(270px, 94%);
  }

  .stamp-test-fallback {
    margin-top: 0;
  }

  .stamp-print-bed {
    height: 260px;
    margin-top: 20px;
    border-width: 12px;
  }

  .stamp-print-object {
    width: 190px;
    height: 125px;
  }

  .stamp-first-result {
    min-height: 0;
  }

  .stamp-refine-model {
    height: 200px;
  }

  .stamp-comparison-grid article,
  .stamp-result-summary {
    min-width: 0;
  }

  .stamp-final-sign {
    align-items: flex-start;
  }

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

  .engineering-menu__toggle {
    top: calc(10px + env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    bottom: auto;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    overflow: hidden;
    border-radius: 50%;
    padding: 0;
    font-size: 0;
  }

  .engineering-menu__toggle::before {
    content: "⚙";
    font-size: 20px;
    line-height: 1;
  }

  .engineering-menu__panel {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    width: auto;
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 16px;
  }
}

@media (max-width: 340px) {
  :root {
    --mobile-gutter: 12px;
  }

  h1,
  .hero-copy h1,
  .printer-workshop-copy h1,
  .stamp-screen h1,
  .lead-screen h1,
  .profile-teaser-screen h1 {
    font-size: 28px;
  }

  .onboarding-question-container h1 {
    font-size: 28px;
  }

  .hero-copy,
  .brief-body,
  .work-panel,
  .promise-card,
  .result-card,
  .trust-card,
  .route-card,
  .form-panel {
    padding: 16px;
  }

  .task-progress__label {
    font-size: 11px;
  }

  .starting-analysis-title {
    font-size: 30px;
  }

  .starting-analysis-visual {
    width: min(100%, 41dvh, 306px);
  }

  .starting-analysis-loader {
    width: min(100%, 280px);
  }

  .starting-analysis-status {
    font-size: 17px;
  }

  .stamp-control-scale small {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .starting-analysis-asset,
  .starting-analysis-asset.is-active {
    animation: none !important;
    transform: none !important;
  }

  .starting-analysis-scan-line,
  .starting-analysis-print-pulse {
    animation: none !important;
  }

  .starting-analysis-print-pulse {
    transform: translateX(-50%) !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Task 3 sign editor: final cascade overrides for the adaptive hand stamp. */
.stamp-editor-screen .stamp-editor-preview-panel {
  min-height: 520px;
  padding: 14px;
}

.stamp-editor-screen .stamp-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.stamp-editor-screen .stamp-control {
  min-width: 0;
  padding: 12px;
}

.stamp-editor-screen .stamp-control-scale small:nth-child(2) {
  display: none;
}

.stamp-editor-screen .action-row {
  margin-top: 14px;
}

.stamp-editor-screen .stamp-editor-visual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(220px, 1fr) minmax(170px, .72fr);
}

.stamp-editor-screen .stamp-editor-view--imprint {
  grid-column: 1 / -1;
}

.stamp-editor-screen .stamp-top-face,
.stamp-editor-screen .stamp-live-imprint {
  width: min(var(--stamp-face-width, 188px), calc(100% - 24px));
  min-width: 168px;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  font-size: clamp(19px, calc(30px - var(--stamp-text-length, 4) * .65px), 26px);
  letter-spacing: .045em;
}

.stamp-editor-screen .stamp-top-face {
  height: 104px;
  padding: 18px 22px;
}

.stamp-editor-screen .stamp-live-imprint {
  position: relative;
  display: grid;
  place-items: center;
  height: 84px;
  margin: auto;
  padding: 16px 20px;
  border: var(--stamp-line-width) solid rgb(83 47 30 / 64%);
  border-radius: 13px;
  color: rgb(78 43 25 / 76%);
  background: #b87854;
  box-shadow: inset 0 2px 4px rgb(57 31 18 / 30%);
  font-weight: var(--stamp-letter-weight);
  line-height: 1;
}

.stamp-editor-screen .stamp-live-imprint i {
  position: absolute;
  inset: 15%;
  border: max(1px, calc(var(--stamp-line-width) * .7)) solid currentColor;
  border-radius: inherit;
  opacity: .5;
}

.stamp-editor-screen .stamp-editor-visual[data-shape="rectangle"] .stamp-top-face,
.stamp-editor-screen .stamp-editor-visual[data-shape="rectangle"] .stamp-live-imprint {
  border-radius: 5px;
}

.stamp-editor-screen .stamp-editor-visual[data-shape="capsule"] .stamp-top-face,
.stamp-editor-screen .stamp-editor-visual[data-shape="capsule"] .stamp-live-imprint {
  border-radius: 999px;
}

.stamp-editor-screen .stamp-section-object {
  width: min(330px, 100%);
  height: 142px;
}

.stamp-editor-screen .stamp-section-handle {
  top: 7px;
  width: 78px;
  height: 54px;
  border-radius: 30px 30px 16px 16px / 22px 22px 14px 14px;
}

.stamp-editor-screen .stamp-section-collar {
  top: 55px;
  width: 48px;
  height: 18px;
}

.stamp-editor-screen .stamp-section-base {
  top: 69px;
  width: min(var(--stamp-face-width, 188px), calc(100% - 48px));
  height: 24px;
}

.stamp-editor-screen .stamp-section-relief {
  top: 91px;
  width: min(calc(var(--stamp-face-width, 188px) - 42px), calc(100% - 84px));
}

.stamp-editor-screen .stamp-section-surface {
  top: calc(94px + var(--stamp-relief-lift));
  width: min(calc(var(--stamp-face-width, 188px) + 22px), 100%);
}

.stamp-editor-screen .stamp-section-label {
  position: absolute;
  z-index: 4;
  padding: 2px 5px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  color: #d8dbdc;
  background: rgb(28 29 30 / 82%);
  font-size: 8px;
  font-weight: 750;
  line-height: 1.1;
}

.stamp-editor-screen .stamp-section-label--handle { left: calc(50% + 43px); top: 17px; }
.stamp-editor-screen .stamp-section-label--neck { left: calc(50% + 30px); top: 55px; }
.stamp-editor-screen .stamp-section-label--plate { right: 2px; top: 74px; }
.stamp-editor-screen .stamp-section-label--relief { left: 2px; top: 98px; }

.stamp-model__base {
  width: min(calc(var(--stamp-face-width, 188px) + 30px), 320px);
}

.stamp-model__face,
.physical-stamp__face,
.stamp-imprint {
  width: min(var(--stamp-face-width, 188px), calc(100% - 16px));
  min-width: 168px;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  font-size: clamp(18px, calc(29px - var(--stamp-text-length, 4) * .55px), 25px);
}

.physical-stamp {
  width: min(calc(var(--stamp-face-width, 188px) + 30px), 320px);
  height: 172px;
}

.physical-stamp__handle {
  top: 4px;
  width: 80px;
  height: 66px;
  border-radius: 32px 32px 17px 17px / 23px 23px 15px 15px;
}

.physical-stamp__handle::after {
  position: absolute;
  inset: 20px 17px 10px;
  border-right: 4px solid rgb(255 255 255 / 22%);
  border-left: 4px solid rgb(255 255 255 / 22%);
  border-radius: 8px;
  content: "";
}

.physical-stamp__face {
  height: 90px;
  padding: 14px 18px;
}

.stamp-model[data-shape="rectangle"] .stamp-model__face,
.physical-stamp[data-shape="rectangle"] .physical-stamp__face,
.stamp-imprint[data-shape="rectangle"],
.stamp-flat-mark[data-shape="rectangle"] {
  border-radius: 5px;
}

.stamp-model[data-shape="capsule"] .stamp-model__face,
.physical-stamp[data-shape="capsule"] .physical-stamp__face,
.stamp-imprint[data-shape="capsule"],
.stamp-flat-mark[data-shape="capsule"] {
  border-radius: 999px;
}

@media (max-width: 640px) {
  .stamp-editor-screen .stamp-editor-preview-panel {
    min-height: 650px;
    padding: 10px;
  }

  .stamp-editor-screen .stamp-editor-visual {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(190px, auto));
  }

  .stamp-editor-screen .stamp-editor-view--imprint {
    grid-column: auto;
  }

  .stamp-editor-screen .stamp-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .stamp-editor-screen .stamp-control-scale small:nth-child(2) {
    display: inline;
  }

  .stamp-editor-screen .stamp-top-face,
  .stamp-editor-screen .stamp-live-imprint {
    width: min(var(--stamp-face-width, 188px), calc(100% - 12px));
    min-width: min(168px, calc(100% - 12px));
  }

  .stamp-editor-screen .stamp-top-face,
  .stamp-editor-screen .stamp-section-object {
    transform: none;
  }

  .stamp-editor-screen .stamp-brand-meta {
    align-items: flex-start;
  }
}

/* Task 3: interactive line-thickness tuning. */
.stamp-line-tuning-container {
  padding-top: 8px;
  padding-bottom: 18px;
}

.stamp-line-tuning-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
  align-items: end;
  gap: 8px 28px;
}

.stamp-line-tuning-head .eyebrow {
  grid-column: 1 / -1;
  width: max-content;
}

.stamp-line-tuning-head h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(38px, 4vw, 54px);
  line-height: .98;
}

.stamp-line-tuning-head .lead {
  max-width: 48ch;
  margin: 0;
  font-size: 16px;
}

.stamp-line-tuning-preview {
  margin-top: 14px;
  padding: 10px;
}

.stamp-line-tuning-preview .stamp-editor-visual {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 190px;
  gap: 8px;
}

.stamp-line-tuning-preview .stamp-editor-view {
  min-height: 190px;
  padding: 10px;
}

.stamp-line-tuning-preview .stamp-editor-view--imprint {
  grid-column: auto;
}

.stamp-line-tuning-preview .stamp-top-face,
.stamp-line-tuning-preview .stamp-section-object {
  transform: scale(.74);
}

.stamp-line-tuning-preview .stamp-live-imprint {
  width: min(var(--stamp-face-width, 188px), calc(100% - 10px));
  min-width: min(156px, calc(100% - 10px));
  height: 74px;
  padding: 12px;
  font-size: clamp(17px, calc(26px - var(--stamp-text-length, 4) * .55px), 22px);
}

.stamp-line-tuning-preview .stamp-top-face::after,
.stamp-line-tuning-preview .stamp-live-imprint::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  content: "";
  opacity: 0;
  transition: opacity var(--motion-fast) var(--motion-easing);
}

.stamp-line-tuning-preview[data-line-state="thin"] .stamp-top-face > span,
.stamp-line-tuning-preview[data-line-state="thin"] .stamp-live-imprint > span {
  opacity: .48;
  filter: blur(.25px);
}

.stamp-line-tuning-preview[data-line-state="thin"] .stamp-top-face::after {
  opacity: 1;
  background: linear-gradient(
    to bottom,
    transparent 0 35%,
    rgb(216 213 204 / 88%) 35% 39%,
    transparent 39% 62%,
    rgb(216 213 204 / 88%) 62% 66%,
    transparent 66%
  );
}

.stamp-line-tuning-preview[data-line-state="thin"] .stamp-live-imprint::after {
  opacity: 1;
  background: linear-gradient(
    to bottom,
    transparent 0 36%,
    rgb(184 120 84 / 92%) 36% 41%,
    transparent 41% 63%,
    rgb(184 120 84 / 92%) 63% 68%,
    transparent 68%
  );
}

.stamp-line-tuning-preview[data-line-state="thin"] .stamp-section-relief i:nth-child(even) {
  opacity: .16;
  transform: scaleX(.45);
}

.stamp-line-tuning-preview[data-line-state="suitable"] .stamp-top-face,
.stamp-line-tuning-preview[data-line-state="suitable"] .stamp-live-imprint {
  box-shadow: 0 0 0 4px rgb(116 170 120 / 34%), inset 0 0 0 2px rgb(255 255 255 / 18%);
}

.stamp-line-tuning-preview[data-line-state="thick"] .stamp-top-face > span,
.stamp-line-tuning-preview[data-line-state="thick"] .stamp-live-imprint > span {
  font-weight: 900;
  letter-spacing: -.1em;
  text-shadow: 1px 0 currentColor, -1px 0 currentColor;
}

.stamp-line-tuning-preview[data-line-state="thick"] .stamp-top-face i,
.stamp-line-tuning-preview[data-line-state="thick"] .stamp-live-imprint i {
  inset: 28%;
  box-shadow: 0 0 0 3px currentColor;
}

.stamp-line-tuning-preview[data-line-state="thick"] .stamp-section-relief {
  justify-content: center;
  gap: 4px;
}

.stamp-line-tuning-preview[data-line-state="thick"] .stamp-section-relief i {
  min-width: 12px;
}

.stamp-line-tuning-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
  gap: 12px;
  margin-top: 12px;
}

.stamp-line-control {
  display: grid;
  gap: 7px;
  padding: 12px 16px;
  border: 1px solid #d8d8d5;
  border-radius: 16px;
  background: #f2f2f0;
}

.stamp-line-control__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stamp-line-control__head label {
  font-size: 16px;
}

.stamp-line-control__head output {
  min-width: 76px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: #111;
  font-size: 15px;
  font-weight: 750;
  text-align: center;
}

.stamp-line-range-shell {
  position: relative;
  height: 34px;
  display: grid;
  align-items: center;
}

.stamp-line-range-shell::after {
  position: absolute;
  z-index: 1;
  bottom: 2px;
  left: 0;
  width: var(--stamp-range-progress, 20%);
  height: 2px;
  border-radius: 999px;
  background: #3f3cf2;
  content: "";
  pointer-events: none;
}

.stamp-line-range-shell input[type="range"] {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 34px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}

.stamp-line-range-shell input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid #c6c6c2;
  border-radius: 999px;
  background: linear-gradient(to right, #dededb 0 40%, #91c99a 40% 60%, #dededb 60% 100%);
}

.stamp-line-range-shell input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border: 3px solid #fff;
  border-radius: 50%;
  appearance: none;
  background: #3f3cf2;
  box-shadow: 0 2px 7px rgb(0 0 0 / 25%);
}

.stamp-line-range-shell input[type="range"]::-moz-range-track {
  height: 8px;
  border: 1px solid #c6c6c2;
  border-radius: 999px;
  background: linear-gradient(to right, #dededb 0 40%, #91c99a 40% 60%, #dededb 60% 100%);
}

.stamp-line-range-shell input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #3f3cf2;
  box-shadow: 0 2px 7px rgb(0 0 0 / 25%);
}

.stamp-line-range-shell input[type="range"]:focus-visible {
  outline: 3px solid rgb(63 60 242 / 28%);
  outline-offset: 3px;
  border-radius: 999px;
}

.stamp-line-range-values,
.stamp-line-range-zones {
  display: grid;
  align-items: start;
}

.stamp-line-range-values {
  grid-template-columns: 1fr 1fr;
  margin-top: -4px;
  font-size: 12px;
  font-weight: 700;
}

.stamp-line-range-values span:last-child { text-align: right; }
.stamp-line-range-values small { display: block; color: #6d706e; font-size: 10px; font-weight: 500; }

.stamp-line-range-zones {
  grid-template-columns: 2fr 1fr 2fr;
  gap: 5px;
}

.stamp-line-range-zones span {
  min-width: 0;
  padding: 5px 4px;
  border-radius: 7px;
  color: #5b5f5c;
  background: #e4e4e1;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
}

.stamp-line-range-zones span:nth-child(2) {
  color: #245f36;
  background: #dcefe0;
}

.stamp-line-range-help {
  margin: 0;
  color: #666b68;
  font-size: 11px;
  line-height: 1.25;
}

.stamp-line-tuning-result {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d8d8d5;
  border-radius: 16px;
  background: #fff;
}

.stamp-line-tuning-result .stamp-line-status {
  margin: 0;
}

.stamp-line-tuning-result .action-row {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}

.stamp-line-cta-reason {
  margin: 0;
  color: #76513f;
  font-size: 12px;
  line-height: 1.25;
}

.stamp-line-cta-reason.is-suitable { color: #286244; }

@media (max-width: 980px) {
  .stamp-line-tuning-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .stamp-line-tuning-preview .stamp-editor-visual {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stamp-line-tuning-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .stamp-line-tuning-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 0;
  }

  .stamp-line-tuning-head h1 {
    font-size: 36px;
  }

  .stamp-line-tuning-head .lead {
    margin-top: 4px;
    font-size: 15px;
  }

  .stamp-line-tuning-controls {
    order: 2;
    margin-top: 0;
  }

  .stamp-line-tuning-preview {
    order: 3;
    margin-top: 0;
  }

  .stamp-line-tuning-preview .stamp-editor-visual {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, 188px);
  }

  .stamp-line-tuning-preview .stamp-editor-view {
    min-height: 188px;
  }

  .stamp-line-control {
    padding: 14px;
  }

  .stamp-line-range-shell {
    height: 48px;
  }

  .stamp-line-range-shell input[type="range"] {
    height: 48px;
  }

  .stamp-line-range-shell input[type="range"]::-webkit-slider-thumb {
    width: 32px;
    height: 32px;
    margin-top: -13px;
  }

  .stamp-line-range-shell input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
  }

  .stamp-line-range-zones {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .stamp-line-range-zones span {
    font-size: 9px;
  }

  .stamp-line-tuning-result .action-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 900px) and (max-height: 820px) {
  .app.has-simulation-progress .stamp-screen.stamp-editor-screen {
    padding-top: 60px;
    padding-bottom: 24px;
  }
}

/* Hero: isolated live preview of the 3D-printing workflow. */
.hero-product-preview {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 520px;
  grid-template-rows: 46px minmax(0, 1fr) 54px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: inherit;
  color: #f7f7f4;
  background: #101214;
  box-shadow: 0 28px 70px rgb(23 27 31 / 24%);
}

.hero-product-preview__topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: #17191b;
  padding: 0 18px;
  color: #aeb2b4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}

.hero-product-preview__topbar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-product-preview__topbar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cdff7a;
  box-shadow: 0 0 0 4px rgb(205 255 122 / 11%);
}

.hero-product-preview__topbar strong {
  color: #cdff7a;
  font-size: 9px;
}

.hero-product-preview__viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-demo-scene {
  position: absolute;
  inset: 0;
  transition: opacity 360ms ease, transform 480ms ease;
}

.hero-demo-scene--printer {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.hero-demo-scene--result {
  z-index: 2;
  overflow: hidden;
  background: #0d0f11;
  opacity: 0;
  transform: scale(1.035);
  pointer-events: none;
}

.hero-product-preview[data-demo-state="result"] .hero-demo-scene--printer {
  opacity: 0;
  transform: scale(.975);
}

.hero-product-preview[data-demo-state="result"] .hero-demo-scene--result {
  opacity: 1;
  transform: scale(1);
}

.hero-demo-scene--printer .fdm-scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-demo-scene--printer .fdm-scene__heading,
.hero-demo-scene--printer .fdm-panel,
.hero-demo-scene--printer .fdm-scene__speed-control {
  display: none;
}

.hero-demo-scene--printer .fdm-scene__visual {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-demo-scene--printer .fdm-printer {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.hero-product-preview[data-demo-state="model"] .fdm-print-part__model {
  clip-path: inset(0);
  opacity: .2;
  filter: grayscale(1) brightness(1.45) drop-shadow(0 0 9px rgb(205 255 122 / 38%));
}

.hero-product-preview[data-demo-state="model"] .fdm-print-part {
  outline: 1px dashed rgb(205 255 122 / 55%);
  outline-offset: 4px;
}

.hero-demo-scene--result .installation-scene__heading,
.hero-demo-scene--result .installation-scene__topline,
.hero-demo-scene--result .installation-machine__field-action {
  display: none;
}

.hero-demo-scene--result .installation-scene,
.hero-demo-scene--result .installation-scene__machine-card,
.hero-demo-scene--result .installation-machine {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.hero-demo-scene--result .installation-scene__machine-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-demo-scene--result .installation-machine {
  transform: scale(1.08);
  transform-origin: 50% 38%;
}

.hero-model-choice {
  position: absolute;
  z-index: 11;
  top: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: 54px 1fr 24px;
  align-items: center;
  gap: 10px;
  min-width: 252px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 14px;
  background: rgb(14 16 18 / 88%);
  padding: 9px 10px;
  box-shadow: 0 12px 28px rgb(0 0 0 / 28%);
  transition: opacity 220ms ease, transform 260ms ease;
  backdrop-filter: blur(12px);
}

.hero-product-preview:not([data-demo-state="model"]) .hero-model-choice {
  opacity: 0;
  transform: translateY(-6px);
}

.hero-printer-badge {
  position: absolute;
  z-index: 11;
  top: 10%;
  right: auto;
  left: 24%;
  display: grid;
  gap: 2px;
  border-radius: 16px;
  background: #cdff7a;
  padding: 12px 16px;
  color: #17200b;
  border: 2px solid #b8ff4e;
  box-shadow: 0 14px 30px rgb(0 0 0 / 28%), 0 0 24px rgb(205 255 122 / 28%);
  opacity: 0;
  transform: translate3d(12px, -50%, 0) scale(.94);
  transition:
    opacity 280ms ease,
    transform 360ms cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}

.hero-printer-badge span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
}

.hero-printer-badge strong {
  font-size: 17px;
  line-height: 1;
}

.hero-product-preview:is([data-demo-state="printing"], [data-demo-state="result"]) .hero-printer-badge {
  opacity: 1;
  transform: translate3d(0, -50%, 0) scale(1);
  transition-delay: 650ms;
}

.hero-model-choice img {
  width: 54px;
  height: 44px;
  object-fit: contain;
  filter: brightness(1.15) drop-shadow(0 5px 5px rgb(0 0 0 / 42%));
}

.hero-model-choice span {
  display: grid;
  gap: 3px;
}

.hero-model-choice small {
  color: #9ba1a3;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .1em;
}

.hero-model-choice strong {
  color: #fff;
  font-size: 11px;
}

.hero-model-choice i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #cdff7a;
  color: #17200b;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.hero-demo-hud {
  position: absolute;
  z-index: 12;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.hero-demo-status {
  display: grid;
  gap: 4px;
  min-width: 210px;
  border: 1px solid rgb(205 255 122 / 44%);
  border-radius: 14px;
  background: rgb(14 16 18 / 95%);
  padding: 12px 14px;
  box-shadow: 0 12px 28px rgb(0 0 0 / 34%), 0 0 22px rgb(205 255 122 / 12%);
  backdrop-filter: blur(12px);
}

.hero-demo-status > span {
  color: #cdff7a;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
}

.hero-demo-status strong {
  color: #fff;
  font-size: 15px;
}

.hero-demo-status small {
  color: #aeb2b4;
  font-size: 10px;
}

.hero-demo-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  border: 1px solid #cdff7a;
  border-radius: 12px;
  background: #cdff7a;
  padding: 0 15px;
  color: #17200b;
  font: 700 12px/1 Graphik, Arial, sans-serif;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 180ms ease;
}

.hero-demo-action:hover,
.hero-demo-action:focus-visible {
  box-shadow: 0 0 0 4px rgb(205 255 122 / 16%);
  transform: translateY(-1px);
}

.hero-product-preview:not([data-demo-state="model"]) .hero-demo-action {
  opacity: 0;
  pointer-events: none;
}

.hero-product-preview[data-demo-state="result"] .hero-demo-status {
  border-color: rgb(205 255 122 / 36%);
  background: rgb(14 16 18 / 90%);
}

.hero-product-preview[data-demo-state="result"] .hero-demo-status > span { color: #cdff7a; }

.hero-product-preview__timeline {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgb(255 255 255 / 10%);
  background: #17191b;
  padding: 0 18px;
}

.hero-product-preview__timeline > span {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  color: #777c7f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: color 180ms ease;
}

.hero-product-preview__timeline i {
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #303437;
}

.hero-product-preview__timeline i::after {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #cdff7a;
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-product-preview__timeline > span.is-active { color: #f4f5f2; }
.hero-product-preview__timeline > span.is-active i::after { opacity: 1; transform: scaleX(1); transition: transform 260ms ease; }

@media (max-width: 980px) {
  .hero-media { order: 0; }

  .hero-product-preview {
    min-height: 480px;
  }
}

@media (max-width: 767px) {
  .hero-product-preview {
    min-height: 350px;
    grid-template-rows: 40px minmax(0, 1fr) 46px;
  }

  .hero-product-preview__topbar {
    padding: 0 12px;
  }

  .hero-product-preview__topbar span,
  .hero-product-preview__topbar strong {
    font-size: 8px;
  }

  .hero-demo-hud {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .hero-demo-status {
    min-width: 0;
    max-width: calc(100% - 54px);
    padding: 9px 10px;
  }

  .hero-demo-status strong { font-size: 13px; }
  .hero-demo-status small { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

  .hero-demo-action {
    display: none;
    width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .hero-demo-action span { font-size: 16px; }

  .hero-model-choice {
    top: 10px;
    right: 10px;
    grid-template-columns: 40px 1fr 20px;
    gap: 7px;
    min-width: 196px;
    padding: 7px 8px;
  }

  .hero-model-choice img {
    width: 40px;
    height: 34px;
  }

  .hero-model-choice strong {
    font-size: 9px;
  }

  .hero-model-choice i {
    width: 18px;
    height: 18px;
  }

  .hero-printer-badge {
    top: 35%;
    right: 10px;
    left: auto;
    border-radius: 12px;
    padding: 9px 11px;
  }

  .hero-printer-badge span {
    font-size: 7px;
  }

  .hero-printer-badge strong {
    font-size: 13px;
  }

  .hero-product-preview__timeline {
    padding: 0 12px;
  }

  .hero-product-preview__timeline > span {
    gap: 5px;
    font-size: 8px;
  }
}

@media (max-width: 420px) {
  .hero-product-preview {
    min-height: 322px;
  }

  .hero-demo-scene--printer .fdm-printer {
    transform: scale(1.08);
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero-demo-scene,
  .hero-model-choice,
  .hero-printer-badge,
  .hero-product-preview__timeline i::after {
    transition: none;
  }

  .hero-product-preview:is([data-demo-state="printing"], [data-demo-state="result"]) .hero-printer-badge {
    transition-delay: 0s;
  }
}

/* Hero workshop visual: preserve copy width before scaling the visual. */
@media (min-width: 981px) {
  .hero-layout {
    width: min(1280px, calc(100% - 48px));
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    gap: clamp(20px, 2vw, 28px);
  }

  .hero-copy {
    padding: clamp(32px, 3vw, 44px);
  }

  .hero-copy h1 {
    max-width: 11.8em;
    font-size: clamp(42px, 3.35vw, 50px);
    line-height: 1;
    text-wrap: balance;
  }

  .hero-copy .lead {
    max-width: 560px;
  }
}

.hero-product-preview {
  --hero-reveal-top: 73.54%;
  --hero-head-x: 0%;
  --hero-head-y: 26.91%;
  --hero-shadow-opacity: .08;
  min-height: 500px;
  background: #e9eaed;
}

.hero-product-preview__viewport {
  background: #e9eaed;
}

.hero-workshop-media {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  background: #e9eaed;
  transform: translateY(-50%);
}

.hero-workshop-poster,
.hero-workshop-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #e9eaed;
}

.hero-workshop-poster {
  z-index: 0;
  opacity: 1;
  transition: opacity 320ms ease;
}

.hero-workshop-poster img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  object-position: center;
}

.hero-workshop-stage {
  z-index: 1;
  opacity: 0;
  transition: opacity 320ms ease;
}

.hero-product-preview.is-animation-ready .hero-workshop-poster {
  opacity: 0;
}

.hero-product-preview.is-animation-ready .hero-workshop-stage {
  opacity: 1;
}

.hero-media .hero-workshop-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.hero-workshop-layer--base { z-index: 1; }

.hero-workshop-layer--shadow {
  z-index: 2;
  opacity: var(--hero-shadow-opacity);
  transition: opacity 90ms linear;
}

.hero-workshop-layer--organizer {
  z-index: 3;
  clip-path: inset(var(--hero-reveal-top) 0 0 0);
  transition: clip-path 90ms linear;
}

.hero-workshop-layer--head {
  z-index: 4;
  transform: translate3d(var(--hero-head-x), var(--hero-head-y), 0);
  transition: transform 90ms linear;
}

.hero-model-choice {
  grid-template-columns: minmax(0, 1fr) 24px;
  min-width: 232px;
}

.hero-model-choice span {
  min-width: 0;
}

@media (min-width: 900px) and (max-height: 820px) {
  .hero-layout {
    min-height: calc(100vh - 132px);
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    gap: 20px;
  }

  .hero-copy {
    padding: 24px 32px;
  }

  .hero-copy h1 {
    max-width: 12.4em;
    margin-top: 16px;
    font-size: clamp(40px, 3.1vw, 44px);
    line-height: 1;
  }

  .hero-copy .lead {
    margin-top: 12px;
    font-size: 17px;
  }

  .hero-copy .meta-row,
  .hero-copy .action-row {
    margin-top: 10px;
  }

  .hero-copy .hero-cta-note {
    margin-top: 6px;
  }

  .hero-media,
  .hero-product-preview {
    min-height: 450px;
  }
}

@media (max-width: 980px) {
  .hero-product-preview {
    min-height: 430px;
  }
}

@media (max-width: 767px) {
  .hero-product-preview {
    min-height: 350px;
  }

  .hero-copy h1,
  .hero-copy .lead,
  .hero-copy .hero-cta-note {
    width: 100%;
  }

  .hero-model-choice {
    grid-template-columns: minmax(0, 1fr) 20px;
    min-width: 190px;
  }
}

@media (max-width: 420px) {
  .hero-product-preview {
    min-height: 322px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-workshop-poster,
  .hero-workshop-stage,
  .hero-workshop-layer,
  .hero-screen .btn-primary::after {
    animation: none;
    transition: none;
  }
}

.hero-mobile-action {
  display: none;
}

.hero-screen {
  background:
    radial-gradient(
      circle at 85% 35%,
      rgba(101, 76, 255, 0.22),
      transparent 38%
    ),
    radial-gradient(
      circle at 10% 80%,
      rgba(90, 170, 255, 0.14),
      transparent 42%
    ),
    linear-gradient(
      160deg,
      #ffffff 0%,
      #f5f4ff 55%,
      #f1f5ff 100%
    );
}

@media (min-width: 768px) {
  .hero-screen .hero-copy {
    border: 1px solid rgba(75, 62, 255, 0.08);
    background: rgba(248, 248, 250, 0.70);
  }
}

/* Mobile hero: one compact product entry point, not two stacked cards. */
@media (max-width: 767px) {
  .hero-screen {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding-top: calc(72px + env(safe-area-inset-top));
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }

  .hero-layout {
    --hero-mobile-preview-height: clamp(310px, 48svh, 420px);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    overflow: visible;
    border: 1px solid rgba(75, 62, 255, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(248, 248, 250, 0.70);
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy-heading,
  .hero-copy-details {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy-heading {
    order: 1;
  }

  .hero-copy-details {
    order: 4;
    padding-top: clamp(16px, 2.4svh, 22px);
  }

  .hero-copy .eyebrow {
    align-self: flex-start;
    padding: 6px 10px;
    font-size: 11px;
  }

  .hero-copy h1 {
    margin-top: clamp(14px, 1.9svh, 18px);
    font-size: clamp(30px, 8.45vw, 34px);
    line-height: 1;
  }

  .hero-copy .lead {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.28;
  }

  .hero-copy-heading .hero-lead-primary {
    margin-top: clamp(14px, 1.9svh, 18px);
  }

  .hero-social-proof {
    width: 100%;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    padding: 9px 10px;
    font-size: 11px;
  }

  .hero-copy .meta-row,
  .hero-copy .action-row,
  .hero-copy .hero-cta-note {
    display: none;
  }

  .hero-media {
    order: 2;
    width: 100%;
    min-height: var(--hero-mobile-preview-height);
    margin-top: clamp(12px, 1.8svh, 18px);
    border-radius: 14px;
  }

  .hero-mobile-action {
    display: block;
    order: 3;
    position: fixed;
    z-index: 30;
    right: max(var(--mobile-gutter), env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(var(--mobile-gutter), env(safe-area-inset-left));
    width: auto;
    padding: 10px;
    border: 1px solid rgb(75 62 255 / 10%);
    border-radius: 18px;
    background: rgb(248 248 250 / 92%);
    box-shadow: 0 12px 30px rgb(24 22 52 / 18%);
    backdrop-filter: blur(14px);
  }

  .hero-mobile-action .action-row {
    margin-top: 0;
  }

  .hero-mobile-action .btn {
    min-height: 50px;
  }

  .hero-product-preview {
    min-height: var(--hero-mobile-preview-height);
    grid-template-rows: 32px minmax(0, 1fr) 36px;
  }

  .hero-product-preview__topbar {
    padding-inline: 10px;
  }

  .hero-product-preview__timeline {
    padding-inline: 10px;
  }

  .hero-workshop-media {
    left: -34%;
    width: 145%;
  }

  .hero-demo-hud {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .hero-demo-status {
    width: min(48%, 158px);
    min-width: 0;
    max-width: 158px;
    gap: 2px;
    border-radius: 10px;
    padding: 7px 9px;
  }

  .hero-demo-status > span {
    font-size: 6px;
  }

  .hero-demo-status strong {
    font-size: 11px;
    line-height: 1.1;
  }

  .hero-demo-status small {
    font-size: 7px;
    line-height: 1.15;
  }

  .hero-printer-badge {
    top: 24%;
    right: 8px;
    border-radius: 10px;
    padding: 7px 9px;
  }

  .hero-printer-badge span {
    font-size: 6px;
  }

  .hero-printer-badge strong {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .hero-demo-status small {
    display: none;
  }
}

/* Desktop hero copy: editorial rhythm aligned to the upper third. */
@media (min-width: 981px) {
  .hero-copy {
    justify-content: flex-start;
    padding-top: clamp(84px, 11vh, 104px);
  }

  .hero-copy h1 {
    margin-top: 26px;
  }

  .hero-copy .lead {
    margin-top: 24px;
  }

  .hero-copy .meta-row {
    margin-top: 22px;
  }

  .hero-copy .action-row {
    margin-top: 20px;
  }

  .hero-copy .hero-cta-note {
    margin-top: 14px;
  }
}

/* Task 1 final: the repaired coffee machine is the proof of success. */
.case-client-reply {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  border: 1px solid rgb(61 59 255 / 13%);
  border-radius: 16px;
  background: rgb(255 255 255 / 82%);
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgb(38 35 98 / 8%);
}

.case-client-reply > img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.case-client-reply > div {
  min-width: 0;
}

.case-client-reply > div > span {
  display: block;
  color: #3d3bff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.case-client-reply p {
  margin: 4px 0 0;
  color: #222329;
  font-size: 13px;
  line-height: 1.36;
}

.case-client-reply > b {
  align-self: start;
  border-radius: 999px;
  background: #d8ff28;
  padding: 7px 10px 6px;
  color: #171817;
  font-size: 10px;
  white-space: nowrap;
}

.case-learning-bridge {
  margin: 14px 0 0;
  border-left: 3px solid #3d3bff;
  padding-left: 12px;
  color: #3d4147;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.task1-result-screen {
  display: block;
  overflow: hidden;
  background: url("assets/task1/final-success/03-skillbox-gradient-10.png") center / cover no-repeat;
}

.task1-result-screen .step-progress {
  position: relative;
  z-index: 5;
}

.task1-result-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  min-height: calc(100dvh - 160px);
  text-align: left;
}

.task1-result-copy {
  min-width: 0;
}

.task1-result-copy h1 {
  max-width: 12ch;
  font-size: clamp(44px, 4.4vw, 62px);
  line-height: .96;
  animation: task1-result-copy-in 520ms var(--motion-easing) 80ms both;
}

.task1-result-copy > .lead {
  max-width: 42ch;
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.38;
  animation: task1-result-copy-in 520ms var(--motion-easing) 150ms both;
}

.task1-result-client-reply {
  position: relative;
  margin-top: 10px;
  margin-bottom: 0;
  animation: task1-result-card-in 440ms var(--motion-easing) 230ms both;
}

.task1-result-income-bubble {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 18px;
  align-items: center;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid #a86d00;
  border-radius: 16px;
  background:
    linear-gradient(115deg, rgb(255 255 255 / 42%) 0 14%, transparent 27%),
    repeating-linear-gradient(135deg, rgb(255 255 255 / 12%) 0 2px, transparent 2px 8px),
    linear-gradient(120deg, #fff0a8 0%, #ffd354 42%, #eba91c 100%);
  padding: 13px 18px 12px;
  color: #2d1c02;
  box-shadow:
    inset 0 0 0 3px rgb(255 255 255 / 28%),
    0 10px 24px rgb(157 101 0 / 20%);
  animation: task1-result-card-in 440ms var(--motion-easing) 190ms both;
}

.task1-result-income-bubble::after {
  position: absolute;
  z-index: -1;
  top: -62px;
  right: 14%;
  width: 44px;
  height: 190px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 48%), transparent);
  content: "";
  transform: rotate(24deg);
}

.task1-result-income-bubble > span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  line-height: 1.15;
  text-transform: uppercase;
}

.task1-result-income-bubble > strong {
  grid-row: 1 / 3;
  grid-column: 2;
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 950;
  line-height: .95;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgb(255 255 255 / 54%);
}

.task1-result-income-bubble > small {
  color: #6b4707;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}

.case-skill-proof {
  margin-top: 12px;
  border-radius: 16px;
  background: #18191d;
  padding: 13px 15px;
  color: #fff;
}

.case-skill-proof > strong {
  display: block;
  color: #d8ff28;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.case-skill-proof ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 16px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.case-skill-proof li {
  position: relative;
  padding-left: 15px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.case-skill-proof li::before {
  position: absolute;
  top: .18em;
  left: 0;
  color: #d8ff28;
  content: "✓";
}

.task1-result-skill-proof {
  animation: task1-result-card-in 440ms var(--motion-easing) 320ms both;
}

.task1-result-copy > .case-learning-bridge {
  animation: task1-result-copy-in 440ms var(--motion-easing) 430ms both;
}

.task1-result-copy .task1-result-facts {
  margin-top: 20px;
}

.task1-result-copy .task1-result-facts article {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  align-items: flex-start;
  border: 0;
  background: rgb(255 255 255 / 72%);
  padding: 16px 17px;
  box-shadow: none;
  backdrop-filter: blur(12px);
  animation: task1-result-card-in 440ms var(--motion-easing) both;
}

.task1-result-copy .task1-result-facts article > span {
  display: inline-flex;
  width: auto;
  border-radius: 999px;
  background: rgb(61 59 255 / 10%);
  padding: 5px 8px 4px;
  color: #3d3bff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
}

.task1-result-copy .task1-result-facts article:nth-child(1) > span {
  background: rgb(203 67 55 / 11%);
  color: #a83229;
}

.task1-result-copy .task1-result-facts article:nth-child(3) > span {
  background: rgb(22 131 75 / 11%);
  color: #126b3c;
}

.task1-result-copy .task1-result-facts article > strong {
  margin-top: 11px;
  color: #101112;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.28;
}

.task1-result-copy .task1-result-facts article:nth-child(1) { animation-delay: 250ms; }
.task1-result-copy .task1-result-facts article:nth-child(2) { animation-delay: 340ms; }
.task1-result-copy .task1-result-facts article:nth-child(3) { animation-delay: 430ms; }

.task1-result-copy > .action-row {
  margin-top: 18px;
  animation: task1-result-copy-in 440ms var(--motion-easing) 560ms both;
}

.task1-result-copy > .action-row .btn {
  min-height: 52px;
}

.task1-result-machine {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1319 / 1193;
  justify-self: end;
  margin: 0;
  animation: task1-result-machine-in 620ms var(--motion-easing) both;
}

.success-machine {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 26px rgb(28 23 72 / 18%));
}

.task1-result-success-marker {
  position: absolute;
  z-index: 3;
  top: 15%;
  left: 27%;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 3px solid rgb(255 255 255 / 86%);
  border-radius: 50%;
  background: #24a15d;
  box-shadow: 0 8px 18px rgb(18 91 54 / 25%);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  animation: task1-result-marker-in 360ms var(--motion-easing) 520ms both;
}

.task1-result-confetti {
  position: absolute;
  z-index: 4;
  top: 72px;
  right: 0;
  bottom: 0;
  left: 48%;
  overflow: hidden;
  pointer-events: none;
}

.task1-result-confetti i {
  position: absolute;
  top: -24px;
  left: var(--x);
  display: block;
  width: 7px;
  height: 18px;
  border-radius: 2px;
  background: var(--color);
  opacity: 0;
  animation: task1-result-confetti-fall var(--duration) ease-in var(--delay) both;
  will-change: transform, opacity;
}

.task1-result-confetti i.is-rectangle {
  width: 12px;
  height: 8px;
}

.task1-result-confetti i.is-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.task1-result-confetti i.is-diamond {
  width: 10px;
  height: 10px;
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

@keyframes task1-result-machine-in {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes task1-result-copy-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes task1-result-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes task1-result-marker-in {
  from { opacity: 0; transform: scale(.7); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes task1-result-confetti-fall {
  0% { opacity: 0; transform: translate3d(0, -12px, 0) rotate(var(--rotation)); }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--drift), 82vh, 0) rotate(calc(var(--rotation) + 620deg)); }
}

@media (min-width: 768px) and (max-width: 1050px) {
  .task1-result-container {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  }

  .task1-result-copy h1 {
    font-size: clamp(40px, 5vw, 50px);
  }

  .task1-result-copy .task1-result-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .task1-result-screen {
    min-height: 100dvh;
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
    background-position: 56% top;
  }

  .task1-result-container {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .task1-result-machine {
    order: 5;
    width: min(52vw, 210px);
    max-width: 100%;
    margin: -8px 8px -10px auto;
    justify-self: auto;
  }

  .task1-result-copy {
    display: contents;
  }

  .task1-result-copy > .eyebrow {
    order: 0;
  }

  .task1-result-copy > h1 {
    order: 1;
  }

  .task1-result-copy > .lead {
    order: 2;
  }

  .task1-result-copy > .task1-result-client-reply {
    order: 4;
  }

  .task1-result-copy > .task1-result-income-bubble {
    order: 3;
  }

  .task1-result-copy > .task1-result-skill-proof {
    order: 6;
  }

  .task1-result-copy > .case-learning-bridge {
    order: 7;
  }

  .task1-result-copy > .action-row {
    order: 8;
  }

  .task1-result-copy h1 {
    max-width: 13ch;
    font-size: clamp(30px, 9vw, 38px);
  }

  .task1-result-copy > .lead {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.34;
  }

  .task1-result-client-reply {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    margin-top: 8px;
    margin-bottom: 0;
    padding: 10px 11px;
  }

  .task1-result-client-reply > img {
    width: 38px;
    height: 38px;
  }

  .task1-result-client-reply > b {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .task1-result-income-bubble {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    margin-top: 12px;
    padding: 11px 12px 10px;
    border-radius: 14px;
  }

  .task1-result-income-bubble > span {
    font-size: 8px;
  }

  .task1-result-income-bubble > strong {
    font-size: 25px;
  }

  .task1-result-income-bubble > small {
    font-size: 9px;
  }

  .task1-result-skill-proof {
    margin-top: 8px;
    padding: 11px 12px;
  }

  .case-skill-proof ul {
    gap: 6px 10px;
  }

  .case-skill-proof li {
    font-size: 11px;
  }

  .task1-result-copy > .case-learning-bridge {
    margin-top: 9px;
    font-size: 11px;
  }

  .task1-result-copy .task1-result-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin-top: 14px;
  }

  .task1-result-copy .task1-result-facts article {
    min-height: 0;
    padding: 11px 13px;
  }

  .task1-result-copy .task1-result-facts article > strong {
    margin-top: 8px;
    font-size: 15px;
  }

  .task1-result-copy > .action-row {
    position: fixed;
    z-index: 40;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
    max-width: 430px;
    margin: 0 auto;
  }

  .task1-result-copy > .action-row .btn {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgb(169 205 105 / 88%);
    box-shadow:
      0 0 0 4px rgb(169 205 105 / 20%),
      0 0 24px rgb(111 152 58 / 38%),
      0 14px 30px rgb(39 35 139 / 24%);
  }

  .task1-result-success-marker {
    top: 14%;
    left: 26%;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .task1-result-confetti {
    top: calc(64px + env(safe-area-inset-top));
    right: 0;
    bottom: auto;
    left: 0;
    height: min(440px, 64vh);
  }

  .task1-result-confetti i {
    left: var(--mobile-x);
  }

  .task1-result-confetti i:nth-child(n + 25) {
    display: none;
  }
}

.task1-result-screen.is-reduced-motion .task1-result-machine,
.task1-result-screen.is-reduced-motion .task1-result-success-marker,
.task1-result-screen.is-reduced-motion .task1-result-copy h1,
.task1-result-screen.is-reduced-motion .task1-result-copy > .lead,
.task1-result-screen.is-reduced-motion .task1-result-copy .task1-result-facts article,
.task1-result-screen.is-reduced-motion .task1-result-copy > .action-row {
  animation: none;
}

.task1-result-screen.is-reduced-motion .task1-result-confetti i {
  top: var(--static-y);
  opacity: .72;
  animation: none;
}

.task1-result-screen.is-reduced-motion .task1-result-confetti i:nth-child(n + 9) {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .task1-result-machine,
  .task1-result-success-marker,
  .task1-result-copy h1,
  .task1-result-copy > .lead,
  .task1-result-copy .task1-result-facts article,
  .task1-result-copy > .action-row {
    animation: none;
  }

  .task1-result-confetti i {
    top: var(--static-y);
    opacity: .72;
    animation: none;
  }

  .task1-result-confetti i:nth-child(n + 9) {
    display: none;
  }
}
