@font-face {
  font-family: "Manrope Local";
  src: url("./assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader Local";
  src: url("./assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --canvas: #f3f6fa;
  --paper: #ffffff;
  --paper-strong: #ffffff;
  --ink: #152b47;
  --muted: #506278;
  --line: #c7d3df;
  --line-strong: #8194a8;
  --accent: #006b95;
  --accent-dark: #16456b;
  --accent-soft: #dceff8;
  --sea: #245a7c;
  --focus: #006b95;
  --display: "Newsreader Local", Charter, Georgia, serif;
  --body: "Manrope Local", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --control-radius: 7px;
  --brand-navy: #1c3762;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgb(0 107 149 / 18%);
}

::selection {
  background: #b9e7fb;
  color: #102a43;
}

* {
  scrollbar-color: var(--line-strong) var(--canvas);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--canvas);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--canvas);
  border-radius: 999px;
  background: var(--line-strong);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  touch-action: manipulation;
}

button,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

img,
video {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(1220px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  translate: 0 -180%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--paper-strong);
  font-weight: 750;
  transition: translate 180ms var(--ease-out);
}

.skip-link:focus-visible {
  translate: 0 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.no-js .js-only {
  display: none !important;
}

.topbar-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(129 148 168 / 55%);
  background: rgb(243 246 250 / 94%);
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  min-height: 44px;
  font-size: 0.93rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--brand-navy);
  color: #ffffff;
  border-radius: var(--control-radius);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.nav-links {
  gap: clamp(14px, 2vw, 28px);
}

.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 6.7vw, 6rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.15rem, 4vw, 4rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 2.6vw, 2.55rem);
}

.lede {
  max-width: 61ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: var(--control-radius);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, translate 180ms var(--ease-out);
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.primary:hover {
  background: var(--accent-dark);
  translate: 0 -2px;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
}

.button.ghost:hover {
  background: var(--paper-strong);
  translate: 0 -2px;
}

.hero-copy {
  padding-bottom: 0;
}

.hero-actions,
.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-byline {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.evidence-story {
  min-width: 0;
}

.evidence-window {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #0c1519;
  box-shadow: 0 24px 55px rgb(19 49 77 / 16%);
}

.window-bar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  border-bottom: 1px solid #34454d;
  color: #d9e2e4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.window-bar span:last-child {
  color: #8fcbe8;
}

.evidence-image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 32 / 17;
  background: #111d22;
}

.evidence-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: center;
  transition: transform 720ms var(--ease-out), filter 260ms ease, clip-path 720ms var(--ease-out);
}

.evidence-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #5ed0ff;
  border-radius: 50%;
  background: rgb(0 107 149 / 24%);
  box-shadow: 0 0 0 8px rgb(94 208 255 / 12%);
  transition: inset 720ms var(--ease-out), transform 720ms var(--ease-out), opacity 180ms ease;
}

[data-stage="change"] .evidence-image {
  transform: scale(1.02);
}

[data-stage="change"] .evidence-marker {
  inset: 20% auto auto 11%;
}

[data-stage="check"] .evidence-image {
  transform: scale(1.1) translate(-2%, 3%);
  clip-path: inset(1.2% round 2px);
}

[data-stage="check"] .evidence-marker {
  inset: 35% auto auto 55%;
}

[data-stage="finding"] .evidence-image {
  transform: scale(1.14) translate(2%, -2%);
  clip-path: inset(1.2% round 2px);
}

[data-stage="finding"] .evidence-marker {
  inset: 57% auto auto 68%;
}

[data-stage="decision"] .evidence-image {
  transform: scale(1.08) translate(-1%, -1%);
}

[data-stage="decision"] .evidence-marker {
  inset: 74% auto auto 84%;
}

.evidence-story.is-switching .evidence-image {
  filter: saturate(0.72) contrast(1.06);
}

.evidence-story.is-switching .evidence-marker {
  transform: scale(1.35);
}

.evidence-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px 28px;
  align-items: end;
  padding-top: 22px;
}

.evidence-copy h2 {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.evidence-caption {
  min-height: 3.1em;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.48;
}

.evidence-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--paper);
}

.evidence-controls button {
  position: relative;
  min-height: 48px;
  padding: 8px 10px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.25;
}

.evidence-controls button:last-child {
  border-right: 0;
}

.evidence-controls button::after {
  position: absolute;
  inset: auto 8px 5px;
  height: 2px;
  background: var(--accent);
  content: "";
  scale: 0 1;
  transform-origin: left;
  transition: scale 260ms var(--ease-out);
}

.evidence-controls button:hover {
  color: var(--ink);
}

.evidence-controls button[aria-pressed="true"] {
  background: #e9f0f6;
  color: var(--ink);
}

.evidence-controls button[aria-pressed="true"]::after {
  scale: 1 1;
}

.no-js .evidence-controls {
  display: none;
}

.selected-work {
  padding-block: clamp(80px, 10vw, 140px) clamp(88px, 10vw, 132px);
  border-top: 1px solid var(--line-strong);
  background: var(--paper);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}

.section-intro h2 {
  max-width: 12ch;
  margin-bottom: 0;
}

.section-intro > p {
  max-width: 48ch;
  margin: 0 0 5px;
  color: var(--muted);
  line-height: 1.6;
}

.selected-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.selected-card {
  grid-column: span 5;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
}

.selected-card-content {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}


.selected-card--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.project-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 8.4;
  border-bottom: 1px solid var(--line);
  background: #e3ebf3;
}

.project-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.selected-card--lead .project-media {
  height: 100%;
  min-height: 440px;
  aspect-ratio: auto;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 520ms var(--ease-out), filter 300ms ease;
}

.selected-card:hover .project-media img,
.work-card:hover > img,
.work-card:hover > picture img {
  transform: scale(1.025);
  filter: saturate(0.92) contrast(1.025);
}

.project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
}

.project-kind {
  margin: 0 0 20px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-card:not(.selected-card--lead) .project-kind {
  margin-bottom: 12px;
}

.project-summary {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.project-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 26px 0 24px;
  border: 1px solid var(--line);
  background: var(--line);
}

.project-proof div {
  padding: 13px 14px;
  background: var(--paper-strong);
}

.project-proof dt,
.work-card-proof dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-proof dd,
.work-card-proof dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.4;
}

.project-link {
  display: inline-flex;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  align-items: center;
  padding-block: 10px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration-color: var(--accent);
}

.project-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.all-work-link {
  margin: 36px 0 0;
  text-align: right;
}

.all-work-link a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.proof-band {
  border-block: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--paper);
}

.proof-band-inner {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.55fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  padding-block: clamp(58px, 7vw, 88px);
}

.proof-band h2 {
  margin-bottom: 14px;
  color: var(--paper);
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.proof-band p {
  max-width: 44ch;
  margin: 0;
  color: #c4d1de;
}

.proof-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid #485e73;
}

.proof-rail div {
  min-width: 0;
  padding: 20px 16px 22px;
  border-right: 1px solid #485e73;
}

.proof-rail div:first-child {
  padding-left: 0;
}

.proof-rail div:last-child {
  padding-right: 0;
  border-right: 0;
}

.proof-rail dt {
  color: #5ed0ff;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
}

.proof-rail dd {
  margin: 9px 0 0;
  color: #e1e9f1;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: clamp(48px, 8vw, 120px);
  padding-block: clamp(88px, 11vw, 150px);
}

.closing h2 {
  max-width: 13ch;
}

.closing p {
  max-width: 63ch;
  color: var(--muted);
}

.closing-links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.closing-links > a:not(.button) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 750;
}

.footer {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer p {
  margin: 0;
}

.footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 750;
}

/* Homepage composition */

.nav-links a[aria-current="location"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.45em;
}

.hero {
  display: flex;
  min-height: min(680px, calc(100dvh - 72px));
  align-items: center;
  padding-block: clamp(30px, 4vw, 56px);
}

.hero-grid {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(360px, 0.82fr) minmax(500px, 1.18fr);
  gap: clamp(42px, 6vw, 88px);
  align-items: center;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.25rem, 4.5vw, 4.2rem);
  letter-spacing: -0.035em;
}

.hero-title-lock {
  white-space: nowrap;
}

.hero-copy .lede {
  max-width: 51ch;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.evidence-window,
.selected-card,
.contract-workbench {
  border-radius: 5px;
}

.section-intro--stacked {
  display: block;
  max-width: 780px;
  margin-bottom: 42px;
}

.section-intro--stacked h2 {
  max-width: 13ch;
  margin-bottom: 18px;
}

.section-intro--stacked > p {
  max-width: 63ch;
  margin: 0;
}

.selected-grid--shelf {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 0.88fr);
  gap: 12px;
}

.selected-grid--shelf .selected-card {
  grid-column: auto;
  border-color: var(--line-strong);
  background: var(--canvas);
}

.selected-grid--shelf .project-media {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
  padding: 18px 0 0 18px;
  border-right: 0;
  border-bottom: 1px solid var(--line-strong);
  background: #142e48;
}

.selected-grid--shelf [data-project="projectlens"] .project-media {
  padding: 22px 22px 0;
  background: #cedeea;
}

.selected-grid--shelf [data-project="quicksupply"] .project-media {
  padding: 18px 0 0 18px;
  background: #dbe5ee;
}

.selected-grid--shelf .project-media img {
  border: 1px solid rgb(21 43 71 / 22%);
  border-bottom: 0;
  object-position: left top;
  box-shadow: 0 18px 38px rgb(21 43 71 / 20%);
}

.selected-grid--shelf [data-project="projectlens"] .project-media img {
  object-position: center top;
}

.selected-grid--shelf .project-copy {
  padding: clamp(20px, 2.4vw, 28px);
}

.project-title-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.project-title-line h3 {
  margin: 0;
  font-size: clamp(2rem, 2.8vw, 3.15rem);
}

.project-title-line span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-align: right;
}

.project-audience {
  margin: 18px 0 0;
  color: var(--accent-dark);
  font-size: 0.79rem;
  font-weight: 750;
  line-height: 1.45;
}

.selected-grid--shelf .project-summary {
  margin-top: 10px;
  font-size: 0.9rem;
}

.selected-grid--shelf .project-proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 24px 0 18px;
  border: 0;
  background: transparent;
}

.selected-grid--shelf .project-proof div {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.selected-grid--shelf .project-proof dt {
  margin-bottom: 4px;
  letter-spacing: 0;
  text-transform: none;
}

.selected-grid--shelf .project-proof dd {
  font-size: 0.78rem;
  font-weight: 700;
}

.project-fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 16px;
  border-block: 1px solid var(--line);
}

.project-fit div {
  min-width: 0;
  padding: 10px 8px 10px 0;
}

.project-fit div:nth-child(even) {
  padding-right: 0;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.project-fit div:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.project-fit div:last-child {
  grid-column: 1 / -1;
  padding-right: 0;
  border-top: 1px solid var(--line);
}

.project-fit dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
}

.project-fit dd {
  margin: 0;
  font-size: 0.71rem;
  font-weight: 720;
  line-height: 1.38;
}

.capability-store {
  padding-block: clamp(84px, 10vw, 138px);
}

.capability-routes {
  border-top: 1px solid var(--line-strong);
}

.capability-routes a {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(320px, 1.35fr) minmax(220px, 0.8fr);
  gap: 30px;
  min-height: 108px;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 180ms ease, transform 240ms var(--ease-out);
}

.capability-routes a:hover,
.capability-routes a:focus-visible {
  background: var(--paper);
  transform: translateX(6px);
}

.capability-routes strong {
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 2.45rem);
  line-height: 1;
}

.capability-routes span,
.capability-routes small {
  color: var(--muted);
  line-height: 1.5;
}

.capability-routes small {
  justify-self: end;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: right;
}

.decision-contract {
  padding-block: clamp(86px, 10vw, 138px);
  border-block: 1px solid var(--line-strong);
  background: var(--paper);
}

.contract-intro {
  max-width: 810px;
}

.contract-intro h2 {
  max-width: 14ch;
}

.contract-intro p {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.contract-workbench {
  overflow: hidden;
  margin-top: 48px;
  border: 1px solid var(--line-strong);
  background: var(--canvas);
  box-shadow: 0 24px 52px rgb(19 49 77 / 12%);
}

.contract-toolbar {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 78px;
  padding: 14px 16px;
  background: #16395d;
  color: #eff4f8;
}

.contract-switcher {
  display: flex;
  gap: 6px;
}

.contract-switcher button {
  min-height: 46px;
  padding: 9px 13px;
  border: 1px solid #627e95;
  border-radius: 3px;
  background: transparent;
  color: #d1e0eb;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 760;
}

.contract-switcher button:hover {
  border-color: #adc4d8;
}

.contract-switcher button[aria-pressed="true"] {
  border-color: #f3f6fa;
  background: #f3f6fa;
  color: #152b47;
}

.contract-toolbar > p {
  justify-self: end;
  max-width: 56ch;
  margin: 0;
  color: #c4d5e3;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: right;
}

.contract-canvas {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(150px, auto));
  gap: 18px;
  padding: clamp(28px, 4vw, 52px);
  isolation: isolate;
  list-style: none;
  margin: 0;
}

.contract-node {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-strong);
}

.contract-node span {
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 800;
}

.contract-node strong {
  margin-top: 28px;
  font-size: clamp(0.88rem, 1.15vw, 1.04rem);
  line-height: 1.45;
}

.contract-node--authority {
  border-color: #16395d;
  background: #16395d;
  color: #eff4f8;
}

.contract-node--authority span {
  color: #7bd6fa;
}

.contract-node--ai {
  background: #e6edf4;
}

.contract-node--stop {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: var(--accent-soft);
}

.contract-node--owner {
  background: #dceaf4;
}

.contract-canvas.is-playing .contract-node {
  animation: contract-signal 640ms var(--ease-out) both;
}

.contract-canvas.is-playing .contract-node--authority {
  animation-delay: 100ms;
}

.contract-canvas.is-playing .contract-node--ai {
  animation-delay: 220ms;
}

.contract-canvas.is-playing .contract-node--stop {
  animation-delay: 340ms;
}

.contract-canvas.is-playing .contract-node--owner {
  animation-delay: 460ms;
}

.contract-canvas.is-playing .contract-node--record {
  animation-delay: 560ms;
}

.contract-evidence { padding: 0 clamp(28px, 4vw, 52px) 28px; }
.contract-evidence p { margin: 0 0 8px; max-width: 78ch; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.contract-evidence nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.contract-evidence a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-underline-offset: 4px; font-size: .9rem; font-weight: 700; }

@keyframes contract-signal {
  0% { box-shadow: 0 0 0 0 rgb(0 107 149 / 0%); clip-path: inset(0 0 0 0); }
  45% { box-shadow: 0 10px 28px rgb(19 49 77 / 17%); clip-path: inset(0 0 0 0 round 4px); }
  100% { box-shadow: 0 0 0 0 rgb(0 107 149 / 0%); clip-path: inset(0 0 0 0); }
}

.closing {
  padding-block: clamp(84px, 10vw, 132px);
}

.closing h2 {
  max-width: 14ch;
}

.closing p {
  font-size: 0.96rem;
  line-height: 1.65;
}

/* Full public work catalogue */

.work-page {
  padding-bottom: clamp(80px, 10vw, 140px);
}

.work-hero {
  max-width: 980px;
  padding-block: clamp(64px, 9vw, 118px) clamp(58px, 7vw, 96px);
}

.work-hero h1 {
  max-width: 14ch;
}

.catalogue-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding-top: 42px;
  border-top: 1px solid var(--line-strong);
}

.catalogue-heading h2 {
  margin: 0;
}

.catalogue-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.catalogue-controls {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #e8eff5;
}

.search-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
}

.search-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  background: var(--paper-strong);
  color: var(--ink);
}

.search-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-filters button {
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
}

.work-filters button:hover {
  color: var(--ink);
}

.work-filters button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.work-card {
  grid-column: auto;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
}

.work-card[hidden] {
  display: none;
}

.work-card:last-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
}

.work-card:last-child > img,
.work-card:last-child > picture {
  height: 100%;
  aspect-ratio: auto;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.work-card > img,
.work-card > picture {
  width: 100%;
  aspect-ratio: 16 / 8.7;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #e3ebf3;
}

.work-card > img,
.work-card > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 520ms var(--ease-out), filter 300ms ease;
}

.work-card[data-slug="hr"] > img,
.work-card[data-slug="hr"] > picture img {
  object-position: center 16%;
}

.work-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.work-card-copy h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
}

.work-card-copy > p:not(.project-kind) {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--muted);
}

.work-card-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.catalogue-empty {
  margin-top: 18px;
  padding: 38px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  text-align: center;
}

.catalogue-empty h3 {
  font-size: 1.8rem;
}

.catalogue-empty p {
  margin: 0;
  color: var(--muted);
}

.template-shelf {
  padding-top: clamp(90px, 11vw, 150px);
}

.template-list {
  border-top: 1px solid var(--line-strong);
}

.template-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr);
  gap: 36px;
  align-items: center;
  min-height: 122px;
  padding: 22px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.template-row:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

.template-row strong {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  letter-spacing: -0.015em;
}

.template-row p {
  max-width: 64ch;
  margin: 7px 0 0;
  color: var(--muted);
}

.template-row > span {
  justify-self: end;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: right;
}

/* Project preview and generated project pages */

.preview-shell {
  padding-block: 24px 48px;
}

.preview-nav {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line-strong);
}

.preview-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.preview-nav a:hover {
  color: var(--ink);
}

.preview-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 118px);
}

.preview-kicker {
  display: inline-block;
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.preview-copy h1 {
  max-width: 10ch;
}

.preview-copy .lede {
  font-size: 1.05rem;
}

.preview-media {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 0 20px 48px rgb(19 49 77 / 13%);
}

.preview-media picture {
  display: block;
}

.preview-media img,
.preview-media video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  background: #e3ebf3;
}

.preview-media img[hidden],
.preview-media video[hidden] {
  display: none;
}

/* Evidence captures retain the whole result, including citations and limits. */
img[src$="/policylens-review.png"],
img[src$="/projectlens-questions.png"] {
  object-fit: contain;
  background: transparent;
}

.preview-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.preview-meta div {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.preview-meta div:last-child {
  border-right: 0;
}

.preview-meta span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.preview-meta strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
  padding-bottom: 84px;
}

.preview-panel {
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
}

.preview-panel h2,
.preview-panel h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.preview-panel p,
.preview-list {
  max-width: 68ch;
  color: var(--muted);
}

.preview-list {
  margin: 26px 0 0;
  padding-left: 1.2rem;
}

.preview-list li {
  padding: 7px 0 7px 6px;
}

.preview-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 24px 0;
}

.preview-stack span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  font-size: 0.75rem;
  font-weight: 750;
}

.motion-note {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.no-script-panel {
  grid-column: 1 / -1;
}

.no-js .preview-copy,
.no-js .preview-media,
.no-js .preview-layout {
  display: none;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .preview-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .evidence-story {
    max-width: 820px;
  }

  .selected-grid--shelf {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .selected-card {
    grid-column: span 6;
    grid-row: auto;
  }

  .selected-card--lead {
    grid-column: 1 / -1;
  }

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

  .work-card:last-child {
    grid-column: 1 / -1;
  }

  .proof-band-inner,
  .closing {
    grid-template-columns: 1fr;
  }

  .proof-rail {
    margin-top: 2px;
  }

  .catalogue-controls {
    grid-template-columns: 1fr;
  }

  .preview-layout {
    grid-template-columns: 1fr;
  }

  .capability-routes a {
    grid-template-columns: minmax(190px, 0.8fr) minmax(280px, 1.2fr);
  }

  .capability-routes small {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .contract-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contract-toolbar > p {
    justify-self: start;
    text-align: left;
  }
}

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

  .topbar {
    min-height: 66px;
  }

  .brand > span:last-child {
    display: none;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .nav-links a:nth-child(3) {
    display: none;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.3rem);
  }

  .hero {
    padding-block: 42px 58px;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-actions .button,
  .preview-actions .button {
    flex: 1 1 150px;
  }

  .window-bar span:last-child {
    display: none;
  }

  .evidence-copy {
    grid-template-columns: 1fr;
  }

  .evidence-caption {
    min-height: 4.5em;
  }

  .evidence-controls {
    grid-template-columns: repeat(2, 1fr);
  }

  .evidence-controls button:nth-child(2) {
    border-right: 0;
  }

  .evidence-controls button:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 30px;
  }

  .section-intro h2 {
    max-width: 11ch;
  }

  .selected-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .selected-grid--shelf .project-media {
    aspect-ratio: 16 / 9;
  }

  .project-title-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .project-title-line span {
    text-align: left;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card:last-child {
    display: flex;
  }

  .work-card:last-child > img,
  .work-card:last-child > picture {
    height: auto;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .selected-card,
  .selected-card--lead {
    grid-column: 1;
  }

  .selected-card--lead {
    display: flex;
  }

  .selected-card--lead .project-media,
  .project-media,
  .work-card > img,
  .work-card > picture {
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-copy,
  .work-card-copy {
    padding: 22px;
  }

  .project-proof,
  .work-card-proof {
    grid-template-columns: 1fr;
  }

  .all-work-link {
    text-align: left;
  }

  .capability-routes a {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 24px;
  }

  .capability-routes small {
    grid-column: 1;
  }

  .contract-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contract-switcher button {
    padding-inline: 7px;
  }

  .contract-canvas {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 10px;
    padding: 18px;
  }

  .contract-node--source,
  .contract-node--authority,
  .contract-node--ai,
  .contract-node--stop,
  .contract-node--owner,
  .contract-node--record {
    grid-column: 1;
    grid-row: auto;
  }

  .contract-node--source { order: 1; }
  .contract-node--authority { order: 2; }
  .contract-node--ai { order: 3; }
  .contract-node--stop { order: 4; }
  .contract-node--owner { order: 5; }
  .contract-node--record { order: 6; }

  .contract-node {
    min-height: 132px;
  }

  .proof-band-inner {
    gap: 34px;
  }

  .proof-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-rail div,
  .proof-rail div:first-child,
  .proof-rail div:last-child {
    padding: 18px;
    border-right: 1px solid #485e73;
    border-bottom: 1px solid #485e73;
  }

  .proof-rail div:nth-child(2n) {
    border-right: 0;
  }

  .proof-rail div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .closing {
    gap: 30px;
  }

  .catalogue-controls {
    padding: 14px;
  }

  .work-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .work-filters button {
    text-align: left;
  }

  .template-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 26px;
  }

  .template-row > span {
    justify-self: start;
    text-align: left;
  }

  .preview-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .preview-hero {
    gap: 42px;
  }

  .preview-meta {
    grid-template-columns: 1fr;
  }

  .preview-meta div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .preview-meta div:last-child {
    border-bottom: 0;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 18px;
  }
}

@media (max-width: 460px) {
  .hero-actions,
  .preview-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .preview-actions .button {
    width: 100%;
    flex: none;
  }
}

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

  .evidence-image,
  .evidence-marker,
  .evidence-controls button::after,
  .project-media img,
  .work-card > img,
  .work-card > picture img,
  .button,
  .skip-link,
  .capability-routes a {
    transition-duration: 0.01ms !important;
  }

  .contract-canvas.is-playing .contract-node {
    animation: none !important;
  }
}

@media print {
  :root {
    --canvas: #ffffff;
    --paper: #ffffff;
    --ink: #000000;
    --muted: #333333;
    --line: #999999;
  }

  .topbar-shell,
  .hero-actions,
  .evidence-controls,
  .catalogue-controls,
  .closing-links,
  .preview-actions,
  .footer {
    display: none !important;
  }

  .shell {
    width: 100%;
  }

  .hero,
  .selected-work,
  .closing,
  .work-page,
  .preview-shell {
    padding-block: 24px;
  }

  .hero-grid,
  .proof-band-inner,
  .closing,
  .preview-hero,
  .preview-layout {
    grid-template-columns: 1fr;
  }

  .selected-grid,
  .work-grid {
    display: block;
  }

  .selected-card,
  .work-card,
  .preview-panel {
    break-inside: avoid;
    margin-bottom: 18px;
  }

  .proof-band {
    border: 1px solid #777777;
    background: #ffffff;
    color: #000000;
  }

  .proof-band h2,
  .proof-band p,
  .proof-rail dt,
  .proof-rail dd {
    color: #000000;
  }
}

@media screen and (prefers-color-scheme: dark) {
  :root {
    --canvas: #0b1626;
    --paper: #102137;
    --paper-strong: #162b43;
    --ink: #f0f6fc;
    --muted: #b3c4d6;
    --line: #344c65;
    --line-strong: #7792ac;
    --accent: #5ed0ff;
    --accent-dark: #9edfff;
    --accent-soft: #153d56;
    --sea: #80c8ed;
    --focus: #7adaff;
  }

  ::selection {
    background: #175b7e;
    color: #f4faff;
  }

  .topbar-shell {
    background: rgb(11 22 38 / 94%);
  }

  .evidence-controls button[aria-pressed="true"],
  .catalogue-controls {
    background: #1b344d;
  }

  .selected-grid--shelf .project-media img {
    border-color: rgb(240 246 252 / 16%);
  }

  .selected-grid--shelf [data-project="projectlens"] .project-media {
    background: #344f69;
  }

  .selected-grid--shelf [data-project="quicksupply"] .project-media {
    background: #314962;
  }

  .contract-workbench {
    box-shadow: 0 24px 52px rgb(0 0 0 / 28%);
  }

  .contract-node--ai {
    background: #20394f;
  }

  .contract-node--owner {
    background: #1d3a52;
  }

  .contract-node--authority,
  .contract-toolbar {
    background: #0d2238;
  }

  .project-media,
  .work-card > img,
  .work-card > picture,
  .preview-media img,
  .preview-media video {
    background: #1a2f46;
  }

  .work-filters button,
  .search-field input {
    background: var(--paper-strong);
    color: var(--ink);
  }
}
