:root {
  color-scheme: light dark;
  --paper: #fbfbf9;
  --surface: #ffffff;
  --surface-2: #f2f4f1;
  --ink: #151614;
  --on-ink: #ffffff;
  --inverse-bg: #151614;
  --inverse-fg: #ffffff;
  --ink-soft: #333832;
  --muted: #626860;
  --line: #dce0d8;
  --line-strong: #c5ccc2;
  --teal: #007f78;
  --teal-dark: #005e59;
  --amber: #b97817;
  --red: #b94637;
  --blue: #315fc9;
  --green: #2d7d48;
  --shadow: 0 22px 60px rgba(21, 22, 20, 0.12);
  --radius: 8px;
  --shell: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1110;
    --surface: #171a18;
    --surface-2: #202420;
    --ink: #f3f5f0;
    --on-ink: #0f1110;
    --inverse-bg: #050706;
    --inverse-fg: #f3f5f0;
    --ink-soft: #d7dbd3;
    --muted: #9aa39a;
    --line: #30362f;
    --line-strong: #465044;
    --teal: #40c4bb;
    --teal-dark: #7edbd4;
    --amber: #d49a3b;
    --red: #df6a5d;
    --blue: #7c9cff;
    --green: #69ba82;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

body,
button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

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

button,
input,
textarea {
  border: 0;
}

button {
  cursor: pointer;
}

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

meter {
  width: 100%;
  height: 8px;
}

meter::-webkit-meter-bar {
  background: #e6e9e3;
  border: 0;
  border-radius: 999px;
}

meter::-webkit-meter-optimum-value {
  background: var(--teal);
  border-radius: 999px;
}

meter::-moz-meter-bar {
  background: var(--teal);
  border-radius: 999px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-180%);
  background: var(--inverse-bg);
  color: var(--inverse-fg);
  padding: 10px 14px;
  border-radius: var(--radius);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 249, 0.92);
  border-bottom: 1px solid rgba(220, 224, 216, 0.86);
  backdrop-filter: blur(16px);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(15, 17, 16, 0.92);
    border-bottom-color: rgba(48, 54, 47, 0.86);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 760;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  content: "";
  display: block;
  border-radius: 999px;
}

.brand-mark::before {
  width: 18px;
  height: 18px;
  border: 2px solid var(--teal);
}

.brand-mark::after {
  width: 2px;
  height: 28px;
  background: var(--ink);
  transform: rotate(42deg);
}

.brand-mark span {
  width: 6px;
  height: 6px;
  background: var(--amber);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links a:not(.button) {
  padding-block: 10px;
}

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

.nav-link-strong {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 4px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: var(--teal);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--ink);
}

.button-dark {
  background: var(--inverse-bg);
  color: var(--inverse-fg);
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.button-small {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.88rem;
}

.section-band {
  padding-block: 76px;
}

.hero {
  padding-block: 52px 28px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  gap: 54px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

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

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

h1 {
  margin-bottom: 20px;
  max-width: 760px;
  font-size: 4.25rem;
  line-height: 0.96;
}

h2 {
  margin-bottom: 16px;
  max-width: 760px;
  font-size: 2.75rem;
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.18;
}

h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-lede,
.section-intro p,
.final-cta p {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li,
.final-cta-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 680;
}

.trust-list li::before,
.check-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--teal);
  border-radius: 50%;
  flex: 0 0 auto;
}

.case-console,
.analysis-form,
.intake-panel,
.case-score-panel,
.code-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.case-console {
  padding: 18px;
}

.console-topbar,
.intake-head,
.score-head,
.code-panel-head,
.lifecycle-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.console-topbar {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.console-topbar p,
.console-topbar strong,
.intake-head strong,
.score-head strong,
.code-panel-head strong {
  margin: 0;
}

.console-topbar p,
.console-topbar span,
.metric-grid span,
.confidence-list span,
.score-head span,
.category-line span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  text-transform: uppercase;
}

.console-topbar span {
  min-width: max-content;
  padding: 6px 9px;
  background: rgba(0, 127, 120, 0.1);
  border: 1px solid rgba(0, 127, 120, 0.22);
  border-radius: 999px;
  color: var(--teal-dark);
}

.severity-scale {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.severity-item {
  min-height: 76px;
  padding: 12px;
  border-radius: var(--radius);
  color: #fff;
}

.severity-item span,
.severity-item strong {
  display: block;
}

.severity-item span {
  font-size: 0.76rem;
  font-weight: 760;
}

.severity-item strong {
  margin-top: 10px;
  font-size: 1.7rem;
  line-height: 1;
}

.severity-high {
  background: var(--red);
}

.severity-mid {
  background: var(--amber);
}

.severity-low {
  background: var(--teal);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 12px;
}

.metric-grid div {
  min-height: 84px;
  padding: 13px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.metric-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 1.7rem;
  line-height: 1;
}

.reconstruction-view {
  position: relative;
  min-height: 210px;
  margin-top: 16px;
  overflow: hidden;
  background: #20231f;
  border-radius: var(--radius);
}

.road-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(135deg, rgba(0, 127, 120, 0.22), rgba(185, 70, 55, 0.16));
}

.vehicle {
  position: absolute;
  display: grid;
  width: 76px;
  height: 38px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 6px;
  color: #fff;
  font-weight: 860;
}

.vehicle-a {
  right: 96px;
  bottom: 62px;
  background: var(--blue);
}

.vehicle-b {
  right: 184px;
  bottom: 67px;
  background: var(--red);
}

.impact-vector {
  position: absolute;
  right: 166px;
  bottom: 86px;
  width: 72px;
  height: 3px;
  background: #fff;
}

.impact-vector::after {
  position: absolute;
  right: -2px;
  top: -5px;
  content: "";
  border-left: 10px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.delta-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 820;
}

.confidence-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.confidence-list div {
  display: grid;
  grid-template-columns: 132px 1fr 38px;
  align-items: center;
  gap: 10px;
}

.confidence-list strong {
  text-align: right;
}

.logo-band {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  overflow-x: auto;
}

.logo-band span,
.logo-band strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

.logo-band span {
  font-size: 0.82rem;
}

.logo-band strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.analysis-band,
.workflow-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 36px;
  align-items: start;
}

.analysis-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.upload-zone {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface-2);
  transition: border-color 160ms ease, background 160ms ease;
}

.upload-zone.is-dragging {
  background: rgba(0, 127, 120, 0.08);
  border-color: var(--teal);
}

.upload-zone.is-ready {
  border-color: rgba(0, 127, 120, 0.72);
}

.upload-zone.is-error {
  background: rgba(185, 70, 55, 0.08);
  border-color: var(--red);
}

.upload-zone label {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 126px;
  cursor: pointer;
  text-align: center;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-zone p,
.upload-zone small,
.file-output,
.form-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.upload-zone p {
  margin: 14px 0 0;
  text-align: center;
}

.file-output {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-weight: 680;
}

.file-output.is-success,
.form-note.is-success {
  color: var(--teal-dark);
}

.file-output.is-error,
.form-note.is-error {
  color: var(--red);
}

.upload-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
}

.upload-icon::before {
  position: absolute;
  left: 11px;
  top: 11px;
  width: 14px;
  height: 14px;
  content: "";
  border-top: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
  transform: rotate(45deg);
}

.upload-icon::after {
  position: absolute;
  left: 18px;
  top: 13px;
  width: 2px;
  height: 16px;
  content: "";
  background: var(--teal);
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 760;
}

label span {
  font-size: 0.84rem;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(0, 127, 120, 0.28);
  outline-offset: 2px;
}

.form-note {
  margin: 0;
}

.proof-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.proof-strip div {
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.problem-band {
  background: var(--inverse-bg);
  color: var(--inverse-fg);
}

.problem-band .section-kicker {
  color: #76d7cf;
}

.problem-band .section-intro p,
.problem-band .stat-stack span,
.problem-band .lifecycle-grid p,
.problem-band .lifecycle-grid small,
.problem-band .lifecycle-header span {
  color: rgba(255, 255, 255, 0.72);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: 36px;
  align-items: start;
}

.stat-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-stack div {
  min-height: 142px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.stat-stack strong {
  display: block;
  font-size: 2.25rem;
  line-height: 1;
}

.stat-stack span {
  display: block;
  margin-top: 12px;
}

.lifecycle {
  margin-top: 36px;
}

.lifecycle-header {
  margin-bottom: 14px;
}

.lifecycle-header h3 {
  margin: 0;
}

.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.lifecycle-grid article {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.lifecycle-grid article > span,
.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  background: rgba(0, 127, 120, 0.12);
  border-radius: 50%;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 840;
}

.lifecycle-grid strong,
.lifecycle-grid small {
  display: block;
}

.lifecycle-grid strong {
  margin-top: 18px;
}

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

.science-note {
  width: min(100%, 340px);
  margin: 0;
  padding: 14px 16px;
  background: rgba(0, 127, 120, 0.08);
  border: 1px solid rgba(0, 127, 120, 0.18);
  border-radius: var(--radius);
  color: var(--teal-dark);
  font-weight: 760;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.feature-card {
  min-height: 236px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-card p,
.solution-copy p,
.score-summary,
.faq-list p,
.site-footer p {
  color: var(--muted);
}

.workflow-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) minmax(340px, 420px);
  gap: 24px;
  align-items: stretch;
  margin-top: 34px;
}

.workflow-tabs,
.workflow-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.workflow-tab,
.segment {
  min-height: 50px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 760;
  text-align: left;
}

.workflow-tab.is-active,
.segment.is-active {
  background: var(--inverse-bg);
  border-color: var(--inverse-bg);
  color: var(--inverse-fg);
}

.workflow-panel {
  display: none;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.workflow-panel.is-active {
  display: block;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  color: var(--ink-soft);
  font-weight: 650;
}

.intake-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.intake-head span,
.intake-foot {
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 780;
}

.intake-row {
  display: grid;
  grid-template-columns: 38px 1fr 74px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.intake-row strong,
.intake-row span {
  display: block;
}

.intake-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.doc-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
}

.photo-icon {
  background:
    radial-gradient(circle at 70% 30%, #fff 0 3px, transparent 4px),
    linear-gradient(135deg, var(--blue), #6785d7);
}

.report-icon {
  background:
    linear-gradient(#fff 0 0) 11px 12px / 16px 2px no-repeat,
    linear-gradient(#fff 0 0) 11px 19px / 16px 2px no-repeat,
    linear-gradient(135deg, var(--teal), #45a79f);
}

.repair-icon {
  background:
    linear-gradient(45deg, transparent 42%, #fff 43% 56%, transparent 57%),
    var(--amber);
}

.medical-icon {
  background:
    linear-gradient(#fff 0 0) center / 20px 6px no-repeat,
    linear-gradient(90deg, transparent 0 42%, #fff 43% 56%, transparent 57%),
    var(--red);
}

.intake-foot {
  padding-top: 4px;
}

.solution-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 24px;
  margin-top: 34px;
  align-items: start;
}

.segment-control {
  display: grid;
  gap: 10px;
}

.solution-panel {
  display: none;
}

.solution-panel.is-active {
  display: block;
}

.solution-copy {
  min-height: 340px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.solution-copy > span {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-weight: 820;
}

.case-score-panel {
  padding: 18px;
}

.score-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.score-head strong {
  display: block;
}

.score-grade {
  display: grid;
  width: 86px;
  min-height: 86px;
  place-items: center;
  background: var(--inverse-bg);
  border-radius: var(--radius);
  color: var(--inverse-fg);
  text-align: center;
}

.score-grade span {
  color: var(--inverse-fg);
  font-size: 1.85rem;
}

.score-grade strong {
  font-size: 0.86rem;
}

.score-summary {
  margin: 16px 0;
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--radius);
}

.score-rows {
  display: grid;
  gap: 12px;
}

.score-rows div {
  display: grid;
  grid-template-columns: minmax(104px, 0.9fr) minmax(110px, 1fr) 0.8fr;
  gap: 10px;
  align-items: center;
}

.score-rows span {
  color: var(--muted);
  font-size: 0.86rem;
}

.category-line {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.api-band {
  background: var(--inverse-bg);
  color: var(--inverse-fg);
}

.api-band .section-kicker {
  color: #76d7cf;
}

.api-band .section-intro p {
  color: rgba(255, 255, 255, 0.74);
}

.api-band .button-secondary {
  background: var(--surface);
}

.api-band .button-ghost {
  color: var(--inverse-fg);
  border-color: rgba(255, 255, 255, 0.34);
}

.api-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: center;
}

.code-panel {
  overflow: hidden;
  background: #0f100f;
  border-color: rgba(255, 255, 255, 0.16);
}

.code-panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
}

.code-panel-head strong {
  color: #fff;
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
}

code {
  color: #e9efe7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

summary {
  min-height: 58px;
  padding: 17px 18px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 780;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
}

.final-cta {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.final-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.54fr);
  gap: 36px;
  align-items: center;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.final-cta-actions .button {
  flex: 1 1 210px;
}

.site-footer {
  padding-block: 48px 28px;
  background: var(--inverse-bg);
  color: var(--inverse-fg);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(4, minmax(120px, 0.55fr));
  gap: 24px;
}

.site-footer .brand {
  display: inline-flex;
  color: var(--inverse-fg);
}

.site-footer .brand-mark {
  border-color: var(--inverse-fg);
}

.site-footer .brand-mark::after {
  background: var(--inverse-fg);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--inverse-fg);
  font-size: 0.92rem;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
}

.footer-bottom a {
  margin: 0;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 72px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links .button {
    grid-column: span 2;
  }

  .hero-grid,
  .analysis-grid,
  .split-section,
  .api-layout,
  .faq-layout,
  .final-cta-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 32px;
  }

  .proof-strip,
  .feature-grid,
  .lifecycle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-layout,
  .solution-layout {
    grid-template-columns: 1fr;
  }

  .workflow-tabs,
  .segment-control {
    grid-template-columns: repeat(3, 1fr);
  }

  .final-cta-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 740px) {
  .shell {
    width: min(100% - 32px, var(--shell));
  }

  .section-band {
    padding-block: 52px;
  }

  .hero {
    padding-block: 34px 20px;
  }

  h1 {
    font-size: 2.75rem;
    line-height: 1;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .hero-lede,
  .section-intro p,
  .final-cta p {
    font-size: 1rem;
  }

  .cta-row,
  .final-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trust-list li,
  .final-cta-actions span {
    width: 100%;
  }

  .case-console {
    padding: 14px;
  }

  .console-topbar,
  .section-heading-row,
  .score-head,
  .footer-bottom {
    display: grid;
  }

  .severity-scale,
  .metric-grid,
  .field-grid,
  .proof-strip,
  .feature-grid,
  .lifecycle-grid,
  .stat-stack,
  .workflow-tabs,
  .segment-control {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    border-bottom: 0;
  }

  .confidence-list div,
  .score-rows div,
  .intake-row {
    grid-template-columns: 1fr;
  }

  .confidence-list strong {
    text-align: left;
  }

  .reconstruction-view {
    min-height: 184px;
  }

  .vehicle-a {
    right: 48px;
  }

  .vehicle-b {
    right: 126px;
  }

  .impact-vector {
    right: 108px;
  }

  .upload-zone {
    padding: 16px;
  }

  .analysis-form,
  .solution-copy,
  .case-score-panel,
  .intake-panel {
    padding: 16px;
  }

  .nav-links {
    grid-template-columns: 1fr;
  }

  .nav-links .button {
    grid-column: span 1;
  }

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

.concept-page {
  background:
    linear-gradient(180deg, rgba(0, 127, 120, 0.07), transparent 360px),
    var(--paper);
}

.nav-links-static {
  display: flex;
}

.concept-hero {
  padding-block: 68px 42px;
}

.concept-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 42px;
  align-items: center;
}

.concept-brief {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.concept-brief h2 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.concept-brief p {
  color: var(--muted);
}

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

.concept-card {
  display: grid;
  gap: 18px;
  min-height: 520px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.concept-card.is-recommended {
  border-color: rgba(0, 127, 120, 0.45);
  box-shadow: var(--shadow);
}

.concept-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.concept-card-head span,
.concept-card-head strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 840;
}

.concept-card-head span {
  background: rgba(0, 127, 120, 0.12);
  color: var(--teal-dark);
}

.concept-card-head strong {
  background: var(--inverse-bg);
  color: var(--inverse-fg);
}

.concept-card h3 {
  margin-bottom: 0;
  font-size: 1.9rem;
}

.concept-line {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
  font-weight: 680;
}

.swatch-row {
  display: flex;
  gap: 8px;
}

.swatch-row span {
  width: 48px;
  height: 48px;
  background: var(--swatch);
  border: 1px solid rgba(21, 22, 20, 0.16);
  border-radius: var(--radius);
}

.concept-details {
  display: grid;
  gap: 12px;
  margin: 0;
}

.concept-details div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.concept-details dt {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 840;
  text-transform: uppercase;
}

.concept-details dd {
  margin: 0;
  color: var(--muted);
}

.concept-lab .concept-card-head span {
  background: rgba(45, 125, 72, 0.14);
  color: var(--green);
}

.concept-claims .concept-card-head span {
  background: rgba(49, 95, 201, 0.12);
  color: var(--blue);
}

.concept-api .concept-card-head span {
  background: rgba(109, 93, 252, 0.12);
  color: #4f46e5;
}

.concept-samples {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

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

.sample-grid article {
  min-height: 260px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sample-grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 840;
  text-transform: uppercase;
}

.sample-grid h3 {
  font-size: 1.28rem;
}

.sample-grid p {
  color: var(--muted);
}

.decision-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.5fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.decision-table {
  display: grid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.decision-table > div {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 1fr;
}

.decision-table strong,
.decision-table span {
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.decision-table strong:last-child,
.decision-table span:last-child {
  border-right: 0;
}

.decision-table > div:last-child span {
  border-bottom: 0;
}

.decision-table strong {
  background: var(--inverse-bg);
  color: var(--inverse-fg);
}

.decision-table span {
  color: var(--ink-soft);
}

@media (max-width: 1080px) {
  .nav-links-static {
    position: static;
    display: flex;
    flex-wrap: wrap;
    box-shadow: none;
  }

  .concept-hero-grid,
  .decision-layout {
    grid-template-columns: 1fr;
  }

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

.spec-editor-page {
  height: 100vh;
  overflow: hidden;
  background: var(--paper);
}

.spec-app {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  height: 100vh;
  color: var(--ink);
}

.spec-sidebar {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  min-height: 0;
  padding: 18px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.spec-brand {
  align-self: start;
}

.spec-sidebar-head {
  padding-top: 8px;
}

.spec-sidebar-head p,
.spec-sidebar-label,
.spec-card-preview > p,
.spec-topbar span,
.spec-order-panel span {
  margin: 0;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 840;
  text-transform: uppercase;
}

.spec-sidebar-head h1 {
  margin: 4px 0 0;
  font-size: 1.5rem;
  line-height: 1.1;
}

.direction-list {
  align-self: start;
}

.spec-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.spec-actions-four {
  grid-template-columns: 1fr 1fr;
}

.spec-action {
  min-height: 38px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 760;
}

.spec-action:hover,
.spec-action:focus-visible {
  border-color: var(--teal);
}

.spec-sidebar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.spec-list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.spec-list li {
  border-radius: var(--radius);
}

.spec-list li.is-dragging {
  opacity: 0.45;
}

.spec-list-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 720;
  text-align: left;
}

.spec-list-button span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.spec-list-button strong,
.spec-list-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spec-list-button strong {
  font-size: 0.92rem;
}

.spec-list-button small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  text-transform: uppercase;
}

.spec-list-button::before {
  content: "::";
  margin-right: 10px;
  color: var(--line-strong);
  font-weight: 840;
}

.spec-list-button:hover,
.spec-list-button:focus-visible {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink);
}

.spec-list-button.is-active {
  background: var(--inverse-bg);
  color: var(--inverse-fg);
}

.spec-list-button.is-active::before {
  color: rgba(255, 255, 255, 0.62);
}

.spec-list-button.is-active small {
  color: rgba(255, 255, 255, 0.72);
}

.spec-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.spec-preview {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.spec-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 14px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.spec-topbar strong {
  display: block;
  margin-top: 2px;
}

.spec-topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-topbar a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 720;
}

.spec-card-preview,
.direction-preview {
  align-self: start;
  width: min(100% - 44px, 820px);
  margin: 22px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(21, 22, 20, 0.07);
}

.direction-preview {
  width: min(100% - 44px, 980px);
}

.spec-card-preview h2 {
  margin: 8px 0 14px;
  font-size: 2rem;
}

.spec-card-preview > strong {
  display: block;
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.spec-card-preview ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.spec-card-preview li {
  display: flex;
  align-items: flex-start;
  color: var(--ink-soft);
}

.spec-card-preview li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin: 8px 10px 0 0;
  background: var(--teal);
  border-radius: 50%;
  flex: 0 0 auto;
}

.direction-preview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.direction-preview-head p {
  margin: 0;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 840;
  text-transform: uppercase;
}

.direction-preview-head h2 {
  margin: 6px 0 0;
  font-size: 2rem;
}

.direction-preview-head strong {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  max-width: 260px;
  padding: 8px 12px;
  background: var(--inverse-bg);
  border-radius: var(--radius);
  color: var(--inverse-fg);
  font-size: 0.86rem;
  text-align: center;
}

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

.direction-preview-grid article {
  min-height: 132px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.direction-preview-grid article:first-child {
  grid-column: 1 / -1;
}

.direction-preview-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 840;
  text-transform: uppercase;
}

.direction-preview-grid h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.direction-preview-grid p,
.direction-preview-grid ol {
  margin: 0;
  color: var(--ink-soft);
}

.direction-preview-grid ol {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.spec-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.spec-swatches span {
  width: 44px;
  height: 44px;
  background: var(--swatch);
  border: 1px solid rgba(21, 22, 20, 0.16);
  border-radius: var(--radius);
}

.spec-order-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 22px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.spec-order-panel h2 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.spec-order-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-order-list li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 720;
}

.spec-order-list span {
  margin-right: 8px;
  color: var(--teal-dark);
}

@media (max-width: 860px) {
  .spec-editor-page {
    height: auto;
    overflow: auto;
  }

  .spec-app {
    grid-template-columns: 1fr;
    height: auto;
  }

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

  .spec-list {
    max-height: 320px;
  }

  .spec-preview {
    overflow: visible;
  }

  .spec-topbar,
  .spec-order-panel {
    display: grid;
  }

  .spec-card-preview {
    width: auto;
  }

  .direction-preview {
    width: auto;
  }

  .direction-preview-head,
  .direction-preview-grid {
    grid-template-columns: 1fr;
  }

  .direction-preview-head {
    display: grid;
  }

  .direction-preview-grid article:first-child {
    grid-column: auto;
  }
}

.wordmark-page .spec-app {
  grid-template-columns: 280px minmax(0, 1fr);
}

.wordmark-page .spec-sidebar {
  gap: 16px;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  overflow: hidden;
}

.wordmark-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  align-self: stretch;
  width: min(100% - 44px, 1040px);
  margin: 22px 22px 40px;
  height: calc(100vh - 128px);
  min-height: 0;
}

.wordmark-hero,
.wordmark-sample {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.wordmark-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 0;
  padding: 36px;
  overflow: hidden;
}

.wordmark-hero .wm-name {
  font-size: 4.75rem;
}

.wordmark-hero .wm-lockup {
  font-size: 4.75rem;
}

.wordmark-controls {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.config-fields,
.wordmark-control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.config-field {
  display: grid;
  gap: 4px;
  min-width: 180px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.config-field input {
  min-height: 34px;
  padding: 6px 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 720;
  text-transform: none;
}

.config-field input:focus {
  outline: 0;
  border-color: var(--teal);
}

.tracking-field {
  grid-template-columns: auto minmax(120px, 220px) auto;
  align-items: end;
}

.tracking-field span {
  grid-column: 1 / -1;
}

.tracking-field output {
  min-width: 4.8em;
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  text-transform: none;
}

.config-chip {
  min-height: 32px;
  padding: 6px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 760;
}

.wordmark-control-row {
  align-items: center;
}

.wordmark-control-row .spec-action {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.config-chip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

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

.wordmark-sample {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 164px;
  padding: 16px;
}

.wordmark-sample > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wordmark-sample .wm-name {
  font-size: 1.45rem;
}

.wordmark-sample .wm-lockup {
  font-size: 1.45rem;
}

.wordmark-sample-small .wm-name {
  font-size: 1rem;
}

.wordmark-sample-text .wm-name {
  font-size: 1.2rem;
}

.wm-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.wm-name {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--ink);
  line-height: 0.96;
  letter-spacing: 0;
}

.wm-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22em;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--ink);
  line-height: 0.92;
  letter-spacing: 0;
}

.wm-word,
.wm-stack-line,
.wm-compact-name {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
}

.wm-stack-line,
.wm-compact-name {
  display: flex;
}

.wm-lockup-stacked {
  display: grid;
  gap: 0.12em;
  line-height: 0.86;
}

.wm-lockup-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.52em;
  line-height: 1;
}

.wm-lockup-glyphs {
  gap: 0.12em;
  font-size: 3.5rem;
  line-height: 0.85;
}

.wm-glyph-pair {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 1.25em;
  line-height: 0.8;
}

.wm-compact-name {
  display: grid;
  gap: 0;
  font-size: 0.52em;
  line-height: 0.92;
}

.wm-letter {
  position: relative;
  display: inline-block;
  font-weight: inherit;
  line-height: 0.86;
}

.wm-letter::after {
  position: absolute;
  content: "";
  display: none;
  pointer-events: none;
}

.wm-rest {
  display: inline-block;
}

.wm-signal .wm-lockup,
.wm-signal-sans .wm-lockup {
  transform: skewX(-6deg);
}

.wm-lockup-glyphs .wm-letter::after,
.wm-glyph-pair .wm-letter::after {
  display: block;
  background: var(--surface);
}

.wm-signal .wm-letter-s::after,
.wm-signal-sans .wm-letter-s::after {
  left: -0.04em;
  top: 0.34em;
  width: 1.02em;
  height: 0.16em;
  transform: skewX(-24deg);
}

.wm-signal .wm-letter-w::after,
.wm-signal-sans .wm-letter-w::after {
  left: 0.34em;
  top: 0.08em;
  width: 0.24em;
  height: 0.78em;
  transform: skewX(-18deg);
}

.wm-forensic .wm-letter {
  font-weight: 900;
}

.wm-forensic .wm-letter-w::after {
  display: block;
  left: 0.42em;
  top: 0.1em;
  width: 0.14em;
  height: 0.75em;
  background: var(--surface);
  transform: skewX(-10deg);
}

.wm-data-shard .wm-letter-s::after {
  left: 0.1em;
  top: 0.17em;
  width: 0.74em;
  height: 0.62em;
  clip-path: polygon(0 0, 100% 26%, 62% 50%, 100% 74%, 0 100%, 42% 50%);
}

.wm-data-shard .wm-letter-w::after {
  left: 0.2em;
  top: 0.08em;
  width: 0.64em;
  height: 0.78em;
  clip-path: polygon(0 0, 24% 0, 45% 58%, 52% 32%, 60% 32%, 78% 0, 100% 0, 65% 100%, 50% 76%, 35% 100%);
}

.wm-vector-fold .wm-letter-s::after {
  left: 0.04em;
  top: 0.23em;
  width: 0.84em;
  height: 0.44em;
  clip-path: polygon(0 0, 88% 0, 100% 34%, 42% 34%, 86% 100%, 0 100%, 48% 52%);
}

.wm-vector-fold .wm-letter-w::after {
  left: 0.18em;
  top: 0.08em;
  width: 0.7em;
  height: 0.76em;
  clip-path: polygon(0 0, 28% 0, 42% 64%, 50% 38%, 58% 38%, 72% 0, 100% 0, 78% 100%, 60% 100%, 50% 72%, 40% 100%, 22% 100%);
}

.wordmark-sample-glyphs .wm-lockup {
  font-size: 4rem;
}

.wordmark-tags > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wordmark-tags div span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 720;
}

.wm-forensic .wm-name {
  font-weight: 800;
}

.wm-instrument .wm-name {
  font-weight: 900;
  text-transform: uppercase;
}

.wm-mono .wm-name,
.wm-api .wm-name {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 760;
}

.wm-serif .wm-name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.wm-signal .wm-name {
  font-weight: 900;
  font-style: italic;
}

.wm-compact .wm-name {
  font-weight: 850;
}

.wm-blackbox .wm-name {
  font-weight: 900;
}

.wm-lab .wm-name {
  font-weight: 650;
}

.wm-intake .wm-name {
  font-weight: 760;
}

.wm-defense .wm-name {
  font-weight: 780;
  text-transform: uppercase;
}

.wm-report .wm-name {
  font-weight: 820;
}

.wm-signal-sans .wm-name,
.wm-forensic-cut .wm-name {
  font-weight: 860;
}

.wm-signal-sans .wm-name {
  font-style: italic;
}

.wm-data-shard .wm-name,
.wm-signal-path .wm-name,
.wm-node-stack .wm-name,
.wm-vector-fold .wm-name {
  font-weight: 820;
}

.font-signal-sf .wm-lockup,
.font-signal-sf .wm-name,
.font-chip.font-signal-sf {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-style: normal;
  font-weight: 900;
}

.font-signal-avenir .wm-lockup,
.font-signal-avenir .wm-name,
.font-chip.font-signal-avenir {
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-style: italic;
  font-weight: 850;
}

.font-signal-din .wm-lockup,
.font-signal-din .wm-name,
.font-chip.font-signal-din {
  font-family: "DIN Condensed", "DIN Alternate", "Arial Narrow", Arial, sans-serif;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.font-signal-black .wm-lockup,
.font-signal-black .wm-name,
.font-chip.font-signal-black {
  font-family: Impact, Haettenschweiler, "Arial Black", Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
}

.font-signal-mono .wm-lockup,
.font-signal-mono .wm-name,
.font-chip.font-signal-mono {
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-style: normal;
  font-weight: 800;
}

.font-signal-condensed .wm-lockup,
.font-signal-condensed .wm-name,
.font-chip.font-signal-condensed {
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-style: italic;
  font-stretch: condensed;
  font-weight: 900;
}

.font-fold-avenir .wm-lockup,
.font-fold-avenir .wm-name,
.font-chip.font-fold-avenir {
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-style: normal;
  font-weight: 820;
}

.font-fold-futura .wm-lockup,
.font-fold-futura .wm-name,
.font-chip.font-fold-futura {
  font-family: Futura, "Trebuchet MS", Arial, sans-serif;
  font-style: normal;
  font-weight: 760;
}

.font-fold-helvetica .wm-lockup,
.font-fold-helvetica .wm-name,
.font-chip.font-fold-helvetica {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 880;
}

.font-fold-din .wm-lockup,
.font-fold-din .wm-name,
.font-chip.font-fold-din {
  font-family: "DIN Alternate", "Arial Narrow", Arial, sans-serif;
  font-style: normal;
  font-weight: 840;
  text-transform: uppercase;
}

.font-fold-mono .wm-lockup,
.font-fold-mono .wm-name,
.font-chip.font-fold-mono {
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-style: normal;
  font-weight: 760;
}

.font-fold-gill .wm-lockup,
.font-fold-gill .wm-name,
.font-chip.font-fold-gill {
  font-family: "Gill Sans", "Trebuchet MS", Arial, sans-serif;
  font-style: normal;
  font-weight: 780;
}

.font-signal-sf .wm-lockup,
.font-fold-avenir .wm-lockup,
.font-fold-futura .wm-lockup,
.font-fold-helvetica .wm-lockup,
.font-fold-din .wm-lockup,
.font-fold-mono .wm-lockup,
.font-fold-gill .wm-lockup {
  transform: none;
}

.font-signal-avenir .wm-lockup {
  transform: skewX(-4deg);
}

.font-signal-din .wm-lockup,
.font-signal-black .wm-lockup,
.font-signal-condensed .wm-lockup {
  transform: skewX(-8deg);
}

.font-signal-mono .wm-lockup {
  transform: skewX(-2deg);
}

.wordmark-hero .wm-lockup,
.wordmark-hero .wm-name {
  font-family: var(--wm-font);
  font-weight: var(--wm-weight);
  letter-spacing: var(--wm-tracking);
  white-space: nowrap;
}

.wordmark-hero .wm-lockup {
  align-items: center;
  transform: none;
}

.wordmark-hero .wm-word,
.wordmark-hero .wm-name,
.wordmark-hero .wm-rest {
  white-space: nowrap;
}

.wm-mark {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  color: var(--ink);
}

.wordmark-hero .wm-mark {
  width: 86px;
  height: 86px;
  flex-basis: 86px;
}

.wordmark-sample .wm-mark {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.wm-mark-svg {
  overflow: visible;
}

.wm-mark-svg .mark-fill {
  fill: currentColor;
}

.wm-mark-svg .mark-knockout {
  fill: var(--surface);
}

.wm-mark-svg .mark-cutline {
  fill: none;
  stroke: var(--surface);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 8;
}

.wm-mark-svg .mark-stroke-fill {
  fill: none;
  stroke: currentColor;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-width: 8;
}

.wm-mark-svg.mark-sw-monogram-cut .mark-stroke-fill {
  stroke-width: 18;
}

.wm-mark-svg.mark-flow-s-cut .mark-stroke-fill {
  stroke-width: 15;
}

.wm-mark-svg.mark-angular-sw-lock .mark-stroke-fill {
  stroke-width: 9;
}

.wm-mark-svg .mark-stroke-round {
  stroke-linejoin: round;
}

.wm-mark-svg .mark-stroke-cut,
.wm-mark-svg .mark-type-cut {
  fill: none;
  stroke: var(--surface);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 4;
}

.wm-mark-svg .mark-type-cut {
  stroke-linecap: round;
  stroke-width: 3.5;
}

.wm-mark-svg.mark-sw-monogram-cut .mark-stroke-cut,
.wm-mark-svg.mark-flow-s-cut .mark-stroke-cut,
.wm-mark-svg.mark-angular-sw-lock .mark-stroke-cut {
  stroke-width: 5;
}

.wm-mark-svg.mark-angular-sw-lock .mark-stroke-cut {
  stroke-width: 4;
}

.wm-mark-svg .mark-type-sw {
  fill: currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-weight: 500;
}

.wm-mark-svg .mark-cutline-thin {
  stroke-width: 5;
}

.wm-mark-svg .mark-fold-line {
  fill: none;
  stroke: var(--surface);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 5;
}

.shape-option .wm-mark {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
}

.wm-mark::before,
.wm-mark::after {
  position: absolute;
  content: "";
  display: block;
}

.mark-corner {
  border-top: 10px solid currentColor;
  border-left: 10px solid currentColor;
}

.mark-corner::before {
  right: 0;
  bottom: 0;
  width: 56%;
  height: 10px;
  background: currentColor;
}

.mark-corner::after {
  right: 0;
  bottom: 0;
  width: 10px;
  height: 56%;
  background: currentColor;
}

.mark-block::before {
  inset: 0;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 100% 32% no-repeat,
    linear-gradient(currentColor 0 0) 0 0 / 32% 100% no-repeat,
    linear-gradient(currentColor 0 0) 48% 48% / 52% 28% no-repeat;
}

.mark-block::after {
  right: 0;
  bottom: 0;
  width: 32%;
  height: 32%;
  background: currentColor;
}

.mark-grid {
  border: 5px solid currentColor;
}

.mark-grid::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 45%, currentColor 46% 55%, transparent 56%),
    linear-gradient(transparent 45%, currentColor 46% 55%, transparent 56%);
}

.mark-grid::after {
  right: -5px;
  bottom: -5px;
  width: 34%;
  height: 34%;
  border-right: 5px solid currentColor;
  border-bottom: 5px solid currentColor;
}

.mark-frame {
  border: 6px solid currentColor;
}

.mark-frame::before {
  inset: 8px;
  border: 4px solid currentColor;
}

.mark-frame::after {
  inset: -6px;
  transform: rotate(45deg) scale(0.72);
  border: 5px solid currentColor;
}

.mark-slice::before,
.mark-slice::after {
  width: 74%;
  height: 28%;
  background: currentColor;
  transform: skewX(-18deg);
}

.mark-slice::before {
  top: 14%;
  left: 8%;
}

.mark-slice::after {
  right: 8%;
  bottom: 14%;
}

.mark-stack::before {
  inset: 0;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 36% 100% no-repeat,
    linear-gradient(currentColor 0 0) 50% 0 / 36% 100% no-repeat,
    linear-gradient(currentColor 0 0) 100% 0 / 36% 100% no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 72%, 72% 100%, 0 100%);
}

.mark-diamond {
  transform: rotate(45deg);
  border: 9px solid currentColor;
}

.mark-diamond::before {
  inset: 10px;
  background: var(--surface);
}

.mark-dotline::before {
  left: 0;
  top: 50%;
  width: 100%;
  height: 8px;
  background: currentColor;
  transform: translateY(-50%);
}

.mark-dotline::after {
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, currentColor 0 11px, transparent 12px),
    radial-gradient(circle at 80% 50%, currentColor 0 11px, transparent 12px);
}

.mark-bracket {
  border-left: 8px solid currentColor;
  border-top: 8px solid currentColor;
  border-bottom: 8px solid currentColor;
}

.mark-bracket::before {
  right: 0;
  top: 0;
  width: 38%;
  height: 8px;
  background: currentColor;
}

.mark-bracket::after {
  right: 0;
  bottom: 0;
  width: 38%;
  height: 8px;
  background: currentColor;
}

.mark-bars::before {
  inset: 0;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 100% 22% no-repeat,
    linear-gradient(currentColor 0 0) 0 39% / 70% 22% no-repeat,
    linear-gradient(currentColor 0 0) 0 78% / 48% 22% no-repeat;
}

.mark-bars::after {
  right: 0;
  top: 39%;
  width: 22%;
  height: 22%;
  background: currentColor;
}

.mark-page {
  border: 7px solid currentColor;
  border-radius: 7px;
}

.mark-page::before {
  right: -7px;
  top: -7px;
  border-left: 18px solid transparent;
  border-bottom: 18px solid currentColor;
}

.mark-page::after {
  left: 12px;
  right: 10px;
  top: 18px;
  height: 7px;
  background: currentColor;
  box-shadow: 0 13px 0 currentColor;
}

.mark-link::before,
.mark-link::after {
  width: 58%;
  height: 58%;
  border: 7px solid currentColor;
  border-radius: 8px;
}

.mark-link::before {
  left: 0;
  top: 0;
}

.mark-link::after {
  right: 0;
  bottom: 0;
}

.mark-signal-w::before {
  inset: 4px;
  background: currentColor;
  clip-path: polygon(
    0 10%,
    18% 10%,
    31% 72%,
    45% 34%,
    55% 34%,
    69% 72%,
    82% 10%,
    100% 10%,
    78% 96%,
    62% 96%,
    50% 62%,
    38% 96%,
    22% 96%
  );
}

.mark-signal-w::after {
  left: 36%;
  top: 12%;
  width: 28%;
  height: 74%;
  background: var(--surface);
  clip-path: polygon(0 0, 100% 20%, 58% 50%, 100% 80%, 0 100%, 38% 50%);
}

.mark-data-cut::before {
  inset: 4px;
  background: currentColor;
  clip-path: polygon(0 0, 68% 0, 100% 32%, 56% 32%, 100% 74%, 100% 100%, 30% 100%, 0 70%, 44% 70%, 0 28%);
}

.mark-data-cut::after {
  right: 4px;
  top: 6px;
  width: 28%;
  height: 28%;
  background: var(--surface);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.mark-sw-shard::before {
  inset: 4px;
  background:
    linear-gradient(currentColor 0 0) 7% 5% / 74% 27% no-repeat,
    linear-gradient(currentColor 0 0) 18% 37% / 74% 27% no-repeat,
    linear-gradient(currentColor 0 0) 7% 69% / 74% 27% no-repeat;
  clip-path: polygon(
    0 0,
    78% 0,
    100% 24%,
    28% 24%,
    72% 50%,
    100% 76%,
    22% 76%,
    0 100%,
    86% 100%,
    62% 74%,
    16% 50%,
    62% 26%
  );
}

.mark-sw-shard::after {
  left: 23%;
  top: 15%;
  width: 58%;
  height: 70%;
  background: var(--surface);
  clip-path: polygon(0 0, 30% 0, 52% 34%, 74% 0, 100% 0, 64% 50%, 100% 100%, 72% 100%, 52% 66%, 30% 100%, 0 100%, 38% 50%);
}

.mark-fold-frame {
  border: 6px solid currentColor;
  clip-path: polygon(0 0, 76% 0, 100% 24%, 100% 100%, 24% 100%, 0 76%);
}

.mark-fold-frame::before {
  right: -6px;
  top: -6px;
  width: 36%;
  height: 36%;
  border-left: 6px solid currentColor;
  border-bottom: 6px solid currentColor;
  transform: skew(-12deg);
}

.mark-fold-frame::after {
  left: 18%;
  top: 18%;
  width: 42%;
  height: 42%;
  border: 5px solid currentColor;
}

.mark-data-shard::before,
.mark-data-shard::after {
  background: currentColor;
}

.mark-data-shard::before {
  left: 4px;
  top: 3px;
  width: 76%;
  height: 40%;
  clip-path: polygon(0 50%, 68% 0, 100% 42%, 30% 100%);
}

.mark-data-shard::after {
  right: 2px;
  bottom: 4px;
  width: 78%;
  height: 48%;
  clip-path: polygon(0 22%, 72% 0, 100% 56%, 36% 100%);
}

.mark-signal-path::before {
  left: 11%;
  top: 15%;
  width: 72%;
  height: 66%;
  border-left: 7px solid currentColor;
  border-bottom: 7px solid currentColor;
  border-radius: 0 0 0 18px;
  transform: skewX(-16deg);
}

.mark-signal-path::after {
  inset: 0;
  background:
    radial-gradient(circle at 22% 24%, currentColor 0 7px, transparent 8px),
    radial-gradient(circle at 74% 44%, currentColor 0 7px, transparent 8px),
    radial-gradient(circle at 50% 80%, currentColor 0 7px, transparent 8px);
}

.mark-node-stack::before {
  left: 13%;
  top: 9%;
  width: 74%;
  height: 82%;
  background:
    radial-gradient(circle at 22% 20%, currentColor 0 8px, transparent 9px),
    radial-gradient(circle at 78% 20%, currentColor 0 8px, transparent 9px),
    radial-gradient(circle at 22% 80%, currentColor 0 8px, transparent 9px),
    radial-gradient(circle at 78% 80%, currentColor 0 8px, transparent 9px),
    linear-gradient(currentColor 0 0) center / 7px 100% no-repeat,
    linear-gradient(90deg, currentColor 0 0) center / 100% 7px no-repeat;
}

.mark-node-stack::after {
  right: 2%;
  top: 37%;
  width: 34%;
  height: 26%;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.mark-vector-fold::before {
  inset: 3px;
  background: currentColor;
  clip-path: polygon(0 28%, 52% 0, 100% 26%, 60% 50%, 100% 74%, 52% 100%, 0 72%, 40% 50%);
}

.mark-vector-fold::after {
  left: 30%;
  top: 22%;
  width: 40%;
  height: 56%;
  background: var(--surface);
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 80%, 48% 50%);
}

.mark-hf-fold-trace {
  border: 5px solid currentColor;
}

.mark-hf-fold-trace::before {
  inset: 5px;
  background: currentColor;
  clip-path: polygon(
    50% 0,
    78% 28%,
    100% 20%,
    80% 50%,
    100% 80%,
    70% 72%,
    50% 100%,
    30% 72%,
    0 80%,
    20% 50%,
    0 20%,
    22% 28%
  );
}

.mark-hf-fold-trace::after {
  left: 24%;
  top: 16%;
  width: 52%;
  height: 68%;
  background: var(--surface);
  clip-path: polygon(
    50% 0,
    62% 38%,
    100% 50%,
    62% 62%,
    50% 100%,
    38% 62%,
    0 50%,
    38% 38%
  );
}

.mark-vector-fold-shard::before {
  inset: 3px;
  background: currentColor;
  clip-path: polygon(
    0 8%,
    84% 8%,
    100% 28%,
    32% 28%,
    74% 50%,
    100% 72%,
    16% 72%,
    0 92%,
    88% 92%,
    72% 78%,
    12% 78%,
    0 60%,
    56% 50%,
    0 40%
  );
}

.mark-vector-fold-shard::after {
  left: 23%;
  top: 18%;
  width: 56%;
  height: 64%;
  background: var(--surface);
  clip-path: polygon(
    0 0,
    25% 0,
    42% 56%,
    50% 32%,
    58% 32%,
    75% 0,
    100% 0,
    66% 100%,
    52% 100%,
    50% 84%,
    48% 100%,
    34% 100%
  );
}

.mark-vector-fold-wire {
  border: 5px solid currentColor;
  transform: skewX(-7deg);
}

.mark-vector-fold-wire::before {
  inset: 9px;
  border: 4px solid currentColor;
}

.mark-vector-fold-wire::after {
  inset: -5px;
  background:
    linear-gradient(35deg, transparent 46%, currentColor 47% 54%, transparent 55%),
    linear-gradient(-35deg, transparent 46%, currentColor 47% 54%, transparent 55%);
}

.mark-vector-fold-node::before {
  inset: 4px;
  background:
    radial-gradient(circle at 50% 14%, var(--surface) 0 5px, transparent 6px),
    radial-gradient(circle at 84% 50%, var(--surface) 0 5px, transparent 6px),
    radial-gradient(circle at 50% 86%, var(--surface) 0 5px, transparent 6px),
    radial-gradient(circle at 16% 50%, var(--surface) 0 5px, transparent 6px),
    currentColor;
  clip-path: polygon(
    0 10%,
    78% 10%,
    100% 30%,
    34% 30%,
    72% 50%,
    100% 70%,
    22% 70%,
    0 90%,
    88% 90%,
    68% 74%,
    36% 74%,
    50% 56%,
    64% 74%,
    44% 74%,
    28% 50%,
    44% 26%
  );
}

.mark-vector-fold-node::after {
  left: 24%;
  top: 18%;
  width: 52%;
  height: 64%;
  background: var(--surface);
  clip-path: polygon(0 0, 26% 0, 42% 55%, 50% 34%, 58% 34%, 74% 0, 100% 0, 66% 100%, 52% 100%, 50% 84%, 48% 100%, 34% 100%);
}

.mark-vector-fold-split::before,
.mark-vector-fold-split::after {
  background: currentColor;
}

.mark-vector-fold-split::before {
  left: 3px;
  top: 5px;
  width: 51%;
  height: 84%;
  clip-path: polygon(0 0, 100% 0, 74% 26%, 24% 26%, 78% 50%, 100% 72%, 18% 72%, 0 100%, 100% 100%, 76% 82%, 10% 82%, 0 62%, 50% 50%, 0 38%);
}

.mark-vector-fold-split::after {
  right: 3px;
  top: 5px;
  width: 51%;
  height: 84%;
  clip-path: polygon(0 0, 26% 0, 42% 64%, 50% 36%, 58% 36%, 74% 0, 100% 0, 78% 100%, 60% 100%, 50% 66%, 40% 100%, 22% 100%);
}

.wm-mark-svg.mark-slice,
.wm-mark-svg.mark-vector-fold,
.wm-mark-svg.mark-vector-fold-clean {
  background: transparent;
  border: 0;
  clip-path: none;
  transform: none;
}

.wm-mark-svg::before,
.wm-mark-svg::after {
  display: none;
  content: none;
}

.mark-lab-page .spec-app {
  grid-template-columns: 280px minmax(0, 1fr);
}

.mark-lab-sidebar-meta {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mark-lab-sidebar-meta span,
.mark-lab-panel-head span,
.mark-lab-readout span {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 840;
  text-transform: uppercase;
}

.mark-lab-sidebar-meta strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.mark-lab-stage {
  display: grid;
  gap: 14px;
  width: min(100% - 44px, 1120px);
  margin: 22px 22px 40px;
}

.mark-lab-hero-panel,
.mark-lab-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mark-lab-hero-panel {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  min-height: 420px;
  overflow: hidden;
}

.mark-lab-primary {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 40px;
  background: var(--signal-cut-bg);
}

.mark-lab-primary .signal-cut-svg {
  width: min(100%, 320px);
  aspect-ratio: 1;
}

.mark-lab-checks {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px;
}

.mark-lab-readout {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.mark-lab-readout strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.mark-lab-size-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  min-height: 102px;
  padding-top: 4px;
}

.mark-lab-mini {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 48px;
  margin: 0;
}

.mark-lab-mini .signal-cut-svg {
  width: var(--mini-size);
  height: var(--mini-size);
}

.mark-lab-mini figcaption {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.mark-lab-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.mark-lab-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.mark-lab-panel-head strong {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mark-lab-variant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mark-lab-variant {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-align: left;
}

.mark-lab-variant:hover,
.mark-lab-variant:focus-visible,
.mark-lab-variant.is-active {
  border-color: var(--teal);
}

.mark-lab-variant.is-active {
  background: rgba(0, 127, 120, 0.08);
}

.mark-lab-variant-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  background: var(--signal-cut-bg);
}

.mark-lab-variant-mark .signal-cut-svg {
  width: 72px;
  height: 72px;
}

.mark-lab-variant-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mark-lab-variant-text strong,
.mark-lab-variant-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mark-lab-variant-text strong {
  font-size: 0.9rem;
}

.mark-lab-variant-text small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 720;
}

.mark-lab-controls {
  gap: 16px;
}

.mark-lab-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.mark-lab-range {
  min-width: 0;
}

.mark-lab-range input {
  width: 100%;
  padding-inline: 0;
}

.mark-lab-range output {
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  text-transform: none;
}

.mark-lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-cut-svg {
  display: block;
  overflow: visible;
  background: transparent;
}

.signal-cut-bg {
  fill: var(--signal-cut-bg, #111714);
}

.signal-cut-fill {
  fill: var(--signal-cut-fg, #f5f4ef);
}

.signal-cut-cut {
  fill: none;
  stroke: var(--signal-cut-bg, #111714);
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.signal-cut-spine {
  stroke-width: var(--signal-cut-spine, 5);
}

.signal-cut-w-cue {
  stroke-width: var(--signal-cut-w-stroke, 6);
}

.signal-cut-guides {
  pointer-events: none;
}

.signal-cut-guides polyline {
  fill: none;
  stroke: var(--teal);
  stroke-dasharray: 4 4;
  stroke-width: 2;
}

.signal-cut-guides text {
  fill: var(--teal);
  font-size: 18px;
  font-weight: 900;
}

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

.shape-option {
  display: grid;
  min-height: 112px;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.shape-option:hover,
.shape-option:focus-visible,
.shape-option.is-active {
  border-color: var(--teal);
}

.shape-option.is-active {
  background: rgba(0, 127, 120, 0.08);
}

.hf-reference-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hf-reference-strip a {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
}

.hf-reference-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
}

.moodboard-page .spec-app {
  grid-template-columns: 240px minmax(0, 1fr);
}

.moodboard-sidebar {
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
}

.moodboard-nav {
  display: grid;
  gap: 8px;
}

.moodboard-category-button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-align: left;
}

.moodboard-category-button span {
  grid-row: 1 / 3;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
}

.moodboard-category-button strong,
.moodboard-category-button small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moodboard-category-button strong {
  font-size: 0.92rem;
}

.moodboard-category-button small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
}

.moodboard-category-button:hover,
.moodboard-category-button:focus-visible {
  background: var(--surface-2);
  border-color: var(--line);
}

.moodboard-category-button.is-active {
  background: var(--inverse-bg);
  border-color: var(--inverse-bg);
  color: var(--inverse-fg);
}

.moodboard-category-button.is-active span {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--inverse-fg);
}

.moodboard-category-button.is-active small {
  color: rgba(255, 255, 255, 0.72);
}

.moodboard-category-button.has-selection span {
  background: rgba(0, 127, 120, 0.14);
  border-color: rgba(0, 127, 120, 0.35);
  color: var(--teal-dark);
}

.moodboard-sidebar-panel {
  align-self: end;
  min-height: 150px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.moodboard-sidebar-panel span,
.moodboard-category-card span,
.mood-card-content span,
.moodboard-savebar span {
  display: block;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 840;
  text-transform: uppercase;
}

.moodboard-sidebar-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 1.22rem;
}

.moodboard-sidebar-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.moodboard-stage {
  display: grid;
  gap: 18px;
  width: min(100% - 44px, 1320px);
  margin: 22px 22px 104px;
}

.moodboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 18px;
  align-items: end;
  min-height: 230px;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 127, 120, 0.12), transparent 44%),
    linear-gradient(90deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.moodboard-hero h2 {
  margin-bottom: 12px;
}

.moodboard-hero p:last-child {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.moodboard-category-card {
  min-height: 122px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(21, 22, 20, 0.08);
}

.moodboard-category-card strong {
  display: block;
  margin-top: 26px;
  font-size: 1.18rem;
}

.moodboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.mood-card {
  position: relative;
  display: grid;
  grid-column: span 4;
  min-height: 390px;
  overflow: hidden;
  background: #101412;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: 0 12px 34px rgba(21, 22, 20, 0.08);
}

.mood-card-large {
  grid-column: span 8;
  min-height: 470px;
}

.mood-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 7, 6, 0.12), rgba(5, 7, 6, 0.36) 42%, rgba(5, 7, 6, 0.88)),
    linear-gradient(90deg, rgba(5, 7, 6, 0.34), transparent 58%);
  pointer-events: none;
}

.mood-card img,
.mood-card-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mood-card img {
  object-fit: cover;
  opacity: 0.88;
}

.mood-card-visual {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 36px;
  overflow: hidden;
}

.mood-card-visual strong {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 4rem;
  line-height: 0.95;
}

.mood-card-visual span {
  position: relative;
  z-index: 1;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 760;
}

.mood-type-precision {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(135deg, #14211f, #1f423d 52%, #111714);
}

.mood-type-precision strong {
  font-weight: 760;
}

.mood-type-condensed {
  background:
    radial-gradient(circle at 70% 28%, rgba(124, 156, 255, 0.45), transparent 24%),
    linear-gradient(135deg, #10243a, #07101d 74%);
}

.mood-type-condensed strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 5.2rem;
  font-weight: 900;
}

.mood-type-editorial {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.24), transparent 17%),
    linear-gradient(135deg, #f44491, #181513 72%);
}

.mood-type-editorial strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4rem;
  font-weight: 700;
}

.mood-type-mono {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(#0d1211, #151614);
}

.mood-type-mono strong,
.mood-type-mono span {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.mood-shape-modules {
  background:
    linear-gradient(135deg, rgba(49, 95, 201, 0.34), transparent),
    #111714;
}

.mood-shape-modules::before,
.mood-illustration-workflow::before {
  position: absolute;
  inset: 14% 9%;
  content: "";
  background:
    linear-gradient(var(--teal) 0 0) 0 0 / 32% 28% no-repeat,
    linear-gradient(var(--amber) 0 0) 48% 0 / 43% 18% no-repeat,
    linear-gradient(var(--blue) 0 0) 6% 54% / 38% 25% no-repeat,
    linear-gradient(var(--red) 0 0) 58% 45% / 34% 36% no-repeat;
  border-radius: var(--radius);
  opacity: 0.84;
}

.mood-shape-impact {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(135deg, #20231f, #0f1917);
}

.mood-shape-impact::before {
  position: absolute;
  left: 17%;
  top: 42%;
  width: 62%;
  height: 4px;
  content: "";
  background: #fff;
  transform: rotate(-14deg);
  transform-origin: left center;
}

.mood-shape-impact::after {
  position: absolute;
  right: 20%;
  top: 36%;
  content: "";
  border-left: 18px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  transform: rotate(-14deg);
}

.mood-illustration-coverage {
  background: linear-gradient(135deg, #fbfbf9, #f4d9e7);
}

.mood-illustration-coverage strong,
.mood-illustration-coverage span {
  color: #151614;
}

.mood-illustration-coverage::before {
  position: absolute;
  inset: 18% 10% auto;
  height: 48%;
  content: "";
  background:
    linear-gradient(#151614 0 0) 0 90% / 100% 3px no-repeat,
    linear-gradient(90deg, transparent 0 28%, #151614 29% 31%, transparent 32%) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 72% 76%, #f44491 0 20px, transparent 21px),
    linear-gradient(135deg, transparent 0 52%, #151614 53% 56%, transparent 57%);
  opacity: 0.42;
}

.mood-illustration-workflow {
  background:
    radial-gradient(circle at 78% 22%, rgba(105, 186, 130, 0.36), transparent 20%),
    linear-gradient(135deg, #18201c, #111714);
}

.mood-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 20px;
  min-height: 100%;
  padding: 18px;
}

.mood-card-content h3 {
  margin: 8px 0 8px;
  color: #fff;
  font-size: 1.6rem;
}

.mood-card-content p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.mood-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mood-card-actions .spec-action {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.mood-card-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 760;
}

.mood-select-indicator {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-height: 30px;
  padding: 6px 10px;
  background: var(--teal);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 840;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.mood-card.is-selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 127, 120, 0.26), 0 18px 44px rgba(21, 22, 20, 0.14);
}

.mood-card.is-selected .mood-select-indicator {
  opacity: 1;
  transform: translateY(0);
}

.moodboard-savebar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(92vw, 460px);
  padding: 10px;
  background: rgba(21, 22, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.moodboard-savebar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.moodboard-savebar > div {
  min-width: 0;
  margin-right: auto;
}

.moodboard-savebar strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moodboard-savebar .spec-action {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.moodboard-savebar button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

@media (max-width: 1080px) {
  .wordmark-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mark-lab-variant-grid,
  .mark-lab-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .mood-card,
  .mood-card-large {
    grid-column: span 3;
  }
}

@media (max-width: 860px) {
  .wordmark-page .spec-app,
  .mark-lab-page .spec-app,
  .moodboard-page .spec-app {
    grid-template-columns: 1fr;
  }

  .wordmark-stage,
  .mark-lab-stage,
  .moodboard-stage {
    width: auto;
  }

  .moodboard-page {
    height: auto;
    overflow: auto;
  }

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

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

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

  .mood-card,
  .mood-card-large {
    min-height: 390px;
  }

  .mark-lab-hero-panel {
    grid-template-columns: 1fr;
  }

  .mark-lab-primary {
    min-height: 300px;
  }

  .wordmark-hero {
    display: grid;
    min-height: 260px;
  }

  .wordmark-hero .wm-name {
    font-size: 2.85rem;
  }
}

@media (max-width: 620px) {
  .wordmark-grid,
  .mark-lab-variant-grid,
  .mark-lab-control-grid,
  .moodboard-grid {
    grid-template-columns: 1fr;
  }

  .moodboard-nav {
    grid-template-columns: 1fr;
  }

  .mood-card,
  .mood-card-large {
    grid-column: auto;
  }

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

  .hf-reference-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .nav-links-static {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-bottom: 14px;
    order: 3;
  }

  .concept-hero {
    padding-block: 44px 26px;
  }

  .concept-grid,
  .sample-grid {
    grid-template-columns: 1fr;
  }

  .concept-card {
    min-height: 0;
  }

  .concept-details div,
  .decision-table > div {
    grid-template-columns: 1fr;
  }

  .decision-table strong,
  .decision-table span {
    border-right: 0;
  }
}

.reference-page {
  color-scheme: light;
  --paper: #f5f5f1;
  --surface: #ffffff;
  --surface-2: #eceee8;
  --ink: #151614;
  --on-ink: #ffffff;
  --muted: #6b706a;
  --line: #d9ddd4;
  --teal: #007f78;
  min-height: 100vh;
  background: var(--paper) !important;
}

.reference-page button {
  font: inherit;
}

.reference-layout {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 160ms ease;
}

.reference-rail {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  height: 100vh;
  padding: 16px 12px;
  overflow: hidden;
  background: var(--surface) !important;
  border-right: 1px solid var(--line);
}

.reference-rail-toggle {
  position: absolute;
  top: 12px;
  right: 10px;
  z-index: 3;
  display: grid;
  width: 28px;
  height: 28px;
  min-height: 0;
  place-items: center;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
}

.reference-rail-toggle:hover,
.reference-rail-toggle:focus-visible {
  background: var(--surface-2);
}

.reference-brand {
  display: grid;
  gap: 4px;
  padding-right: 32px;
}

.reference-brand span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  text-transform: uppercase;
}

.reference-brand strong {
  max-width: 140px;
  font-size: 0.84rem;
  line-height: 1.15;
}

.reference-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.reference-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 7px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
  text-align: left;
}

.reference-nav button::after {
  width: 7px;
  height: 7px;
  content: "";
  background: transparent;
  border-radius: 50%;
}

.reference-nav button:hover,
.reference-nav button:focus-visible {
  background: var(--surface-2);
  color: var(--ink);
}

.reference-nav button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}

.reference-nav button.has-pick::after {
  background: var(--teal);
}

.reference-count {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 720;
}

.reference-main {
  min-width: 0;
  padding: 10px 10px 90px;
}

.reference-header {
  display: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
}

.reference-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 820;
  text-transform: uppercase;
}

.reference-header h1 {
  display: none;
}

.reference-grid {
  columns: 210px;
  column-gap: 12px;
}

.reference-card {
  position: relative;
  display: block;
  min-height: 0;
  margin: 0 0 12px;
  overflow: hidden;
  break-inside: avoid;
  background: var(--surface);
  border: 1px solid rgba(21, 22, 20, 0.08);
  border-radius: 8px;
  color: var(--ink);
}

.reference-card.is-wide img {
  aspect-ratio: 1.15;
}

.reference-card.is-tall img {
  aspect-ratio: 0.72;
}

.reference-card.is-logo {
  display: grid;
  min-height: 152px;
  place-items: center;
  background: #fff;
  color: #151614;
}

.reference-card.is-logo img {
  width: auto;
  max-width: 76%;
  max-height: 72px;
  height: auto;
  margin: 0;
  padding: 0;
  aspect-ratio: auto;
  object-fit: contain;
}

.reference-wordmark {
  display: grid;
  min-height: 190px;
  max-width: 86%;
  margin: 0 auto;
  place-items: center;
  padding: 32px 18px;
  color: #151614;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  font-weight: 820;
  line-height: 0.96;
  text-align: center;
}

.reference-card.has-image .reference-wordmark {
  display: none;
}

.reference-card.has-image-error img {
  display: none;
}

.reference-card.has-image-error .reference-wordmark {
  display: grid;
}

.reference-card.is-logo .reference-wordmark {
  min-height: 152px;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  letter-spacing: 0;
}

.reference-card.is-logo-reference {
  background: #fff;
}

.reference-card.is-logo-reference img {
  display: block;
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
  background: #fff;
}

.reference-card.is-logo-reference.is-wide img {
  aspect-ratio: 1.38;
}

.reference-card.is-logo-reference.is-tall img {
  aspect-ratio: 0.82;
}

.reference-card::after {
  content: none;
}

.reference-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 0.78;
  object-fit: cover;
  background: #fff;
}

.reference-card.is-shape img {
  padding: 28px;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f8f8f3;
}

.reference-card.is-illustration img {
  padding: 12px;
  aspect-ratio: 0.92;
  object-fit: contain;
  background: #fff;
}

.reference-card.is-shape.is-wide img,
.reference-card.is-shape.is-tall img,
.reference-card.is-logo.is-wide img,
.reference-card.is-logo.is-tall img {
  aspect-ratio: 1;
}

.reference-card > div {
  display: none;
}

.reference-card:hover > div,
.reference-card:focus-within > div,
.reference-card.is-selected > div {
  display: none;
}

.reference-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.15;
}

.reference-card.is-logo h2 {
  color: #151614;
}

.reference-card p {
  display: none;
}

.reference-card a {
  display: none;
}

.reference-card.is-logo a {
  color: #52605a;
}

.reference-pick {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 26px;
  height: 26px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(21, 22, 20, 0.12);
  border-radius: 999px;
  color: #111;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 820;
  backdrop-filter: blur(10px);
}

.reference-pick::before {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 8px;
  height: 8px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
}

.reference-card.is-selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(0, 127, 120, 0.28);
}

.reference-card.is-selected .reference-pick {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.reference-card.is-selected .reference-pick::before {
  background: #fff;
  border-color: #fff;
}

.reference-card.is-selected .reference-pick::after {
  position: absolute;
  left: 9px;
  top: 8px;
  width: 7px;
  height: 4px;
  content: "";
  border-bottom: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
  transform: rotate(-45deg);
}

@media (min-width: 761px) {
  .reference-page.reference-rail-collapsed .reference-layout {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .reference-page.reference-rail-collapsed .reference-rail {
    grid-template-rows: 1fr;
    gap: 0;
    padding: 56px 9px 14px;
  }

  .reference-page.reference-rail-collapsed .reference-rail-toggle {
    right: 9px;
  }

  .reference-page.reference-rail-collapsed .reference-brand,
  .reference-page.reference-rail-collapsed .reference-count {
    display: none;
  }

  .reference-page.reference-rail-collapsed .reference-nav {
    justify-items: center;
    gap: 10px;
  }

  .reference-page.reference-rail-collapsed .reference-nav button {
    justify-content: center;
    width: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 999px;
  }

  .reference-page.reference-rail-collapsed .reference-nav button span {
    display: none;
  }

  .reference-page.reference-rail-collapsed .reference-nav button::after {
    width: 9px;
    height: 9px;
    background: #bdc4bd;
  }

  .reference-page.reference-rail-collapsed .reference-nav button.is-active::after {
    background: #fff;
  }

  .reference-page.reference-rail-collapsed .reference-nav button.has-pick:not(.is-active)::after {
    background: var(--teal);
  }
}

.reference-savebar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(92vw, 430px);
  padding: 8px;
  background: rgba(21, 22, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.reference-savebar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.reference-savebar span {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-savebar button {
  min-height: 34px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 760;
}

.reference-savebar button:last-child {
  background: var(--teal);
  border-color: var(--teal);
}

.reference-savebar button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

@media (max-width: 1080px) {
  .reference-grid {
    columns: 3 210px;
  }
}

@media (max-width: 760px) {
  .reference-layout {
    grid-template-columns: 1fr;
  }

  .reference-rail {
    position: static;
    height: auto;
    gap: 14px;
    padding: 14px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .reference-rail-toggle {
    display: none;
  }

  .reference-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }

  .reference-nav button {
    flex: 0 0 auto;
  }

  .reference-main {
    padding: 10px 10px 92px;
  }

  .reference-header h1 {
    font-size: 2.4rem;
  }

  .reference-grid {
    columns: 2 148px;
    column-gap: 8px;
  }

  .reference-card {
    margin-bottom: 8px;
  }

  .reference-card,
  .reference-card.is-wide {
    min-height: 0;
  }
}
