/* Direction F — home page.
   Type scale: five sizes only. Every font-size below uses one of these. */
:root {
  --fs-xs: 14px;                          /* labels, notes, nav, small lines */
  --fs-sm: 16px;                          /* body text */
  --fs-md: 20px;                          /* lead text and small headings */
  --fs-lg: 28px;                          /* section and item headings */
  --fs-xl: clamp(34px, 4.2vw, 48px);      /* page headline and key figures */

  --paper: #fafaf7;
  --ink: #172b32;
  --text: #46595f;
  --muted: #566b71;
  --teal: #39717a;
  --teal-deep: #173b43;
  --line: #d4dddd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--fs-sm)/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #306d77; outline-offset: 6px; }
main { max-width: 1200px; margin: auto; padding: 0 56px; }

/* ---------- Navigation ---------- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 28px;
  padding: 30px 0 8px;
  border-bottom: 1px solid var(--line);
}
/* The name is the one deliberate exception to the five-step type scale. */
nav b { font-size: 40px; line-height: 1.1; letter-spacing: -0.035em; }
nav div { display: flex; align-items: baseline; gap: 6px 28px; font-size: var(--fs-xs); }
nav a { padding: 10px 0; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
nav .nav-cta {
  padding: 8px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
}
nav .nav-cta:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

.eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #4d7177;
}

/* ---------- Hero ---------- */
.cap-hero { padding: 44px 0 0; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
/* Portrait: right edge on the page's right line. The image file's backdrop is already the page colour, so no frame is drawn. */
.portrait { flex: none; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
h1 {
  font-size: var(--fs-xl);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 17px 0;
}
h1 span { color: var(--teal); }

/* The two main statements share one treatment: a small label, then the sentence with its key phrases in teal. */
.story-head { margin-top: 34px; padding-top: 28px; border-top: 1px solid #cdd9da; }
.story-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #4d7177;
}
.story-label::before { content: ''; width: 28px; height: 2px; background: var(--teal); }
.story-line {
  margin: 0 0 26px;
  font-size: var(--fs-md);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.story-line span { color: var(--teal); }

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 0 0 34px;
}
.capabilities > div { border-left: 3px solid #4e848a; padding-left: 15px; }
.capabilities strong {
  display: block;
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.capabilities span {
  display: block;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted);
  margin-top: 7px;
  max-width: 340px;
}
/* Degrees and patents: slightly heavier and darker than the sentence around them. */
.capabilities span b { font-weight: 500; color: #1f353c; }

/* ---------- Lifecycle ---------- */
.delivery { border-top: 1px solid #cdd9da; padding: 28px 0 34px; }
.function-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 25px; }
.function { position: relative; }
.function-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e3eeec;
  border: 1.5px solid #b9d2d2;
}
.function svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Connector from each stage to the next: a line with a solid arrowhead. */
.function:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 68px;
  right: -7px;
  top: 27px;
  height: 2px;
  background: linear-gradient(to right, #b9d2d2, var(--teal));
}
.function:not(:last-child)::before {
  content: '';
  position: absolute;
  right: -15px;
  top: 21px;
  border-left: 10px solid var(--teal);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.function h3 {
  font-size: var(--fs-lg);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 14px 0 8px;
}
.function p { font-size: var(--fs-xs); line-height: 1.6; margin: 0; color: var(--text); }

.employers {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 56px;
  margin: 34px 0 0;
  padding: 0;
}
.employers li { display: flex; align-items: center; gap: 12px; }
.employers img { display: block; object-fit: contain; }
.employers span { font-size: var(--fs-xs); font-weight: 500; color: var(--text); }

/* ---------- Program scope (frosted tiles on a soft colour field) ---------- */
.scope {
  padding: 30px 30px 32px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 15%, #a9d6d3 0, transparent 42%),
    radial-gradient(circle at 88% 85%, #86b9c2 0, transparent 46%),
    radial-gradient(circle at 62% 0%, #d7ebdf 0, transparent 40%),
    #dcebe9;
}
.scope-title {
  margin: 0 0 20px;
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.scope-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.scope-tile {
  padding: 22px 22px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(23, 59, 67, 0.1);
}
.scope-tile svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scope-tile strong {
  display: block;
  margin: 16px 0 6px;
  font-size: var(--fs-xl);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.scope-tile b { display: block; font-size: var(--fs-sm); font-weight: 600; }
.scope-tile span { display: block; margin-top: 4px; font-size: var(--fs-xs); line-height: 1.5; color: #35505a; }

/* ---------- Selected work ---------- */
.work { padding: 56px 0 25px; }
/* Section headings: title, one line of subtitle beneath it, then the rule. Shared by Selected work and Selected press. */
.section-head, .press-head { margin-bottom: 16px; }
.section-head h2, .press-head h2 { font-size: var(--fs-lg); line-height: 1.2; letter-spacing: -0.04em; font-weight: 600; margin: 0; }
.section-head p, .press-head p { font-size: var(--fs-sm); line-height: 1.5; color: var(--text); margin: 6px 0 0; }
.case-row {
  display: grid;
  grid-template-columns: 50px 1.6fr 1fr 22px;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid #cdd9da;
  align-items: center;
}
/* Company or project name as a quiet chip, so it separates from the function label beside it. */
.case-row .eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.case-tag {
  padding: 3px 12px;
  border-radius: 999px;
  background: #e3eeec;
  border: 1px solid #c5dada;
  color: var(--teal-deep);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.case-row .num { font-size: var(--fs-xs); color: var(--muted); align-self: start; margin-top: 4px; }
.case-row h3 { font-size: var(--fs-lg); line-height: 1.25; letter-spacing: -0.03em; font-weight: 500; margin: 8px 0; }
.case-row p { font-size: var(--fs-sm); color: var(--muted); margin: 6px 0 0; }
.result { border-left: 1px solid var(--line); padding-left: 24px; }
.result small { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.result strong { font-size: var(--fs-md); line-height: 1.35; font-weight: 500; display: block; margin-top: 6px; }
.case-row:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.case-row:hover .arrow { transform: translate(3px, -3px); }
.arrow { font-size: var(--fs-md); transition: transform 0.2s; }

/* ---------- Selected press ---------- */
.press { padding: 56px 0 10px; }
/* Same number column as .case-row, so 01-04 line up with the cases above. */
.press-row { display: grid; grid-template-columns: 50px 1fr; gap: 24px; padding: 28px 0 30px; border-top: 1px solid #cdd9da; }
.press-row .num { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
.press-group { margin: 0 0 16px; font-size: var(--fs-md); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.press-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.press-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #cdd9da;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.press-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(23, 59, 67, 0.12); }
.press-card:hover .press-title { text-decoration: underline; text-underline-offset: 4px; }
/* Outlet name on a thin colour band, in place of a thumbnail. */
.press-outlet {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 20px;
  font-size: var(--fs-md);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
  background:
    radial-gradient(circle at 8% 0%, #a9d6d3 0, transparent 60%),
    radial-gradient(circle at 100% 100%, #86b9c2 0, transparent 65%),
    #dcebe9;
}
.press-title { padding: 16px 20px 0; font-size: var(--fs-sm); line-height: 1.45; font-weight: 500; }
.press-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 14px 20px 16px;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.press-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 36px; }
.press-list li { break-inside: avoid; border-top: 1px solid #e0e7e7; }
.press-list a { display: block; padding: 12px 0 13px; }
.press-list b { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--teal); }
.press-list span { display: block; font-size: var(--fs-sm); line-height: 1.4; }
.press-list small { display: block; margin-top: 3px; font-size: var(--fs-xs); color: var(--muted); }
.press-list a:hover span { text-decoration: underline; text-underline-offset: 4px; }

.press-more { margin: 0; padding: 22px 0 0 74px; border-top: 1px solid #cdd9da; }
.press-more a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; }
.press-more a:hover { background: var(--ink); color: var(--paper); }
.press-page { padding-top: 28px; }
.press-page .press-head h1 { font-size: var(--fs-lg); line-height: 1.2; letter-spacing: -0.04em; font-weight: 600; margin: 0; }
nav b a:hover { text-decoration: none; }
.back-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 11px 22px 11px 16px; background: var(--teal-deep); color: var(--paper); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; }
.back-link:hover { background: var(--teal); }

/* ---------- Background page ---------- */
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.bg-head { padding: 26px 0 6px; }
.bg-head h1 { font-size: var(--fs-xl); margin: 0; }
.bg-head p { margin: 8px 0 0; font-size: var(--fs-md); color: var(--text); letter-spacing: -0.02em; }

/* Dark panels: frosted shapes over a deep teal field with soft light behind them. */
.bgx {
  margin-top: 28px;
  padding: 40px 40px 44px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 18%, rgba(88, 196, 186, 0.55) 0, transparent 38%),
    radial-gradient(circle at 86% 80%, rgba(70, 150, 190, 0.5) 0, transparent 42%),
    radial-gradient(circle at 70% 8%, rgba(232, 178, 92, 0.22) 0, transparent 30%),
    linear-gradient(135deg, #0c2b32, #17454e);
}
.bgx .story-label { color: #bfe1dd; }
.bgx .story-label::before { background: #7fd3c8; }
.bgx .story-line { color: #fff; margin-bottom: 34px; }
.bgx .story-line span { color: #8fe0d4; }

/* 1. Three overlapping circles */
.bring { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: 48px; align-items: center; }
.venn { position: relative; width: 430px; height: 400px; }
.venn-c {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  display: flex;
  padding: 34px;
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.18);
}
.venn-c b { font-size: var(--fs-md); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.venn-tech { left: 90px; top: 0; background: rgba(120, 220, 205, 0.26); justify-content: center; align-items: flex-start; text-align: center; }
.venn-biz { left: 0; top: 150px; background: rgba(110, 175, 230, 0.26); justify-content: flex-start; align-items: flex-end; padding-bottom: 46px; }
.venn-data { left: 180px; top: 150px; background: rgba(240, 190, 105, 0.24); justify-content: flex-end; align-items: flex-end; padding-bottom: 46px; text-align: right; }
.venn-core {
  position: absolute;
  left: 215px;
  top: 208px;
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--teal-deep);
  font-size: var(--fs-xs);
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.bring-list { margin: 0; display: grid; gap: 14px; }
.bring-list > div {
  padding: 18px 22px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left-width: 5px;
}
.bring-list .k-tech { border-left-color: #78dccd; }
.bring-list .k-biz { border-left-color: #7fb6ea; }
.bring-list .k-data { border-left-color: #f0be69; }
.bring-list dt { font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.02em; }
.bring-list dd { margin: 6px 0 0; font-size: var(--fs-sm); line-height: 1.55; color: #e3f0ef; }
.bring-list ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bring-list li { padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--teal-deep); font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; }

/* 2. Five-stage flow with company lanes beneath */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.flow-chevron {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 78px;
  padding: 0 26px 0 34px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%);
}
.flow-step:first-child .flow-chevron { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); padding-left: 22px; border-radius: 14px 0 0 14px; }
.flow-chevron svg { flex: none; width: 26px; height: 26px; fill: none; stroke: #8fe0d4; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.flow-chevron h3 { margin: 0; font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.02em; }
.flow-step ul { list-style: none; margin: 14px 0 0; padding: 0 10px 0 22px; }
.flow-step ul li { font-size: var(--fs-xs); line-height: 1.5; color: #e3f0ef; padding: 2px 0; }
.flow-where { display: none; }
.lanes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 6px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.lane {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 52px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.lane-main { background: linear-gradient(90deg, rgba(143, 224, 212, 0.34), rgba(127, 182, 234, 0.3)); }
.lane-co { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-xs); font-weight: 600; line-height: 1.2; }
.lane-co img { flex: none; width: 30px; height: 22px; object-fit: contain; }
.lane i { font-style: normal; font-size: var(--fs-xs); color: #fff; }

/* Background page, single panel: capabilities on the left, lifecycle on the right. */
.bgx-one { margin-top: 18px; padding: 26px 30px 30px; }
.bgx-cols .bring-list { gap: 10px; }
.bgx-cols .bring-list > div { padding: 14px 20px 16px; }
.bgx-cols .bring-list ul { margin-top: 10px; }
.bgx-title { margin: 0 0 18px; font-size: var(--fs-lg); line-height: 1.2; font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.bgx-cols { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); gap: 30px; align-items: stretch; }
.bgx-cols .bring-list { align-content: space-between; }
/* Lifecycle as five rows: stage, what I did, where. A line down the left ties the stages into one sequence. */
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: space-between; }
.stage-row {
  position: relative;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 8px 14px 8px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.stage-name {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px 0 14px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px 0 0 12px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}
.stage-name svg { flex: none; width: 22px; height: 22px; fill: none; stroke: #8fe0d4; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stage-name h2 { margin: 0; font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.02em; }
.stage-row p { margin: 0; font-size: var(--fs-sm); line-height: 1.45; color: #e9f3f2; }
.stage-co { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; justify-items: start; }
.stage-co li { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 9px; border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-xs); font-weight: 600; line-height: 1.2; white-space: nowrap; }
.stage-co img { flex: none; width: 26px; height: 18px; object-fit: contain; }
/* down arrow between rows */
.stage-row:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 72px;
  bottom: -11px;
  border-top: 9px solid #8fe0d4;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  z-index: 1;
}

/* Background page, light version: white sheet, one teal family, more air between blocks. */
.bgx-one {
  margin-top: 22px;
  padding: 14px 0 48px;
  background: none;   /* sits directly on the page colour, same as the home page */
  color: var(--ink);
  border-radius: 0;
}
.bgx-one .bgx-title { color: var(--ink); margin-bottom: 34px; }
.bgx-one .bgx-cols { grid-template-columns: minmax(0, 0.58fr) minmax(0, 1fr); gap: 48px; }
.bgx-one .bring-list { gap: 22px; align-content: start; }
.bgx-one .bring-list > div {
  padding: 22px 26px 24px;
  background: #f5f9f8;
  border: 1px solid #dde8e7;
  border-left-width: 5px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* three steps of the same teal instead of three different hues */
.bgx-one .bring-list .k-tech { border-left-color: var(--teal-deep); }
.bgx-one .bring-list .k-biz { border-left-color: var(--teal); }
.bgx-one .bring-list .k-data { border-left-color: #8fb9bb; }
.bgx-one .bring-list dd { color: var(--text); }
.bgx-one .bring-list ul { margin-top: 14px; }
.bgx-one .bring-list li { background: #fff; border: 1px solid #b9d2d2; color: var(--teal-deep); }
.bgx-one .stage-list { gap: 22px; align-content: start; }
.bgx-one .stage-row {
  padding: 14px 20px 14px 14px;
  gap: 20px;
  background: #fff;
  border: 1px solid #dde8e7;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.bgx-one .stage-name { background: #e3eeec; color: var(--teal-deep); }
.bgx-one .stage-name svg { stroke: var(--teal); }
.bgx-one .stage-row p { color: var(--text); }
.bgx-one .stage-co li { background: #f5f9f8; border: 1px solid #dde8e7; }
.bgx-one .stage-row:not(:last-child)::after { bottom: -17px; border-top-color: var(--teal); }

/* Lifecycle column: slightly larger content, and five equal rows that span the same height as the three cards beside them. */
.bgx-one .stage-name { height: 60px; gap: 12px; padding: 0 26px 0 18px; }
.bgx-one .stage-name svg { width: 26px; height: 26px; }
.bgx-one .stage-row p { color: var(--ink); }
.bgx-one .stage-co { gap: 8px; }
.bgx-one .stage-co li { font-size: var(--fs-sm); padding: 7px 16px 7px 12px; gap: 10px; }
.bgx-one .stage-co img { width: 30px; height: 22px; }
@media (min-width: 981px) {
  .bgx-one .bgx-cols { align-items: stretch; }
  .bgx-one .bring-list { align-content: space-between; }
  .bgx-one .stage-list { height: 100%; grid-auto-rows: 1fr; align-content: stretch; }
  .bgx-one .stage-row { grid-template-columns: 164px minmax(0, 1fr) auto; padding: 14px 22px 14px 16px; }
  .bgx-one .stage-row:not(:last-child)::after { left: 90px; }
}

.bring-list li.two-line { border-radius: 16px; padding: 7px 14px; }

.bg-more { margin: 34px 0 0; padding-top: 22px; border-top: 1px solid #cdd9da; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; font-size: var(--fs-sm); color: var(--text); }
.bg-more a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); font-weight: 600; }
.bg-more a:hover { background: var(--ink); color: var(--paper); }

/* ---------- Résumé page ---------- */
.resume { padding: 14px 0 56px; }
.resume .press-head h1 { font-size: var(--fs-lg); line-height: 1.2; letter-spacing: -0.04em; font-weight: 600; margin: 0; }
/* Both page images sit in one white sheet with no gap, so the résumé reads as a single page on the web. */
.resume-pages { margin: 26px auto 0; max-width: 900px; background: #fff; border: 1px solid #d4dddd; box-shadow: 0 14px 36px rgba(23, 59, 67, 0.1); }
.resume-pages img { display: block; width: 100%; height: auto; }
.resume-download { margin: 34px 0 0; display: flex; justify-content: center; }
.resume-download a { display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px 14px 20px; background: var(--teal-deep); color: var(--paper); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; }
.resume-download a:hover { background: var(--teal); }
.resume-download svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Contact page ---------- */
nav .nav-cta[aria-current="page"] { background: var(--ink); color: var(--paper); text-decoration: none; }
.contact-page { max-width: 720px; padding: 72px 0 96px; }
.contact-page h1 { margin: 0 0 28px; }
.contact-quote { margin: 0 0 44px; padding: 4px 0 4px 22px; border-left: 3px solid var(--teal); }
.contact-quote p { margin: 0; font-size: var(--fs-lg); line-height: 1.3; font-weight: 500; letter-spacing: -0.03em; color: var(--teal-deep); }
.contact-quote footer { margin-top: 10px; font-size: var(--fs-xs); color: var(--muted); }
.contact-page dl { margin: 0; border-top: 1px solid #cdd9da; }
.contact-page dl > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid #cdd9da; }
.contact-page dt { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: #4d7177; }
.contact-page dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; font-size: var(--fs-md); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.contact-page dd a:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-page button { font: inherit; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0; color: var(--teal-deep); background: #e3eeec; border: 1px solid #c5dada; border-radius: 999px; padding: 3px 12px; cursor: pointer; }
.contact-page button:hover { background: var(--teal-deep); color: var(--paper); }
.contact-page button:focus-visible { outline: 3px solid #306d77; outline-offset: 3px; }

/* ---------- Footer ---------- */
/* Footer: name on its own line; the links share the second line with the tagline. */
.contact { border-top: 1px solid #bacccd; margin-top: 35px; padding: 28px 0 48px; display: grid; grid-template-columns: 1fr auto; column-gap: 48px; align-items: baseline; }
.contact > div { display: contents; }
.contact h2 { grid-column: 1 / -1; font-size: var(--fs-md); font-weight: 500; margin: 0; }
.contact p { grid-column: 1; font-size: var(--fs-xs); color: var(--muted); margin: 8px 0 0; }
.contact-links { grid-column: 2; grid-row: 2; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 32px; }
.contact-links a { font-size: var(--fs-sm); font-weight: 500; text-decoration: none; }
.contact-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-email { display: flex; align-items: baseline; gap: 10px; }
.contact-email button { font: inherit; font-size: var(--fs-xs); font-weight: 600; color: var(--teal-deep); background: #e3eeec; border: 1px solid #c5dada; border-radius: 999px; padding: 3px 12px; cursor: pointer; }
.contact-email button:hover { background: var(--teal-deep); color: var(--paper); }
.contact-email button:focus-visible { outline: 3px solid #306d77; outline-offset: 3px; }
.contact:target h2 { color: var(--teal); }

/* ---------- Narrow screens ---------- */
@media (max-width: 980px) {
  .scope-grid { grid-template-columns: repeat(2, 1fr); }
  .bring { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .bgx-cols { grid-template-columns: 1fr; }
  .stage-row { grid-template-columns: 150px minmax(0, 1fr); }
  .stage-co { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
  .bring-list { width: 100%; }
  .flow { grid-template-columns: 1fr; gap: 14px; }
  .flow-chevron, .flow-step:first-child .flow-chevron { clip-path: none; border-radius: 14px; height: 60px; padding: 0 20px; }
  .flow-step ul { padding-left: 20px; margin-top: 10px; }
  .flow-where { display: block; margin: 8px 0 0 20px; font-size: var(--fs-xs); font-weight: 600; color: #8fe0d4; }
  .lanes { display: none; }
}
@media (max-width: 760px) {
  main { padding: 0 23px; }
  nav { flex-wrap: wrap; padding: 16px 0 12px; }
  nav b { font-size: var(--fs-lg); }
  nav div { flex-wrap: wrap; gap: 0 20px; }
  .cap-hero { padding-top: 32px; }
  .hero-top { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .portrait { width: 104px; height: 104px; }
  .capabilities { grid-template-columns: 1fr; gap: 20px; padding-top: 5px; }
  .capabilities span { max-width: none; }

  .function-flow { grid-template-columns: 1fr; gap: 0; }
  .function {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e0e7e7;
  }
  .function-icon { grid-row: span 2; }
  .function h3 { margin: 0 0 2px; }
  .function:not(:last-child)::after,
  .function:not(:last-child)::before { display: none; }
  .employers { gap: 14px 28px; }

  .scope { padding: 22px 16px; border-radius: 20px; }
  .scope-grid { gap: 12px; }
  .scope-tile { padding: 18px 16px; }

  .work { padding-top: 42px; }
  .case-row { grid-template-columns: 24px 1fr 20px; gap: 12px; padding: 26px 0; }
  .result { grid-column: 2; border: 0; padding: 8px 0 0; }
  .arrow { grid-column: 3; grid-row: 1; }
  .press { padding-top: 42px; }
  .press-row { grid-template-columns: 24px 1fr; gap: 12px; padding: 22px 0; }
  .press-grid { grid-template-columns: 1fr; gap: 12px; }
  .press-list { columns: 1; }
  .press-more { padding-left: 0; }
  .bgx { padding: 26px 18px 28px; border-radius: 22px; }
  .bgx-one { padding: 8px 0 32px; }
  .bgx-one .bgx-cols { grid-template-columns: 1fr; gap: 28px; }
  .stage-row { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .stage-name { width: 150px; }
  .bring { justify-items: stretch; }
  .venn { width: 300px; height: 282px; margin: 0 auto; }
  .venn-c { width: 176px; height: 176px; padding: 22px; }
  .venn-c b { font-size: var(--fs-sm); }
  .venn-tech { left: 62px; top: 0; }
  .venn-biz { left: 0; top: 104px; padding-bottom: 30px; }
  .venn-data { left: 124px; top: 104px; padding-bottom: 30px; }
  .venn-core { left: 150px; top: 146px; padding: 7px 10px; }
  .contact { grid-template-columns: 1fr; }
  .contact-page { padding: 40px 0 64px; }
  .contact-page dl > div { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .contact-links { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 16px; gap: 10px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arrow, .press-card { transition: none; }
}
