:root {
  --color-primary: #1e3a8a;
  --color-primary-strong: #172554;
  --color-secondary: #1e40af;
  --color-accent: #b45309;
  --color-accent-light: #fef3c7;
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-alt: #eef2ff;
  --color-text: #0f172a;
  --color-muted: #475569;
  --color-border: #dbe3ef;
  --color-success: #047857;
  --color-warning: #b45309;
  --font-heading: "Fira Code", "Cascadia Code", monospace;
  --font-body: "Fira Sans", "Segoe UI", sans-serif;
  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 30px rgba(30, 58, 138, 0.09);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

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

button {
  cursor: pointer;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

code {
  padding: 0.12em 0.35em;
  border: 1px solid #dbeafe;
  border-radius: 5px;
  background: #eff6ff;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.88em;
}

:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

::selection {
  background: #fde68a;
  color: var(--color-primary-strong);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: 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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-text);
  color: #fff;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 16px;
  right: 0;
  left: 0;
  transition: top 220ms ease;
}

.site-header-solid .nav-shell,
.site-header.is-scrolled .nav-shell {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.82);
  box-shadow: 0 8px 35px rgba(30, 58, 138, 0.08);
  backdrop-filter: blur(18px);
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--color-primary-strong);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: -0.03em;
}

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

.primary-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.primary-nav > a {
  padding: 9px 11px;
  border-radius: 8px;
  color: #334155;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  transition: color 180ms ease, background 180ms ease;
}

.primary-nav > a:hover,
.primary-nav > a[aria-current="page"] {
  background: #eff6ff;
  color: var(--color-primary);
}

.primary-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 5px;
  padding-inline: 16px;
  background: var(--color-primary);
  color: #fff;
}

.primary-nav .nav-cta:hover {
  background: var(--color-primary-strong);
  color: #fff;
}

.nav-cta svg,
.button svg,
.text-link svg,
.card-link svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-content: center;
  gap: 6px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
}

.nav-toggle > span:not(.sr-only) {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  min-height: 780px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 150px 0 90px;
  background:
    radial-gradient(circle at 78% 24%, rgba(59, 130, 246, 0.17), transparent 29%),
    radial-gradient(circle at 14% 72%, rgba(180, 83, 9, 0.09), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 58, 138, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 138, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 78%, transparent);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.eyebrow,
.case-disclosure {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.86);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.hero h1,
.case-hero h1 {
  max-width: 780px;
  margin: 24px 0 24px;
  font-family: var(--font-heading);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero h1 span,
.case-hero h1 span {
  color: var(--color-primary);
}

.hero-lead {
  max-width: 690px;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 21px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.2);
}

.button-primary:hover {
  background: #92400e;
  box-shadow: 0 12px 30px rgba(180, 83, 9, 0.25);
}

.button-secondary {
  border-color: #bfdbfe;
  background: rgba(255, 255, 255, 0.75);
  color: var(--color-primary);
}

.button-secondary:hover {
  border-color: var(--color-primary);
  background: #eff6ff;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 24px 0 0;
  color: #64748b;
  font-size: 14px;
}

.hero-note svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--color-success);
  stroke-width: 2.2;
}

.audit-console {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.audit-console::before {
  display: none;
}

.console-header,
.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.console-kicker,
.metric-label,
.outcome-card > span {
  color: #64748b;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-header h2 {
  margin: 4px 0 0;
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: -0.04em;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
}

.verified-badge svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.console-primary {
  margin-top: 25px;
  padding: 22px;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #f8fbff, #eff6ff);
}

.score-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 5px 0 12px;
}

.score-row strong {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 58px;
  line-height: 1;
  letter-spacing: -0.08em;
}

.score-row > span {
  color: #64748b;
  font-family: var(--font-heading);
  font-size: 20px;
}

.score-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
}

.score-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary), #3b82f6);
}

.console-primary p {
  margin: 11px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.console-metric {
  display: grid;
  gap: 3px;
  padding: 15px;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  background: #fff;
}

.console-metric > span {
  color: #64748b;
  font-size: 12px;
}

.console-metric strong {
  font-family: var(--font-heading);
  font-size: 21px;
  letter-spacing: -0.04em;
}

.console-metric small {
  color: #94a3b8;
  font-size: 10px;
}

.console-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  color: #64748b;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.source-dots {
  display: flex;
}

.source-dots span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  margin-left: -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.source-dots span:nth-child(2) {
  background: #f97316;
}

.source-dots span:nth-child(3) {
  background: #2563eb;
}

.proof-strip {
  position: relative;
  z-index: 2;
  border-block: 1px solid var(--color-border);
  background: #fff;
}

.proof-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-strip-grid > div {
  display: grid;
  gap: 3px;
  padding: 23px 28px;
  border-right: 1px solid var(--color-border);
}

.proof-strip-grid > div:first-child {
  border-left: 1px solid var(--color-border);
}

.proof-strip-grid strong {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: -0.05em;
}

.proof-strip-grid span {
  color: var(--color-muted);
  font-size: 12px;
}

.section,
.case-section {
  padding: 112px 0;
}

.section-tint,
.case-section-tint {
  background: #eef3f9;
}

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

.section-label {
  display: block;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-heading h2,
.case-section-heading h2,
.case-feature-copy h2,
.contact-card h2 {
  max-width: 780px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(34px, 4vw, 51px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.section-heading > p,
.evidence-heading > p {
  margin: 0;
  color: var(--color-muted);
  font-size: 17px;
}

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

.evidence-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.evidence-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.evidence-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
}

.evidence-media {
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: #f1f5f9;
}

.evidence-wide .evidence-media {
  border-right: 1px solid var(--color-border);
  border-bottom: 0;
}

.evidence-media img {
  width: 100%;
  aspect-ratio: 16 / 9.8;
  object-fit: cover;
  transition: opacity 200ms ease;
}

.evidence-wide .evidence-media img {
  height: 100%;
  aspect-ratio: auto;
}

.evidence-card:hover .evidence-media img {
  opacity: 0.92;
}

.evidence-body {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 27px;
}

.source-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-body h3,
.service-card h3,
.process-card h3,
.report-card h3,
.implementation-item h3,
.limitations-list h3 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: -0.04em;
}

.evidence-body h3 {
  font-size: 23px;
}

.evidence-body p {
  margin: 11px 0 0;
  color: var(--color-muted);
  font-size: 15px;
}

.card-link,
.text-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
}

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

.service-card {
  position: relative;
  min-height: 390px;
  padding: 32px;
  border: 1px solid #d6e0eb;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.service-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.service-number {
  position: absolute;
  top: 24px;
  right: 25px;
  color: #94a3b8;
  font-family: var(--font-heading);
  font-size: 12px;
}

.icon-shell {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--color-primary);
}

.icon-shell svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 23px;
}

.service-card > p {
  min-height: 79px;
  margin: 12px 0 22px;
  color: var(--color-muted);
  font-size: 15px;
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--color-border);
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
}

.service-card li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  content: "";
}

.case-feature {
  overflow: hidden;
}

.case-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: clamp(45px, 7vw, 86px);
}

.case-visual {
  position: relative;
  padding: 24px 24px 52px 0;
}

.case-visual::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 9%;
  border-radius: 28px;
  background: var(--color-primary-strong);
  content: "";
}

.case-browser {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.browser-bar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-bottom: 1px solid var(--color-border);
  background: #f8fafc;
}

.browser-bar > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.browser-bar > div {
  min-width: 0;
  margin-left: 7px;
  overflow: hidden;
  color: #64748b;
  font-family: var(--font-heading);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-browser > img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  object-position: top;
}

.case-stamp {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 188px;
  display: grid;
  padding: 19px;
  border: 1px solid #fde68a;
  border-radius: 14px;
  background: #fffbeb;
  box-shadow: var(--shadow-md);
}

.case-stamp strong {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 25px;
  letter-spacing: -0.05em;
}

.case-stamp span {
  color: #78350f;
  font-size: 11px;
}

.case-type {
  margin: 0 0 15px;
  color: #64748b;
  font-size: 13px;
}

.case-feature-copy > p:not(.case-type) {
  margin: 22px 0 0;
  color: var(--color-muted);
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 31px 0;
}

.case-stats > div {
  display: flex;
  min-width: 0;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 15px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}

.case-stats dt {
  color: #64748b;
  font-size: 10px;
  line-height: 1.35;
}

.case-stats dd {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
}

.section-dark,
.case-section-dark {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--color-primary-strong);
  background-size: 48px 48px;
  color: #fff;
}

.section-heading-dark > p {
  color: #cbd5e1;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-card {
  min-height: 290px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  transition: background 180ms ease, border-color 180ms ease;
}

.process-card:hover {
  border-color: rgba(147, 197, 253, 0.48);
  background: rgba(255, 255, 255, 0.075);
}

.process-card > span {
  display: block;
  margin-bottom: 70px;
  color: #fbbf24;
  font-family: var(--font-heading);
  font-size: 12px;
}

.process-card h3 {
  font-size: 18px;
}

.process-card p {
  margin: 12px 0 0;
  color: #cbd5e1;
  font-size: 14px;
}

.contact-section {
  background: #eef3f9;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 60px;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid #bfdbfe;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0, rgba(59, 130, 246, 0.15), transparent 33%),
    #fff;
  box-shadow: var(--shadow-md);
}

.contact-card p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--color-muted);
}

.contact-actions {
  display: grid;
  gap: 10px;
  min-width: 218px;
}

.site-footer {
  padding: 52px 0;
  border-top: 1px solid var(--color-border);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
}

.brand-footer {
  margin-bottom: 15px;
}

.footer-grid p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.footer-links a {
  color: #334155;
  font-family: var(--font-heading);
  font-size: 11px;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 25px;
  border-top: 1px solid var(--color-border);
  text-align: right;
}

/* Case study */
.case-hero {
  position: relative;
  overflow: hidden;
  padding: 158px 0 82px;
  background:
    radial-gradient(circle at 85% 22%, rgba(59, 130, 246, 0.16), transparent 28%),
    #f8fbff;
}

.breadcrumbs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 52px;
  color: #64748b;
  font-family: var(--font-heading);
  font-size: 11px;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs svg {
  width: 15px;
  height: 15px;
}

.case-hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.55fr);
  align-items: end;
  gap: 70px;
}

.case-hero h1 {
  max-width: 850px;
  font-size: clamp(42px, 5.2vw, 68px);
}

.case-hero-copy > p {
  max-width: 820px;
  margin: 0;
  color: var(--color-muted);
  font-size: 19px;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 35px;
}

.case-meta > div {
  display: grid;
  gap: 2px;
}

.case-meta span {
  color: #64748b;
  font-size: 11px;
}

.case-meta strong {
  font-family: var(--font-heading);
  font-size: 12px;
}

.case-score-panel {
  padding: 25px;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.case-score-primary {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 12px 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.case-score-primary strong {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.08em;
}

.case-score-primary > span {
  color: #64748b;
  font-family: var(--font-heading);
  font-size: 18px;
}

.case-score-primary small {
  margin-left: auto;
  color: #64748b;
  font-size: 11px;
}

.case-score-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  color: var(--color-muted);
  font-size: 12px;
}

.case-score-row strong {
  color: var(--color-text);
  font-family: var(--font-heading);
}

.case-score-panel > p {
  margin: 16px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--color-border);
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.case-nav-wrap {
  position: sticky;
  z-index: 30;
  top: 0;
  overflow-x: auto;
  border-block: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.case-nav {
  display: flex;
  gap: 28px;
  min-width: max-content;
}

.case-nav a {
  position: relative;
  padding: 15px 0 14px;
  color: #64748b;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
}

.case-nav a:hover {
  color: var(--color-primary);
}

.case-content-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1.1fr);
  gap: clamp(48px, 8vw, 105px);
}

.case-content-grid .case-section-heading {
  display: block;
  margin: 0;
}

.case-content-grid .case-section-heading h2 {
  font-size: clamp(31px, 3.6vw, 44px);
}

.prose {
  color: var(--color-muted);
}

.prose p {
  margin: 0 0 20px;
}

.prose .lead {
  color: #1e293b;
  font-size: 21px;
  line-height: 1.55;
}

.disclosure-box {
  display: flex;
  gap: 15px;
  margin-top: 32px;
  padding: 21px;
  border: 1px solid #fde68a;
  border-radius: 13px;
  background: #fffbeb;
  color: #78350f;
}

.disclosure-box > svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.disclosure-box strong {
  font-family: var(--font-heading);
  font-size: 13px;
}

.disclosure-box p {
  margin: 5px 0 0;
  font-size: 14px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 70px;
}

.outcome-card {
  padding: 23px;
  border: 1px solid var(--color-border);
  border-radius: 15px;
  background: #fff;
}

.outcome-card strong {
  display: block;
  margin: 8px 0;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 31px;
  letter-spacing: -0.06em;
}

.outcome-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.outcome-card-warning {
  border-color: #fed7aa;
  background: #fffaf5;
}

.outcome-card-warning strong {
  color: #c2410c;
}

.implementation-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid #cbd5e1;
  list-style: none;
}

.implementation-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid #cbd5e1;
}

.implementation-number {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
}

.implementation-item h3 {
  font-size: 20px;
}

.implementation-item p {
  max-width: 780px;
  margin: 9px 0 0;
  color: var(--color-muted);
  font-size: 15px;
}

.implementation-tag {
  padding: 5px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.evidence-heading {
  align-items: end;
}

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

.audit-shot {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 17px;
  background: #fff;
  color: var(--color-text);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.audit-shot:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.audit-shot-wide {
  grid-column: 1 / -1;
}

.audit-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 540px;
  object-fit: cover;
  object-position: top;
}

.audit-shot-wide img {
  aspect-ratio: 16 / 8.7;
  max-height: 560px;
}

.audit-shot-tall img {
  aspect-ratio: 16 / 10;
}

.audit-shot > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 19px;
  border-top: 1px solid var(--color-border);
}

.audit-shot strong {
  font-family: var(--font-heading);
  font-size: 13px;
}

.audit-shot small {
  color: #64748b;
  font-size: 11px;
}

.case-section-dark .case-section-heading h2 {
  color: #fff;
}

.limitations-list {
  display: grid;
}

.limitations-list > div {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.limitations-list > div:first-child {
  padding-top: 0;
}

.limitations-list > div > span {
  color: #fbbf24;
  font-family: var(--font-heading);
  font-size: 11px;
}

.limitations-list h3 {
  color: #fff;
  font-size: 18px;
}

.limitations-list p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 14px;
}

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

.report-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 21px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.report-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.report-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--color-primary);
}

.report-icon svg {
  width: 24px;
  height: 24px;
}

.report-card span {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.report-card h3 {
  margin-top: 5px;
  font-size: 14px;
}

.report-card p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 11px;
}

.report-arrow {
  width: 19px;
  height: 19px;
  color: var(--color-primary);
}

.lightbox {
  max-width: min(94vw, 1200px);
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.lightbox::backdrop {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(7px);
}

.lightbox img {
  max-width: min(90vw, 1160px);
  max-height: 88vh;
  border-radius: 16px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  z-index: 3;
  top: -15px;
  right: -15px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.lightbox-close svg {
  width: 19px;
  height: 19px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  animation: reveal-in 480ms ease both;
}

@keyframes reveal-in {
  from {
    opacity: 0.72;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero-layout,
  .case-feature-grid,
  .case-hero-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 145px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .audit-console {
    width: min(100%, 650px);
  }

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

  .proof-strip-grid > div:nth-child(3) {
    border-left: 1px solid var(--color-border);
  }

  .proof-strip-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

  .process-grid,
  .outcome-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-visual {
    max-width: 760px;
  }

  .case-feature-copy {
    max-width: 780px;
  }

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

@media (max-width: 820px) {
  .site-header {
    top: 10px;
  }

  .nav-shell {
    min-height: 62px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-of-type(2) {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span:nth-of-type(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav > a {
    padding: 12px 13px;
  }

  .primary-nav .nav-cta {
    justify-content: center;
    margin: 4px 0 0;
  }

  .section-heading,
  .case-section-heading,
  .case-content-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }

  .evidence-wide {
    display: block;
  }

  .evidence-wide .evidence-media {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .evidence-wide .evidence-media img {
    aspect-ratio: 16 / 9.8;
  }

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

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

  .service-card > p {
    min-height: 0;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-actions {
    min-width: 0;
  }

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

  .audit-shot-wide {
    grid-column: auto;
  }

  .case-section-heading {
    margin-bottom: 36px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 128px 0 72px;
  }

  .hero h1,
  .case-hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-lead,
  .case-hero-copy > p {
    font-size: 17px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .audit-console {
    padding: 19px;
  }

  .audit-console::before {
    display: none;
  }

  .console-grid,
  .proof-strip-grid,
  .process-grid,
  .outcome-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip-grid > div,
  .proof-strip-grid > div:first-child,
  .proof-strip-grid > div:nth-child(3) {
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
  }

  .proof-strip-grid > div:last-child {
    border-bottom: 0;
  }

  .section,
  .case-section {
    padding: 82px 0;
  }

  .section-heading,
  .case-section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .case-section-heading h2,
  .case-feature-copy h2,
  .contact-card h2 {
    font-size: 32px;
  }

  .evidence-wide {
    grid-column: auto;
  }

  .evidence-body {
    min-height: 0;
    padding: 23px;
  }

  .service-card {
    padding: 25px;
  }

  .case-feature-grid {
    gap: 50px;
  }

  .case-visual {
    padding: 0 0 47px;
  }

  .case-visual::before {
    inset: 32px -14px 12px 20px;
  }

  .case-stamp {
    right: -1px;
  }

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

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

  .process-card > span {
    margin-bottom: 36px;
  }

  .contact-card {
    padding: 28px 23px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .copyright {
    text-align: left;
  }

  .case-hero {
    padding: 130px 0 65px;
  }

  .breadcrumbs {
    margin-bottom: 34px;
  }

  .case-meta {
    display: grid;
    gap: 14px;
  }

  .implementation-item {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .implementation-tag {
    grid-column: 2;
    width: fit-content;
  }

  .audit-shot > span {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .report-card {
    grid-template-columns: auto 1fr;
  }

  .report-arrow {
    display: none;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
