:root {
  --ink: #172033;
  --ink-soft: #475467;
  --muted: #667085;
  --line: #d9dee8;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --surface-warm: #fff7ed;
  --navy: #101828;
  --navy-2: #1d2939;
  --blue: #2457d6;
  --blue-dark: #1b43ab;
  --green: #16794f;
  --green-soft: #e9f7f0;
  --amber: #9a5b08;
  --amber-soft: #fff3dc;
  --violet: #6941c6;
  --violet-soft: #f1ecff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 12px 30px rgba(16, 24, 40, 0.1);
  --shadow-lg: 0 24px 60px rgba(5, 12, 28, 0.24);
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

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

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

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(36, 87, 214, 0.3);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  transform: translateY(-160%);
}

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

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

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

.button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.button-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.button-dark {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
}

.button-dark:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
}

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

.button-outline:hover {
  border-color: #98a2b3;
  background: var(--surface-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(3px);
}

.text-link-light {
  color: #d0d5dd;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #84a9ff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 222, 232, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--blue);
  font-size: 18px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  color: var(--navy);
  font-size: 14px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  position: relative;
  padding: 22px 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.header-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.header-nav a:hover::after {
  transform: scaleX(1);
}

.header-contact {
  justify-self: end;
}

.hero {
  overflow: hidden;
  color: var(--ink);
  background-color: #c7e8fa;
  background-image: url("../images/banner-06-back.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-layout {
  min-height: 500px;
  padding-top: 46px;
  padding-bottom: 30px;
  display: grid;
  grid-template-areas:
    "copy visual"
    "metrics metrics";
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 62px;
  row-gap: 26px;
}

.hero-copy {
  grid-area: copy;
}

.hero-copy h1 {
  max-width: 680px;
  color: var(--navy);
  font-size: 50px;
  font-weight: 800;
}

.hero-lead {
  max-width: 650px;
  margin-top: 20px;
  color: #344054;
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-metrics {
  grid-area: metrics;
  width: 100%;
  padding: 17px 0;
  border-top: 1px solid rgba(23, 32, 51, 0.16);
  border-bottom: 1px solid rgba(23, 32, 51, 0.16);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-metrics div {
  min-width: 0;
  padding: 0 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.hero-metrics div + div {
  border-left: 1px solid rgba(23, 32, 51, 0.16);
}

.hero-metrics dt {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}

.hero-metrics dd {
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  grid-area: visual;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: min(82%, 390px);
  max-height: 340px;
  object-fit: contain;
  object-position: center;
}

.section {
  padding: 88px 0;
}

.outcomes {
  background: var(--surface);
}

.library {
  background: var(--surface-soft);
  border-top: 1px solid #e7eaf0;
}

.section-heading {
  margin-bottom: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: end;
  gap: 48px;
}

.section-heading h2 {
  color: var(--navy);
  font-size: 36px;
  font-weight: 800;
}

.section-heading > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

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

.featured-card,
.case-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.featured-card:hover,
.case-card:hover {
  border-color: #aeb8ca;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-action {
  width: 100%;
  padding: 0;
  border: 0;
  display: grid;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.featured-card .card-action {
  height: 100%;
  grid-template-rows: auto 1fr;
}

.case-card .card-action {
  height: 100%;
  grid-template-rows: auto 1fr;
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e9edf3;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 320ms ease;
}

.featured-card:hover .card-media img,
.case-card:hover .card-media img {
  transform: scale(1.025);
}

.status-badge {
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.card-media > .status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12);
}

.tone-shipped {
  color: #0d5d3c;
  background: var(--green-soft);
  border-color: #b6e2cd;
}

.tone-sample {
  color: #7a4600;
  background: var(--amber-soft);
  border-color: #f3d391;
}

.tone-opportunity {
  color: #1d4fb8;
  background: #eaf0ff;
  border-color: #c9d7ff;
}

.tone-feedback {
  color: #5d34ae;
  background: var(--violet-soft);
  border-color: #d9cdf8;
}

.featured-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
}

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

.card-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.card-summary {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.featured-body .card-summary {
  min-height: 66px;
}

.case-body .card-summary {
  min-height: 68px;
}

.card-metrics {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e8ebf0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.card-metrics div {
  min-width: 0;
}

.card-metrics strong,
.card-metrics span {
  display: block;
}

.card-metrics strong {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.3;
}

.card-metrics span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.card-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.card-footer span:last-child {
  font-size: 17px;
  transition: transform 180ms ease;
}

.card-action:hover .card-footer span:last-child {
  transform: translateX(3px);
}

.library-toolbar {
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-tab {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.filter-tab span {
  margin-left: 3px;
  color: #98a2b3;
  font-size: 11px;
}

.filter-tab:hover {
  background: var(--surface-soft);
}

.filter-tab.is-active {
  color: #ffffff;
  background: var(--navy);
}

.filter-tab.is-active span {
  color: #d0d5dd;
}

.search-field {
  position: relative;
  width: min(300px, 32vw);
  flex: 0 0 auto;
}

.search-field input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font-size: 13px;
}

.search-field input::placeholder {
  color: #98a2b3;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 14px;
  height: 14px;
  border: 2px solid #667085;
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: #667085;
  transform: rotate(45deg);
}

.results-summary {
  min-height: 22px;
  margin: 22px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

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

.case-card.is-entering {
  animation: card-in 320ms ease both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.load-more-wrap {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.load-more-wrap[hidden],
.button[hidden] {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  padding: 48px 24px;
  border: 1px dashed #b9c0cc;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.noscript-note {
  margin-top: 20px;
  color: #b42318;
}

.closing-section {
  color: #ffffff;
  background: var(--navy);
}

.closing-inner {
  min-height: 250px;
  padding: 54px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.closing-inner h2 {
  max-width: 720px;
  font-size: 34px;
  font-weight: 800;
}

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

.footer-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
}

.footer-inner p:first-child {
  color: var(--ink);
  font-weight: 800;
}

.contact-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(36, 87, 214, 0.28);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.contact-fab:hover {
  background: var(--blue-dark);
}

.contact-fab-icon {
  position: relative;
  width: 17px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.contact-fab-icon::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  transform: skewY(-34deg);
}

dialog {
  margin: auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
}

dialog::backdrop {
  background: rgba(7, 12, 23, 0.7);
  backdrop-filter: blur(4px);
}

.case-dialog {
  width: min(1120px, calc(100% - 36px));
  max-width: none;
}

.dialog-shell {
  position: relative;
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.dialog-content {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
}

.dialog-copy {
  padding: 42px 34px;
  border-right: 1px solid var(--line);
}

.dialog-label-row {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dialog-market {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dialog-copy h2 {
  padding-right: 24px;
  color: var(--navy);
  font-size: 30px;
  font-weight: 800;
}

.dialog-summary {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.dialog-outcome {
  margin-top: 24px;
  padding: 16px;
  border-left: 3px solid var(--blue);
  background: #f0f4ff;
}

.dialog-outcome span,
.dialog-outcome strong {
  display: block;
}

.dialog-outcome span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.dialog-outcome strong {
  margin-top: 5px;
  color: var(--navy);
  font-size: 14px;
}

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

.dialog-metrics div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.dialog-metrics dt {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}

.dialog-metrics dd {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.timeline {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  min-height: 58px;
  padding: 0 0 18px 24px;
  color: var(--ink-soft);
  font-size: 12px;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #ffffff;
}

.timeline li::after {
  content: "";
  position: absolute;
  top: 17px;
  bottom: -3px;
  left: 5px;
  width: 1px;
  background: #c9d7ff;
}

.timeline li:last-child::after {
  display: none;
}

.timeline strong {
  display: block;
  margin-bottom: 3px;
  color: var(--navy);
  font-size: 12px;
}

.evidence-viewer {
  min-width: 0;
  padding: 42px 34px 34px;
  background: #eef1f5;
}

.evidence-head {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.evidence-head h3 {
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
}

.evidence-head .eyebrow {
  margin-bottom: 5px;
}

#evidence-count {
  color: var(--muted);
  font-size: 11px;
}

.evidence-main {
  height: 500px;
  overflow: auto;
  border: 1px solid #cfd5df;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #ffffff;
}

.evidence-main img {
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: contain;
  object-position: center top;
}

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

.evidence-thumb {
  height: 70px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.evidence-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.evidence-thumb.is-active {
  border-color: var(--blue);
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

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

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
}

.contact-dialog {
  width: min(660px, calc(100% - 36px));
  max-width: none;
}

.contact-panel {
  position: relative;
  padding: 38px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.contact-panel h2 {
  padding-right: 50px;
  color: var(--navy);
  font-size: 30px;
  font-weight: 800;
}

.contact-intro {
  max-width: 520px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.contact-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.contact-list {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 180px;
  gap: 10px;
}

.contact-item {
  min-width: 0;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface-soft);
}

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

.contact-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.contact-item strong {
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 16px;
}

.contact-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.contact-qr {
  min-height: 180px;
  padding: 10px;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.contact-qr img {
  width: 132px;
  height: 132px;
  object-fit: cover;
}

@media (max-width: 1040px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.82fr);
    column-gap: 36px;
  }

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

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

}

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

  .header-nav {
    display: none;
  }

  .hero-layout {
    min-height: 0;
    padding-top: 52px;
    padding-bottom: 34px;
    grid-template-areas:
      "copy"
      "visual"
      "metrics";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 26px;
  }

  .hero-copy h1 {
    max-width: 720px;
  }

  .hero-lead {
    max-width: 720px;
  }

  .hero-visual img {
    width: min(72%, 390px);
    max-height: 300px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

  .section-heading > p {
    max-width: 680px;
  }

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

  .filter-tabs {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .search-field {
    width: 100%;
  }

  .dialog-content {
    grid-template-columns: 1fr;
  }

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

  .evidence-main {
    height: 420px;
  }

}

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

  .shell {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    height: 60px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

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

  .brand small {
    display: none;
  }

  .header-contact {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero-layout {
    padding-top: 38px;
    padding-bottom: 30px;
    gap: 24px;
  }

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

  .hero-lead {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .hero-metrics {
    padding: 14px 0;
  }

  .hero-metrics div {
    padding: 0 9px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .hero-metrics dt {
    font-size: 23px;
  }

  .hero-metrics dd {
    font-size: 10px;
    line-height: 1.4;
  }

  .hero-visual img {
    width: min(78%, 280px);
    max-height: 220px;
  }

  .section {
    padding: 62px 0;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .section-heading > p {
    font-size: 13px;
  }

  .featured-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-body .card-summary,
  .featured-body .card-summary {
    min-height: 0;
  }

  .library-toolbar {
    padding: 9px;
  }

  .filter-tabs {
    margin-right: -9px;
    padding-right: 9px;
  }

  .filter-tab {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
  }

  .closing-inner {
    min-height: 280px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }

  .closing-inner h2 {
    font-size: 28px;
  }

  .footer-inner {
    min-height: 110px;
    padding: 22px 0 76px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }

  .contact-fab {
    right: 16px;
    bottom: 14px;
    height: 46px;
    padding: 0 13px;
  }

  .case-dialog,
  .contact-dialog {
    width: calc(100% - 16px);
  }

  .dialog-shell {
    max-height: calc(100vh - 16px);
  }

  .dialog-copy,
  .evidence-viewer {
    padding: 30px 20px;
  }

  .dialog-copy h2 {
    padding-right: 32px;
    font-size: 24px;
  }

  .dialog-label-row {
    width: calc(100% - 48px);
    min-height: 42px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .dialog-market {
    line-height: 1.5;
  }

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

  .dialog-metrics div {
    padding: 9px;
  }

  .dialog-metrics dt {
    font-size: 14px;
  }

  .evidence-main {
    height: 360px;
  }

  .evidence-thumb {
    height: 58px;
  }

  .contact-panel {
    padding: 30px 20px;
  }

  .contact-panel h2 {
    font-size: 24px;
  }

  .contact-list {
    grid-template-columns: 1fr 1fr;
  }

  .contact-qr {
    grid-column: 1 / -1;
  }
}

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

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