:root {
  --paper: #f4f1e9;
  --paper-deep: #e9e3d6;
  --white: #fffefa;
  --ink: #14283b;
  --ink-soft: #385066;
  --navy: #17324d;
  --blue: #2e66a4;
  --blue-soft: #dce8f3;
  --teal: #18756f;
  --teal-soft: #dceeea;
  --amber: #ba6c23;
  --amber-soft: #f7e7d0;
  --red: #a4473d;
  --red-soft: #f5dfda;
  --line: #b9c0c4;
  --line-soft: #d9d8d2;
  --shadow: 0 18px 42px rgba(23, 50, 77, 0.12);
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(20, 40, 59, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 40, 59, 0.024) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family:
    Inter, "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
textarea,
a {
  font: inherit;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: 84px;
  padding: 12px max(28px, calc((100vw - var(--max-width)) / 2));
  color: var(--ink);
  background: rgba(244, 241, 233, 0.96);
  border-bottom: 1px solid rgba(20, 40, 59, 0.28);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--navy);
  border-radius: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 21px;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a,
.header-link {
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a {
  padding: 9px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.header-link {
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 6px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(500px, 1.06fr);
  align-items: center;
  gap: 64px;
  min-height: 690px;
  padding-block: 76px 88px;
}

.eyebrow,
.micro-label {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 16px;
}

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

h1,
h2 {
  font-family: Georgia, "Songti SC", "SimSun", serif;
}

h1 {
  max-width: 700px;
  margin-bottom: 26px;
  font-size: clamp(48px, 5.3vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.85;
}

.hero-actions,
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

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

.button:focus-visible,
.stage-button:focus-visible,
.task-toggle:focus-visible,
.tab-button:focus-visible,
.download-link:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(46, 102, 164, 0.35);
  outline-offset: 3px;
}

.button-primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(23, 50, 77, 0.2);
}

.button-secondary {
  color: var(--navy);
  background: transparent;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.hero-proof span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.hero-proof strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.hero-board {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(0.4deg);
}

.board-top,
.progress-label,
.board-risk,
.project-identity,
.panel-header,
.metric-head,
.version-row,
.timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.board-top {
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.board-top strong {
  display: block;
  margin-top: 4px;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 22px;
}

.status-pill,
.panel-state,
.tag,
.table-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  white-space: nowrap;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill {
  padding: 5px 10px;
  color: #0b554e;
  background: var(--teal-soft);
  border: 1px solid #67a69f;
}

.board-progress {
  margin: 22px 0;
}

.progress-label {
  margin-bottom: 8px;
  font-size: 14px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  background: #d8d8d2;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
  transition: width 260ms ease;
}

.mini-pipeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-pipeline li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0 10px;
  min-height: 75px;
  padding: 12px;
  background: #f5f3ed;
  border: 1px solid var(--line-soft);
}

.mini-pipeline li > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  align-self: stretch;
  color: var(--ink-soft);
  background: var(--paper-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.mini-pipeline li strong {
  font-size: 15px;
}

.mini-pipeline li small {
  color: var(--ink-soft);
  font-size: 12px;
}

.mini-pipeline li.done {
  background: var(--teal-soft);
  border-color: #82b6ae;
}

.mini-pipeline li.active {
  background: var(--blue-soft);
  border-color: #7ca0c5;
}

.board-risk {
  margin-top: 14px;
  padding: 12px 14px;
  color: #6f3e13;
  background: var(--amber-soft);
  border: 1px solid #d49a62;
}

.risk-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: white;
  background: var(--amber);
  border-radius: 50%;
  font-weight: 900;
}

.board-risk div {
  flex: 1;
}

.board-risk strong,
.board-risk small {
  display: block;
}

.board-risk small {
  font-size: 13px;
}

.risk-date {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.workflow-intro {
  padding: 94px 0 104px;
  background: var(--navy);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 42px;
}

.workflow-intro .section-heading {
  color: white;
}

.workflow-intro .eyebrow {
  color: #8fb9df;
}

.section-heading h2,
.demo-heading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.section-heading > p {
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.85;
}

.workflow-intro .section-heading > p {
  color: #dce7f0;
}

.workflow-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #7990a4;
  border-left: 1px solid #7990a4;
}

.workflow-cards article {
  min-height: 270px;
  padding: 26px;
  color: white;
  border-right: 1px solid #7990a4;
  border-bottom: 1px solid #7990a4;
}

.workflow-cards article:hover {
  background: #20415f;
}

.card-index {
  display: block;
  margin-bottom: 54px;
  color: #8fb9df;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.workflow-cards h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.workflow-cards p {
  min-height: 84px;
  margin-bottom: 20px;
  color: #d7e1e9;
  font-size: 15px;
}

.workflow-cards strong {
  color: #a8d0c9;
  font-size: 14px;
}

.demo-section {
  padding: 100px 0 110px;
}

.demo-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.demo-heading > div:first-child {
  max-width: 790px;
}

.demo-heading h2 {
  margin-bottom: 16px;
}

.demo-heading p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.research-brief {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px 26px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-bottom: 0;
}

.brief-label strong {
  display: block;
  margin-top: 6px;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 22px;
}

.research-brief textarea {
  width: 100%;
  min-height: 122px;
  resize: vertical;
  padding: 16px;
  color: var(--ink);
  background: #f9f8f4;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 16px;
  line-height: 1.75;
}

.research-brief textarea:focus {
  outline: 3px solid rgba(46, 102, 164, 0.22);
  border-color: var(--blue);
}

.brief-meta {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--ink-soft);
  font-size: 13px;
}

.workspace {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 730px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
}

.workspace-sidebar {
  display: flex;
  flex-direction: column;
  background: #e9e5dc;
  border-right: 1px solid var(--ink);
}

.project-identity {
  align-items: flex-start;
  flex-direction: column;
  padding: 23px 20px;
  border-bottom: 1px solid var(--line);
}

.project-identity strong {
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 19px;
  line-height: 1.35;
}

.project-identity small {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.stage-nav {
  padding: 12px 0;
}

.stage-button {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  gap: 0 8px;
  width: 100%;
  padding: 12px 18px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 4px solid transparent;
  cursor: pointer;
}

.stage-button:hover {
  background: rgba(255, 255, 255, 0.55);
}

.stage-button.active {
  color: var(--navy);
  background: white;
  border-left-color: var(--blue);
}

.stage-button > span {
  grid-row: 1 / 3;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}

.stage-button strong {
  font-size: 15px;
}

.stage-button small {
  color: var(--ink-soft);
  font-size: 12px;
}

.workspace-progress {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid var(--line);
}

.workspace-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.workspace-main {
  min-width: 0;
  padding: 28px;
}

.empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  height: 100%;
  min-height: 670px;
  text-align: center;
}

.empty-number {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  margin-bottom: 26px;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 30px;
}

.empty-state p {
  max-width: 440px;
  color: var(--ink-soft);
}

.panel-header {
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.panel-header h3 {
  margin: 5px 0 7px;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 32px;
}

.panel-header p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.panel-state {
  padding: 6px 10px;
  color: #0b554e;
  background: var(--teal-soft);
  border: 1px solid #7caea6;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.metric-card {
  min-height: 118px;
  padding: 16px;
  background: #f6f4ee;
  border: 1px solid var(--line-soft);
}

.metric-card small {
  color: var(--ink-soft);
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin: 6px 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.metric-card span {
  color: var(--ink-soft);
  font-size: 12px;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.content-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
}

.content-card h4 {
  margin: 0 0 14px;
  font-size: 17px;
}

.stage-map {
  display: grid;
  gap: 9px;
}

.stage-map-row {
  display: grid;
  grid-template-columns: 40px 1fr 58px;
  align-items: center;
  gap: 10px;
}

.stage-map-row > span:first-child {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.stage-map-bar {
  position: relative;
  height: 28px;
  overflow: hidden;
  background: #e7e5df;
}

.stage-map-bar span {
  display: block;
  height: 100%;
  background: var(--blue-soft);
  border-right: 3px solid var(--blue);
}

.stage-map-row strong {
  font-size: 13px;
  text-align: right;
}

.risk-list,
.decision-list,
.outline-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.risk-list li,
.decision-list li,
.outline-list li {
  padding: 12px 13px;
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
  font-size: 14px;
}

.risk-list li strong,
.decision-list li strong,
.outline-list li strong {
  display: block;
}

.risk-list li span,
.decision-list li span,
.outline-list li span {
  color: var(--ink-soft);
  font-size: 12px;
}

.data-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.data-table table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: white;
}

.data-table th,
.data-table td {
  padding: 12px 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.data-table th {
  color: var(--ink-soft);
  background: #eceae4;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table td {
  font-size: 14px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table code {
  font-size: 12px;
}

.tag,
.table-status {
  padding: 3px 8px;
}

.tag {
  color: var(--blue);
  background: var(--blue-soft);
}

.table-status.done {
  color: #0b554e;
  background: var(--teal-soft);
}

.table-status.active {
  color: #78430f;
  background: var(--amber-soft);
}

.table-status.waiting {
  color: var(--ink-soft);
  background: #e8e6e0;
}

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

.design-card {
  padding: 18px;
  background: #f7f6f2;
  border: 1px solid var(--line);
}

.design-card.wide {
  grid-column: 1 / -1;
}

.design-grid > .wide {
  grid-column: 1 / -1;
}

.design-card h4 {
  margin-bottom: 8px;
}

.design-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.task-toolbar,
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-button {
  padding: 8px 12px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.tab-button.active {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}

.task-list {
  display: grid;
  gap: 9px;
}

.task-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: white;
  border: 1px solid var(--line-soft);
}

.task-item.completed {
  background: #f0f7f5;
}

.task-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: transparent;
  background: white;
  border: 2px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.task-item.completed .task-toggle {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

.task-title {
  display: block;
  font-size: 14px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--ink-soft);
  font-size: 12px;
}

.task-id {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.version-list,
.timeline-list {
  display: grid;
  gap: 10px;
}

.version-row {
  align-items: flex-start;
  padding: 14px;
  background: #f7f6f2;
  border: 1px solid var(--line-soft);
}

.version-row > div:first-child {
  min-width: 0;
}

.version-row code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.version-row small {
  color: var(--ink-soft);
}

.version-chain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.outline-list li {
  background: #f7f6f2;
  border-left-color: var(--blue);
}

.outline-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px;
}

.outline-progress {
  height: 8px;
  background: #deddd7;
  border-radius: 999px;
}

.outline-progress span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
}

.journal-score {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--blue);
}

.journal-score strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.timeline-list {
  position: relative;
  margin-top: 20px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.timeline-row {
  position: relative;
  align-items: flex-start;
  padding: 10px 0 10px 14px;
}

.timeline-row::before {
  position: absolute;
  top: 18px;
  left: -24px;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--blue);
  border: 3px solid var(--paper);
  border-radius: 50%;
}

.timeline-row strong {
  display: block;
  font-size: 14px;
}

.timeline-row span {
  color: var(--ink-soft);
  font-size: 12px;
}

.timeline-date {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}

.deliverables-section {
  padding: 94px 0 56px;
  background: #e4e0d7;
  border-top: 1px solid var(--ink);
}

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

.deliverable-grid article {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--ink);
}

.file-type {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 30px;
  color: white;
  background: var(--navy);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}

.deliverable-grid h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.deliverable-grid p {
  color: var(--ink-soft);
  font-size: 14px;
}

.download-link {
  width: fit-content;
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
  text-underline-offset: 4px;
}

.download-link[aria-disabled="true"] {
  color: #7c858b;
  cursor: not-allowed;
  pointer-events: none;
}

.boundary-note {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 26px;
  margin-top: 20px;
  padding: 22px 24px;
  color: var(--ink);
  background: var(--amber-soft);
  border: 1px solid #cc965f;
}

.boundary-note p {
  margin: 0;
  font-size: 14px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 34px max(28px, calc((100vw - var(--max-width)) / 2));
  color: #e5edf3;
  background: var(--navy);
}

footer div strong,
footer div span {
  display: block;
}

footer div span,
footer p,
footer a {
  font-size: 13px;
}

footer p {
  margin: 0;
  text-align: center;
}

footer a {
  justify-self: end;
  color: white;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-board {
    transform: none;
  }

  .workflow-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

  .overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 70px;
    padding: 10px 18px;
  }

  .brand small,
  .header-link {
    display: none;
  }

  .section-frame {
    width: min(100% - 28px, var(--max-width));
  }

  .hero {
    min-height: auto;
    padding-block: 54px 60px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .mini-pipeline,
  .workflow-cards,
  .deliverable-grid,
  .design-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .research-brief,
  .boundary-note {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .brief-meta {
    grid-column: 1;
  }

  .demo-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .stage-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .stage-button {
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .stage-button.active {
    border-bottom-color: var(--blue);
  }

  .workspace-progress {
    margin-top: 0;
  }

  .workspace-main {
    padding: 20px 16px;
  }

  .empty-state {
    min-height: 430px;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .panel-header,
  .task-item,
  .version-row,
  .outline-row {
    align-items: flex-start;
  }

  .task-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .task-id {
    grid-column: 2;
  }

  .outline-row {
    grid-template-columns: 1fr 52px;
  }

  .outline-progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 28px 18px;
    text-align: left;
  }

  footer p {
    text-align: left;
  }

  footer a {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
