:root {
  color-scheme: light;
  --ink: #172228;
  --muted: #607078;
  --faint: #7b8b90;
  --dark: #f4f6f6;
  --dark-2: #ffffff;
  --dark-3: #e9edef;
  --panel: #ffffff;
  --panel-2: #edf2f3;
  --line: #c9d3d7;
  --line-strong: #aab8be;
  --navy: #172930;
  --teal: #07889a;
  --mint: #0d766e;
  --acid: #ddff3e;
  --warning: #a46709;
  --danger: #b73838;
  --success: #207c54;
  --paper: #f4f6f6;
  --paper-ink: #172228;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--dark);
  font-size: 16px;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding-right: 30px;
  padding-left: 30px;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: #fffffff2;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--mint);
  color: var(--mint);
  font: 800 15px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.brand strong {
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: #42555a;
  font-size: 14px;
  font-weight: 680;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--mint);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.language-button,
.header-cta,
.outline-link,
.secondary-button,
.filter-tabs button,
.examples button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
  font-weight: 720;
}

.language-button {
  min-width: 48px;
  padding: 7px 10px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-color: var(--acid);
  color: var(--ink);
  background: var(--acid);
}

.primary-button {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--acid);
  border-radius: 4px;
  color: var(--ink);
  background: var(--acid);
  font-weight: 820;
}

.primary-button:hover,
.primary-button:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  background: #e8ff76;
}

.primary-button:disabled {
  cursor: wait;
  opacity: .58;
}

.eyebrow {
  margin: 0;
  color: var(--mint);
  font: 800 12px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.hero {
  padding: 58px 0 66px;
  border-bottom: 1px solid var(--line);
  background: var(--dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(430px, .9fr) minmax(560px, 1.1fr);
  gap: 52px;
  align-items: start;
}

.hero-copy {
  padding-top: 20px;
}

.hero-copy h1 {
  max-width: 700px;
  margin: 18px 0;
  font-size: 58px;
  line-height: 1.03;
}

.hero-lede {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.idea-box {
  margin-top: 36px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--mint);
  background: var(--dark-2);
}

.idea-box label {
  display: block;
  margin-bottom: 11px;
  font-size: 14px;
  font-weight: 780;
}

.idea-box textarea {
  width: 100%;
  min-height: 142px;
  resize: vertical;
  padding: 15px;
  border: 1px solid #aab8be;
  border-radius: 3px;
  outline: none;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
}

.idea-box textarea:focus,
.dialog-content input:focus,
.dialog-content textarea:focus,
.dialog-content select:focus,
.sort-control select:focus {
  border-color: var(--mint);
  outline: 2px solid #72d8b834;
  outline-offset: 1px;
}

.idea-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}

.idea-actions span {
  color: var(--faint);
  font-size: 12px;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
}

.examples > span {
  margin-right: 3px;
  color: var(--muted);
  font-size: 12px;
}

.examples button {
  min-height: 34px;
  padding: 6px 9px;
  color: #42555a;
  font-size: 12px;
}

.examples button:hover,
.examples button:focus-visible,
.secondary-button:hover,
.outline-link:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.concept-column {
  min-width: 0;
}

.concept-bench {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #ffffff;
}

.bench-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.bench-header strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bench-header span {
  flex: none;
  color: var(--faint);
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

#concept-diagram {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 440;
  background: #edf2f3;
}

.diagram-frame {
  fill: none;
  stroke: #c3ced1;
  stroke-width: 1.5;
}

.diagram-mount {
  fill: none;
  stroke: #819399;
  stroke-width: 1.5;
}

.diagram-trace {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2;
}

.diagram-signal {
  fill: none;
  stroke: var(--warning);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
}

.diagram-part {
  fill: #e2f3f1;
  stroke: var(--mint);
  stroke-width: 1.5;
}

.diagram-board {
  fill: #f2f7dc;
  stroke: var(--acid);
  stroke-width: 2;
}

.diagram-pad {
  fill: var(--warning);
}

.diagram-label {
  fill: var(--ink);
  font-size: 14px;
  font-weight: 780;
  text-anchor: middle;
}

.diagram-role {
  fill: #607078;
  font-size: 10px;
  text-anchor: middle;
}

.diagram-caption {
  fill: #7b8b90;
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.diagram-loading .diagram-part,
.diagram-loading .diagram-board {
  animation: diagram-pulse 1s ease-in-out infinite alternate;
}

@keyframes diagram-pulse {
  to { opacity: .42; }
}

.evaluation-result {
  min-height: 292px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-top: 0;
  background: var(--panel);
}

.result-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.verdict {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--mint);
  color: var(--mint);
  font-size: 12px;
  font-weight: 820;
}

.verdict.review {
  border-color: var(--danger);
  color: var(--danger);
}

.verdict.adjust {
  border-color: var(--warning);
  color: var(--warning);
}

.result-score {
  color: var(--muted);
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.result-score strong {
  color: var(--ink);
  font-size: 22px;
}

.score-progress {
  display: block;
  width: 100%;
  height: 5px;
  margin: 13px 0 18px;
  border: 0;
  color: var(--mint);
  background: #d7e0de;
  accent-color: var(--mint);
}

.score-progress::-webkit-progress-bar {
  background: #d7e0de;
}

.score-progress::-webkit-progress-value {
  background: var(--mint);
}

.score-progress::-moz-progress-bar {
  background: var(--mint);
}

.evaluation-result h2 {
  margin: 0 0 7px;
  font-size: 26px;
}

.result-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.result-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 19px 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.result-facts div {
  min-width: 0;
  padding: 11px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-facts span {
  display: block;
  color: var(--faint);
  font-size: 10px;
  text-transform: uppercase;
}

.result-facts strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.module-tags span {
  padding: 5px 7px;
  border: 1px solid #b8c6c3;
  color: #42555a;
  background: #f4f7f6;
  font-size: 10px;
}

.adjustment-list {
  margin: 14px 0 0;
  padding: 11px 13px 11px 29px;
  border-left: 3px solid var(--warning);
  color: #765713;
  background: #fff7df;
  font-size: 11px;
  line-height: 1.5;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 17px;
}

.result-actions button {
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  font-weight: 760;
}

.result-actions button:first-child {
  border-color: var(--acid);
  color: var(--ink);
  background: var(--acid);
}

.result-actions button:hover,
.result-actions button:focus-visible {
  border-color: var(--mint);
  color: var(--mint);
}

.result-actions button:first-child:hover,
.result-actions button:first-child:focus-visible {
  color: var(--ink);
}

.result-note {
  margin: 13px 0 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.5;
}

.section-band {
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
}

.plaza {
  color: var(--paper-ink);
  background: var(--paper);
}

.plaza .eyebrow {
  color: #087a82;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: end;
}

.section-heading h2,
.manufacturing h2,
.faq-section h2 {
  margin: 8px 0 10px;
  font-size: 40px;
  line-height: 1.15;
}

.section-heading p:not(.eyebrow),
.section-copy {
  max-width: 780px;
  margin: 0;
  color: #536468;
  line-height: 1.65;
}

.plaza-count {
  flex: none;
  color: #5a6d71;
  font: 800 16px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.plaza-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 34px 0 24px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-tabs button {
  padding: 8px 13px;
  border-color: #a9b8b5;
  color: #3c4d51;
  background: #eef4f1;
  font-size: 12px;
}

.filter-tabs button[aria-pressed="true"] {
  border-color: var(--navy);
  color: #f2f8f5;
  background: var(--navy);
}

.sort-control {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #596b6f;
  font-size: 12px;
}

.sort-control select {
  min-height: 38px;
  padding: 7px 32px 7px 10px;
  border: 1px solid #a9b8b5;
  border-radius: 3px;
  color: var(--paper-ink);
  background: #f5f8f6;
}

.plaza-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid #b9c5c2;
  border-radius: 4px;
  overflow: hidden;
  background: #f8faf9;
}

.case-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #cbd7d4;
}

.case-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease;
}

.case-card:hover .case-image-wrap img {
  transform: scale(1.025);
}

.case-number,
.image-boundary {
  position: absolute;
  padding: 5px 7px;
  color: #f4faf7;
  background: #0c181be8;
  font: 800 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.case-number {
  top: 10px;
  left: 10px;
}

.image-boundary {
  right: 10px;
  bottom: 10px;
  border: 1px solid #9db2ae;
}

.case-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.case-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: #147b80;
  font-size: 10px;
  font-weight: 800;
}

.case-status {
  color: #42575a;
}

.case-body h3 {
  margin: 11px 0 7px;
  font-size: 18px;
  line-height: 1.3;
}

.case-body > p {
  display: -webkit-box;
  min-height: 57px;
  margin: 0;
  overflow: hidden;
  color: #5d6e71;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 15px;
  border: 1px solid #ccd5d2;
  background: #ccd5d2;
}

.case-metrics div {
  min-width: 0;
  padding: 8px 6px;
  background: #f8faf9;
}

.case-metrics span {
  display: block;
  color: #748488;
  font-size: 9px;
}

.case-metrics strong {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.case-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
}

.case-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--navy);
  border-radius: 3px;
  color: var(--navy);
  background: transparent;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 760;
}

.case-actions .create-case {
  grid-column: 1 / -1;
  color: #eff7f4;
  background: var(--navy);
}

.case-actions a:hover { box-shadow: inset 0 0 0 1px currentColor; }
.case-actions a:focus-visible { outline: 3px solid var(--teal, #148a91); outline-offset: 3px; }

.loading-message,
.empty-message {
  grid-column: 1 / -1;
  padding: 50px 0;
  color: #5d6e71;
  text-align: center;
}

.how {
  background: #ffffff;
}

.compact-heading {
  align-items: start;
}

.compact-heading p:not(.eyebrow) {
  color: var(--muted);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 38px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-steps li {
  min-height: 224px;
  padding: 20px 18px;
  border-right: 1px solid var(--line);
}

.process-steps li:first-child {
  padding-left: 0;
}

.process-steps li:last-child {
  border-right: 0;
}

.process-steps span {
  color: var(--teal);
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.process-steps h3 {
  margin: 42px 0 9px;
  font-size: 19px;
}

.process-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.manufacturing {
  background: #edf2f3;
}

.manufacturing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, .7fr);
  gap: 70px;
  align-items: start;
}

.manufacturing .section-copy {
  color: var(--muted);
}

.file-list {
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.file-list li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.file-list strong {
  color: var(--ink);
  font-size: 13px;
}

.file-list span {
  color: var(--muted);
  font-size: 13px;
}

.handoff-panel {
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

.handoff-panel h3 {
  margin: 0 0 17px;
  font-size: 19px;
}

.handoff-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.handoff-row span {
  color: var(--muted);
}

.handoff-row strong {
  color: var(--warning);
  text-align: right;
}

.handoff-panel p {
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.outline-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
}

.faq-section {
  color: var(--paper-ink);
  background: var(--paper);
}

.faq-section .eyebrow {
  color: #087a82;
}

.faq-wrap {
  max-width: 960px;
}

.faq-list {
  margin-top: 27px;
  border-top: 1px solid #aebbb8;
}

.faq-list details {
  border-bottom: 1px solid #aebbb8;
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 760;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  color: #087a82;
  font-size: 24px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 760px;
  margin: -2px 0 19px;
  color: #596b6f;
  line-height: 1.7;
}

.site-footer {
  padding: 25px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  font-size: 12px;
}

.footer-inner div {
  display: flex;
  gap: 22px;
}

.footer-inner a:hover {
  color: var(--mint);
}

dialog {
  width: min(720px, calc(100% - 28px));
  max-height: 90vh;
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  background: #ffffff;
}

dialog::backdrop {
  background: #050b0dcc;
}

.dialog-content {
  padding: 26px;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.dialog-header h2 {
  margin: 8px 0 0;
  font-size: 26px;
}

.dialog-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: transparent;
  font-size: 24px;
}

.dialog-lede {
  margin: 14px 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.dialog-boundary {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-left: 3px solid var(--warning);
  color: #765713;
  background: #fff7df;
  font-size: 12px;
  line-height: 1.55;
}

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

.dialog-form label {
  min-width: 0;
}

.dialog-form label.wide {
  grid-column: 1 / -1;
}

.dialog-form label > span {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 720;
}

.dialog-content input,
.dialog-content textarea,
.dialog-content select {
  width: 100%;
  min-height: 43px;
  padding: 10px 11px;
  border: 1px solid #aab8be;
  border-radius: 3px;
  outline: 0;
  color: var(--ink);
  background: #ffffff;
}

.dialog-content textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.detected-modules {
  grid-column: 1 / -1;
  padding: 13px;
  border: 1px solid var(--line);
}

.detected-modules strong {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
}

.acknowledgement {
  display: flex;
  grid-column: 1 / -1;
  gap: 9px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.acknowledgement input {
  width: 17px;
  min-height: 17px;
  flex: none;
  margin-top: 1px;
}

.dialog-message {
  min-height: 18px;
  grid-column: 1 / -1;
  margin: 0;
  color: var(--danger);
  font-size: 12px;
}

.dialog-message.success {
  color: var(--success);
}

.dialog-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 3px;
}

.secondary-button {
  padding: 9px 13px;
}

.dialog-actions .primary-button {
  min-height: 42px;
}

.case-detail-image {
  display: block;
  width: 100%;
  max-height: 360px;
  margin: 20px 0;
  object-fit: cover;
  border: 1px solid var(--line);
}

.case-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.case-detail-grid div {
  padding: 11px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-detail-grid span {
  display: block;
  color: var(--faint);
  font-size: 10px;
}

.case-detail-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.case-detail-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  max-width: min(390px, calc(100% - 44px));
  padding: 12px 15px;
  border: 1px solid var(--mint);
  border-radius: 3px;
  color: #ffffff;
  background: var(--navy);
  box-shadow: 0 12px 36px rgba(23, 34, 40, .22);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(390px, .85fr) minmax(480px, 1.15fr);
    gap: 30px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

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

  .nav-links {
    gap: 19px;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 116px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    order: 3;
  }

  .hero-grid,
  .manufacturing-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 0;
  }

  .concept-column {
    max-width: 720px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-steps li,
  .process-steps li:first-child {
    min-height: 0;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-steps li:last-child {
    border-bottom: 0;
  }

  .process-steps h3 {
    margin-top: 9px;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand strong {
    font-size: 14px;
  }

  .header-cta {
    display: none;
  }

  .nav-links {
    gap: 8px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .nav-links a {
    flex: none;
    font-size: 12px;
  }

  .hero {
    padding: 38px 0 46px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .idea-box {
    margin-top: 26px;
    padding: 16px;
  }

  .idea-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .bench-header span {
    display: none;
  }

  .evaluation-result {
    padding: 16px;
  }

  .result-facts,
  .result-actions {
    grid-template-columns: 1fr;
  }

  .section-band {
    padding: 56px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2,
  .manufacturing h2,
  .faq-section h2 {
    font-size: 31px;
  }

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

  .sort-control {
    justify-content: space-between;
  }

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

  .case-image-wrap {
    aspect-ratio: 16 / 10;
  }

  .file-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .handoff-panel {
    padding: 18px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner div {
    flex-wrap: wrap;
    gap: 14px;
  }

  .dialog-content {
    padding: 20px 16px;
  }

  .dialog-form,
  .case-detail-grid {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    flex-direction: column-reverse;
  }

  .dialog-actions button {
    width: 100%;
  }
}

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

  .diagram-loading .diagram-part,
  .diagram-loading .diagram-board {
    animation: none;
  }

  .case-image-wrap img,
  .toast {
    transition: none;
  }
}
