/* Case studies: one page, one tab per case. Palette is the site's (navy + purple), layout
   borrows the INVERTO client-page skeleton: eyebrow, light H1, bold outcome line, at-a-glance
   with a sidebar, then Challenge / Approach / Result bands, an impact panel, takeaways. */
:root {
  --navy: #10122b; --text: #1c1e33; --dim: #5d6076; --line: #e6e1f0;
  --accent: #8b2fd6; --accent-dark: #7220b4; --accent-soft: #f3ecfb;
  --mist: #f7f6fa; --paper: #fff; --ok: #2e7d4f;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--paper); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); font-size: 16px; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--text); }
.nav-links a.current { color: var(--accent); font-weight: 600; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; background: var(--accent); color: #fff !important; font-weight: 600; font-size: 15px; text-decoration: none !important; }
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--navy) !important; border: 1.5px solid var(--line); }

/* intro + tabs */
.intro { padding: 72px 0 36px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--navy); margin-bottom: 14px; }
.eyebrow::before { content: "// "; color: var(--accent); }
.intro h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 300; line-height: 1.08; letter-spacing: -0.015em; color: var(--navy); max-width: 18ch; }
.intro p.range { margin-top: 14px; color: var(--dim); font-size: 16px; }
.intro p { max-width: 62ch; color: var(--dim); margin-top: 20px; font-size: 18px; }
.tabs { position: sticky; top: 68px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: 10; }
.tabs ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs a { display: block; padding: 16px 16px 14px; white-space: nowrap; color: var(--dim); font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--navy); text-decoration: none; }
.tabs a[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--accent); }
.js .panel { display: none; }
.js .panel.active { display: block; }
.panel { padding-top: 56px; }
.panel + .panel { border-top: 1px solid var(--line); }

/* case head */
.case-head { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; align-items: start; padding-bottom: 56px; }
.case-head h2.title { font-size: clamp(32px, 4.4vw, 50px); font-weight: 300; line-height: 1.1; letter-spacing: -0.015em; color: var(--navy); margin-bottom: 16px; }
.outcome { font-weight: 700; color: var(--navy); font-size: 18px; margin-bottom: 28px; }
.glance p { color: var(--text); max-width: 68ch; }
.meta { display: grid; gap: 22px; padding-top: 8px; }
.meta dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.meta dd { color: var(--navy); font-weight: 500; font-size: 15px; line-height: 1.45; }
.meta dd a { color: var(--accent); }

/* bands */
.band { padding: 64px 0; }
.band.mist { background: var(--mist); }
.band.dark { background: var(--navy); color: #e7e4f1; }
.band.dark .eyebrow { color: #fff; }
.band h3 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--navy); max-width: 24ch; margin-bottom: 22px; }
.band.dark h3 { color: #fff; }
.band p { max-width: 70ch; color: var(--text); margin-bottom: 14px; }
.band.dark p { color: #cfcbe0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two-col p { max-width: none; }
.lead { font-size: 18px; }

/* white space + where it breaks lists */
.points { list-style: none; display: grid; gap: 14px; max-width: 76ch; }
.points li { padding-left: 30px; position: relative; color: var(--text); }
.points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 16px; height: 2px; background: var(--accent); }
.points li strong { color: var(--navy); }
.breaks li::before { background: var(--dim); }

/* approach */
.approach { display: grid; grid-template-columns: 300px 1fr; gap: 48px; margin: 28px 0 10px; }
.phases { list-style: none; counter-reset: ph; }
.phases li { counter-increment: ph; display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.4; }
.phases li::before { content: counter(ph, decimal-leading-zero); color: var(--accent); font-weight: 700; flex: 0 0 28px; font-variant-numeric: tabular-nums; }
.covered h4 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }

/* exhibits */
figure.exhibit { margin: 36px 0 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 24px 18px; }
figure.exhibit { overflow-x: auto; }
.band.mist figure.exhibit { background: #fff; }
.exhibit .ex-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.exhibit figcaption { display: flex; flex-direction: column; }
.exhibit .ex-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.exhibit .ex-source { font-size: 13px; color: var(--dim); margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.exhibit svg { display: block; width: 100%; height: auto; }
figure.exhibit svg { min-width: 640px; }
.exhibit table { width: 100%; border-collapse: collapse; font-size: 15px; }
.exhibit table { min-width: 560px; }
.exhibit th, .exhibit td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.exhibit th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.exhibit td.num, .exhibit th.num { text-align: right; font-variant-numeric: tabular-nums; }
.exhibit td.num { color: var(--navy); font-weight: 600; }
.exhibit tr.flag td { color: var(--dim); }
.exhibit .bars { display: grid; gap: 8px; }
.exhibit .bar { display: grid; grid-template-columns: 230px 1fr auto; align-items: center; gap: 12px; font-size: 15px; }
.exhibit .bar .lbl { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exhibit .bar .track { display: block; height: 14px; background: var(--mist); border-radius: 0 4px 4px 0; overflow: hidden; }
.exhibit .bar .fill { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.exhibit .bar .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 8px 0 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 20px 16px; }
.stat b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--dim); line-height: 1.4; }
.stat.flag b { color: var(--dim); }
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pipeline div { background: var(--mist); border-radius: 10px; padding: 14px 14px 12px; font-size: 14px; line-height: 1.4; position: relative; }
.pipeline div b { display: block; color: var(--navy); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.pipeline div.ai { background: var(--accent-soft); }
.pipeline div.ai b { color: var(--accent-dark); }

/* impact panel */
.impact { background: var(--navy); color: #fff; border-radius: 14px; padding: 32px 36px; margin-top: 28px; }
.impact h4 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.impact ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 36px; }
.impact li { padding-left: 30px; position: relative; color: #e7e4f1; font-size: 15.5px; line-height: 1.5; }
.impact li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c79bf0; }
.impact li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 5px; height: 9px; border-right: 2px solid #c79bf0; border-bottom: 2px solid #c79bf0; transform: rotate(45deg); }
.impact li.flag::before { border-color: #8e8aa8; }
.impact li.flag::after { display: none; }
.impact li.flag { color: #b9b5cc; }

/* takeaways + next */
.takeaways .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.takeaways .visual { aspect-ratio: 4/3; border-radius: 14px; background: linear-gradient(135deg, #1b1d44, #3b1a6a); position: relative; overflow: hidden; }
.takeaways .visual::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; border: 48px solid rgba(255,255,255,.08); }
.service-line { display: inline-block; margin-top: 10px; font-size: 14px; color: #c79bf0; font-weight: 600; }
.next { padding: 40px 28px 72px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.next .to { font-size: 14px; color: var(--dim); }
.next .to a { font-size: 20px; font-weight: 700; color: var(--navy); display: block; margin-top: 4px; }
footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--dim); }
footer .foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--dim); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .case-head, .two-col, .approach, .takeaways .inner, .impact ul { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .exhibit .bar { grid-template-columns: 110px 1fr auto; }
  .band { padding: 48px 0; }
  .takeaways .visual { aspect-ratio: 16/7; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* product shots */
figure.shot { margin: 36px 0 8px; }
figure.shot .frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(16,18,43,.08); }
figure.shot .frame.browser::before { content: ""; display: block; height: 30px; background: var(--mist); border-bottom: 1px solid var(--line); background-image: radial-gradient(circle, #d4cfe0 5px, transparent 6px), radial-gradient(circle, #d4cfe0 5px, transparent 6px), radial-gradient(circle, #d4cfe0 5px, transparent 6px); background-size: 18px 18px; background-repeat: no-repeat; background-position: 12px 6px, 32px 6px, 52px 6px; }
figure.shot img { display: block; width: 100%; height: auto; }
figure.shot figcaption { font-size: 14px; color: var(--dim); margin-top: 12px; }
figure.shot figcaption b { color: var(--navy); font-weight: 600; }
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 760px; }
.phones .phone { border-radius: 28px; border: 8px solid #10122b; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(16,18,43,.15); }
.phones .phone img { display: block; width: 100%; height: auto; }
.doc { max-width: 720px; }
.map-figure { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: center; }
.map-figure img { max-height: 520px; width: auto; max-width: 100%; display: block; margin: 0 auto; }
@media (max-width: 860px) { .phones { grid-template-columns: 1fr 1fr 1fr; gap: 10px; } .map-figure { grid-template-columns: 1fr; } }

/* the value block: what it replaced, what it is worth, what transfers to the reader */
.value { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value > div { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 20px 20px 18px; }
.band.mist .value > div { background: #fff; }
.value b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px; }
.value p { font-size: 15.5px; line-height: 1.5; color: var(--text); margin: 0; max-width: none; }
.value p strong { color: var(--navy); }
.value-line { font-size: 19px; font-weight: 700; color: var(--navy); max-width: 70ch; margin: 0 0 6px; line-height: 1.4; }
@media (max-width: 860px) { .value { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 18px; }
.stack .frame { max-width: 900px; }

/* margin-expansion comparison: label column + two aligned columns (logo vs trading partner) */
.compare { display: grid; font-size: 15px; }
.compare .crow { display: grid; grid-template-columns: 170px 1fr 1fr; column-gap: 12px; }
.compare .crow > * { padding: 11px 16px; line-height: 1.45; min-width: 0; }
.compare .clbl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding-left: 0; padding-top: 14px; }
.compare .logo { background: var(--mist); color: var(--text); }
.compare .trade { background: var(--accent-soft); color: var(--text); }
.compare .crow + .crow > .logo, .compare .crow + .crow > .trade { border-top: 1px solid rgba(16,18,43,.07); }
.compare .chead .logo, .compare .chead .trade { border-radius: 10px 10px 0 0; padding-top: 16px; }
.compare .crow:last-child .logo, .compare .crow:last-child .trade { border-radius: 0 0 10px 10px; padding-bottom: 16px; }
.compare .chead b { display: block; font-size: 16px; color: var(--navy); }
.compare .chead .trade b { color: var(--accent-dark); }
.compare .chead span { display: block; font-size: 13px; color: var(--dim); margin-top: 3px; line-height: 1.4; }
.compare .cmargin .logo, .compare .cmargin .trade { font-weight: 700; color: var(--navy); }
.compare .cmargin .trade { color: var(--accent-dark); }
.band p.after-ex { margin: 32px 0 14px; font-weight: 600; color: var(--navy); }
@media (max-width: 600px) {
  .compare .crow { grid-template-columns: 1fr 1fr; column-gap: 8px; }
  .compare .crow > * { padding: 10px 12px; font-size: 14px; }
  .compare .clbl { grid-column: 1 / -1; padding: 14px 0 6px; font-size: 10.5px; }
  .compare .chead .clbl { display: none; }
}

/* three tools: numbered cards, each with a small visual (same card language as .value) */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.tool { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 22px 22px 18px; display: flex; flex-direction: column; min-width: 0; }
.tool-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.tool h4 { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.25; margin-bottom: 8px; }
.band .tool p.tool-does { font-size: 15px; line-height: 1.5; color: var(--text); margin: 0 0 16px; max-width: none; }
.tool-vis { background: var(--mist); border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.tool-vis svg { display: block; width: 100%; height: auto; }
.band .tool p.tool-worth { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; color: var(--navy); font-weight: 600; max-width: none; }
.tool-worth b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 3px; }
.tool .bars { display: grid; gap: 8px; }
.tool .bar { display: grid; grid-template-columns: 92px 1fr 26px; align-items: center; gap: 8px; font-size: 12.5px; }
.tool .bar .lbl { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool .bar .track { display: block; height: 10px; background: #fff; border-radius: 0 3px 3px 0; overflow: hidden; }
.tool .bar .fill { display: block; height: 100%; background: var(--accent); border-radius: 0 3px 3px 0; }
.tool .bar .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 600; }
.band .tool p.tool-cap { font-size: 12px; color: var(--dim); margin: 10px 0 0; line-height: 1.4; max-width: none; }
.tool-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.tool-stats div { background: #fff; border-radius: 8px; padding: 8px 10px; }
.tool-stats b { display: block; font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tool-stats span { display: block; font-size: 12px; color: var(--dim); line-height: 1.3; margin-top: 2px; }
.tool-shot { height: 120px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.tool-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
@media (max-width: 860px) { .tools { grid-template-columns: 1fr; } .tool-shot { height: 160px; } }

/* step boxes for a narrated deal (white boxes so they read on a mist band) */
.pipeline.steps { grid-template-columns: repeat(4, 1fr); margin: 18px 0 8px; }
.pipeline.steps div { background: #fff; border: 1px solid var(--line); font-size: 15px; line-height: 1.45; padding: 16px; }
@media (max-width: 860px) { .pipeline.steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pipeline.steps { grid-template-columns: 1fr; } }

/* pull line: hairline box with a purple left rule */
.callout { margin: 28px 0 8px; max-width: 820px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 22px 26px; }
.band .callout p { margin: 0; max-width: none; font-size: 16px; color: var(--dim); }
.callout p strong { display: block; font-size: 20px; line-height: 1.4; color: var(--navy); font-weight: 700; margin-bottom: 8px; }
.tool-vis { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 600px) { #pit-wall .exhibit th, #pit-wall .exhibit td { padding: 8px 6px; font-size: 13px; } #pit-wall .exhibit th { letter-spacing: .04em; } }

/* ===================================================================================
   Phone layout. Everything below is either hidden on desktop (.m-only) or sits inside
   max-width queries, so the desktop rendering is unchanged.
   =================================================================================== */
.m-only { display: none !important; }
.tscroll { display: contents; }
@media (max-width: 700px) {
  .m-only { display: block !important; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }

  /* header: scrolls away on phones; the case tabs take the sticky slot */
  .site-header { position: static; }
  .nav { height: auto; flex-wrap: wrap; padding-top: 8px; }
  .brand { display: inline-block; line-height: 44px; font-size: 15px; }
  .nav .btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; font-size: 14px; }
  .nav-links { display: flex; order: 3; width: calc(100% + 40px); margin: 6px -20px 0; padding: 0 20px; gap: 22px; overflow-x: auto; scrollbar-width: none; font-size: 14px; border-top: 1px solid var(--line); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; flex: 0 0 auto; }
  .nav-links a:last-child { padding-right: 20px; }

  /* intro */
  .intro { padding: 32px 0 24px; }
  .intro h1 { font-size: 31px; line-height: 1.12; max-width: none; }
  .intro p { font-size: 16px; margin-top: 14px; line-height: 1.55; }
  .intro p.range { font-size: 14.5px; margin-top: 12px; }

  /* case tabs: a sticky, swipeable pill row */
  .tabs { top: 0; border-top: 0; box-shadow: 0 6px 16px -14px rgba(16,18,43,.5); }
  .tabs .wrap { padding: 0; }
  .tabs ul { gap: 8px; padding: 10px 20px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 40px), transparent 100%); }
  .tabs li { flex: 0 0 auto; }
  .tabs li:last-child { padding-right: 20px; }
  .tabs a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14.5px; color: var(--dim); }
  .tabs a[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
  .tabs a[aria-selected="true"]:hover { color: #fff; }
  .tabs a[aria-selected="false"]:hover { color: var(--navy); }

  /* case head: title, outcome, glance, then the facts as a compact grid */
  .panel { padding-top: 32px; }
  .case-head { gap: 24px; padding-bottom: 36px; }
  .case-head h2.title { font-size: 28px; line-height: 1.15; margin-bottom: 14px; }
  .outcome { font-size: 16.5px; line-height: 1.5; margin-bottom: 22px; }
  .glance p { font-size: 16px; }
  .meta { grid-template-columns: 1fr 1fr; gap: 16px 20px; padding-top: 20px; border-top: 1px solid var(--line); }
  .meta > div:first-child { grid-column: 1 / -1; }
  .meta dt { font-size: 10.5px; }
  .meta dd { font-size: 14px; }

  /* bands and text */
  .band { padding: 40px 0; }
  .band h3 { font-size: 24px; line-height: 1.2; margin-bottom: 16px; }
  .band p { margin-bottom: 12px; }
  .lead { font-size: 17px; }
  .two-col { gap: 0; }
  .points { gap: 12px; }
  .points li { padding-left: 26px; }
  .approach { gap: 24px; margin: 20px 0 6px; }
  .covered h4 { margin-top: 4px; }
  .callout { padding: 18px 18px; margin-top: 24px; }
  .callout p strong { font-size: 18px; }
  .band .callout p { font-size: 15px; }

  /* exhibits */
  figure.exhibit { margin: 28px 0 8px; padding: 18px 16px 14px; border-radius: 10px; }
  figure.exhibit svg { min-width: 0; }
  .exhibit .ex-label { font-size: 11px; }
  .exhibit .ex-title { font-size: 16px; line-height: 1.4; margin-bottom: 14px; }
  .exhibit .ex-source { font-size: 12.5px; line-height: 1.5; }
  .exhibit table { min-width: 0; font-size: 14px; }
  .exhibit th, .exhibit td { padding: 9px 8px; }
  .exhibit th { font-size: 10.5px; letter-spacing: .06em; }
  figure.has-m > svg:not(.m-only), figure.has-m > table { display: none; }
  .m-hint { font-size: 12px; color: var(--dim); margin: -4px 0 8px; }
  .m-hint::after { content: " \2192"; color: var(--accent); }

  /* bars: label on its own line, never truncated */
  .exhibit .bars { gap: 12px; }
  .exhibit .bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lbl val" "track track"; gap: 4px 10px; font-size: 14px; }
  .exhibit .bar .lbl { grid-area: lbl; white-space: normal; overflow: visible; line-height: 1.35; }
  .exhibit .bar .val { grid-area: val; }
  .exhibit .bar .track { grid-area: track; height: 10px; }

  /* stats */
  .stats { gap: 10px; }
  .stat { padding: 14px 14px 12px; border-radius: 10px; }
  .stat b { font-size: 25px; }
  .stat span { font-size: 13px; }

  /* a wide table that keeps its columns: swipe, first column pinned, shadows at the edges */
  .tscroll { display: block; overflow-x: auto; margin: 0 -16px; padding: 0 16px; background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left / 32px 100% no-repeat local, linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right / 32px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(16,18,43,.16), rgba(16,18,43,0)) left / 12px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(16,18,43,.16), rgba(16,18,43,0)) right / 12px 100% no-repeat scroll; }
  .tscroll table { min-width: 600px; font-size: 13.5px; }
  .tscroll th:first-child, .tscroll td:first-child { position: sticky; left: 0; background: #fff; box-shadow: 1px 0 0 var(--line); }
  .tscroll + table { margin-top: 18px; }

  /* tables that become stacked cards */
  table.m-stack, .m-stack tbody, .m-stack tr, .m-stack td { display: block; }
  .m-stack thead { display: none; }
  .m-stack tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .m-stack tr:first-child { padding-top: 2px; }
  .m-stack td { grid-column: 1 / -1; padding: 0; border: 0; text-align: left; line-height: 1.45; }
  .m-stack td::before { content: attr(data-label); display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 2px; }
  .m-stack td:first-child { font-weight: 700; color: var(--navy); font-size: 15.5px; }
  .m-stack td:first-child::before, .m-nolabel td::before { display: none; }
  .m-stack td.num, .m-cells td:not(:first-child) { grid-column: auto; text-align: left; }
  .exhibit .m-stack td.num { font-size: 16px; }
  .exhibit .m-stack tr.flag td:first-child { color: var(--dim); }
  .m-nolabel tr { gap: 4px; }

  /* diligence matrix, turned so each room is a card */
  .m-trans { display: grid !important; gap: 12px; }
  .mt-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .mt-h { background: var(--mist); padding: 10px 14px; font-weight: 700; color: var(--navy); font-size: 15px; }
  .mt-card dl > div { display: grid; grid-template-columns: 42% 1fr; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
  .mt-card dt { color: var(--dim); font-size: 12.5px; }
  .mt-card dd { color: var(--navy); font-weight: 600; }
  .mt-card .flag dd { color: var(--dim); }

  /* shared bits of the phone exhibits */
  .mx-k { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--dim); margin: 0 0 8px; line-height: 1.4; }
  .mx-kk { display: flex; justify-content: space-between; gap: 12px; }
  .mx-acc { color: var(--accent); }
  .mx-rule { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px; }
  .mx-arrow { text-align: center; color: var(--accent); font-size: 20px; line-height: 1; margin: 8px 0; }
  .mx-sum { margin-top: 16px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.45; color: var(--text); }
  .mx-sum strong { color: var(--navy); font-weight: 600; }

  /* pit wall: the loop */
  .m-loop { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ml-span { grid-column: 1 / -1; }
  .ml-node { background: var(--mist); border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; }
  .ml-node b { display: block; font-size: 12.5px; letter-spacing: .02em; color: var(--navy); }
  .ml-node span { display: block; font-size: 12.5px; color: var(--dim); line-height: 1.4; margin-top: 4px; }
  .ml-dark { background: var(--navy); border-color: var(--navy); }
  .ml-dark b { color: #fff; } .ml-dark span { color: #cfcbe0; }
  .ml-soft { background: var(--accent-soft); border-color: var(--accent-soft); }
  .ml-soft b { color: var(--accent-dark); }
  .ml-edges { grid-column: 2; display: grid; gap: 4px; padding: 2px 0; }
  .ml-e { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--navy); line-height: 1.3; }
  .ml-e i { font-style: normal; color: var(--accent); font-size: 16px; font-weight: 700; }
  .ml-dash { color: var(--dim); }
  .ml-dash i { opacity: .6; }
  .ml-c { justify-content: center; padding: 2px 0; }
  .ml-link { display: flex; gap: 10px; align-items: flex-start; border-left: 2px solid var(--accent); padding: 4px 0 4px 10px; }
  .ml-link i { font-style: normal; color: var(--accent); font-size: 18px; font-weight: 700; line-height: 1.1; }
  .ml-link b { display: block; font-size: 12.5px; color: var(--navy); line-height: 1.35; }
  .ml-link span { display: block; font-size: 12px; color: var(--dim); line-height: 1.35; margin-top: 2px; }

  /* pit wall: the market */
  .mm-box { background: var(--mist); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
  .mm-k { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--accent); margin-bottom: 8px; }
  .mm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .mm-stats b { display: block; font-size: 24px; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
  .mm-stats span { display: block; font-size: 12px; line-height: 1.35; color: var(--dim); margin-top: 3px; }
  .mm-note { font-size: 12.5px; color: var(--dim); margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
  .mm-arrow { text-align: center; color: var(--accent); font-size: 20px; line-height: 1; margin: 6px 0; font-weight: 700; }
  .mm-hub { background: var(--navy); border-radius: 12px; padding: 14px; text-align: center; }
  .mm-hub b { display: block; color: #fff; font-size: 13px; letter-spacing: .02em; }
  .mm-hub span { display: block; color: #cfcbe0; font-size: 12.5px; line-height: 1.4; }
  .mm-foot { text-align: center; font-size: 12.5px; color: var(--dim); margin-top: 12px; }

  /* farmland: sources into one record */
  .ms-list { list-style: none; display: grid; gap: 6px; }
  .ms-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; background: var(--mist); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
  .ms-list b { font-size: 13.5px; color: var(--navy); line-height: 1.3; }
  .ms-list em { font-style: normal; font-weight: 700; color: var(--accent); font-size: 13.5px; }
  .ms-list span { grid-column: 1 / -1; font-size: 12.5px; color: var(--text); line-height: 1.35; }
  .ms-rec { border: 1.5px solid var(--accent); border-radius: 8px; overflow: hidden; }
  .ms-rec-h { background: var(--navy); color: #fff; font-weight: 700; font-size: 13.5px; padding: 8px 12px; }
  .ms-rec dl { display: grid; gap: 8px; padding: 10px 12px; }
  .ms-rec dt { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.3; }
  .ms-rec dd { font-size: 12.5px; color: var(--dim); line-height: 1.35; }
  .ms-rec-f { margin: 0 12px; padding: 8px 0 10px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--accent); }
  .ms-zero { display: flex; gap: 14px; align-items: flex-start; background: var(--navy); border-radius: 8px; padding: 14px; margin-top: 10px; }
  .ms-zero > b { font-size: 30px; line-height: 1; color: #fff; }
  .ms-zero strong { display: block; color: #fff; font-size: 14px; }
  .ms-zero span { display: block; color: #cfcbe0; font-size: 12.5px; line-height: 1.45; margin-top: 2px; }

  /* farmland: the funnel and the signals */
  .mf-b { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: start; background: var(--mist); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 6px; }
  .mf-b > b { color: var(--accent); font-size: 16px; font-variant-numeric: tabular-nums; line-height: 1.3; }
  .mf-b strong { display: block; font-size: 13px; color: var(--navy); line-height: 1.3; }
  .mf-b span { display: block; font-size: 12px; color: var(--dim); line-height: 1.35; margin-top: 2px; }
  .m-fun .mx-kk { margin-top: 18px; }
  .mf-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l l" "bar c"; gap: 3px 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid #f1eef6; }
  .mf-l { grid-area: l; font-size: 13px; color: var(--text); line-height: 1.35; }
  .mf-bar { grid-area: bar; display: flex; align-items: center; gap: 8px; min-width: 0; }
  .mf-bar i { display: block; height: 12px; border-radius: 2px; background: var(--accent); width: calc(var(--w) * 0.6%); min-width: 2px; flex: 0 0 auto; }
  .mf-bar b { font-size: 13px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .mf-bar small { font-size: 12px; font-weight: 400; color: var(--dim); margin-left: 8px; }
  .mf-c { grid-area: c; font-size: 12.5px; color: var(--dim); text-align: right; font-variant-numeric: tabular-nums; }
  .mf-txt { grid-area: bar / bar / c / c; font-size: 12.5px; font-weight: 600; color: var(--navy); line-height: 1.4; }
  .mf-hi { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 8px 8px 8px 10px; border-radius: 4px; grid-template-areas: "l l" "bar bar" "c c"; }
  .mf-hi .mf-l { font-weight: 700; color: var(--navy); }
  .mf-hi .mf-c { text-align: left; color: var(--accent-dark); font-weight: 700; }
  .mf-plan .mf-l, .mf-part .mf-l { color: var(--accent-dark); }
  .mf-plan .mf-bar i, .mf-plan .mf-txt i, .mf-part .mf-txt i { display: inline-block; vertical-align: -2px; width: 40px; height: 12px; border: 1.2px dashed var(--accent); background: #fff; border-radius: 2px; margin-right: 8px; }
  .mf-part .mf-txt i { border-style: solid; background: var(--accent-soft); }
  .mf-plan .mf-bar b, .mf-plan .mf-txt, .mf-part .mf-txt { color: var(--accent-dark); font-weight: 600; }
  .mf-plan, .mf-part { border-bottom: 0; }
  .mv-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "t t"; gap: 4px 10px; padding: 7px 0; }
  .mv-l { grid-area: l; font-size: 13px; color: var(--text); line-height: 1.35; }
  .mv-l em { font-style: normal; font-size: 12px; color: var(--dim); margin-left: 4px; white-space: nowrap; }
  .mv-v { grid-area: v; font-size: 13px; font-weight: 600; color: var(--navy); white-space: pre; font-variant-numeric: tabular-nums; }
  .mv-t { grid-area: t; position: relative; height: 12px; background: linear-gradient(#c9c5d6, #c9c5d6) 42.86% 0 / 1px 100% no-repeat, var(--mist); border-radius: 2px; }
  .mv-t i { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 2px; min-width: 2px; }
  .mv-ax { position: relative; height: 16px; margin-top: 2px; font-size: 11px; color: var(--dim); }
  .mv-ax span { position: absolute; transform: translateX(-50%); }
  .mv-ax span:first-child { transform: none; }
  .mv-ax span:last-child { transform: translateX(-100%); }

  /* farmland: the valuation dot chart */
  .md-leg { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--accent-dark); margin-bottom: 6px; }
  .md-leg i { width: 18px; height: 12px; background: #e9dcf7; border-radius: 2px; }
  .md-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "t t"; gap: 4px 10px; padding: 8px 0; }
  .md-l { grid-area: l; font-size: 13.5px; color: var(--text); }
  .md-l strong { color: var(--navy); }
  .md-v { grid-area: v; font-size: 13.5px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
  .md-t { grid-area: t; position: relative; height: 16px; border-bottom: 1px solid #efecf4; }
  .md-t i { position: absolute; top: 0; bottom: -1px; left: 12.5%; width: 12.5%; background: #e9dcf7; }
  .md-t b { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); }
  .md-t b.md-ask { background: var(--navy); }
  .md-t b.md-sm { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--navy); }
  .md-t s { position: absolute; top: 4px; height: 7px; border: 2px solid var(--accent-dark); border-top: 0; }
  .md-adj .md-l strong, .md-adj .md-v { color: var(--accent-dark); }
  .md-adj .md-v { font-weight: 700; }
  .md-ax { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-top: 4px; }

  /* vertical timelines */
  .m-tl { list-style: none; position: relative; margin: 4px 0 0; padding-left: 26px; }
  .m-tl::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 10px; width: 2px; background: var(--line); }
  .m-tl li { position: relative; padding: 0 0 16px; }
  .m-tl li:last-child { padding-bottom: 2px; }
  .m-tl li::before { content: ""; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
  .m-tl b { display: block; font-size: 14.5px; color: var(--navy); line-height: 1.35; }
  .m-tl span { display: block; font-size: 13.5px; color: var(--dim); line-height: 1.4; margin-top: 2px; }
  .m-tl em { display: block; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-bottom: 2px; }
  .m-tl-dated::before { background: linear-gradient(var(--accent) 72%, var(--line) 72%); }
  .m-tl-dated li::before { background: var(--navy); top: 2px; }
  .m-tl-dated li.tl-next::before { background: #fff; border: 2px dashed var(--dim); }
  .m-tl-dated li.tl-next em, .m-tl-dated li.tl-next b { color: var(--dim); }

  /* product shots: the three phones become a swipeable row */
  .phones { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phones .phone { flex: 0 0 62%; scroll-snap-align: center; border-width: 6px; border-radius: 24px; box-shadow: 0 10px 24px rgba(16,18,43,.12); }
  figure.shot { margin-top: 28px; }
  figure.shot figcaption { font-size: 13.5px; }

  /* impact, value, tools */
  .impact { padding: 24px 20px; border-radius: 12px; margin-top: 24px; }
  .impact h4 { font-size: 18px; margin-bottom: 16px; }
  .impact ul { gap: 12px; }
  .impact li { font-size: 15px; padding-left: 28px; }
  .value { margin-top: 24px; gap: 12px; }
  .value > div { padding: 16px 16px 14px; }
  .value p { font-size: 15px; }
  .value-line { font-size: 17px; }
  .tools { gap: 14px; margin-top: 22px; }
  .tool { padding: 18px 16px 16px; }
  .tool h4 { font-size: 18px; }

  /* takeaways: the decorative panel only costs a screen of scrolling on a phone */
  .takeaways .visual { display: none; }
  .takeaways .inner { gap: 0; }

  .next { padding: 32px 20px 48px; gap: 20px; }
  .next .to a { font-size: 18px; line-height: 1.35; padding: 10px 0; min-height: 44px; }
  .next .btn { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 48px; }
  footer { padding: 24px 0 32px; }
  footer .foot { gap: 6px; flex-direction: column; }
  footer a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 600px) {
  .compare { font-size: 14px; }
}
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 22px; }
  .mm-stats b { font-size: 21px; }
}
@media (max-width: 700px) {
  .m-stack tr { align-items: end; }
  #pit-wall .exhibit .m-stack td { padding: 0; font-size: 14px; }
  #pit-wall .exhibit .m-stack td:first-child { font-size: 15.5px; }
  #pit-wall .exhibit .m-stack td.num { font-size: 16px; }
}
@media (max-width: 700px) {
  .m-stack tr:last-child { border-bottom: 0; padding-bottom: 4px; }
  .exhibit .m-cells td.num { font-size: 15px; }
  .map-figure { gap: 14px; }
}

/* site menu button (phones and narrow tablets; hidden on desktop) */
.menu-btn { display: none; }
@media (max-width: 860px) {
  .site-header { position: relative; }
  .nav { height: 60px; flex-wrap: nowrap; padding-top: 0; gap: 10px; }
  .brand { margin-right: auto; white-space: nowrap; }
  .nav .btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
  .menu-btn { display: block; position: relative; flex: 0 0 44px; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: none; border-radius: 10px; background: none; cursor: pointer; -webkit-tap-highlight-color: rgba(139,47,214,.12); }
  .menu-btn::before, .menu-btn::after { content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, top .2s ease, box-shadow .2s ease; }
  .menu-btn::before { top: 15px; box-shadow: 0 6px 0 var(--navy); }
  .menu-btn::after { top: 27px; }
  .menu-btn[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); box-shadow: none; }
  .menu-btn[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }
  .nav-links, .nav-links.open { -webkit-mask-image: none; mask-image: none; }
  .nav-links { display: none !important; }
  .nav-links.open { display: flex !important; position: absolute; top: 100%; left: 0; right: 0; z-index: 30; width: auto; margin: 0; height: calc(100vh - 60px); height: calc(100dvh - 60px); flex-direction: column; gap: 0; padding: 8px 20px calc(28px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; }
  .nav-links.open a { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0; font-size: 20px; font-weight: 650; letter-spacing: -.01em; color: var(--navy); border-bottom: 1px solid var(--line); text-decoration: none; }
  .nav-links.open a::after { content: "\203A"; font-size: 24px; font-weight: 400; color: var(--accent); }
  .nav-links.open a.current { color: var(--accent); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 360px) { .nav .btn { padding: 0 12px; font-size: 13px; } }

/* the mechanics: a left-to-right flow that stacks on phones */
.flow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 22px; }
.flow > div { background: var(--mist); border-radius: 10px; padding: 14px 14px 12px; font-size: 14px; line-height: 1.4; color: var(--text); position: relative; }
.flow > div b { display: block; color: var(--navy); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.flow > div.gate { background: var(--accent-soft); }
.flow > div + div::before { content: "\2192"; content: "\2192" / ""; position: absolute; left: -17px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 14px; line-height: 1; }
@media (max-width: 860px) {
  .flow { grid-auto-flow: row; grid-auto-columns: auto; gap: 20px; }
  .flow > div + div::before { content: "\2193"; content: "\2193" / ""; left: 50%; top: -17px; transform: translateX(-50%); }
}
