:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --primary: #0f3d5e;
  --secondary: #1e293b;
  --accent: #f59e0b;
  --digital-blue: #2563eb;
  --mint: #14b8a6;
  --soft-blue: #e0f2fe;
  --soft-gold: #fef3c7;
  --border: #cbd5e1;
  --text: #111827;
  --muted: #64748b;
  --grid-line: rgba(15, 61, 94, 0.06);
  --business-highlight: rgba(245, 158, 11, 0.14);
  --radius: 10px;
  --shadow: 0 18px 42px rgba(15, 61, 94, 0.10);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(circle at 10% 10%, rgba(224, 242, 254, 0.78), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(254, 243, 199, 0.70), transparent 28%),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

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

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--digital-blue));
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(15, 61, 94, 0.18);
}

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

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--primary);
  background: var(--soft-blue);
  outline: none;
}

.hero {
  padding: 64px 0 70px;
}

.brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 24px;
  align-items: stretch;
}

.brief-grid > * {
  min-width: 0;
}

.business-brief,
.business-index,
.profile-card,
.case-card,
.outcomes-shell,
.case-dialog .dialog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.business-brief {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: clamp(28px, 4vw, 44px);
}

.business-brief::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.business-brief::after {
  content: "BUSINESS";
  position: absolute;
  right: 24px;
  bottom: 12px;
  color: rgba(15, 61, 94, 0.055);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 1;
}

.business-brief > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 790px;
  margin-bottom: 20px;
  color: var(--text);
  font-size: clamp(2.7rem, 5.4vw, 5.15rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.tagline {
  max-width: 720px;
  margin-bottom: 16px;
  color: var(--digital-blue);
  font-size: 1.12rem;
  font-weight: 800;
}

.lead {
  max-width: 740px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.identity-grid div,
.stats-row article {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.identity-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.identity-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.business-index {
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(224, 242, 254, 0.55), rgba(255, 255, 255, 0.96)),
    #fff;
}

.dashboard-visual {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 12px;
  min-height: 250px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
  padding: 16px;
}

.finance-card,
.flow-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  padding: 16px;
}

.finance-card {
  align-self: stretch;
}

.finance-card span,
.finance-card small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.finance-card strong {
  display: block;
  margin: 18px 0 8px;
  color: var(--primary);
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1;
}

.growth-chart {
  display: flex;
  align-items: end;
  gap: 9px;
  min-height: 146px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--soft-blue));
  padding: 16px;
}

.growth-chart i {
  display: block;
  flex: 1;
  min-width: 18px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--digital-blue));
}

.flow-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.flow-card b {
  display: grid;
  min-width: 56px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-size: 0.74rem;
}

.flow-card span {
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}

.stats-row article {
  min-height: 92px;
}

.stats-row strong {
  display: block;
  color: var(--primary);
  font-size: 1.18rem;
  line-height: 1.15;
}

.stats-row span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.index-heading {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.index-heading h2,
.section-heading h2 {
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.12;
}

.index-heading h2 {
  font-size: 1.55rem;
}

.index-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.index-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.index-item b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: var(--soft-blue);
  font-size: 0.78rem;
}

.index-item span {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.section {
  padding: 74px 0;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: 0.82fr 1fr;
  gap: 28px;
  align-items: end;
}

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

.profile-card {
  min-height: 282px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 61, 94, 0.06);
}

.profile-label,
.case-type {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--primary);
  background: var(--soft-blue);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-card h3,
.case-card h3,
.outcome-card h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.35;
}

.profile-card p,
.case-card p,
.outcome-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.case-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(224, 242, 254, 0.28);
}

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

.case-card {
  position: relative;
  display: flex;
  min-height: 378px;
  flex-direction: column;
  border-top: 5px solid var(--case-color, var(--primary));
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 61, 94, 0.06);
}

.case-card.is-featured {
  background:
    linear-gradient(180deg, var(--business-highlight), rgba(255, 255, 255, 0.96) 34%),
    #fff;
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.14);
}

.case-number {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--case-color, var(--primary));
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 11px;
}

.tag-row,
.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 8px;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 14px;
}

.button:hover,
.button:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  outline: none;
}

.button-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--digital-blue));
}

.button-primary:hover,
.button-primary:focus-visible {
  color: #fff;
}

.outcomes-shell {
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(224, 242, 254, 0.62), rgba(254, 243, 199, 0.54)),
    #fff;
}

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

.outcome-card {
  min-height: 210px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.outcome-index {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  color: var(--primary);
  background: var(--soft-gold);
  font-weight: 800;
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.footer-inner strong {
  color: var(--text);
}

.case-dialog {
  width: min(940px, calc(100% - 28px));
  max-height: min(820px, calc(100vh - 28px));
  border: 0;
  background: transparent;
  padding: 0;
}

.case-dialog::backdrop {
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(5px);
}

.dialog-card {
  position: relative;
  max-height: calc(100vh - 28px);
  overflow: auto;
  color: var(--text);
  padding: 30px;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.dialog-card h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.dialog-tags {
  margin-bottom: 18px;
}

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

.case-note {
  border: 1px solid var(--border);
  border-left: 5px solid var(--case-color, var(--primary));
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 16px;
}

.case-note h3 {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.case-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 1060px) {
  .brief-grid,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .business-brief {
    min-height: auto;
  }

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

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

  .nav-shell {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 0;
  }

  .site-nav {
    justify-content: space-between;
    width: 100%;
  }

  .site-nav a {
    flex: 1;
    padding: 9px 8px;
    text-align: center;
  }

  .hero,
  .section {
    padding: 52px 0;
  }

  .business-brief,
  .business-index,
  .outcomes-shell,
  .dialog-card {
    padding: 20px;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .identity-grid,
  .stats-row,
  .dashboard-visual,
  .profile-grid,
  .case-grid,
  .outcomes-grid,
  .case-notes {
    grid-template-columns: 1fr;
  }

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

  .flow-card span {
    width: 2px;
    height: 18px;
    justify-self: center;
  }

  .case-card,
  .profile-card,
  .outcome-card {
    min-height: auto;
  }

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

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