:root {
  --ink: #16201d;
  --muted: #5d6c66;
  --line: #d9e1dd;
  --paper: #f7f8f5;
  --white: #ffffff;
  --moss: #2f6f56;
  --steel: #345b70;
  --clay: #a75538;
  --gold: #d7a441;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.scroll-progress {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gold);
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 120ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 32, 29, 0.9);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--moss);
  color: var(--white);
  font-size: 0.8rem;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 24px);
  margin-left: auto;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: 120px clamp(20px, 6vw, 86px) 54px;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 23, 20, 0.86), rgba(13, 23, 20, 0.45) 54%, rgba(13, 23, 20, 0.18)),
    url("assets/applied-ai-construction-hero.webp") center / cover no-repeat;
  transform: scale(1.01);
}

.hero__content {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 860px;
}

.hero-image-note {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
}

section[id] {
  scroll-margin-top: 82px;
}

.hero-role {
  max-width: 820px;
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 750;
  line-height: 1.25;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

.hero .eyebrow,
.case-hero .eyebrow,
.band--ink .eyebrow {
  color: var(--gold);
}

h1 {
  margin-bottom: 18px;
  max-width: 920px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.simple-page h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.18;
}

.lede {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 780px;
  margin-top: 28px;
}

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

.hero-meta span {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-meta strong {
  font-size: 0.94rem;
  line-height: 1.4;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  color: var(--white);
  font-weight: 750;
}

.button--primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #1e231e;
}

.button--dark {
  border-color: var(--ink);
  color: var(--ink);
}

.band {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.band--tight {
  padding-top: clamp(46px, 6vw, 78px);
  padding-bottom: clamp(46px, 6vw, 78px);
}

.container {
  width: min(1180px, 100%);
  min-width: 0;
  margin: 0 auto;
}

.container > *,
.section-heading,
.hero__actions,
.evidence-grid,
.support-grid,
.flagship__grid,
.boundary-grid {
  min-width: 0;
}

.intro__grid,
.contact__grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.intro p,
.contact p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-copy {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.portfolio-map {
  background: var(--white);
}

.portfolio-map__intro,
.capabilities-intro,
.directory-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: end;
  margin-bottom: 42px;
}

.portfolio-map__intro h2,
.capabilities-intro h2,
.directory-intro h2 {
  margin-bottom: 0;
}

.portfolio-map__intro .section-copy,
.capabilities-intro .section-copy,
.directory-intro .section-copy {
  margin-bottom: 0;
}

.journey-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.journey-strip a {
  min-width: 0;
  padding: 24px 18px 26px;
  border-left: 1px solid var(--line);
  transition: background 180ms ease;
}

.journey-strip a:first-child {
  border-left: 0;
}

.journey-strip a:hover {
  background: #eef3f0;
}

.journey-strip span,
.journey-strip strong,
.journey-strip small {
  display: block;
}

.journey-strip span {
  margin-bottom: 24px;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.journey-strip strong {
  margin-bottom: 8px;
  line-height: 1.35;
}

.journey-strip small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.portfolio-map__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
}

.portfolio-map__links a {
  color: var(--moss);
  font-weight: 800;
}

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

.evidence-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(22, 32, 29, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.evidence-card:hover,
.project-card:hover {
  transform: translateY(-3px);
  border-color: #b9cec5;
  box-shadow: 0 14px 32px rgba(22, 32, 29, 0.1);
}

.evidence-card--primary {
  border-top: 4px solid var(--clay);
}

.evidence-card__visual {
  width: calc(100% + 48px);
  height: 176px;
  margin: -24px -24px 22px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: #eef2f0;
  object-fit: cover;
  object-position: top center;
}

.evidence-card--primary .evidence-card__visual {
  margin-top: -20px;
  border-radius: 4px 4px 0 0;
}

.evidence-card span {
  color: var(--clay);
  font-weight: 800;
}

.evidence-card p {
  color: var(--muted);
  line-height: 1.55;
}

.evidence-card strong {
  display: block;
  margin: 4px 0 10px;
  color: var(--steel);
  line-height: 1.4;
}

.evidence-card small,
.project-card small,
.role-grid small {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.evidence-card a {
  margin-top: auto;
  color: var(--moss);
  font-weight: 800;
}

.command-panel {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f0;
}

.command-panel code {
  overflow-x: auto;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.92rem;
}

.command-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

.command-copy code {
  min-width: 0;
}

.copy-command {
  width: 96px;
  min-width: 96px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--moss);
  color: var(--white);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.copy-command:disabled {
  cursor: wait;
}

.copy-command[data-state="success"] {
  background: var(--gold);
  color: var(--ink);
}

.copy-command[data-state="error"] {
  border-color: var(--clay);
  background: var(--white);
  color: var(--clay);
}

.run-panel .copy-command,
.workflow-callout .copy-command {
  background: var(--gold);
  color: var(--ink);
}

.copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.workflow-proof {
  margin: 0 0 20px;
}

.workflow-proof img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--paper);
}

.workflow-proof figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}

.workflow-proof--light {
  margin-top: 38px;
}

.workflow-proof--light figcaption {
  color: var(--muted);
}

.workflow-callout {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  padding: 20px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.workflow-callout p {
  margin: 0;
  line-height: 1.55;
}

.workflow-callout code {
  overflow-x: auto;
  color: var(--white);
}

.workflow-callout a {
  width: fit-content;
  color: var(--gold);
  font-weight: 800;
}

.command-panel > a {
  width: fit-content;
  color: var(--moss);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.command-panel > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.flow-section {
  margin-top: 42px;
}

.flow-section--separated {
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.flow-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.flow-node {
  min-height: 126px;
  padding: 16px 0;
  border-top: 3px solid var(--clay);
}

.flow-node span,
.flow-node strong,
.flow-node small {
  display: block;
}

.flow-node span {
  margin-bottom: 18px;
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 800;
}

.flow-node strong {
  margin-bottom: 6px;
  line-height: 1.3;
}

.flow-node small {
  color: var(--muted);
  line-height: 1.45;
}

.flow-connector {
  position: relative;
  height: 1px;
  background: var(--line);
}

.flow-connector::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--clay);
  border-right: 1px solid var(--clay);
  content: "";
  transform: rotate(45deg);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.support-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(22, 32, 29, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.project-card span {
  color: var(--clay);
  font-weight: 800;
}

.project-card p {
  color: var(--muted);
  line-height: 1.55;
}

.project-card a {
  margin-top: auto;
  color: var(--moss);
  font-weight: 800;
}

.band--ink {
  background: var(--ink);
  color: var(--white);
}

.band--ink .section-copy {
  color: rgba(255, 255, 255, 0.72);
}

.band--ink .project-card {
  background: #22302c;
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.band--ink .project-card p {
  color: rgba(255, 255, 255, 0.72);
}

.band--ink .project-card small {
  color: rgba(255, 255, 255, 0.64);
}

.band--ink .project-card a {
  color: var(--gold);
}

.band--ink .eyebrow {
  color: var(--gold);
}

.capabilities-band {
  background: #edf2ef;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 34px;
}

.capability-grid article {
  padding-top: 18px;
  border-top: 3px solid var(--moss);
}

.capability-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
}

.capability-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.text-link--dark {
  color: var(--moss);
}

.flagship {
  background: var(--white);
}

.project-card--visual {
  overflow: hidden;
}

.project-card--visual img {
  width: calc(100% + 48px);
  height: 180px;
  margin: -24px -24px 22px;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
  object-position: top center;
}

.flagship__grid,
.boundary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.fact-list {
  margin: 28px 0;
}

.fact-list div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.fact-list dt {
  color: var(--clay);
  font-weight: 800;
}

.fact-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.inline-links a {
  color: var(--moss);
  font-weight: 800;
}

.evidence-shot {
  margin: 0;
}

.evidence-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.evidence-shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.embodied-band {
  background: #eef2f0;
}

.embodied__grid,
.architecture__intro {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.visual-figure,
.architecture-map,
.architecture-tile {
  margin: 0;
}

.visual-stack {
  display: grid;
  gap: 18px;
}

.visual-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
}

.visual-figure--diagram img {
  aspect-ratio: 1000 / 620;
  object-fit: contain;
  background: #f4f3ed;
}

.visual-figure figcaption,
.architecture-tile figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.architecture-band {
  background: #101714;
  color: var(--white);
}

.architecture-band .section-copy {
  color: rgba(255, 255, 255, 0.72);
}

.architecture-map img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.text-link {
  color: var(--gold);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.architecture-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.architecture-tile {
  min-width: 0;
}

.architecture-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.architecture-tile figcaption {
  color: rgba(255, 255, 255, 0.68);
}

.architecture-tile figcaption strong,
.architecture-tile figcaption span {
  display: block;
}

.architecture-tile figcaption strong {
  margin-bottom: 3px;
  color: var(--white);
}

.professional-history {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.professional-history__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: end;
  margin-bottom: 38px;
}

.professional-history__intro h2,
.professional-history__intro p {
  margin-bottom: 0;
}

.professional-history__intro > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.04rem;
  line-height: 1.7;
}

.experience-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
}

.experience-timeline li {
  min-width: 0;
  padding: 24px 18px 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.experience-timeline li:first-child {
  border-left: 0;
}

.experience-timeline span,
.experience-timeline strong,
.experience-timeline small {
  display: block;
}

.experience-timeline span {
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.experience-timeline strong {
  margin-bottom: 8px;
  line-height: 1.4;
}

.experience-timeline small {
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.55;
}

.background-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.background-facts span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
}

.experiment-note {
  max-width: 820px;
  margin: 28px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.experiment-note a {
  color: var(--moss);
  font-weight: 800;
  text-underline-offset: 4px;
}

.directory-band {
  background: var(--white);
}

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

.directory-item {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 24px 20px 26px 0;
  border-bottom: 1px solid var(--line);
}

.directory-item:nth-child(even) {
  padding-right: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.directory-item span {
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.directory-item strong {
  font-size: 1.12rem;
  line-height: 1.35;
}

.directory-item small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.directory-item--integration {
  background: #eef3f0;
}

.experiment-directory {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.experiment-directory summary {
  padding: 20px 0;
  color: var(--moss);
  font-weight: 800;
  cursor: pointer;
}

.experiment-directory > p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.experiment-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.experiment-links a {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-weight: 750;
}

.boundary-grid {
  align-items: start;
}

.boundary-list p {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.6;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.skill-grid > div {
  min-height: 180px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.skill-grid p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.contact__links {
  display: grid;
  gap: 12px;
}

.contact__links a {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--steel);
  font-weight: 800;
}

.simple-page .site-header {
  color: var(--white);
}

.simple-page main {
  min-height: 100vh;
  padding-top: 130px;
}

.lede--dark {
  color: var(--muted);
}

.simple-page .lede {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 28px 0;
}

.matrix-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--white);
}

.matrix-table th,
.matrix-table td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.role-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.role-grid article:first-child {
  grid-column: 1 / -1;
  border-top: 4px solid var(--clay);
}

.role-grid h3 {
  margin: 8px 0 14px;
}

.role-grid p {
  color: var(--muted);
}

.role-grid p a {
  color: var(--moss);
  font-weight: 800;
}

.route-label {
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.guide-evidence {
  margin: 72px 0 36px;
}

.guide-evidence h2 {
  max-width: 900px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0;
}

.guide-steps article {
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.guide-steps span {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
}

.guide-steps h3 {
  margin: 10px 0;
  font-size: 1.15rem;
}

.guide-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.case-hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  padding: 126px clamp(20px, 5vw, 72px) 58px;
  color: var(--white);
  overflow: hidden;
}

.case-hero__media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.case-hero--rag .case-hero__media {
  background-image:
    linear-gradient(90deg, rgba(12, 24, 21, 0.94), rgba(12, 24, 21, 0.7) 58%, rgba(12, 24, 21, 0.42)),
    url("assets/aec-rag-demo.png");
  background-position: center top;
}

.case-hero--embodied .case-hero__media {
  background-image:
    linear-gradient(90deg, rgba(12, 24, 21, 0.92), rgba(12, 24, 21, 0.58) 58%, rgba(12, 24, 21, 0.22)),
    url("assets/embodied-ai-concept.webp");
}

.case-hero--massing .case-hero__media {
  background-image:
    linear-gradient(90deg, rgba(12, 24, 21, 0.94), rgba(12, 24, 21, 0.7) 58%, rgba(12, 24, 21, 0.4)),
    url("assets/massing-explorer-demo.png");
  background-position: center top;
}

.case-hero--specification .case-hero__media {
  background-image:
    linear-gradient(90deg, rgba(12, 24, 21, 0.95), rgba(12, 24, 21, 0.72) 58%, rgba(12, 24, 21, 0.42)),
    url("assets/specification-copilot-demo.png");
  background-position: center top;
}

.case-hero--qs .case-hero__media {
  background-image:
    linear-gradient(90deg, rgba(12, 24, 21, 0.95), rgba(12, 24, 21, 0.7) 58%, rgba(12, 24, 21, 0.38)),
    url("assets/qs-takeoff-tender-demo.png");
  background-position: center top;
}

.case-hero__content {
  position: relative;
  margin-left: 0;
}

.case-hero h1 {
  max-width: 1080px;
  margin-bottom: 18px;
  font-size: 5rem;
  line-height: 0.98;
}

.case-hero .lede {
  max-width: 820px;
}

.case-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.case-summary {
  background: var(--white);
}

.case-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-summary article {
  min-width: 0;
  padding: 28px 24px 30px;
  border-left: 1px solid var(--line);
}

.case-summary article:first-child {
  border-left: 0;
}

.case-summary span {
  display: block;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-summary p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.case-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: end;
  margin-bottom: 38px;
}

.case-heading h2,
.case-heading .section-copy {
  margin-bottom: 0;
}

.case-system {
  background: #eef2f0;
}

.case-diagram {
  margin: 0;
}

.case-diagram img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.case-diagram figcaption,
.case-visual-grid figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.case-evidence {
  background: var(--white);
}

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

.metric-grid article {
  min-width: 0;
  padding: 24px 22px 26px;
  border-left: 1px solid var(--line);
}

.metric-grid article:first-child {
  border-left: 0;
}

.metric-grid span,
.metric-grid strong,
.metric-grid small {
  display: block;
}

.metric-grid span {
  margin-bottom: 20px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-grid strong {
  margin-bottom: 8px;
  color: var(--steel);
  font-size: 2.3rem;
  line-height: 1;
}

.metric-grid small {
  color: var(--muted);
  line-height: 1.5;
}

.case-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.case-visual-grid figure {
  min-width: 0;
  margin: 0;
}

.case-visual-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f3ed;
}

.case-visual-grid--wide img {
  aspect-ratio: 16 / 11;
}

.decision-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.decision-list article {
  min-width: 0;
  padding-top: 18px;
  border-top: 3px solid var(--gold);
}

.decision-list span {
  display: block;
  margin-bottom: 30px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
}

.decision-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
  line-height: 1.6;
}

.failure-callout {
  max-width: 860px;
  margin-top: 44px;
  padding: 26px 0 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--clay);
}

.failure-callout p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.failure-callout a {
  color: var(--gold);
  font-weight: 800;
}

.case-run {
  background: #edf2ef;
}

.case-run__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.run-panel {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
}

.run-panel code {
  display: block;
  overflow-x: auto;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  color: var(--white);
  font-size: 0.86rem;
  line-height: 1.5;
}

.case-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.case-footer-nav a {
  color: var(--moss);
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 920px) {
  .project-grid,
  .evidence-grid,
  .support-grid,
  .skill-grid,
  .intro__grid,
  .contact__grid,
  .flagship__grid,
  .embodied__grid,
  .architecture__intro,
  .architecture-gallery,
  .boundary-grid,
  .role-grid,
  .guide-steps,
  .portfolio-map__intro,
  .capabilities-intro,
  .directory-intro {
    grid-template-columns: 1fr;
  }

  .professional-history__intro {
    grid-template-columns: 1fr;
  }

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

  .experience-timeline li:nth-child(odd) {
    border-left: 0;
  }

  .case-summary__grid,
  .metric-grid,
  .decision-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-heading,
  .case-run__grid {
    grid-template-columns: 1fr;
  }

  .case-summary article:nth-child(3),
  .metric-grid article:nth-child(3) {
    border-left: 0;
  }

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

  .journey-strip a:nth-child(odd) {
    border-left: 0;
  }

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

  .journey-strip a:first-child,
  .journey-strip a:nth-child(2) {
    border-top: 0;
  }

  .flow-track {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-node {
    min-height: 0;
  }

  .flow-connector {
    width: 1px;
    height: 22px;
    margin-left: 18px;
  }

  .flow-connector::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .site-header {
    position: absolute;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: fixed;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    padding: 16px 20px;
  }

  .nav-toggle {
    position: absolute;
    top: 12px;
    right: 20px;
    display: block;
    margin-left: auto;
    background: var(--moss);
  }

  .site-header nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 8px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(22, 32, 29, 0.98);
    font-size: 0.82rem;
  }

  .site-header.nav-open nav {
    display: grid;
  }

  .site-header nav a {
    min-width: 0;
    padding: 10px 0;
    overflow-wrap: anywhere;
  }

  .hero {
    min-height: 88vh;
    max-width: 100vw;
    padding: 108px 20px 46px;
  }

  .hero__content,
  .hero__content p {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .hero-image-note {
    right: 20px;
    bottom: 14px;
    max-width: 250px;
    text-align: right;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-role {
    font-size: 1.12rem;
    overflow-wrap: break-word;
    white-space: normal;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 260px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workflow-proof--system {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .workflow-proof--system img {
    width: 900px;
    max-width: none;
  }

  .matrix-table {
    min-width: 0;
    background: transparent;
  }

  .matrix-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .matrix-table tbody,
  .matrix-table tr,
  .matrix-table td {
    display: block;
    width: 100%;
  }

  .matrix-table tr {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    background: var(--white);
  }

  .matrix-table td {
    display: grid;
    grid-template-columns: minmax(105px, 0.38fr) minmax(0, 0.62fr);
    gap: 12px;
    padding: 12px 14px;
    border: 0;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  .matrix-table td:first-child {
    border-top: 0;
  }

  .matrix-table td::before {
    font-weight: 800;
  }

  .matrix-table td:nth-child(1)::before {
    content: "Skill";
  }

  .matrix-table td:nth-child(2)::before {
    content: "Primary";
  }

  .matrix-table td:nth-child(3)::before {
    content: "Supporting";
  }

  .matrix-table td:nth-child(4)::before {
    content: "Boundary";
  }

  h2,
  h3,
  p,
  code {
    overflow-wrap: anywhere;
  }

  .fact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .journey-strip,
  .capability-grid,
  .directory-list,
  .experiment-links {
    grid-template-columns: 1fr;
  }

  .journey-strip a,
  .journey-strip a:nth-child(odd),
  .journey-strip a:nth-child(even) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .journey-strip a:first-child {
    border-top: 0;
  }

  .directory-item,
  .directory-item:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .case-hero {
    min-height: 82vh;
    padding: 112px 20px 54px;
  }

  .case-hero h1 {
    font-size: 3rem;
    line-height: 1;
  }

  .case-hero--specification h1 {
    font-size: 2.55rem;
    line-height: 1.02;
  }

  .case-hero--qs h1 {
    font-size: 2.65rem;
    line-height: 1.02;
  }

  .case-hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 270px;
  }

  .case-summary__grid,
  .metric-grid,
  .decision-list,
  .case-visual-grid {
    grid-template-columns: 1fr;
  }

  .case-summary article,
  .case-summary article:nth-child(3),
  .metric-grid article,
  .metric-grid article:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .case-summary article:first-child,
  .metric-grid article:first-child {
    border-top: 0;
  }

  .case-diagram--scrollable {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .case-diagram--scrollable img {
    width: 920px;
    max-width: none;
  }

  .case-footer-nav {
    flex-direction: column;
  }

  .experience-timeline {
    grid-template-columns: 1fr;
  }

  .experience-timeline li,
  .experience-timeline li:nth-child(odd) {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }

  .experience-timeline li:first-child {
    border-top: 0;
  }
}
