:root {
  color-scheme: light;
  --ink: #172125;
  --muted: #526368;
  --line: #d4dfda;
  --paper: #ffffff;
  --wash: #edf4f1;
  --warm: #fff7ed;
  --teal: #1d626b;
  --deep-teal: #173f45;
  --rust: #a94726;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wash); color: var(--ink); }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #ee8b62; outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff7ed;
  border-bottom: 1px solid var(--line);
}
.hero::before { position: absolute; inset: 0 0 110px; content: ""; background: #f7fbf9; }
.hero::after { position: absolute; inset: auto 0 0; height: 110px; content: ""; background: #fff7ed url("assets/matter-workflow.png") center top / 1120px auto no-repeat; border-top: 1px solid #eadbc9; }
.hero-content { position: relative; z-index: 1; padding: 56px 0 120px; }
.hero-content > * { max-width: 760px; }
.eyebrow, .scope-label { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.eyebrow { color: var(--teal); }
.scope-label { margin-top: 18px; color: var(--rust); }
h1, h2, h3, p { letter-spacing: 0; }
h1 { margin: 16px 0 0; font: 700 4.6rem/0.95 Georgia, "Times New Roman", serif; }
.lead { margin: 16px 0 0; color: #304247; font-size: 1.22rem; line-height: 1.55; }
.scope-copy { margin: 14px 0 0; color: var(--muted); line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { min-height: 32px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.92); padding: 7px 10px; color: #3d5055; font-size: .78rem; font-weight: 750; }
.chip.active { border-color: #a9d3bd; background: #effaf4; color: #225f42; }
.chip.boundary { border-color: #efc5b3; background: #fff5ef; color: #7d3821; }
.button { display: inline-flex; align-items: center; min-height: 46px; margin-top: 24px; border-radius: 8px; background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 800; text-decoration: none; }

.band { padding: 70px 0; }
.band.paper { background: var(--paper); }
.band.warm { background: var(--warm); border-block: 1px solid #eadbc9; }
.section-heading { display: grid; grid-template-columns: minmax(0,.9fr) minmax(280px,1.1fr); gap: 40px; align-items: end; margin-bottom: 28px; }
h2 { margin: 8px 0 0; font: 700 2.7rem/1.05 Georgia, "Times New Roman", serif; }
.section-heading p, .review-copy p, .roadmap-copy { margin: 0; color: var(--muted); line-height: 1.6; }

.matter-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 8px 8px 0 0; background: #f5faf8; }
.matter-summary div { min-width: 0; padding: 14px 16px; border-right: 1px solid var(--line); }
.matter-summary div:last-child { border-right: 0; }
.matter-summary span, .matter-summary strong { display: block; overflow-wrap: anywhere; }
.matter-summary span { color: var(--muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; }
.matter-summary strong { margin-top: 5px; font-size: .9rem; }
.walkthrough-layout { display: grid; grid-template-columns: minmax(220px,.42fr) minmax(0,1fr); min-height: 430px; border: 1px solid var(--line); border-top: 0; background: #fff; }
.stage-tabs { display: grid; align-content: start; background: #f7f5ef; border-right: 1px solid var(--line); }
.stage-tab { width: 100%; display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 10px; align-items: center; min-height: 72px; border: 0; border-bottom: 1px solid #e5e0d8; background: transparent; padding: 12px 16px; color: #435257; text-align: left; cursor: pointer; }
.stage-tab span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #e3e6e1; font-size: .72rem; font-weight: 850; }
.stage-tab[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 800; box-shadow: inset 4px 0 0 var(--rust); }
.stage-tab[aria-selected="true"] span { background: var(--rust); color: #fff; }
.stage-panel { min-width: 0; padding: 34px 38px; }
.stage-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.stage-kicker { color: var(--teal); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.stage-status { border: 1px solid #a9d3bd; border-radius: 8px; background: #effaf4; padding: 6px 9px; color: #225f42; font-size: .75rem; font-weight: 800; }
.stage-panel h3 { margin: 16px 0 0; font: 700 2rem/1.1 Georgia, "Times New Roman", serif; }
.stage-lead { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.stage-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 24px 0 0; }
.stage-facts div { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.stage-facts dt { color: var(--muted); font-size: .75rem; font-weight: 750; text-transform: uppercase; }
.stage-facts dd { margin: 6px 0 0; font-weight: 750; overflow-wrap: anywhere; }
.stage-review { margin-top: 22px; border-left: 4px solid var(--rust); background: #fff7ed; padding: 14px 16px; }
.stage-review p { margin: 5px 0 0; color: #60493f; line-height: 1.5; }
.walkthrough-boundaries { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; border: 1px solid #efc5b3; border-top: 0; background: #efc5b3; border-radius: 0 0 8px 8px; overflow: hidden; }
.walkthrough-boundaries p { margin: 0; background: #fff5ef; padding: 14px; color: #753720; font-size: .82rem; line-height: 1.45; }

.preview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.preview-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.preview-copy { min-height: 112px; padding: 18px; }
.preview-copy strong { display: block; margin-bottom: 7px; }
.preview-copy p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.preview-card img { aspect-ratio: 16/9; object-fit: contain; background: #fffaf4; border-top: 1px solid var(--line); }
.case-study-heading { align-items: start; }
.project-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 0; }
.project-facts div { border: 1px solid var(--line); border-radius: 8px; background: #f7fbf9; padding: 18px; }
.project-facts dt { color: var(--teal); font-size: .74rem; font-weight: 850; text-transform: uppercase; }
.project-facts dd { margin: 8px 0 0; color: #34474c; font-size: .92rem; font-weight: 700; line-height: 1.5; }
.architecture-card { display: grid; grid-template-columns: minmax(220px,.62fr) minmax(0,1.38fr); gap: 30px; margin-top: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); padding: 24px; color: #fff; }
.architecture-copy h3 { margin: 10px 0 0; font: 700 1.8rem/1.1 Georgia, "Times New Roman", serif; }
.architecture-copy p { margin: 10px 0 0; color: #c9d7d8; font-size: .9rem; line-height: 1.55; }
.architecture-card .eyebrow { color: #9fd1cb; }
.architecture-flow { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.architecture-flow li { min-width: 0; border: 1px solid #456166; border-radius: 8px; background: #213136; padding: 14px 10px; }
.architecture-flow span, .architecture-flow strong { display: block; }
.architecture-flow span { color: #9fd1cb; font-size: .7rem; font-weight: 850; }
.architecture-flow strong { margin-top: 14px; font-size: .82rem; line-height: 1.35; overflow-wrap: anywhere; }
.decision-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.decision-grid article { border-left: 3px solid var(--rust); padding: 4px 0 4px 14px; }
.decision-grid strong { display: block; }
.decision-grid p { margin: 6px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.portfolio-boundary { margin: 20px 0 0; color: #753720; font-size: .84rem; font-weight: 750; }
.review-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.review-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.review-list li { border-left: 3px solid var(--teal); padding: 4px 0 4px 13px; color: #34474c; line-height: 1.45; }
.roadmap { display: grid; grid-template-columns: minmax(0,.8fr) minmax(300px,1.2fr); gap: 48px; align-items: start; }
.roadmap-stages { display: grid; gap: 12px; }
.roadmap-stage { border: 1px solid #d8cbbb; border-radius: 8px; background: rgba(255,255,255,.65); padding: 16px; }
.roadmap-stage strong, .roadmap-stage span { display: block; }
.roadmap-stage strong { margin-bottom: 5px; }
.roadmap-stage span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
footer { background: var(--deep-teal); color: #eaf4f1; padding: 28px 0; }
footer p { margin: 0; font-size: .9rem; line-height: 1.55; }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px,1120px); }
  .hero { min-height: 760px; align-items: flex-start; }
  .hero::after { background-size: 100% auto; }
  .hero-content { padding: 46px 0 100px; }
  h1 { font-size: 3.4rem; }
  .lead { font-size: 1.05rem; }
  .band { padding: 50px 0; }
  h2 { font-size: 2.15rem; }
  .section-heading, .preview-grid, .project-facts, .architecture-card, .decision-grid, .review-layout, .review-list, .roadmap, .matter-summary, .walkthrough-layout, .walkthrough-boundaries { grid-template-columns: 1fr; }
  .section-heading, .review-layout, .roadmap { gap: 20px; }
  .matter-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .matter-summary div { border-bottom: 1px solid var(--line); }
  .matter-summary div:nth-child(2) { border-right: 0; }
  .stage-tabs { grid-template-columns: repeat(5,minmax(112px,1fr)); overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .stage-tab { grid-template-columns: 30px minmax(72px,1fr); min-height: 64px; padding: 10px; }
  .stage-tab[aria-selected="true"] { box-shadow: inset 0 -4px 0 var(--rust); }
  .stage-panel { min-height: 470px; padding: 26px 20px; }
  .stage-facts { grid-template-columns: 1fr; }
  .preview-copy { min-height: 0; }
  .preview-card img { aspect-ratio: 4/3; }
  .architecture-flow { grid-template-columns: 1fr; }
  .architecture-flow li { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 8px; align-items: center; }
  .architecture-flow strong { margin-top: 0; }
}

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