:root {
  --bg: #f6f1e8;
  --bg-deep: #e9dfcf;
  --paper: rgba(255, 251, 245, 0.86);
  --paper-strong: #fffdf9;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --ink: #13181f;
  --muted: #5d6674;
  --soft: #8a92a1;
  --line: rgba(19, 24, 31, 0.1);
  --line-strong: rgba(19, 24, 31, 0.18);
  --brand: #0f645f;
  --brand-deep: #0b4642;
  --accent: #b67a42;
  --accent-soft: rgba(243, 229, 213, 0.9);
  --trust: #186a5f;
  --risk: #9f5a20;
  --degraded: #87553e;
  --shadow-soft: 0 16px 42px rgba(24, 27, 33, 0.08);
  --shadow-strong: 0 28px 88px rgba(24, 27, 33, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1220px;
  --serif: "Source Serif 4", "Cambria", "Songti SC", serif;
  --sans: "IBM Plex Sans", "Aptos", "Segoe UI", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 100, 95, 0.12), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(182, 122, 66, 0.12), transparent 22%),
    linear-gradient(180deg, #f8f4ed 0%, var(--bg) 58%, #f5f0e7 100%);
  font-family: var(--sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(19, 24, 31, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 24, 31, 0.028) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 80%);
  opacity: 0.4;
}

a {
  color: inherit;
}

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

button,
input {
  font: inherit;
}

.landing-shell,
.preview-shell {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 72px;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 12px 0 18px;
}

.site-header--preview {
  position: sticky;
  top: 0;
  z-index: 14;
  backdrop-filter: blur(18px);
  background: rgba(246, 241, 232, 0.82);
  border-bottom: 1px solid rgba(19, 24, 31, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 16px 38px rgba(15, 100, 95, 0.22);
}

.brand__meta {
  display: grid;
  gap: 2px;
}

.brand__meta strong {
  font-size: 0.98rem;
}

.brand__meta span {
  font-size: 0.82rem;
  color: var(--muted);
}

.site-header__meta,
.generate-form__actions,
.hero-proof,
.report-hero__signals,
.report-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ui-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
}

.ui-pill--accent {
  background: rgba(214, 238, 234, 0.82);
  color: var(--brand-deep);
  border-color: rgba(15, 100, 95, 0.18);
}

.ui-pill--muted {
  background: rgba(255, 255, 255, 0.44);
  color: var(--soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
  box-shadow: 0 16px 34px rgba(15, 100, 95, 0.22);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(19, 24, 31, 0.1);
  color: var(--ink);
}

.button--small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.94rem;
}

.eyebrow,
.section-header__eyebrow,
.status-panel__eyebrow,
.side-panel__eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
}

.hero-stage,
.report-hero {
  margin-top: 12px;
  display: grid;
  gap: 28px;
}

.hero-stage {
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  min-height: calc(100svh - 120px);
}

.hero-stage__copy {
  padding: 24px 0 24px;
}

.hero-stage h1,
.report-hero h1 {
  margin: 0;
  max-width: 11.5ch;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.hero-copy__lede,
.report-hero__lede {
  margin: 22px 0 0;
  max-width: 58ch;
  font-size: 1.08rem;
  line-height: 1.82;
  color: var(--muted);
}

.hero-proof {
  margin-top: 24px;
}

.hero-proof div {
  min-width: 160px;
  padding-top: 12px;
  border-top: 1px solid rgba(19, 24, 31, 0.1);
}

.hero-proof span,
.signal-strip__item span,
.data-panel__label,
.artifact-rail__section span,
.runtime-list span,
.report-hero__delivery span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-proof strong,
.signal-strip__item strong,
.data-panel strong,
.runtime-list strong,
.artifact-rail__section strong,
.report-hero__delivery strong {
  display: block;
  font-size: 1rem;
}

.generate-form {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 10px;
}

.field__label {
  font-size: 0.84rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.field input {
  width: 100%;
  min-height: 70px;
  padding: 18px 22px;
  border-radius: 20px;
  border: 1px solid rgba(19, 24, 31, 0.1);
  background: rgba(255, 252, 247, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 1.06rem;
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field input:focus {
  outline: none;
  border-color: rgba(15, 100, 95, 0.42);
  box-shadow: 0 0 0 5px rgba(15, 100, 95, 0.1);
  transform: translateY(-1px);
}

.example-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.example-row__label {
  font-size: 0.9rem;
  color: var(--muted);
}

.example-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(19, 24, 31, 0.1);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  color: var(--ink);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.example-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 100, 95, 0.22);
  background: rgba(209, 236, 231, 0.56);
}

.hero-footnote {
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 0.94rem;
}

.hero-stage__visual {
  display: flex;
  justify-content: flex-end;
}

.artifact-stage {
  width: min(560px, 100%);
  min-height: 700px;
  position: relative;
  display: grid;
  align-items: stretch;
  padding: 28px 0 22px 18px;
}

.artifact-stage__glow {
  position: absolute;
  inset: 10% 0 6% 14%;
  border-radius: 40px;
  background:
    radial-gradient(circle at top right, rgba(182, 122, 66, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(15, 100, 95, 0.06), rgba(14, 19, 27, 0.14));
  filter: blur(0);
}

.artifact-sheet {
  position: absolute;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(255, 249, 241, 0.96));
  border: 1px solid rgba(19, 24, 31, 0.08);
  box-shadow: var(--shadow-strong);
}

.artifact-sheet--back {
  inset: 74px 70px 58px 58px;
  transform: rotate(-5deg);
  opacity: 0.46;
}

.artifact-sheet--front {
  inset: 24px 96px 0 0;
  padding: 28px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 24px;
}

.artifact-sheet__top,
.artifact-sheet__cover,
.artifact-sheet__blocks {
  position: relative;
  z-index: 1;
}

.artifact-sheet__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.artifact-sheet__cover {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17, 28, 34, 0.96), rgba(23, 35, 41, 0.9));
  color: white;
}

.artifact-sheet__cover span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artifact-sheet__cover h2 {
  margin: 18px 0 10px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}

.artifact-sheet__cover p {
  margin: 0;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.artifact-sheet__blocks {
  display: grid;
  gap: 18px;
}

.artifact-blocks__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.artifact-block {
  padding: 18px;
  border-radius: 20px;
  background: rgba(245, 238, 228, 0.94);
  border: 1px solid rgba(19, 24, 31, 0.08);
}

.artifact-block--hero {
  background: rgba(218, 239, 235, 0.74);
}

.artifact-block strong {
  display: block;
  margin-bottom: 6px;
}

.artifact-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.artifact-rail {
  position: absolute;
  right: 0;
  top: 112px;
  width: 180px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(22, 29, 35, 0.94);
  color: white;
  box-shadow: 0 20px 56px rgba(21, 24, 30, 0.18);
}

.artifact-rail__section + .artifact-rail__section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.artifact-rail__section p,
.artifact-rail__section li {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.68;
}

.artifact-rail__section ul {
  margin: 0;
  padding-left: 1.05rem;
}

.signal-strip,
.detail-section,
.report-hero,
.preview-layout {
  margin-top: 34px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid rgba(19, 24, 31, 0.1);
  border-bottom: 1px solid rgba(19, 24, 31, 0.1);
}

.signal-strip__item p,
.feature-row p,
.detail-note p,
.narrative-block p,
.evidence-card__body p,
.literature-card p,
.literature-card small,
.side-panel__copy,
.risk-strip__list li,
.trace-column p,
.recommendation-card p,
.source-list a {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.detail-section {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 30px;
}

.detail-section__column {
  padding: 30px 0;
}

.detail-section__column--secondary {
  padding-left: 26px;
  border-left: 1px solid rgba(19, 24, 31, 0.1);
}

.section-header {
  margin-bottom: 20px;
}

.section-header__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.04;
}

.section-header__copy {
  margin: 12px 0 0;
  max-width: 50ch;
  color: var(--muted);
  line-height: 1.75;
}

.feature-stack {
  display: grid;
  gap: 18px;
}

.feature-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
  padding-top: 16px;
  border-top: 1px solid rgba(19, 24, 31, 0.08);
}

.feature-row span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(214, 238, 234, 0.84);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 600;
}

.feature-row strong,
.detail-note strong {
  display: block;
  font-size: 1.05rem;
}

.source-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-note {
  margin-top: 20px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(19, 24, 31, 0.08);
}

.detail-note strong {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.status-panel,
.content-section,
.side-panel,
.report-hero__delivery,
.report-hero__main,
.risk-strip {
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid rgba(19, 24, 31, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.status-panel {
  margin-top: 28px;
  padding: 24px;
}

.status-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.status-panel__header h2 {
  margin: 4px 0 0;
  font-size: 1.5rem;
}

.status-panel__copy {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.75;
}

.status-panel__copy--compact {
  margin-top: 14px;
}

.status-steps {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.status-step {
  position: relative;
  padding: 14px 16px 14px 48px;
  border-radius: 16px;
  border: 1px solid rgba(19, 24, 31, 0.08);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
}

.status-step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(19, 24, 31, 0.12);
}

.status-step.is-active {
  border-color: rgba(15, 100, 95, 0.24);
  background: rgba(209, 236, 231, 0.54);
  color: var(--ink);
}

.status-step.is-active::before {
  background: var(--brand);
  box-shadow: 0 0 0 8px rgba(15, 100, 95, 0.14);
}

.status-step.is-complete {
  color: var(--ink);
}

.status-step.is-complete::before {
  background: var(--trust);
}

.status-trace {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(19, 24, 31, 0.08);
}

.status-trace__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.status-trace__lists {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.status-trace__grid span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
}

.status-trace__grid strong {
  font-size: 1rem;
}

.status-trace__lists h3,
.trace-column h3,
.literature-card h3,
.recommendation-card h3,
.side-panel h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.status-trace__lists ul,
.trace-column ul,
.source-list,
.risk-strip__list {
  margin: 0;
  padding-left: 1.1rem;
}

.status-trace__lists li + li,
.trace-column li + li,
.source-list__item + .source-list__item,
.risk-strip__list li + li {
  margin-top: 10px;
}

.report-hero {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  align-items: stretch;
}

.report-hero__main,
.report-hero__delivery {
  padding: 28px;
}

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

.report-hero__delivery p {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

.risk-strip {
  padding: 20px 24px;
  display: grid;
  gap: 14px;
  border-color: rgba(159, 90, 32, 0.22);
  background: rgba(255, 244, 231, 0.92);
}

.risk-strip__title span {
  display: block;
  margin-bottom: 6px;
  color: var(--risk);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.risk-strip__title strong {
  font-size: 1.06rem;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 24px;
  align-items: start;
}

.preview-main {
  display: grid;
  gap: 24px;
}

.preview-sidebar {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 92px;
}

.content-section,
.side-panel {
  padding: 28px;
}

.content-section--intro,
.content-section--recommendation {
  background: var(--paper-strong);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.data-panel {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(19, 24, 31, 0.08);
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.recommendation-card {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(250, 244, 236, 0.82));
  border: 1px solid rgba(19, 24, 31, 0.08);
}

.recommendation-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.recommendation-card__meta span {
  color: var(--soft);
  font-size: 0.82rem;
}

.recommendation-card h3 {
  font-size: 1.02rem;
}

.narrative-block {
  display: grid;
  gap: 14px;
}

.narrative-block p {
  margin: 0;
}

.evidence-gallery {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.literature-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.evidence-card,
.literature-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(19, 24, 31, 0.08);
  overflow: hidden;
}

.literature-card {
  padding: 18px;
}

.evidence-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: rgba(19, 24, 31, 0.04);
}

.evidence-card__body {
  padding: 18px;
}

.evidence-card__head {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.evidence-card__body h3 {
  margin: 14px 0 8px;
  font-size: 1.08rem;
}

.evidence-card__body a,
.literature-card a,
.patent-table a,
.source-list a {
  color: var(--brand);
  text-decoration: none;
}

.literature-card small {
  display: block;
}

.patent-table-wrap {
  overflow: auto;
}

.patent-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.patent-table th,
.patent-table td {
  padding: 16px 14px;
  border-top: 1px solid rgba(19, 24, 31, 0.08);
  vertical-align: top;
  text-align: left;
  line-height: 1.66;
}

.patent-table th {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
  border-top: none;
}

.patent-table td strong,
.source-list strong {
  display: block;
  margin-bottom: 6px;
}

.patent-table td span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.homology-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.homology-panel__copy {
  display: grid;
  gap: 16px;
}

.homology-panel__copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

.heatmap {
  border-radius: 18px;
  border: 1px solid rgba(19, 24, 31, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.content-section--trace {
  background: rgba(255, 251, 246, 0.92);
}

.trace-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.trace-column {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(19, 24, 31, 0.08);
}

.trace-column--wide {
  grid-column: 1 / -1;
}

.trace-column strong {
  display: block;
}

body.body--preview .content-section--trace {
  display: none;
}

.trace-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 72px;
  position: relative;
  z-index: 1;
}

.trace-shell .site-header {
  position: sticky;
  top: 0;
  z-index: 14;
  backdrop-filter: blur(18px);
  background: rgba(246, 241, 232, 0.84);
  border-bottom: 1px solid rgba(19, 24, 31, 0.08);
}

.trace-summary {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 24px;
}

.trace-summary__main,
.trace-summary__aside,
.trace-card {
  border-radius: 26px;
  border: 1px solid rgba(19, 24, 31, 0.08);
  background: rgba(255, 252, 247, 0.9);
  box-shadow: var(--shadow-soft);
}

.trace-summary__main {
  padding: 34px 34px 30px;
}

.trace-summary__aside {
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.trace-summary__main h1 {
  margin: 0;
  max-width: 11ch;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.trace-summary__lead {
  margin: 20px 0 0;
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.78;
}

.trace-kpis {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trace-kpi {
  padding-top: 12px;
  border-top: 1px solid rgba(19, 24, 31, 0.08);
}

.trace-kpi span,
.trace-aside-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trace-kpi strong,
.trace-aside-panel strong {
  display: block;
}

.trace-aside-panel + .trace-aside-panel {
  padding-top: 18px;
  border-top: 1px solid rgba(19, 24, 31, 0.08);
}

.trace-grid {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.trace-card {
  padding: 24px;
}

.trace-card__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.trace-card__header h2 {
  margin: 8px 0 0;
  font-size: 1.28rem;
}

.trace-card__copy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.trace-item-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.trace-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(19, 24, 31, 0.08);
  background: rgba(255, 255, 255, 0.58);
}

.trace-item h3 {
  margin: 12px 0 6px;
  font-size: 1.02rem;
}

.trace-item p,
.trace-item li {
  color: var(--muted);
  line-height: 1.72;
}

.trace-item ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.trace-item ul li + li {
  margin-top: 6px;
}

.trace-note-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.trace-note-list li {
  line-height: 1.8;
  color: var(--muted);
}

.trace-note-list li + li {
  margin-top: 8px;
}

.side-panel--delivery {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(245, 239, 231, 0.9));
}

.runtime-list {
  display: grid;
  gap: 14px;
}

.runtime-list div {
  padding-top: 12px;
  border-top: 1px solid rgba(19, 24, 31, 0.08);
}

.runtime-list div:first-child {
  padding-top: 0;
  border-top: none;
}

.source-list__item strong {
  color: var(--ink);
}

body.body--official-preview {
  background:
    radial-gradient(circle at top right, rgba(173, 148, 101, 0.14), transparent 28%),
    linear-gradient(180deg, #f7f1e7 0%, #efe6d9 100%);
}

.official-preview-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.official-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.official-preview-toolbar__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.official-sheet {
  background: #fffdf9;
  border: 1px solid rgba(88, 67, 39, 0.16);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(88, 67, 39, 0.12);
  padding: 36px 34px 42px;
}

.official-sheet__header {
  text-align: center;
  margin-bottom: 24px;
}

.official-sheet__header h1 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
}

.official-sheet__header p {
  margin: 14px 0 0;
  text-align: left;
  font-size: 1rem;
  color: #4c4133;
}

.official-report-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.96rem;
  background: #fffdf9;
}

.official-report-table th,
.official-report-table td {
  border: 1px solid #7e6b4f;
  padding: 12px 14px;
  vertical-align: top;
  color: #231c14;
}

.official-report-table th {
  width: 17%;
  font-weight: 700;
  background: #f8f1e2;
}

.official-report-table tr:nth-child(4) th,
.official-report-table tr:nth-child(4) td {
  text-align: center;
}

.official-copy p {
  margin: 0;
  line-height: 1.78;
  text-align: justify;
}

.official-copy p + p {
  margin-top: 12px;
}

.official-structure-gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.official-structure-gallery img,
.official-homology-figure img {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(88, 67, 39, 0.14);
  background: #f5efe4;
}

.official-homology-figure {
  margin-top: 18px;
}

.official-patent-source {
  display: grid;
  gap: 6px;
}

.official-patent-source strong {
  font-size: 0.95rem;
}

.official-patent-source span {
  color: #5e5142;
  font-size: 0.9rem;
}

.landing-shell--focused {
  min-height: 100svh;
}

.landing-dual {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: start;
  min-height: calc(100svh - 150px);
  padding: 40px 0 56px;
}

.landing-dual__main,
.landing-dual__aside {
  display: grid;
  gap: 22px;
}

.landing-dual__main h1 {
  margin: 0;
  max-width: 11.5ch;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 5.8vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.landing-address {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid rgba(15, 100, 95, 0.16);
  box-shadow: var(--shadow-soft);
}

.landing-address span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.landing-address a {
  color: var(--brand-deep);
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.landing-address a:hover {
  text-decoration: underline;
}

.landing-address p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.landing-address code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.95em;
}

.landing-briefs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.landing-brief,
.landing-panel,
.live-card {
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid rgba(19, 24, 31, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.landing-brief {
  padding: 20px 22px;
}

.landing-brief span,
.landing-panel__header,
.form-feedback {
  font-size: 0.84rem;
}

.landing-brief span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-brief strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.landing-brief p,
.landing-panel__body p,
.landing-panel__list li,
.form-feedback {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.landing-panel {
  overflow: hidden;
}

.landing-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px 0;
}

.landing-panel__body {
  padding: 18px 20px 22px;
}

.landing-panel__body h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.landing-panel__list {
  margin: 0;
  padding-left: 18px;
}

.landing-panel__list li + li {
  margin-top: 8px;
}

.landing-panel--dark {
  background: linear-gradient(180deg, rgba(18, 28, 34, 0.98), rgba(20, 35, 41, 0.92));
  color: white;
}

.landing-panel--dark .landing-panel__body p,
.landing-panel--dark .landing-panel__list li {
  color: rgba(255, 255, 255, 0.78);
}

.form-feedback {
  color: var(--risk);
}

.live-shell {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 64px;
  position: relative;
  z-index: 1;
}

.live-hero {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 24px;
  align-items: start;
}

.live-hero__copy h1 {
  margin: 0;
  max-width: 11ch;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.042em;
}

.live-statusbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid rgba(19, 24, 31, 0.08);
  box-shadow: var(--shadow-soft);
}

.live-statusbar__item {
  padding-top: 10px;
  border-top: 1px solid rgba(19, 24, 31, 0.08);
}

.live-statusbar__item span {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-statusbar__item strong {
  display: block;
  font-size: 1rem;
}

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}

.live-rail,
.live-reasoning-panel {
  display: grid;
  gap: 18px;
}

.live-card {
  padding: 22px;
}

.live-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.live-card__header h2 {
  margin: 8px 0 0;
  font-size: 1.28rem;
}

.live-step-rail {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.live-step {
  position: relative;
  padding: 16px 16px 16px 48px;
  border-radius: 18px;
  border: 1px solid rgba(19, 24, 31, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.live-step::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(19, 24, 31, 0.12);
}

.live-step strong {
  display: block;
  margin-bottom: 6px;
}

.live-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.live-step.is-active {
  border-color: rgba(15, 100, 95, 0.24);
  background: rgba(209, 236, 231, 0.5);
}

.live-step.is-active::before {
  background: var(--brand);
  box-shadow: 0 0 0 7px rgba(15, 100, 95, 0.12);
}

.live-step.is-complete::before {
  background: var(--trust);
}

.live-step.is-failed::before {
  background: var(--risk);
}

.live-event-list,
.live-note-list,
.live-mini-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.live-event-list li,
.live-note-list li,
.live-mini-list li {
  color: var(--muted);
  line-height: 1.72;
}

.live-event-list li + li,
.live-note-list li + li,
.live-mini-list li + li {
  margin-top: 8px;
}

.live-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.live-mini-grid strong {
  display: block;
  font-size: 0.92rem;
}

.live-event-list strong {
  display: block;
  color: var(--ink);
}

.live-empty {
  list-style: none;
  margin-left: -18px;
}

.live-card--reasoning {
  min-height: 100%;
}

.live-reasoning-feed {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.reasoning-chunk {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(19, 24, 31, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.reasoning-chunk header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.reasoning-chunk header span {
  color: var(--soft);
  font-size: 0.82rem;
}

.reasoning-chunk p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.76;
  white-space: pre-wrap;
}

.reasoning-chunk--empty {
  background: rgba(251, 247, 241, 0.92);
}

.live-hero__actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-up 700ms ease forwards;
}

.reveal--1 { animation-delay: 120ms; }
.reveal--2 { animation-delay: 220ms; }
.reveal--3 { animation-delay: 320ms; }

.artifact-stage {
  animation: float-stage 7s ease-in-out infinite;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-stage {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1180px) {
  .landing-shell,
  .preview-shell,
  .trace-shell,
  .live-shell {
    width: min(var(--container), calc(100% - 32px));
  }

  .hero-stage,
  .landing-dual,
  .live-hero,
  .live-grid,
  .live-mini-grid,
  .detail-section,
  .preview-layout,
  .report-hero,
  .signal-strip,
  .overview-grid,
  .recommendation-grid,
  .evidence-gallery,
  .literature-grid,
  .trace-columns,
  .trace-summary,
  .trace-kpis,
  .trace-item-grid,
  .status-trace__grid,
  .status-trace__lists,
  .homology-panel {
    grid-template-columns: 1fr;
  }

  .detail-section__column--secondary {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(19, 24, 31, 0.1);
    padding-top: 26px;
  }

  .preview-sidebar {
    position: static;
  }

  .artifact-stage {
    min-height: 620px;
  }

  .live-statusbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .landing-shell,
  .preview-shell,
  .trace-shell,
  .live-shell {
    width: calc(100% - 24px);
    padding-top: 16px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header__meta,
  .generate-form__actions,
  .report-hero__actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .button--small {
    width: auto;
  }

  .hero-stage h1,
  .report-hero h1,
  .landing-dual__main h1,
  .live-hero__copy h1 {
    max-width: none;
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .artifact-stage {
    min-height: 540px;
    padding-right: 0;
  }

  .artifact-sheet--front {
    inset: 18px 48px 0 0;
    padding: 22px;
  }

  .artifact-sheet--back {
    inset: 58px 36px 40px 36px;
  }

  .artifact-rail {
    width: 150px;
    top: 96px;
    padding: 16px;
  }

  .content-section,
  .side-panel,
  .status-panel,
  .report-hero__main,
  .report-hero__delivery,
  .risk-strip,
  .trace-summary__main,
  .trace-summary__aside,
  .trace-card,
  .live-card {
    padding: 22px;
  }

  .patent-table {
    min-width: 640px;
  }

  .official-preview-shell {
    width: calc(100% - 20px);
    padding-top: 18px;
  }

  .official-preview-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .official-preview-toolbar__actions {
    width: 100%;
  }

  .official-sheet {
    padding: 22px 18px 28px;
    border-radius: 18px;
    overflow-x: auto;
  }

  .official-report-table {
    min-width: 780px;
  }

  .official-structure-gallery {
    grid-template-columns: 1fr;
  }

  .landing-briefs,
  .live-hero__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .artifact-stage,
  .button,
  .example-chip,
  .field input {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
  }
}
