/* Technical Engineering Portfolio — one design system.
   Layer order: shared tokens → base elements → shared components →
   homepage (body:has(.home-main--simple)) → subpage prose/diagrams →
   consolidated breakpoints → final responsive rules. */

/* ─── Tokens: base site palette (subpages) ─────────────────────────────── */

:root {
  --ink: #142033;
  --ink-muted: #607089;
  --paper: #f8fafc;
  --surface: #ffffff;
  --surface-blue: #eff7ff;
  --night: #13263d;
  --accent: #0879f9;
  --accent-dark: #075ec0;
  --link-hover: #2e5e79;
  --green: #10a861;
  --purple: #7656b8;
  --rule: #dce5ef;
  --rule-strong: #c5d2e1;
  --measure: 75rem;
  --prose: 70ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef7;
    --ink-muted: #aebbd0;
    --paper: #101820;
    --surface: #172331;
    --surface-blue: #14283d;
    --night: #0b1725;
    --accent: #66adff;
    --accent-dark: #93c6ff;
    --green: #54d393;
    --purple: #c2a9ff;
    --rule: #293a4d;
    --rule-strong: #3a5067;
  }
}

/* ─── Base reset ───────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

img,
svg {
  max-width: 100%;
}

/* ─── Layout (shared) ──────────────────────────────────────────────────── */

.wrap {
  width: min(100% - 2.5rem, var(--measure));
  margin-inline: auto;
}

main {
  padding-block: 4.5rem 5rem;
}

section {
  margin-block-end: 7rem;
}

.prose-page > article {
  max-width: var(--prose);
}

/* ─── Header & navigation (shared) ─────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.75rem;
}

.site-brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.15em;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand:visited {
  color: var(--ink);
}

.brand-prompt {
  color: var(--green);
}

.brand-tagline {
  flex-basis: 100%;
  margin-top: 0.22rem;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--ink-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.82rem;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current] {
  color: var(--accent);
}

.nav-list a[aria-current] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* ─── Typography (shared base — subpages) ──────────────────────────────── */

h1,
h2,
h3 {
  color: var(--ink);
  text-wrap: balance;
}

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

h1 {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.1rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.18em;
}

a:visited {
  color: var(--purple);
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--ink-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent-dark);
}

/* ─── Buttons and links (shared) ───────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.65rem 1rem;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    border-color var(--motion, 180ms ease-out),
    background-color var(--motion, 180ms ease-out),
    color var(--motion, 180ms ease-out);
}

.button:visited,
.button:hover {
  color: var(--ink);
}

.button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: currentColor;
  text-decoration: none;
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.text-link {
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* ─── Footer (shared) ──────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 1.35rem;
  color: var(--ink-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.76rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.site-footer p {
  margin: 0;
}

/* ─── Back to top ─────────────────────────────────────────────────────────── */

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: 0.35rem;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace);
  font-size: var(--label, 0.73rem);
  font-weight: 700;
  letter-spacing: var(--ls-label, 0.12em);
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--elev-control, 0 1px 2px rgba(21, 43, 67, 0.2),
    0 4px 10px rgba(21, 43, 67, 0.13));
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.375rem);
  transition:
    opacity var(--motion, 200ms ease-out),
    transform var(--motion, 200ms ease-out),
    visibility var(--motion, 200ms ease-out);
}

.back-to-top:hover {
  translate: 0 var(--lift-control, -2px);
  box-shadow: var(--elev-control-hover, 0 2px 4px rgba(21, 43, 67, 0.2),
    0 9px 18px rgba(21, 43, 67, 0.17));
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Homepage focus ring uses the approved ice-blue accent. */
body:has(.home-main--simple) .back-to-top:focus-visible {
  outline-color: var(--home-ochre);
}

/* ─── Accessibility (shared) ───────────────────────────────────────────── */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  left: 0;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ─── Case-study page components (subpages) ────────────────────────────── */

.prose-page h1 {
  max-width: 18ch;
}

.prose-page article > header {
  margin-bottom: 4rem;
}

.prose-page .lede {
  max-width: 58ch;
  color: var(--ink-muted);
  font-size: 1.25rem;
  line-height: 1.5;
}

.prose-page section {
  max-width: var(--prose);
  margin-bottom: 4.5rem;
}

.prose-page section h2 {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
}

.prose-page ul {
  padding-left: 1.25rem;
}

.breadcrumb {
  margin: 0 0 2rem;
  color: var(--ink-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.note {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.9em;
}

details {
  margin-block: 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0.4rem;
}

summary {
  font-weight: 700;
  cursor: pointer;
}

figure {
  margin: 1.75rem 0;
}

figcaption {
  margin-top: 0.45rem;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.diagram svg {
  display: block;
  height: auto;
  margin-inline: auto;
  color: var(--ink);
}

/* ─── Preserved architecture-diagram treatment (subpages) ──────────────── */

.diagram-system svg {
  width: 100%;
  max-width: 760px;
}

.diagram-system .diagram-box rect,
.diagram-system .diagram-note rect,
.diagram-system .diagram-boundary {
  fill: var(--paper);
  stroke: var(--rule);
  stroke-width: 1.5;
}

.diagram-system .diagram-key rect,
.diagram-system .diagram-key .diagram-decision {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 1.8;
}

.diagram-system .diagram-decision {
  fill: var(--surface);
  stroke: var(--rule);
  stroke-width: 1.5;
}

.diagram-system .diagram-flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
}

.diagram-system .diagram-dash {
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 1.4;
  stroke-dasharray: 5 4;
}

.diagram-system .diagram-label {
  fill: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.diagram-system .diagram-small {
  fill: var(--ink-muted);
  font-size: 11px;
}

.diagram-system .diagram-box text {
  font-size: 14px;
}

/* ─── Offer ticker strip (home chrome) ───────────────────────────────────
   Thin console-style offer strip pinned to the bottom of the sticky header.
   The track holds identical sequences; animating -50% → 0 moves the
   content left → right and loops seamlessly because the first half of the
   track is identical to the second half.
*/
.offer-ticker {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 25px;
  overflow: hidden;
  background: #000;
  color: #00ff41;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1;
}

.offer-ticker__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.offer-ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  white-space: nowrap;
  animation: offer-ticker-scroll 144s linear infinite;
}

.offer-ticker__sequence {
  display: flex;
  flex: none;
  align-items: center;
  height: 100%;
}

.offer-ticker__sequence span {
  display: inline-block;
  padding-inline: 3.5rem;
  font-size: 19px;
  line-height: 1;
  transform: scaleX(-1);
}

.offer-ticker__sequence span:nth-child(4) {
  filter: hue-rotate(115deg);
}

.offer-ticker__sequence span:nth-child(5) {
  filter: hue-rotate(200deg);
}

.offer-ticker__sequence span:nth-child(6) {
  filter: hue-rotate(290deg);
}

@keyframes offer-ticker-scroll {
  from {
    transform: translate3d(-50%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.offer-ticker__action,
.offer-ticker__action:visited {
  display: flex;
  flex: none;
  align-items: center;
  padding-inline: 0.9rem;
  border-left: 1px solid rgba(0, 255, 65, 0.35);
  background: #0a3d1f;
  color: #00ff41;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.offer-ticker__action:hover {
  color: #00ff41;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.offer-ticker__action:focus-visible {
  outline: 1px solid #00ff41;
  outline-offset: -2px;
}

/* ═══════════════════════════════════════════════════════════════════════
   HOMEPAGE — modernist editorial system
   Scoped under body:has(.home-main--simple). Token groups:
   palette → type scale → structure → elevation → motion.
   ═══════════════════════════════════════════════════════════════════════ */

body:has(.home-main--simple) {
  /* Palette (zone architecture per section-architecture audit) */
  --home-paper: #f2ede3;
  --home-canvas: #000000;
  --home-steel: #5a7180;
  --home-steel-line: #3f5563;
  --home-hero-bg: #2e5e79;
  --home-surface: #faf7ef;
  --home-ink: #151719;
  --home-navy: #152b43;
  --home-blue: #4c6272;
  --home-ochre: #a8cdec;
  --home-red: #a34a42;
  --home-blue-wash: #e2e9e9;
  --home-rule: #c8c0b3;
  --home-rule-strong: #8e877d;
  --on-dark-muted: #c8d2d2;
  --home-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='3' cy='4' r='.45' fill='%23151719' fill-opacity='.08'/%3E%3Ccircle cx='13' cy='11' r='.35' fill='%23151719' fill-opacity='.06'/%3E%3Ccircle cx='8' cy='16' r='.3' fill='%23151719' fill-opacity='.05'/%3E%3C/svg%3E");

  /* Shared-component bridge: base rules that reference the generic token
     names resolve to the home palette inside the home scope. */
  --accent: var(--home-navy);
  --accent-dark: var(--home-ink);
  --purple: var(--home-red);
  --ink: var(--home-ink);
  --ink-muted: var(--home-blue);
  --paper: var(--home-paper);
  --surface: var(--home-surface);
  --surface-blue: var(--home-blue-wash);
  --night: var(--home-navy);
  --rule: var(--home-rule);
  --rule-strong: var(--home-rule-strong);
  --green: var(--home-ochre);

  /* Type scale */
  --font-sans: "Helvetica Neue", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  --h1: clamp(2.5rem, 8vw, 4rem);
  --h2: clamp(1.75rem, 4.5vw, 3rem);
  --h3: 1.375rem;
  --label: 0.73rem;
  --body: 1rem;
  --lede: 1.125rem;
  --lede-lg: 1.5rem;
  --small: 0.78rem;
  --ls-tight: -0.04em;
  --ls-label: 0.12em;
  --lh-display: 1.05;
  --lh-body: 1.6;
  --lh-label: 1.4;
  --lh-code: 1.55;
  --lh-lede: 1.5;

  /* Structure */
  --home-measure: 75rem;
  --gutter: clamp(1.25rem, 7vw, 9rem);
  --section-pad: clamp(4rem, 9vw, 8rem);

  /* Elevation */
  --elev-edge: rgba(21, 43, 67, 0.24);
  --elev-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --elev-card:
    0 1px 2px rgba(21, 43, 67, 0.16),
    0 5px 14px rgba(21, 43, 67, 0.10),
    0 22px 44px rgba(21, 43, 67, 0.13);
  --elev-card-hover:
    0 2px 4px rgba(21, 43, 67, 0.17),
    0 12px 28px rgba(21, 43, 67, 0.14),
    0 36px 64px rgba(21, 43, 67, 0.17);
  --elev-control:
    0 1px 2px rgba(21, 43, 67, 0.20),
    0 4px 10px rgba(21, 43, 67, 0.13);
  --elev-control-hover:
    0 2px 4px rgba(21, 43, 67, 0.20),
    0 9px 18px rgba(21, 43, 67, 0.17);

  /* Motion */
  --motion: 200ms ease-out;
  --lift-card: -5px;
  --lift-control: -2px;

  background-color: var(--home-canvas);
  background-image: var(--home-texture);
  background-size: 18px 18px;
  color: var(--home-ink);
  font-family: var(--font-sans);
}

/* Anchor offset follows the real header height. */
html:has(.home-main--simple) {
  --header-h: 7rem;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body:has(.home-main--simple) #home,
body:has(.home-main--simple) #work,
body:has(.home-main--simple) #performance-evidence,
body:has(.home-main--simple) #systems,
body:has(.home-main--simple) #about,
body:has(.home-main--simple) #contact {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* ─── Home layout: one container system ──────────────────────────────────
   .wrap (header/footer) and section padding resolve to the same content
   column: min(100vw - 2·gutter, measure). */

body:has(.home-main--simple) .wrap {
  width: min(100% - 2 * var(--gutter), var(--home-measure));
}

body:has(.home-main--simple) .title-section,
body:has(.home-main--simple) .feature-section,
body:has(.home-main--simple) .performance-evidence-section,
body:has(.home-main--simple) .workflow-section,
body:has(.home-main--simple) .systems-section,
body:has(.home-main--simple) .about-section,
body:has(.home-main--simple) .contact-section--simple {
  padding-inline: max(var(--gutter), (100% - var(--home-measure)) / 2);
}

body:has(.home-main--simple) .home-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body:has(.home-main--simple) .home-main > section {
  margin: 0;
}

/* ─── Home chrome: sticky header ───────────────────────────────────────── */

body:has(.home-main--simple) .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--home-steel-line);
  background: var(--home-steel);
}

body:has(.home-main--simple) .header-inner {
  min-height: 5rem;
  padding: 0;
}

body:has(.home-main--simple) .site-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

body:has(.home-main--simple) .site-brand--freedom {
  flex: none;
}

body:has(.home-main--simple) .brand-logo {
  display: block;
  width: 190px;
  height: auto;
}

/* Text-only MARC WebOps identity; readable at desktop and mobile widths. */
body:has(.home-main--simple) .site-brand--webops {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 35rem;
  text-transform: none;
  white-space: normal;
}

body:has(.home-main--simple) .site-brand--webops .brand-name {
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

body:has(.home-main--simple) .brand-name__accent {
  color: #83bcf6;
}

body:has(.home-main--simple) .site-brand--webops .brand-descriptor {
  color: #dce5ef;
  font-size: clamp(0.58rem, 0.8vw, 0.69rem);
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.5;
  text-transform: uppercase;
  overflow-wrap: normal;
}

body:has(.home-main--simple) .site-brand:visited {
  color: var(--home-paper);
}

body:has(.home-main--simple) .brand-name {
  color: #fff;
}

body:has(.home-main--simple) .brand-descriptor {
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: var(--ls-label);
}

body:has(.home-main--simple) .nav-list {
  gap: 0 1rem;
}

body:has(.home-main--simple) .nav-list .nav-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

body:has(.home-main--simple) .nav-list a {
  padding-block: 0.45rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.8125rem;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  transition: color var(--motion);
}

body:has(.home-main--simple) .nav-list a:hover {
  color: #fff;
}

body:has(.home-main--simple) .nav-list .nav-separator {
  align-self: center;
  color: #fff;
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1;
  user-select: none;
}

/* ─── Home: hero ───────────────────────────────────────────────────────── */

body:has(.home-main--simple) .portfolio-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-height: clamp(30rem, 72vh, 36rem);
  margin-top: 0;
  padding-block: 0;
  overflow: visible;
  background: var(--home-hero-bg) url("../images/hero/hero-artwork.jpg") 55% center / 100% no-repeat;
}

body:has(.home-main--simple) .portfolio-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 3rem;
  padding-right: 3rem;
}

body:has(.home-main--simple) .portfolio-hero h1 {
  max-width: none;
  margin: 0 0 1.5rem;
  color: var(--home-blue-wash);
  font-size: var(--h1);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-display);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  text-wrap: wrap;
}

body:has(.home-main--simple) .portfolio-hero h1 .title-main {
  font-size: 2em;
}

@media (min-width: 48rem) {
  body:has(.home-main--simple) .portfolio-hero h1 .title-line {
    white-space: nowrap;
  }
}

/* ─── Home: capability strip — single technical signature row ──────────── */

body:has(.home-main--simple) .capability-strip {
  display: block;
  width: 100%;
  margin: 0;
  padding: 1.1rem max(var(--gutter), (100% - var(--home-measure)) / 2);
  background: var(--home-paper);
}

body:has(.home-main--simple) .tech-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: 0.6rem;
  max-width: var(--home-measure);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  color: var(--home-navy);
}

body:has(.home-main--simple) .tech-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  line-height: 1;
  white-space: nowrap;
}

body:has(.home-main--simple) .tech-strip__item + .tech-strip__item {
  margin-left: 0.65rem;
}

body:has(.home-main--simple) .tech-strip__item:not(:last-child)::after {
  content: "|";
  margin-left: 0.65rem;
  color: rgba(21, 43, 67, 0.35);
}

body:has(.home-main--simple) .tech-strip__icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
  fill: currentColor;
}

/* ─── Home: shared control system ────────────────────────────────────────
   One spec; colour variants per surface. */

body:has(.home-main--simple) .button,
body:has(.home-main--simple) .portfolio-hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(21, 43, 67, 0.34);
  border-radius: 999px;
  background: #244461;
  color: var(--home-ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  transition:
    border-color var(--motion, 180ms ease-out),
    background-color var(--motion, 180ms ease-out),
    color var(--motion, 180ms ease-out);
}

body:has(.home-main--simple) .portfolio-hero .button,
body:has(.home-main--simple) .about-section .button,
body:has(.home-main--simple) .contact-section--simple .button {
  border-color: rgba(242, 237, 227, 0.52);
  background: rgba(21, 43, 67, 0.2);
  color: var(--home-surface);
}

body:has(.home-main--simple) .feature-project-copy .button,
body:has(.home-main--simple) .performance-evidence-cta,
body:has(.home-main--simple) .whitepapers-cta {
  border-color: rgba(21, 43, 67, 0.34);
  background: #244461;
  color: var(--home-navy);
}

body:has(.home-main--simple) .button:hover,
body:has(.home-main--simple) .button:visited:hover,
body:has(.home-main--simple) .portfolio-hero__action:hover,
body:has(.home-main--simple) .portfolio-hero__action:visited:hover,
body:has(.home-main--simple) .feature-project-copy .button:hover,
body:has(.home-main--simple) .feature-project-copy .button:visited:hover,
body:has(.home-main--simple) .performance-evidence-cta:hover,
body:has(.home-main--simple) .performance-evidence-cta:visited:hover,
body:has(.home-main--simple) .whitepapers-cta:hover,
body:has(.home-main--simple) .whitepapers-cta:visited:hover {
  border-color: var(--home-ochre);
  background-color: rgba(36, 68, 97, 0.26);
}

body:has(.home-main--simple) .portfolio-hero .button:hover,
body:has(.home-main--simple) .portfolio-hero .button:visited:hover,
body:has(.home-main--simple) .about-section .button:hover,
body:has(.home-main--simple) .about-section .button:visited:hover,
body:has(.home-main--simple) .contact-section--simple .button:hover,
body:has(.home-main--simple) .contact-section--simple .button:visited:hover {
  background-color: rgba(21, 43, 67, 0.38);
  color: var(--home-surface);
}

body:has(.home-main--simple) .portfolio-hero__offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 600px);
}

body:has(.home-main--simple) .portfolio-hero__offers .portfolio-hero__action:nth-child(3) {
  min-width: 11rem;
  padding-inline: 1.6rem;
  white-space: nowrap;
}

/* ─── Home: section headings ───────────────────────────────────────────── */

body:has(.home-main--simple) .simple-section-heading {
  position: relative;
  max-width: 70rem;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

body:has(.home-main--simple) .simple-section-heading::before {
  display: block;
  width: clamp(3rem, 7vw, 7rem);
  height: 0.3rem;
  margin-bottom: 1.5rem;
  background: var(--home-ochre);
  content: "";
}

body:has(.home-main--simple) .simple-section-heading h2 {
  max-width: 18ch;
  margin: 0 0 1rem;
  color: var(--home-ink);
  font-size: var(--h2);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-display);
}

body:has(.home-main--simple) .simple-section-heading > p:last-child {
  max-width: 45rem;
  margin: 0;
  color: var(--home-blue);
  font-size: var(--lede);
  line-height: var(--lh-lede);
}

body:has(.home-main--simple) #systems .simple-section-heading > p:last-child {
  max-width: none;
  color: var(--home-navy);
}

/* ─── Home: labels and links ───────────────────────────────────────────── */

body:has(.home-main--simple) .eyebrow {
  color: var(--home-red);
  font-size: var(--label);
  letter-spacing: var(--ls-label);
}

body:has(.home-main--simple) .text-link {
  color: var(--home-red);
  transition: color var(--motion);
}

/* ─── Home: feature section (page canvas zone) ─────────────────────────── */

body:has(.home-main--simple) .feature-section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  /* Quiet structural rule at the hero/feature boundary. */
  border-top: 1px solid var(--home-steel-line);
  background-color: transparent;
}

body:has(.home-main--simple) .feature-project {
  display: grid;
  grid-template-areas:
    "heading heading"
    "image copy";
  grid-template-columns: minmax(0, 2.2fr) minmax(20rem, 0.8fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.5rem, 4vw, 4rem);
  border-radius: 0.4rem;
  background: var(--home-surface);
}

body:has(.home-main--simple) .feature-project .simple-section-heading {
  grid-area: heading;
  max-width: none;
  margin: 0;
}

body:has(.home-main--simple) .feature-project .simple-section-heading h2 {
  max-width: none;
  margin-bottom: 0;
  color: var(--home-ink);
  white-space: nowrap;
}

body:has(.home-main--simple) .feature-project-copy {
  grid-area: copy;
  padding: clamp(0.25rem, 1vw, 0.75rem) 0 clamp(0.25rem, 1vw, 0.75rem) clamp(1.5rem, 3vw, 2.75rem);
  border-inline-start: 0;
}

body:has(.home-main--simple) .feature-project-copy h3 {
  margin: 0.3rem 0 1.25rem;
  color: var(--home-ink);
  font-size: var(--h3);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: 1.15;
}

body:has(.home-main--simple) .feature-project-copy h3 a,
body:has(.home-main--simple) .feature-project-copy h3 a:visited {
  color: var(--home-ink);
}

body:has(.home-main--simple) .feature-project-copy h3 a:hover {
  color: var(--home-steel);
}

body:has(.home-main--simple) .feature-project-copy h3::after {
  display: block;
  width: 3rem;
  height: 0.3rem;
  margin-top: 0.85rem;
  background: var(--home-ochre);
  content: "";
}

body:has(.home-main--simple) .feature-project-copy > p:not(.project-facts) {
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--home-navy);
  font-size: var(--lede);
  line-height: var(--lh-lede);
}

body:has(.home-main--simple) .feature-project-copy .project-facts {
  max-width: 52rem;
  margin: 2rem 0 1.5rem;
  border-color: var(--home-rule-strong);
  color: var(--home-navy);
}

body:has(.home-main--simple) .feature-project-image {
  grid-area: image;
  position: relative;
  background: var(--home-navy);
}

body:has(.home-main--simple) .feature-project-image img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.82) contrast(1.04);
}

body:has(.home-main--simple) .feature-project-image-link {
  display: block;
}

/* ─── Home: measured performance evidence ─────────────────────────────── */

body:has(.home-main--simple) .performance-evidence-section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  border-top: 1px solid var(--home-rule-strong);
  border-bottom: 1px solid var(--home-rule-strong);
  background-color: var(--home-paper);
  background-image: var(--home-texture);
  background-size: 18px 18px;
}

body:has(.home-main--simple) .performance-evidence-heading {
  max-width: 70rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

body:has(.home-main--simple) .performance-evidence-heading h2 {
  max-width: 32ch;
  color: var(--home-ink);
}

body:has(.home-main--simple) .performance-evidence-heading > p:last-child {
  max-width: 62rem;
  color: var(--home-navy);
}

body:has(.home-main--simple) .performance-evidence-figure {
  max-width: 70rem;
  margin: 0 auto;
}

body:has(.home-main--simple) .performance-evidence-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--home-rule-strong);
  background: var(--home-surface);
}

body:has(.home-main--simple) .performance-evidence-figure figcaption {
  margin-top: 0.75rem;
  color: var(--home-blue);
  font-family: var(--font-mono);
  font-size: var(--small);
  line-height: var(--lh-body);
}

body:has(.home-main--simple) .performance-evidence-cta {
  display: flex;
  width: fit-content;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0 auto;
}

/* Keep the project presentation intact and return to a single column at the
   established mobile breakpoint. */
@media (max-width: 48rem) {
  body:has(.home-main--simple) .feature-project {
    grid-template-areas:
      "heading"
      "image"
      "copy";
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  body:has(.home-main--simple) .feature-project-copy {
    padding: 0;
    border-inline-start: 0;
  }
}

.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin: 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: var(--small);
  list-style: none;
}

/* ─── Home: systems section (black zone) ────────────────────────────────── */

body:has(.home-main--simple) .systems-section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  /* Quiet structural rule: same-colour neighbour below (about). */
  border-bottom: 1px solid var(--home-rule-strong);
  background-color: #000000;
  background-image: var(--home-texture);
  background-size: 18px 18px;
}

body:has(.home-main--simple) #systems .simple-section-heading::before {
  background: var(--home-navy);
}

body:has(.home-main--simple) .systems-section .whitepapers-cta {
  border-color: #46596d;
  background: #244461;
  color: #f2f4f7;
}

body:has(.home-main--simple) .case-study-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-inline: auto;
}

body:has(.home-main--simple) .whitepapers-cta {
  display: flex;
  width: fit-content;
  margin: clamp(2rem, 4vw, 3rem) 0 0 auto;
}

body:has(.home-main--simple) .case-study {
  margin: 0;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 0;
  background: var(--home-surface);
}

body:has(.home-main--simple) .case-study__summary {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
  padding: 1.15rem 2rem 1.15rem 0;
  color: var(--home-ink);
  font-size: var(--h3);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: 1.15;
  list-style: none;
  cursor: pointer;
}

/* Paragraph descriptions remain semantic content while participating in the
   summary's flex row. */
body:has(.home-main--simple) .accordion-description {
  font-size: 0.9em;
  font-weight: normal;
}

body:has(.home-main--simple) .case-study__summary::-webkit-details-marker {
  display: none;
}

body:has(.home-main--simple) .case-study__summary::after {
  position: absolute;
  top: 50%;
  right: 0;
  color: var(--home-blue);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  content: "+";
  transform: translateY(-50%);
}

body:has(.home-main--simple) .case-study[open] .case-study__summary::after {
  content: "–";
}

body:has(.home-main--simple) .case-study__name {
  color: var(--home-steel);
  transition: color var(--motion);
}

body:has(.home-main--simple) .case-study__summary:hover .case-study__name {
  color: var(--home-steel);
}

body:has(.home-main--simple) .case-study__index {
  color: var(--home-steel);
  font-family: var(--font-mono);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
}

body:has(.home-main--simple) .case-study__meta {
  margin-left: auto;
  color: var(--home-steel);
  font-family: var(--font-mono);
  font-size: var(--small);
  font-weight: 500;
  letter-spacing: 0.06em;
}

body:has(.home-main--simple) .case-study__body {
  max-width: 62rem;
  padding: 0.1rem 0 1.9rem;
}

/* Integrated case-study content stays inside the parent disclosure. */

body:has(.home-main--simple) .case-study__full {
  margin-top: 1.6rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--home-rule);
}

body:has(.home-main--simple) .case-study__full .case-study__toc {
  max-width: 58rem;
  margin: 0 0 1.2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--home-rule);
}

body:has(.home-main--simple) .case-study__full .case-study__toc-title {
  margin: 0 0 0.4rem;
  color: var(--home-blue);
  font-family: var(--font-mono);
  font-size: var(--small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body:has(.home-main--simple) .case-study__full .case-study__toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:has(.home-main--simple) .case-study__full .case-study__toc a,
body:has(.home-main--simple) .case-study__full .case-study__toc a:visited {
  color: var(--home-steel);
  text-decoration: none;
}

body:has(.home-main--simple) .case-study__full .case-study__toc a:hover {
  color: var(--home-steel);
  text-decoration: underline;
}

body:has(.home-main--simple) .case-study__full .case-study__section {
  margin-top: 1.35rem;
}

body:has(.home-main--simple) .case-study__full .case-study__section h2 {
  margin-bottom: 0.5rem;
}

body:has(.home-main--simple) .case-study__full .case-study__section p,
body:has(.home-main--simple) .case-study__full .case-study__section ul {
  margin-bottom: 0.55rem;
}

body:has(.home-main--simple) .case-study__full .case-study__section li {
  margin-bottom: 0.25rem;
}

body:has(.home-main--simple) .case-study__full .case-study__section .note {
  color: var(--home-blue);
  font-size: var(--small);
  line-height: var(--lh-body);
}

body:has(.home-main--simple) .case-study__full .diagram {
  margin-top: 1rem;
}

body:has(.home-main--simple) .case-study__full figcaption {
  margin-top: 0.35rem;
}

body:has(.home-main--simple) .case-study__section {
  max-width: 58rem;
  margin: 2.15rem 0 0;
}

body:has(.home-main--simple) .case-study__section h2 {
  margin: 0 0 0.7rem;
  color: var(--home-ink);
  font-family: var(--font-mono);
  font-size: var(--h3);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: 1.15;
}

body:has(.home-main--simple) .case-study__section p,
body:has(.home-main--simple) .case-study__section ul {
  max-width: 56rem;
  margin: 0 0 0.8rem;
  font-size: var(--body);
  line-height: var(--lh-body);
}

body:has(.home-main--simple) .case-study__section ul {
  padding-left: 1.25rem;
}

body:has(.home-main--simple) .case-study__section li {
  margin-bottom: 0.4rem;
}

body:has(.home-main--simple) .case-study__section li:last-child {
  margin-bottom: 0;
}

body:has(.home-main--simple) .case-study__section code {
  padding: 0.05em 0.3em;
  border: 1px solid var(--home-rule);
  background: var(--home-surface);
  font-family: var(--font-mono);
  font-size: 0.84em;
}

body:has(.home-main--simple) .case-study__full a,
body:has(.home-main--simple) .case-study__full a:visited {
  color: var(--home-steel);
  text-decoration: none;
}

body:has(.home-main--simple) .case-study__full a:hover {
  color: var(--home-steel);
  text-decoration: underline;
}

body:has(.home-main--simple) .case-study__full .diagram {
  max-width: 58rem;
  margin: 1.5rem 0 0;
  overflow-x: auto;
}

body:has(.home-main--simple) .case-study__full .diagram img,
body:has(.home-main--simple) .case-study__full .diagram svg {
  width: 100%;
  min-width: 0;
}

body:has(.home-main--simple) .case-study__full .diagram img {
  height: auto;
}

body:has(.home-main--simple) .case-study__full figcaption {
  max-width: 54rem;
  color: var(--home-blue);
  font-size: var(--small);
  line-height: var(--lh-body);
}


body:has(.home-main--simple) .travel-bonanza-image img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

/* ─── Home: about section (dark zone) ──────────────────────────────────── */

body:has(.home-main--simple) .about-section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  background-color: #2E5E79;
  background-image: var(--home-texture);
  background-size: 18px 18px;
}

body:has(.home-main--simple) .about-section .simple-section-heading h2 {
  color: var(--home-paper);
}

body:has(.home-main--simple) .about-lede {
  max-width: 62rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

body:has(.home-main--simple) .about-lede p {
  max-width: 58rem;
  margin: 0;
  color: var(--home-paper);
  font-size: var(--lede-lg);
  line-height: 1.3;
}

body:has(.home-main--simple) .about-profile {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  max-width: 70rem;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

body:has(.home-main--simple) .about-profile__portrait {
  width: min(100%, 22rem);
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 50%;
}

body:has(.home-main--simple) .about-profile__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body:has(.home-main--simple) .about-profile__copy h3,
body:has(.home-main--simple) .about-column h3 {
  margin: 0 0 0.65rem;
  color: var(--home-paper);
  font-size: var(--h3);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: 1.15;
}

body:has(.home-main--simple) .about-profile__tagline {
  margin: 0;
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: var(--small);
  font-weight: 600;
  letter-spacing: var(--ls-label);
}

body:has(.home-main--simple) .about-profile__accent {
  display: block;
  width: 3rem;
  height: 0.3rem;
  margin: 1.25rem 0 1.5rem;
  background: var(--home-ochre);
}

body:has(.home-main--simple) .about-profile__copy > p:last-child,
body:has(.home-main--simple) .about-column p,
body:has(.home-main--simple) .about-column li {
  color: var(--on-dark-muted);
  font-size: var(--body);
}

body:has(.home-main--simple) .about-profile__copy > p:last-child,
body:has(.home-main--simple) .about-column p {
  line-height: var(--lh-body);
}

body:has(.home-main--simple) .about-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 70rem;
}

body:has(.home-main--simple) .about-column {
  min-width: 0;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

body:has(.home-main--simple) .about-column:first-child {
  padding-left: 0;
}

body:has(.home-main--simple) .about-column + .about-column {
  border-left: 1px solid rgba(242, 237, 227, 0.28);
}

body:has(.home-main--simple) .about-column ul {
  display: grid;
  gap: 0.35rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

body:has(.home-main--simple) .about-cta {
  display: flex;
  width: fit-content;
  margin: clamp(2rem, 4vw, 3rem) 0 0 auto;
}

/* ─── Home: link colours by surface ────────────────────────────────────── */

body:has(.home-main--simple) .site-header .nav-list a,
body:has(.home-main--simple) .site-header .nav-list a:visited,
body:has(.home-main--simple) .site-header .nav-list a:hover {
  color: #fff;
}

body:has(.home-main--simple) .offer-ticker__action,
body:has(.home-main--simple) .offer-ticker__action:visited,
body:has(.home-main--simple) .offer-ticker__action:hover,
body:has(.home-main--simple) .offer-ticker__action:focus-visible {
  color: var(--home-paper);
}

body:has(.home-main--simple) .about-section a,
body:has(.home-main--simple) .about-section a:visited {
  color: var(--home-paper);
}

body:has(.home-main--simple) .about-section a:hover {
  color: #fff;
  text-decoration-thickness: 2px;
}

body:has(.home-main--simple) .feature-project-copy .text-link,
body:has(.home-main--simple) .feature-project-copy .text-link:visited {
  color: var(--home-steel);
}

body:has(.home-main--simple) .feature-project-copy .button,
body:has(.home-main--simple) .feature-project-copy .button:visited,
body:has(.home-main--simple) .feature-project-copy .button:hover {
  color: var(--home-navy);
  text-decoration: none;
}

body:has(.home-main--simple) .site-header :focus-visible,
body:has(.home-main--simple) .about-section :focus-visible,
body:has(.home-main--simple) .contact-section--simple :focus-visible {
  outline-color: #fff;
}

/* ─── Home: interstitial divider (canvas band between About and CTA) ────── */

body:has(.home-main--simple) .pacman-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 7rem;
  margin: 0;
}

body:has(.home-main--simple) .pacman-wrap::before {
  position: absolute;
  top: 50%;
  right: 7%;
  left: 7%;
  height: 1px;
  background: var(--home-navy);
  content: "";
}

body:has(.home-main--simple) .pacman-wrap::after {
  position: absolute;
  top: 50%;
  left: 18%;
  width: 5rem;
  height: 5rem;
  border: 1px solid var(--home-red);
  border-right-color: transparent;
  border-radius: 50%;
  box-shadow: 8rem 0 0 -2.2rem var(--home-ochre);
  content: "";
  transform: translateY(-50%) rotate(-24deg);
}

/* ─── Home: contact / CTA (black band) ──────────────────────────────────── */

body:has(.home-main--simple) .contact-section--simple {
  position: relative;
  display: grid;
  min-height: 25rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 7rem);
  overflow: hidden;
  margin: 0;
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
  background: #000000;
  color: var(--home-paper);
}

body:has(.home-main--simple) .contact-section--simple::after {
  position: absolute;
  right: -12rem;
  bottom: -18rem;
  width: clamp(28rem, 54vw, 58rem);
  aspect-ratio: 1;
  border: 1px solid rgba(242, 237, 227, 0.45);
  border-radius: 50%;
  content: "";
}

body:has(.home-main--simple) .contact-section--simple > * {
  position: relative;
  z-index: 1;
}

body:has(.home-main--simple) .contact-section--simple .eyebrow {
  color: var(--home-ochre);
}

body:has(.home-main--simple) .contact-section--simple h2 {
  max-width: 16ch;
  color: var(--home-paper);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  line-height: 0.9;
}

body:has(.home-main--simple) .contact-section--simple p:not(.eyebrow) {
  max-width: 42ch;
  color: var(--on-dark-muted);
}

body:has(.home-main--simple) .contact-resource-index {
  display: grid;
  width: min(100%, 27rem);
  margin-inline: auto;
}

body:has(.home-main--simple) .contact-resource-group {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(242, 237, 227, 0.45);
}

body:has(.home-main--simple) .contact-resource-group:first-child {
  padding-top: 0;
}

body:has(.home-main--simple) .contact-resource-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body:has(.home-main--simple) .contact-section--simple .contact-resource-label {
  margin: 0 0 0.75rem;
  color: var(--home-paper);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  line-height: var(--lh-label);
  text-transform: uppercase;
}

body:has(.home-main--simple) .contact-resource-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:has(.home-main--simple) .contact-resource-list li + li {
  border-top: 1px solid rgba(242, 237, 227, 0.45);
}

body:has(.home-main--simple) .contact-resource-link,
body:has(.home-main--simple) .contact-resource-link:visited {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  color: var(--home-paper);
  font-size: var(--body);
  font-weight: 700;
  line-height: var(--lh-body);
  text-decoration: none;
  text-wrap: balance;
}

body:has(.home-main--simple) .contact-resource-link:hover {
  color: #fff;
  text-decoration: none;
}

body:has(.home-main--simple) .contact-resource-link img {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
}

body:has(.home-main--simple) .contact-resource-link__icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  line-height: 1;
}

body:has(.home-main--simple) .contact-resource-link__icon--upwork {
  color: #6FDA44;
}

body:has(.home-main--simple) .contact-resource-link__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ─── Home: footer on canvas ───────────────────────────────────────────── */

body:has(.home-main--simple) .site-footer {
  border-top-color: var(--home-rule-strong);
  color: var(--home-ink);
}

/* ─── Home: elevation ──────────────────────────────────────────────────── */

body:has(.home-main--simple) .elevated {
  border: 1px solid var(--elev-edge);
  box-shadow: var(--elev-highlight), var(--elev-card);
  transform: translateY(0);
  transition: transform var(--motion), box-shadow var(--motion);
}

@media (hover: hover) and (pointer: fine) {
  body:has(.home-main--simple) .elevated:hover {
    transform: translateY(var(--lift-card));
    box-shadow: var(--elev-highlight), var(--elev-card-hover);
  }

}

/* ─── Home: per-surface focus ──────────────────────────────────────────── */

body:has(.home-main--simple) :focus-visible {
  outline-color: var(--home-red);
}

body:has(.home-main--simple) .site-header :focus-visible,
body:has(.home-main--simple) .portfolio-hero :focus-visible,
body:has(.home-main--simple) .feature-section :focus-visible,
body:has(.home-main--simple) .contact-section--simple :focus-visible {
  outline-color: var(--home-ochre);
}

body:has(.home-main--simple) .site-header .header-inner :focus-visible,
body:has(.home-main--simple) .portfolio-hero :focus-visible,
body:has(.home-main--simple) .contact-section--simple :focus-visible {
  outline-color: #fff;
}

body:has(.home-main--simple) .feature-project-copy :focus-visible {
  outline-color: var(--home-steel);
}

body:has(.home-main--simple) .feature-project-image-link:focus-visible {
  outline-color: #fff;
}

/* ─── Home: responsive ───────────────────────────────────────────────────
   Three breakpoints: ≤64rem tablet, ≤48rem mobile stack, ≤38rem small. */

@media (max-width: 64rem) {
  body:has(.home-main--simple) .portfolio-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
    min-height: 32rem;
  }

  body:has(.home-main--simple) .portfolio-hero__copy {
    padding-right: 2rem;
  }
}

@media (max-width: 54rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    padding-block: 1rem;
  }

  .nav-list {
    justify-content: flex-start;
    gap: 0.25rem 1rem;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner p + p {
    margin-top: 0.4rem;
  }
}

@media (max-width: 48rem) {
  html:has(.home-main--simple) {
    --header-h: 9.5rem;
  }

  body:has(.home-main--simple) .header-inner {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding-block: 0.9rem;
  }

  body:has(.home-main--simple) .nav-list {
    gap: 0.25rem 1rem;
  }

  body:has(.home-main--simple) .nav-list .nav-item {
    gap: 1rem;
  }

  body:has(.home-main--simple) .portfolio-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: hidden;
    padding-top: 4rem;
    padding-bottom: 15rem;
    background-size: auto 15rem;
    background-position: 100% 100%;
  }

  body:has(.home-main--simple) .portfolio-hero__copy {
    padding: 0;
  }

  body:has(.home-main--simple) .portfolio-hero__offers {
    grid-template-columns: 1fr;
    width: min(100%, 20rem);
  }

  body:has(.home-main--simple) .contact-section--simple {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  body:has(.home-main--simple) .about-profile {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  body:has(.home-main--simple) .about-columns {
    grid-template-columns: 1fr;
  }

  body:has(.home-main--simple) .about-column,
  body:has(.home-main--simple) .about-column:first-child {
    padding: 1.5rem 0;
  }

  body:has(.home-main--simple) .about-column:first-child {
    padding-top: 0;
  }

  body:has(.home-main--simple) .about-column + .about-column {
    border-top: 1px solid rgba(242, 237, 227, 0.28);
    border-left: 0;
  }
}

@media (max-width: 38rem) {
  body:has(.home-main--simple) {
    --gutter: 1.25rem;
  }

  body:has(.home-main--simple) .contact-resource-link {
    font-size: 0.95rem;
  }

  body:has(.home-main--simple) .contact-resource-link__text {
    overflow-wrap: break-word;
  }

  body:has(.home-main--simple) .site-brand {
    font-size: 0.9375rem;
  }

  body:has(.home-main--simple) .brand-descriptor {
    font-size: 0.5625rem;
  }

  body:has(.home-main--simple) .nav-list a {
    font-size: 0.75rem;
  }

  body:has(.home-main--simple) .portfolio-hero {
    padding-top: 3rem;
  }

  body:has(.home-main--simple) .case-study {
    padding-inline: 1rem;
  }

  body:has(.home-main--simple) .case-study__summary {
    gap: 0.3rem 0.9rem;
    padding-right: 2rem;
  }

  body:has(.home-main--simple) .case-study__meta {
    flex-basis: 100%;
    margin-left: 0;
  }

  body:has(.home-main--simple) .offer-ticker {
    font-size: 10px;
  }

  body:has(.home-main--simple) .offer-ticker__sequence span {
    padding-inline: 1.5rem;
  }

  body:has(.home-main--simple) .offer-ticker__action {
    padding-inline: 0.6rem;
    letter-spacing: 0.05em;
  }
}

/* ─── Reduced motion (all pages) ───────────────────────────────────────── */

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

  .back-to-top {
    transition: none;
    transform: none;
  }

  .back-to-top:hover {
    translate: none;
  }

  .offer-ticker__viewport {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .offer-ticker__viewport::-webkit-scrollbar {
    display: none;
  }

  .offer-ticker__track {
    animation: none;
    transform: none;
  }

  body:has(.home-main--simple) .elevated,
  body:has(.home-main--simple) .portfolio-hero__action,
  body:has(.home-main--simple) .nav-list a,
  body:has(.home-main--simple) .text-link,
  body:has(.home-main--simple) .case-study__name {
    transform: none;
    transition: none;
  }
}


/* ─── Home: engineering workflow ───────────────────────────────────────── */
body:has(.home-main--simple) .workflow-section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  background: var(--home-paper);
}

body:has(.home-main--simple) .workflow-section .simple-section-heading {
  max-width: 62rem;
  margin-bottom: 2.5rem;
}

body:has(.home-main--simple) .workflow-section .simple-section-heading > p:last-child {
  max-width: 60rem;
  color: var(--home-blue);
  font-size: var(--lede);
  line-height: var(--lh-lede);
}

body:has(.home-main--simple) .workflow {
  max-width: 75rem;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--home-surface);
}

body:has(.home-main--simple) .workflow__steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:has(.home-main--simple) .workflow__steps li {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.5rem clamp(0.65rem, 1.5vw, 1.25rem);
}

body:has(.home-main--simple) .workflow__steps li + li {
  border-left: 1px solid var(--home-rule);
}

body:has(.home-main--simple) .workflow__number {
  color: var(--home-steel);
  font-family: var(--font-mono);
  font-size: var(--small);
  font-weight: 700;
  letter-spacing: var(--ls-label);
}

body:has(.home-main--simple) .workflow__steps strong {
  color: var(--home-ink);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

body:has(.home-main--simple) .workflow__steps li > span:last-child {
  color: var(--home-blue);
  font-size: var(--small);
  line-height: 1.45;
}

@media (max-width: 64rem) {
  body:has(.home-main--simple) .workflow__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1.25rem;
  }

  body:has(.home-main--simple) .workflow__steps li:nth-child(4) {
    border-left: 0;
  }
}

@media (max-width: 48rem) {
  body:has(.home-main--simple) .workflow__steps {
    grid-template-columns: 1fr;
  }

  body:has(.home-main--simple) .workflow__steps li + li,
  body:has(.home-main--simple) .workflow__steps li:nth-child(4) {
    border-top: 1px solid var(--home-rule);
    border-left: 0;
  }

  body:has(.home-main--simple) .workflow__steps li {
    padding: 1rem 0;
  }

  body:has(.home-main--simple) .workflow__steps li:first-child {
    padding-top: 0.5rem;
  }

  body:has(.home-main--simple) .workflow__steps li:last-child {
    padding-bottom: 0.5rem;
  }
}

/* Keep the contact prompt on one line at desktop widths; allow wrapping on small screens. */
body:has(.home-main--simple) .contact-section--simple > div > p:last-child {
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 48rem) {
  body:has(.home-main--simple) .contact-section--simple > div > p:last-child {
    white-space: normal;
  }
}

/* ─── Approved homepage color contract (2026-10-19) ─────────────────────
   Hero and header retain their existing treatment. All later section
   backgrounds are black; cards are midnight navy. Subpages unaffected. */
body:has(.home-main--simple) {
  --home-canvas: #000000;
  --home-surface: #101e2b;
  --home-paper: #f2f4f7;
  --home-ink: #f2f4f7;
  --home-blue: #c2cbd5;
  --home-steel: #a8cdec;
  --home-navy: #244461;
  --home-ochre: #a8cdec;
  --home-red: #a8cdec;
  --home-rule: #46596d;
  --home-rule-strong: #46596d;
  --on-dark-muted: #c2cbd5;
  background-color: #000;
  background-image: none;
  color: #f2f4f7;
}
/* Retain the previous header and hero background, image and hero text. */
body:has(.home-main--simple) .site-header {
  background: #5a7180;
  border-bottom-color: #3f5563;
}
body:has(.home-main--simple) .portfolio-hero {
  background: #2e5e79 url("../images/hero/hero-artwork.jpg") 55% center / 100% no-repeat;
}
body:has(.home-main--simple) .portfolio-hero h1 {
  color: #e2e9e9;
}
body:has(.home-main--simple) .portfolio-hero .button,
body:has(.home-main--simple) .portfolio-hero .button:visited {
  border-color: rgba(242,237,227,.52);
  background: rgba(21,43,67,.2);
  color: #faf7ef;
}
/* Uniform black backgrounds from the capability strip through footer. */
body:has(.home-main--simple) .capability-strip,
body:has(.home-main--simple) .feature-section,
body:has(.home-main--simple) .performance-evidence-section,
body:has(.home-main--simple) .workflow-section,
body:has(.home-main--simple) .systems-section,
body:has(.home-main--simple) .about-section,
body:has(.home-main--simple) .pacman-wrap,
body:has(.home-main--simple) .contact-section--simple,
body:has(.home-main--simple) .site-footer {
  background: #000;
  color: #f2f4f7;
}
body:has(.home-main--simple) .feature-project,
body:has(.home-main--simple) .workflow,
body:has(.home-main--simple) .case-study {
  background: #101e2b;
  border-color: #46596d;
  color: #f2f4f7;
}
body:has(.home-main--simple) .tech-strip,
body:has(.home-main--simple) .tech-strip__item,
body:has(.home-main--simple) .simple-section-heading h2,
body:has(.home-main--simple) .performance-evidence-heading h2,
body:has(.home-main--simple) .feature-project .simple-section-heading h2,
body:has(.home-main--simple) .feature-project-copy h3,
body:has(.home-main--simple) .feature-project-copy h3 a,
body:has(.home-main--simple) .feature-project-copy h3 a:visited,
body:has(.home-main--simple) .workflow__steps strong,
body:has(.home-main--simple) .case-study__summary,
body:has(.home-main--simple) .case-study__name,
body:has(.home-main--simple) .case-study__section h2,
body:has(.home-main--simple) .about-section h2,
body:has(.home-main--simple) .about-section h3,
body:has(.home-main--simple) .contact-section--simple h2,
body:has(.home-main--simple) .contact-resource-label,
body:has(.home-main--simple) .site-footer {
  color: #f2f4f7;
}
body:has(.home-main--simple) .simple-section-heading > p:last-child,
body:has(.home-main--simple) #systems .simple-section-heading > p:last-child,
body:has(.home-main--simple) .performance-evidence-heading > p:last-child,
body:has(.home-main--simple) .workflow-section .simple-section-heading > p:last-child,
body:has(.home-main--simple) .feature-project-copy > p:not(.project-facts),
body:has(.home-main--simple) .feature-project-copy .project-facts,
body:has(.home-main--simple) .performance-evidence-figure figcaption,
body:has(.home-main--simple) .workflow__steps li > span:last-child,
body:has(.home-main--simple) .case-study__meta,
body:has(.home-main--simple) .case-study__index,
body:has(.home-main--simple) .case-study__full figcaption,
body:has(.home-main--simple) .case-study__full .case-study__toc-title,
body:has(.home-main--simple) .case-study__full .case-study__section .note,
body:has(.home-main--simple) .about-profile__tagline,
body:has(.home-main--simple) .about-profile__copy > p:last-child,
body:has(.home-main--simple) .about-column p,
body:has(.home-main--simple) .about-column li,
body:has(.home-main--simple) .contact-section--simple p:not(.eyebrow) {
  color: #c2cbd5;
}
body:has(.home-main--simple) .eyebrow,
body:has(.home-main--simple) .case-study__full a,
body:has(.home-main--simple) .case-study__full a:visited,
body:has(.home-main--simple) .case-study__full .case-study__toc a,
body:has(.home-main--simple) .case-study__full .case-study__toc a:visited,
body:has(.home-main--simple) .text-link {
  color: #a8cdec;
}
body:has(.home-main--simple) .feature-project-copy .button,
body:has(.home-main--simple) .performance-evidence-cta,
body:has(.home-main--simple) .whitepapers-cta,
body:has(.home-main--simple) .contact-section--simple .button,
body:has(.home-main--simple) .about-section .button {
  min-height: 2.6rem;
  padding: .65rem .95rem;
  border-radius: .5rem;
  background: #244461;
  border-color: #46596d;
  color: #f2f4f7;
  font-size: .85rem;
  font-weight: 600;
}
body:has(.home-main--simple) .feature-project-copy .button:hover,
body:has(.home-main--simple) .performance-evidence-cta:hover,
body:has(.home-main--simple) .whitepapers-cta:hover,
body:has(.home-main--simple) .contact-section--simple .button:hover,
body:has(.home-main--simple) .about-section .button:hover {
  background: #315979;
  color: #fff;
}
body:has(.home-main--simple) .contact-resource-link,
body:has(.home-main--simple) .contact-resource-link:visited,
body:has(.home-main--simple) .about-section a,
body:has(.home-main--simple) .about-section a:visited {
  color: #f2f4f7;
}
body:has(.home-main--simple) .feature-project-image,
body:has(.home-main--simple) .case-study__section code,
body:has(.home-main--simple) .performance-evidence-figure img {
  background: #101e2b;
}
body:has(.home-main--simple) .pacman-wrap::before {
  background: #46596d;
}
body:has(.home-main--simple) .pacman-wrap::after {
  border-color: #a8cdec;
  border-right-color: transparent;
  box-shadow: 8rem 0 0 -2.2rem #244461;
}
body:has(.home-main--simple) .contact-section--simple::after {
  border-color: #46596d;
}
body:has(.home-main--simple) .capability-strip :focus-visible,
body:has(.home-main--simple) .feature-section :focus-visible,
body:has(.home-main--simple) .performance-evidence-section :focus-visible,
body:has(.home-main--simple) .workflow-section :focus-visible,
body:has(.home-main--simple) .systems-section :focus-visible,
body:has(.home-main--simple) .about-section :focus-visible,
body:has(.home-main--simple) .contact-section--simple :focus-visible {
  outline-color: #a8cdec;
}


/* ─── Approved layout refinement: existing imagery and copy unchanged ───
   Editorial hierarchy, tighter section rhythm and card presentation. */
body:has(.home-main--simple) {
  --section-pad: clamp(4.25rem, 7vw, 7rem);
}
body:has(.home-main--simple) .home-main > section:not(.title-section):not(.capability-strip) {
  border-top: 1px solid #243344;
}
body:has(.home-main--simple) .capability-strip {
  border-bottom: 1px solid #243344;
}
body:has(.home-main--simple) .simple-section-heading,
body:has(.home-main--simple) .performance-evidence-heading {
  max-width: 65rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
body:has(.home-main--simple) .simple-section-heading h2,
body:has(.home-main--simple) .performance-evidence-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -.035em;
  line-height: 1.12;
}
body:has(.home-main--simple) .feature-project {
  grid-template-areas: "heading image" "copy image";
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 1.25rem clamp(2rem, 4vw, 4rem);
  border: 1px solid #46596d;
  border-radius: .8rem;
  padding: clamp(1.5rem, 3vw, 3rem);
}
body:has(.home-main--simple) .feature-project .simple-section-heading h2 {
  white-space: normal;
  overflow-wrap: anywhere;
}
body:has(.home-main--simple) .feature-project-copy {
  padding: 0;
}
body:has(.home-main--simple) .feature-project-image {
  grid-area: image;
  overflow: hidden;
  border-radius: .5rem;
}
body:has(.home-main--simple) .performance-evidence-figure {
  max-width: 68rem;
}
body:has(.home-main--simple) .performance-evidence-figure img {
  border-radius: .6rem;
}
body:has(.home-main--simple) .workflow {
  border: 1px solid #46596d;
  border-radius: .75rem;
}
body:has(.home-main--simple) .case-study-list {
  gap: .75rem;
}
body:has(.home-main--simple) .case-study {
  border: 1px solid #46596d;
  border-radius: .55rem;
  overflow: hidden;
}
body:has(.home-main--simple) .case-study__summary {
  padding-block: 1.3rem;
}
body:has(.home-main--simple) .case-study[open] {
  border-color: #a8cdec;
}
body:has(.home-main--simple) .about-profile__portrait img {
  border: 1px solid #46596d;
}
body:has(.home-main--simple) .contact-section--simple {
  gap: clamp(2rem, 5vw, 5rem);
}
body:has(.home-main--simple) .contact-resource-link {
  border-color: #46596d;
}
@media (max-width: 64rem) {
  body:has(.home-main--simple) .feature-project {
    grid-template-areas: "heading" "image" "copy";
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 48rem) {
  body:has(.home-main--simple) .home-main > section:not(.title-section):not(.capability-strip) {
    padding-top: clamp(3.5rem, 10vw, 5rem);
    padding-bottom: clamp(3.5rem, 10vw, 5rem);
  }
  body:has(.home-main--simple) .feature-project {
    padding: 1.25rem;
  }
  body:has(.home-main--simple) .case-study {
    padding-inline: 1rem;
  }
}


/* ─── Header and compact six-destination hero navigation ──────────────── */
body:has(.home-main--simple) .site-header {
  background: #000;
  border-bottom-color: #293747;
}
body:has(.home-main--simple) .portfolio-hero__offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  width: min(100%, 35rem);
}
body:has(.home-main--simple) .portfolio-hero .portfolio-hero__offers .portfolio-hero__action,
body:has(.home-main--simple) .portfolio-hero .portfolio-hero__offers .portfolio-hero__action:nth-child(3) {
  min-width: 0;
  min-height: 2.25rem;
  padding: .5rem .6rem;
  border: 1px solid rgba(242,244,247,.5);
  border-radius: .35rem;
  background: rgba(8,24,38,.65);
  color: #f2f4f7;
  font-size: clamp(.68rem, .85vw, .78rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
body:has(.home-main--simple) .portfolio-hero .portfolio-hero__offers .portfolio-hero__action:hover {
  border-color: #a8cdec;
  background: #244461;
}
@media (max-width: 48rem) {
  body:has(.home-main--simple) .portfolio-hero__offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 24rem);
  }
}


/* ─── Complete dark visual contract: About and Contact ───────────────────
   Match the preceding card-based sections without changing copy or media. */
body:has(.home-main--simple) .about-section,
body:has(.home-main--simple) .contact-section--simple,
body:has(.home-main--simple) .pacman-wrap,
body:has(.home-main--simple) .site-footer {
  background-color: #000;
  background-image: none;
}
body:has(.home-main--simple) .about-lede p,
body:has(.home-main--simple) .about-profile__copy h3,
body:has(.home-main--simple) .about-column h3 {
  color: #f2f4f7;
}
body:has(.home-main--simple) .about-profile__copy,
body:has(.home-main--simple) .about-column {
  color: #c2cbd5;
}
body:has(.home-main--simple) .about-columns {
  gap: 1rem;
}
body:has(.home-main--simple) .about-column {
  background: #101e2b;
  border: 1px solid #46596d;
  border-radius: .6rem;
  padding: clamp(1.25rem, 2vw, 2rem);
}
body:has(.home-main--simple) .about-column:first-child,
body:has(.home-main--simple) .about-column + .about-column {
  border: 1px solid #46596d;
}
body:has(.home-main--simple) .about-column a,
body:has(.home-main--simple) .about-column a:visited {
  color: #a8cdec;
}
body:has(.home-main--simple) .about-profile__accent {
  background: #a8cdec;
}
body:has(.home-main--simple) .contact-section--simple {
  border-top: 1px solid #46596d;
}
body:has(.home-main--simple) .contact-section--simple .eyebrow,
body:has(.home-main--simple) .contact-section--simple .contact-resource-label {
  color: #a8cdec;
}
body:has(.home-main--simple) .contact-section--simple .contact-resource-link,
body:has(.home-main--simple) .contact-section--simple .contact-resource-link:visited {
  background: #101e2b;
  border: 1px solid #46596d;
  color: #f2f4f7;
  border-radius: .55rem;
}
body:has(.home-main--simple) .contact-section--simple .contact-resource-link:hover {
  background: #244461;
  border-color: #a8cdec;
}
body:has(.home-main--simple) .contact-section--simple .contact-resource-link__icon--upwork {
  color: #a8cdec;
}
@media (max-width: 48rem) {
  body:has(.home-main--simple) .about-columns {
    gap: .75rem;
  }
  body:has(.home-main--simple) .about-column,
  body:has(.home-main--simple) .about-column:first-child {
    padding: 1.25rem;
  }
}


/* ─── Dark theme interactive contrast: hover, visited and keyboard focus ──
   All hover foregrounds remain light on navy surfaces. */
body:has(.home-main--simple) .feature-project-copy .button:is(:hover, :visited, :visited:hover),
body:has(.home-main--simple) .performance-evidence-cta:is(:hover, :visited, :visited:hover),
body:has(.home-main--simple) .whitepapers-cta:is(:hover, :visited, :visited:hover),
body:has(.home-main--simple) .about-section .button:is(:hover, :visited, :visited:hover),
body:has(.home-main--simple) .contact-section--simple .button:is(:hover, :visited, :visited:hover) {
  color: #f2f4f7;
}
body:has(.home-main--simple) .feature-project-copy .button:hover,
body:has(.home-main--simple) .performance-evidence-cta:hover,
body:has(.home-main--simple) .whitepapers-cta:hover,
body:has(.home-main--simple) .about-section .button:hover,
body:has(.home-main--simple) .contact-section--simple .button:hover {
  background: #315979;
  border-color: #a8cdec;
  color: #fff;
}
body:has(.home-main--simple) .portfolio-hero .portfolio-hero__offers .portfolio-hero__action:is(:visited, :hover, :visited:hover) {
  color: #f2f4f7;
}
body:has(.home-main--simple) .portfolio-hero .portfolio-hero__offers .portfolio-hero__action:hover {
  background: #244461;
  border-color: #a8cdec;
}
body:has(.home-main--simple) .contact-section--simple .contact-resource-link:is(:hover, :visited:hover),
body:has(.home-main--simple) .contact-section--simple .contact-resource-link:is(:hover, :visited:hover) .contact-resource-link__text {
  color: #fff;
}
body:has(.home-main--simple) .feature-project-copy h3 a:hover,
body:has(.home-main--simple) .feature-project-copy .text-link:hover,
body:has(.home-main--simple) .case-study__full a:hover,
body:has(.home-main--simple) .case-study__full .case-study__toc a:hover,
body:has(.home-main--simple) .about-column a:hover {
  color: #d8ecfc;
  text-decoration: underline;
}
body:has(.home-main--simple) .case-study__summary:hover .case-study__name,
body:has(.home-main--simple) .case-study__summary:focus-visible .case-study__name {
  color: #d8ecfc;
}
body:has(.home-main--simple) .about-section a:hover {
  color: #d8ecfc;
}
body:has(.home-main--simple) .site-header .nav-list a:hover,
body:has(.home-main--simple) .site-header .nav-list a:focus-visible {
  color: #d8ecfc;
}
body:has(.home-main--simple) .portfolio-hero__offers a:focus-visible,
body:has(.home-main--simple) .feature-section a:focus-visible,
body:has(.home-main--simple) .performance-evidence-section a:focus-visible,
body:has(.home-main--simple) .systems-section a:focus-visible,
body:has(.home-main--simple) .about-section a:focus-visible,
body:has(.home-main--simple) .contact-section--simple a:focus-visible {
  outline: 2px solid #a8cdec;
  outline-offset: 3px;
}
