@font-face {
  font-family: "Portfolio Sans";
  src: url("/assets/a-BwCKRlZ-.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #15201d;
  --body: #46534f;
  --muted: #6f7c77;
  --line: #dce3df;
  --paper: #f5f7f4;
  --card: #ffffff;
  --accent: #146b55;
  --accent-soft: #dff1e9;
  --warm: #f2e8d9;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Portfolio Sans", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.case-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(21, 32, 29, .09);
  background: rgba(245, 247, 244, .9);
  backdrop-filter: blur(18px);
}

.case-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.nav-name { color: var(--muted); }

.hero,
.section,
.next-case {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.hero {
  padding: 88px 0 66px;
}

.eyebrow,
.section-kicker,
.metric-label {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(46px, 8vw, 94px);
  font-weight: 560;
  letter-spacing: -.06em;
  line-height: .98;
}

.hero-lede {
  max-width: 760px;
  margin: 34px 0 0;
  color: var(--body);
  font-size: clamp(19px, 2.6vw, 28px);
  line-height: 1.45;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.hero-meta div {
  min-height: 118px;
  padding: 22px;
  background: var(--card);
}

.hero-meta span,
.hero-meta strong { display: block; }

.hero-meta span {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-meta strong {
  font-size: 15px;
  line-height: 1.45;
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 510px;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 28px;
  background: #183f35;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.6fr);
  gap: 64px;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 58px);
  font-weight: 560;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.section-intro {
  margin: 0;
  color: var(--body);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.55;
}

.two-col,
.three-col,
.four-col,
.evidence-grid {
  display: grid;
  gap: 16px;
  margin-top: 42px;
}

.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.evidence-grid { grid-template-columns: 1.35fr .65fr; }

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
}

.card p,
.body-copy,
.card li {
  color: var(--body);
  font-size: 15px;
  line-height: 1.65;
}

.card p { margin: 0; }
.card ul { margin: 14px 0 0; padding-left: 20px; }

.journey {
  margin-top: 46px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.journey-row {
  display: grid;
  grid-template-columns: 132px repeat(4, minmax(170px, 1fr));
  min-width: 860px;
}

.journey-row + .journey-row { border-top: 1px solid var(--line); }

.journey-cell {
  min-height: 112px;
  padding: 20px;
  border-left: 1px solid var(--line);
  color: var(--body);
  font-size: 13px;
  line-height: 1.5;
}

.journey-cell:first-child {
  border-left: 0;
  background: #f0f3f0;
  color: var(--ink);
  font-weight: 720;
}

.journey-header .journey-cell {
  min-height: auto;
  background: #183f35;
  color: white;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.flow {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 42px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.flow-step {
  position: relative;
  flex: 1 0 150px;
  min-height: 142px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  font-size: 11px;
}

.flow-step strong { display: block; margin-bottom: 10px; font-size: 14px; }
.flow-step span { color: var(--body); font-size: 12px; line-height: 1.5; }

.measure {
  padding: 34px;
  border-radius: 22px;
  background: #172b26;
  color: white;
}

.measure .metric-label { color: #91d5c2; }
.measure h3 { margin: 0 0 14px; font-size: 24px; }
.measure p { margin: 0; color: #c8d4d0; font-size: 15px; line-height: 1.65; }

.formula {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.65;
}

.confidential {
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: #274c42;
  font-size: 13px;
  line-height: 1.6;
}

.image-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.image-caption {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.stacked-shot {
  max-height: 720px;
  object-fit: cover;
  object-position: top;
}

.ai-loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.ai-loop div { padding: 24px; background: var(--card); }
.ai-loop strong { display: block; margin-bottom: 9px; }
.ai-loop span { color: var(--body); font-size: 13px; line-height: 1.55; }

.next-case {
  padding: 72px 0 110px;
}

.next-case a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 560;
  letter-spacing: -.035em;
}

.next-case span { color: var(--accent); }

@media (max-width: 780px) {
  .hero { padding-top: 62px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .two-col, .three-col, .four-col, .evidence-grid, .ai-loop { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; }
}

@media (max-width: 500px) {
  .hero, .section, .next-case { width: min(calc(100% - 30px), var(--max)); }
  .case-nav { padding: 15px; }
  .hero-meta { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .card { padding: 22px; }
}
