/* Fonts stay pinned and passive under the existing CSP. */
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #1d2021;
  --canvas-soft: #282828;
  --surface: #32302f;
  --surface-raised: #3c3836;
  --cream: #fbf1c7;
  --cream-soft: #ebdbb2;
  --cream-deep: #d5c4a1;
  --muted-dark: #c9bda1;
  --muted-light: #514b43;
  --yellow: #fabd2f;
  --cyan: #3ee7e4;
  --magenta: #ff4fc8;
  --tone-green: #b8d8b0;
  --tone-blue: #b9d7e8;
  --tone-peach: #efc8ad;
  --tone-lavender: #d6c4e8;
  --tone-rose: #e7bdcb;
  --tone-gold: #efd487;
  --dark-line: #504945;
  --light-line: #bdae93;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --pad: clamp(1.1rem, 4vw, 4.75rem);
  --page-max: 1560px;
  --page-edge: max(var(--pad), calc((100vw - var(--page-max)) / 2 + var(--pad)));
  --radius-pill: 999px;
  --radius-card: clamp(1.5rem, 2.5vw, 2.75rem);
  --radius-island: clamp(2rem, 4vw, 4.5rem);
  --header-offset: 92px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-expressive: cubic-bezier(.34, 1.4, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  scrollbar-color: var(--dark-line) var(--canvas);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--cream);
  font: 1.0625rem/1.62 var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}
::selection { background: var(--yellow); color: var(--canvas); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p, ul, figure, dl { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, dd, li, figcaption { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { contain: paint; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
section[id], footer[id] { scroll-margin-top: var(--header-offset); }
:where(a, button, [tabindex]) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(250 189 47 / .22);
}
:where(a, button, [tabindex]):focus-visible {
  position: relative;
  z-index: 20;
  border-radius: .35rem;
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--canvas);
}
.sr-only, .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--canvas);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; }
.noscript-notice {
  position: relative;
  z-index: 50;
  width: min(calc(100% - 1.5rem), var(--page-max));
  margin: 5.5rem auto 0;
  padding: .8rem 1rem;
  border: 1px solid var(--yellow);
  border-radius: var(--radius-pill);
  background: var(--canvas);
  color: var(--cream);
  text-align: center;
}
.kicker, .eyebrow, .node-id, .case-meta, .practice-top, .adr-label, .inventory-label {
  font: 600 .9rem/1.4 var(--mono);
  letter-spacing: .055em;
  text-transform: uppercase;
}
.kicker { color: var(--muted-light); }
.button-link, .text-link, .header-contact {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .76rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  transition: transform 180ms var(--ease-out);
}
.button-link:active, .text-link:active, .header-contact:active,
.menu-toggle:active, .contact-links a:active, .project-shelf a:active {
  transform: scale(.97);
}

/* Header: a compact retro status strip with Material tonal indicators. */
.site-header {
  position: fixed;
  z-index: 40;
  top: .65rem;
  left: 50%;
  width: min(calc(100% - 1rem), 1260px);
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  padding: .46rem;
  border: 1px solid #625c54;
  border-radius: 1.6rem;
  background-color: #242525;
  background-image: radial-gradient(circle, rgb(251 241 199 / .08) 1px, transparent 1px);
  background-size: 5px 5px;
  color: var(--cream);
  box-shadow: 0 10px 0 rgb(12 13 13 / .28), 0 18px 42px rgb(0 0 0 / .3);
  transform: translateX(-50%);
}
.site-header.is-scrolled { box-shadow: 0 5px 0 rgb(250 189 47 / .72), 0 18px 42px rgb(0 0 0 / .38); }
.wordmark {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .58rem;
  padding: .35rem .72rem;
  border-radius: var(--radius-pill);
  background: rgb(17 18 18 / .84);
  font-family: var(--mono);
  font-weight: 780;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.wordmark::before { content: "<"; }
.wordmark::after { content: ">"; }
.wordmark::before, .wordmark::after { color: var(--yellow); font-weight: 850; }
.wordmark strong { font-size: .92rem; }
.site-header nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .22rem;
}
.site-header nav a {
  --nav-tone: var(--tone-green);
  --nav-ink: #29432d;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .48rem .64rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--cream-deep);
  font: 680 .875rem/1 var(--mono);
  letter-spacing: -.02em;
  transition: color 120ms linear, background-color 120ms linear, transform 120ms cubic-bezier(.2, 0, 0, 1);
}
.site-header nav a:nth-child(2) { --nav-tone: var(--tone-blue); --nav-ink: #213e4b; }
.site-header nav a:nth-child(3) { --nav-tone: var(--tone-peach); --nav-ink: #4a3023; }
.site-header nav a:nth-child(4) { --nav-tone: var(--tone-gold); --nav-ink: #473b16; }
.site-header nav a:nth-child(5) { --nav-tone: var(--tone-rose); --nav-ink: #553143; }
.site-header nav a:nth-child(6) { --nav-tone: var(--tone-lavender); --nav-ink: #413150; }
.site-header nav svg, .menu-toggle svg, .header-contact svg { width: 1.22rem; height: 1.22rem; flex: 0 0 auto; }
.site-header nav a svg { color: var(--nav-tone); }
.site-header nav a:hover { background: rgb(251 241 199 / .08); color: var(--cream); }
.site-header nav a:active { transform: scale(.96); }
.site-header nav a[aria-current] { background: var(--nav-tone); color: var(--nav-ink); }
.site-header nav a[aria-current] svg { color: currentColor; }
.header-contact {
  justify-self: end;
  min-width: 118px;
  min-height: 48px;
  padding: .48rem .76rem .48rem .56rem;
  border: 1px solid #d697b5;
  background: var(--tone-rose);
  color: #4f263a;
  box-shadow: none;
}
.header-contact svg { width: 1.35rem; height: 1.35rem; }
.header-contact:hover { background: #f0cada; }
.menu-toggle {
  display: none;
  min-width: 82px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  padding: .52rem .72rem;
  border: 1px solid #80786e;
  border-radius: var(--radius-pill);
  background: #171818;
  color: var(--cream);
  font: 720 .875rem/1 var(--mono);
  cursor: pointer;
}
.menu-toggle svg { color: var(--tone-gold); }
.site-header.menu-open .menu-toggle { border-color: var(--tone-gold); background: var(--tone-gold); color: #473b16; }
.site-header.menu-open .menu-toggle svg { color: currentColor; }

/* Hero: one dominant narrative, one quiet evidence rail. */
.hero {
  position: relative;
  min-height: max(760px, 96svh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding: clamp(7.8rem, 11vw, 10rem) var(--page-edge) clamp(3rem, 5vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--dark-line);
}
.hero-copy { position: relative; z-index: 2; max-width: 1120px; }
.hero-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--muted-dark);
  font-size: .9rem;
  font-weight: 650;
}
.availability-chip {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 40px;
  padding: .55rem .9rem;
  border: 1px solid #738d70;
  border-radius: 1rem;
  background: var(--tone-green);
  color: #263b28;
}
.availability-chip i {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: #315536;
  box-shadow: 0 0 0 3px rgb(49 85 54 / .15);
}
.education-chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: .55rem .9rem;
  border: 1px solid #8a73a0;
  border-radius: 1rem;
  background: var(--tone-lavender);
  color: #3e2f4e;
}
.eyebrow { margin-bottom: 1rem; color: var(--yellow); }
h1 {
  max-width: 10.5ch;
  font-size: clamp(4rem, 7.7vw, 7.9rem);
  font-weight: 820;
  line-height: .88;
  letter-spacing: -.034em;
}
h1 em { color: var(--yellow); font-style: normal; }
.hero-intro {
  max-width: 60ch;
  margin-top: 1.8rem;
  color: var(--cream-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.button-link { border: 1px solid var(--yellow); background: var(--yellow); color: var(--canvas); }
.text-link { border: 1px solid currentColor; background: transparent; }
.hero .text-link { color: var(--cream); }
.button-link:hover, .text-link:hover { transform: translateY(-2px); }
.hero-stack {
  width: max-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: .32rem;
  margin-top: 1.4rem;
  padding: .36rem;
  border: 1px solid #3f4342;
  border-radius: 1.2rem;
  background: #292c2b;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .04);
}
.hero-stack li, .case-tags li, .practice-stack li, .inventory li, .project-shelf li {
  padding: .48rem .72rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  font: 600 .9rem/1.15 var(--mono);
}
.hero-stack li { border: 0; color: var(--canvas); }
.hero-stack li:nth-child(1) { background: var(--tone-blue); color: #213c49; }
.hero-stack li:nth-child(2) { background: var(--tone-peach); color: #523421; }
.hero-stack li:nth-child(3) { background: var(--tone-lavender); color: #3f3050; }
.hero-stack li:nth-child(4) { background: var(--tone-green); color: #263d29; }
.hero-stack li:nth-child(5) { background: var(--tone-rose); color: #522d3b; }
.hero-stack li:nth-child(6) { background: var(--tone-gold); color: #453812; }

/* Decorative stack marks occupy the hero's unused desktop rail. */
.tech-drift {
  position: absolute;
  z-index: 1;
  top: 18%;
  right: clamp(1.5rem, 4vw, 5rem);
  width: min(36vw, 560px);
  height: 66%;
  contain: layout paint;
  pointer-events: none;
}
.drift-item {
  --drift-x: 0px;
  --drift-y: -14px;
  --tear: polygon(3% 5%, 16% 2%, 27% 6%, 40% 1%, 54% 5%, 68% 2%, 81% 6%, 97% 3%, 94% 18%, 98% 31%, 95% 45%, 99% 58%, 95% 71%, 98% 85%, 94% 97%, 78% 94%, 65% 98%, 51% 94%, 38% 99%, 24% 95%, 8% 98%, 5% 83%, 1% 70%, 5% 56%, 2% 42%, 6% 28%);
  position: absolute;
  isolation: isolate;
  width: clamp(94px, 7.4vw, 124px);
  aspect-ratio: 1.12;
  display: grid;
  place-items: center;
  color: var(--yellow);
}
.js .drift-item { animation: tech-drift var(--drift-duration, 8s) ease-in-out var(--drift-delay, 0s) infinite; }
.drift-item::before,
.drift-item::after {
  content: "";
  position: absolute;
  clip-path: var(--tear);
}
.drift-item::before {
  z-index: 0;
  inset: 3px -2px -4px 4px;
  background: #756a58;
}
.drift-item::after {
  z-index: 1;
  inset: 0;
  background:
    repeating-linear-gradient(173deg, transparent 0 6px, rgb(29 32 33 / .045) 7px, transparent 8px 13px),
    linear-gradient(135deg, #fff8dc, var(--cream-soft) 58%, #e3d4aa);
  filter: drop-shadow(0 0 1px rgb(29 32 33 / .72));
}
.drift-item:nth-child(2n) {
  --tear: polygon(2% 8%, 14% 3%, 29% 5%, 43% 1%, 57% 6%, 72% 2%, 86% 5%, 98% 10%, 95% 24%, 99% 38%, 96% 53%, 99% 67%, 94% 82%, 97% 95%, 82% 97%, 67% 93%, 52% 98%, 38% 94%, 22% 99%, 5% 94%, 7% 79%, 2% 64%, 5% 49%, 1% 35%, 6% 21%);
}
.drift-item:nth-child(3n) {
  --tear: polygon(5% 3%, 20% 6%, 34% 1%, 48% 5%, 63% 2%, 77% 7%, 95% 3%, 98% 17%, 94% 31%, 99% 46%, 95% 60%, 98% 76%, 93% 98%, 77% 94%, 62% 99%, 47% 95%, 31% 98%, 17% 93%, 3% 96%, 6% 79%, 1% 65%, 5% 50%, 2% 34%, 7% 18%);
}
.drift-item i {
  position: relative;
  z-index: 2;
  width: 58%;
  aspect-ratio: 1;
  background: repeating-linear-gradient(112deg, #111 0 1.2px, #4b473d 1.2px 2.2px, #181817 2.2px 3.5px);
  filter: drop-shadow(1px 1px 0 rgb(255 255 255 / .2));
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}
.drift-item b {
  position: absolute;
  z-index: -1;
  right: -8%;
  bottom: -17%;
  width: 88%;
  height: 24%;
  border-radius: 50%;
  background: rgb(0 0 0 / .38);
  filter: blur(7px);
}
.js .drift-item b { animation: tech-shadow-drift var(--drift-duration, 8s) ease-in-out var(--drift-delay, 0s) infinite; }
.drift-item:nth-child(1) { top: 3%; left: 52%; --drift-duration: 8.2s; --drift-delay: -2.1s; }
.drift-item:nth-child(2) { top: 12%; left: 11%; --drift-duration: 9.4s; --drift-delay: -6.3s; }
.drift-item:nth-child(3) { top: 31%; left: 69%; --drift-duration: 7.7s; --drift-delay: -4.8s; }
.drift-item:nth-child(4) { top: 40%; left: 28%; --drift-duration: 10.2s; --drift-delay: -1.4s; }
.drift-item:nth-child(5) { top: 59%; left: 76%; --drift-duration: 8.8s; --drift-delay: -7.2s; }
.drift-item:nth-child(6) { top: 68%; left: 6%; --drift-duration: 9.8s; --drift-delay: -3.7s; }
.drift-item:nth-child(7) { top: 81%; left: 48%; --drift-duration: 7.9s; --drift-delay: -5.5s; }
.drift-item:nth-child(8) { top: 49%; left: 1%; --drift-duration: 10.6s; --drift-delay: -8.1s; }
.icon-kubernetes i { -webkit-mask-image: url("media/icons/kubernetes.svg"); mask-image: url("media/icons/kubernetes.svg"); }
.icon-argo i { -webkit-mask-image: url("media/icons/argo.svg"); mask-image: url("media/icons/argo.svg"); }
.icon-opentofu i { -webkit-mask-image: url("media/icons/opentofu.svg"); mask-image: url("media/icons/opentofu.svg"); }
.icon-linux i { -webkit-mask-image: url("media/icons/linux.svg"); mask-image: url("media/icons/linux.svg"); }
.icon-proxmox i { -webkit-mask-image: url("media/icons/proxmox.svg"); mask-image: url("media/icons/proxmox.svg"); }
.icon-git i { -webkit-mask-image: url("media/icons/git.svg"); mask-image: url("media/icons/git.svg"); }
.icon-cloudflare i { -webkit-mask-image: url("media/icons/cloudflare.svg"); mask-image: url("media/icons/cloudflare.svg"); }
.icon-docker i { -webkit-mask-image: url("media/icons/docker.svg"); mask-image: url("media/icons/docker.svg"); }

@keyframes tech-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(var(--drift-x), var(--drift-y), 0) rotate(2deg); }
}
@keyframes tech-shadow-drift {
  0%, 100% { transform: translate3d(-4px, 1px, 0) scale(.9); }
  50% { transform: translate3d(8px, 7px, 0) scale(1.06); }
}

.about {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 1.5rem), var(--page-max));
  min-height: min(760px, 84svh);
  display: grid;
  grid-template-columns: minmax(340px, .72fr) minmax(0, 1.28fr);
  margin: .75rem auto;
  overflow: hidden;
  border-radius: var(--radius-island);
  background: var(--canvas-soft);
}
.about-sky {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--yellow);
}
.about-sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
.about::after { display: none; }
.about-portrait {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.about-portrait::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: .16;
  background:
    radial-gradient(circle at 30% 25%, transparent 0 35%, rgb(29 32 33 / .14) 80%),
    repeating-linear-gradient(to bottom, transparent 0 6px, rgb(29 32 33 / .55) 7px, transparent 8px 12px);
  pointer-events: none;
}
.about-portrait picture { width: 100%; min-width: 0; align-self: end; }
.about-portrait img {
  width: 100%;
  max-height: 780px;
  object-fit: contain;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 78%, transparent 100%);
}
.about-portrait > p {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1rem;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-pill);
  background: rgb(29 32 33 / .94);
  color: var(--cream);
}
.about-portrait > p span { color: var(--cream-deep); }
.about-portrait > p strong { color: var(--yellow); }
.about-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  align-self: stretch;
  margin: 1rem;
  padding: clamp(1.35rem, 2.8vw, 2.6rem);
  border: 1px solid rgb(29 32 33 / .18);
  border-radius: calc(var(--radius-island) - .65rem);
  background: #f0ead9;
  color: var(--canvas);
}
.about-copy h2, .section-heading h2, .work-heading h2, .operations-heading h2,
.decisions > header h2, .resume-copy h2, .footer-lead h2 {
  font-size: clamp(2.5rem, 4.65vw, 5.2rem);
  font-weight: 820;
  line-height: .92;
  letter-spacing: -.032em;
}
.about-copy h2 {
  max-width: 11ch;
  margin-top: .85rem;
  font-size: clamp(2.7rem, 4vw, 4.65rem);
}
.about-intro {
  max-width: 66ch;
  margin-top: 1.1rem;
  font-size: 1.02rem;
}
.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: 1.2rem;
}
.about-facts div {
  min-width: 0;
  padding: .78rem .9rem;
  border: 1px solid var(--light-line);
  border-radius: 1rem;
}
.about-facts dt { color: var(--muted-light); font-size: .9rem; font-weight: 800; }
.about-facts dd { margin: .28rem 0 0; font-size: .92rem; font-weight: 700; line-height: 1.35; }
.about-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin-top: 1.2rem;
}
.about-proof li {
  min-width: 0;
  padding: .8rem;
  border: 1px solid transparent;
  border-radius: 1.15rem;
  background: var(--cream-soft);
}
.about-proof strong, .about-proof small { display: block; }
.about-proof strong { line-height: 1.2; }
.about-proof li:nth-child(1) { background: var(--tone-green); border-color: #87a884; }
.about-proof li:nth-child(2) { background: var(--tone-blue); border-color: #7ca0b5; }
.about-proof li:nth-child(3) { background: var(--tone-peach); border-color: #ba8f73; }
.about-proof small { margin-top: .25rem; color: var(--muted-light); font-size: .9rem; line-height: 1.3; }
.about-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.about-actions a {
  min-width: 92px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem .85rem;
  border: 1px solid var(--canvas);
  border-radius: var(--radius-pill);
  font-weight: 800;
  transition: transform 180ms var(--ease-out);
}
.about-actions a:hover { transform: translateY(-2px); }

/* Platform atlas */
.atlas {
  width: min(calc(100% - 1.5rem), var(--page-max));
  margin: .75rem auto;
  padding: clamp(2.5rem, 4vw, 4.25rem) var(--pad);
  border: 1px solid #d89f1f;
  border-radius: var(--radius-island);
  background-color: var(--cream-soft);
  background-image: url("media/atlas-field.webp");
  background-position: center;
  background-size: cover;
  color: var(--canvas);
}
.section-heading, .work-heading, .operations-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(1.6rem, 2.8vw, 2.8rem);
}
.section-heading .kicker, .work-heading .kicker, .operations-heading .kicker { grid-column: 1 / -1; }
.section-heading h2, .work-heading h2, .operations-heading h2 { max-width: 12ch; }
.section-heading > p:last-child, .work-heading > p:last-child, .operations-heading > p:last-child {
  max-width: 44ch;
  justify-self: end;
  color: var(--muted-light);
}
.atlas .section-heading,
.operations-heading {
  border-radius: .75rem;
  background: rgb(235 219 178 / .96);
  box-shadow: 0 0 0 clamp(.65rem, 1.2vw, 1.2rem) rgb(235 219 178 / .96);
}
.atlas-map {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) 36px repeat(3, minmax(0, 1fr));
  align-items: stretch;
  border-radius: var(--radius-card);
  background: rgb(235 219 178 / .94);
  box-shadow: 0 0 0 .7rem rgb(235 219 178 / .94);
}
.map-node {
  min-width: 0;
  min-height: 228px;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 1.6vw, 1.45rem);
  border: 1px solid var(--light-line);
  border-radius: var(--radius-card);
  background: var(--cream);
}
.map-node h3 { margin-top: .8rem; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; letter-spacing: -.025em; }
.map-node > p { margin-top: .45rem; color: var(--muted-light); font-size: .94rem; }
.map-node ul { padding-top: 1.1rem; font-size: .9rem; line-height: 1.65; overflow-wrap: anywhere; }
.map-node li + li { margin-top: .15rem; }
.map-root { grid-row: 1; background: var(--canvas); color: var(--cream); border-color: var(--dark-line); }
.map-root > p { color: var(--muted-dark); }
.map-root ul { color: var(--cream-soft); }
.node-id { color: var(--muted-light); }
.map-root .node-id { color: var(--yellow); }
.map-bus { position: relative; min-height: 100%; }
.map-bus::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--yellow);
}
.map-bus span { display: none; }
.map-k3s, .map-amp, .map-forge { margin-left: .65rem; }
.inventory {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--light-line);
  border-radius: var(--radius-card);
  background: var(--cream);
}
.inventory-label { padding: .55rem .2rem; color: var(--muted-light); }
.inventory ul { display: flex; flex-wrap: wrap; gap: .45rem; }
.inventory li { border-color: var(--light-line); color: var(--canvas); }
.storage-note {
  grid-column: 2;
  padding-top: .85rem;
  border-top: 1px solid var(--light-line);
  color: var(--muted-light);
  font-size: .94rem;
}
.storage-note strong { color: var(--canvas); }

/* Work */
.work {
  width: min(calc(100% - 1.5rem), var(--page-max));
  margin: .75rem auto;
  padding: clamp(2.7rem, 4.5vw, 4.5rem) var(--pad);
  overflow: hidden;
  border: 1px solid #5b7f7b;
  border-radius: var(--radius-island);
  background-color: var(--canvas);
  background-image: url("media/work-water.webp");
  background-position: center;
  background-size: cover;
}
.work-heading {
  border-radius: .75rem;
  background: rgb(29 32 33 / .96);
  box-shadow: 0 0 0 clamp(.65rem, 1.2vw, 1.2rem) rgb(29 32 33 / .96);
}
.work-heading .kicker { color: var(--yellow); }
.work-heading > p:last-child { color: var(--muted-dark); }
.project-console { margin-top: clamp(1.6rem, 3vw, 3rem); }
.project-tabs { display: none; }
.js .project-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin-bottom: .7rem;
  padding: .48rem;
  border: 1px solid #625c54;
  border-radius: 1.8rem;
  background: rgb(29 32 33 / .94);
}
.project-tabs button {
  --tab-tone: var(--tone-green);
  --tab-ink: #29432d;
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 .7rem;
  padding: .62rem .8rem;
  border: 1px solid transparent;
  border-radius: 1.35rem;
  background: transparent;
  color: var(--cream-deep);
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms linear, color 140ms linear, transform 140ms cubic-bezier(.2, 0, 0, 1);
}
.project-tabs button:nth-child(2) { --tab-tone: var(--tone-peach); --tab-ink: #4a3023; }
.project-tabs button:nth-child(3) { --tab-tone: var(--tone-blue); --tab-ink: #213e4b; }
.project-tabs button:hover { background: rgb(251 241 199 / .08); color: var(--cream); }
.project-tabs button:active { transform: scale(.98); }
.project-tabs button[aria-selected="true"] { background: var(--tab-tone); color: var(--tab-ink); }
.project-tabs svg { grid-row: 1 / 3; width: 32px; height: 32px; color: var(--tab-tone); }
.project-tabs button[aria-selected="true"] svg { color: currentColor; }
.project-tabs span { font: 680 .875rem/1.2 var(--mono); letter-spacing: .045em; text-transform: uppercase; }
.project-tabs strong { min-width: 0; font-size: 1rem; line-height: 1.2; }
.project-stage {
  border: 1px solid #625c54;
  border-radius: calc(var(--radius-card) + .35rem);
  background: rgb(18 20 20 / .94);
  box-shadow: 0 9px 0 rgb(0 0 0 / .26), 0 22px 48px rgb(0 0 0 / .2);
}
.project-panel {
  --project-tone: var(--tone-green);
  --project-ink: #29432d;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--cream);
  color: var(--canvas);
}
.project-panel + .project-panel { margin-top: 1rem; }
.project-console.is-ready .project-panel { display: none; }
.project-console.is-ready .project-panel.is-active { display: grid; }
.case-tiger { --project-tone: var(--tone-peach); --project-ink: #4a3023; }
.case-wizsearch { --project-tone: var(--tone-blue); --project-ink: #213e4b; }
.case-copy { min-width: 0; display: flex; flex-direction: column; padding: clamp(1.25rem, 2.2vw, 2rem); }
.case-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #595147; }
.case-meta > span { color: var(--project-ink); }
.case-meta a { min-height: 44px; display: inline-flex; align-items: center; gap: .38rem; padding: .35rem .2rem; color: var(--project-ink); text-decoration: underline; text-underline-offset: .24em; }
.case-meta a svg { width: 1.1rem; height: 1.1rem; }
.case-copy h3 { margin-top: 1rem; color: var(--project-ink); font-size: clamp(2.2rem, 4vw, 4.35rem); line-height: .92; letter-spacing: -.03em; }
.case-copy > .case-status { margin-top: .6rem; color: #595147; font-size: .9rem; font-weight: 700; }
.case-brief { display: grid; gap: .65rem; margin-top: 1.1rem; }
.case-brief div { padding-top: .8rem; border-top: 1px solid var(--light-line); }
.case-brief dt { color: var(--project-ink); font-size: .9rem; font-weight: 800; text-transform: uppercase; }
.case-brief dd { margin: .3rem 0 0; line-height: 1.48; }
.case-tags { display: flex; flex-wrap: wrap; gap: .36rem; margin-top: 1rem; }
.case-tags li { border-color: color-mix(in srgb, var(--project-ink) 38%, transparent); background: var(--project-tone); color: var(--project-ink); }
.case-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.1rem; }
.case-outcomes p { padding-top: .85rem; border-top: 1px solid var(--light-line); }
.case-outcomes strong { display: block; color: var(--project-ink); font-size: clamp(2rem, 3.2vw, 3.2rem); line-height: 1; letter-spacing: -.025em; }
.case-outcomes span { display: block; margin-top: .45rem; color: #595147; font-size: .9rem; }
.case-media {
  position: relative;
  isolation: isolate;
  min-width: 0;
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-left: 8px solid var(--project-tone);
  background: #121416;
  color: var(--cream);
}
.case-media::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 52px 0 0;
  opacity: .26;
  background: radial-gradient(circle at center, transparent 45%, rgb(0 0 0 / .52) 115%), repeating-linear-gradient(to bottom, transparent 0 4px, rgb(251 241 199 / .09) 5px, transparent 6px 9px);
  mix-blend-mode: screen;
  pointer-events: none;
}
.media-toolbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid #34383a;
  color: var(--muted-dark);
  font: 600 .9rem/1.3 var(--mono);
}
.media-toolbar::before { content: ""; width: .62rem; height: .62rem; flex: 0 0 auto; border-radius: 50%; background: var(--project-tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--project-tone) 10%, transparent), 0 0 12px color-mix(in srgb, var(--project-tone) 45%, transparent); }
.media-toolbar span:first-of-type { margin-right: auto; }
.case-media img {
  width: calc(100% - clamp(1rem, 2.5vw, 2rem));
  height: calc(100% - clamp(1rem, 2.5vw, 2rem));
  max-height: 540px;
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  border: 1px solid #484b4c;
  border-radius: 1rem;
  background: #111315;
  object-fit: contain;
  filter: saturate(.82) contrast(1.07) sepia(.04);
  transition: transform 280ms var(--ease-out), filter 220ms var(--ease-out);
}
.case-study:hover .case-media img { transform: scale(1.012); filter: saturate(.96) contrast(1.07); }
.topology-media img { aspect-ratio: 1100 / 1032; }
.product-media img { aspect-ratio: 1.56 / 1; object-position: center; }
.case-media figcaption { padding: .8rem 1rem; border-top: 1px solid #34383a; color: var(--muted-dark); font-size: .9rem; }
.case-tiger .case-media, .case-wizsearch .case-media { grid-column: 2; grid-row: 1; }
.case-tiger .case-copy, .case-wizsearch .case-copy { grid-column: 1; grid-row: 1; }
.project-shelf { margin-top: .8rem; }
.project-shelf article {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(180px, .42fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid #817445;
  border-radius: 1.65rem;
  background: #302d25;
}
.project-shelf article > svg { width: 38px; height: 38px; padding: .45rem; border-radius: .85rem; background: var(--tone-gold); color: #473b16; }
.project-shelf article > div > span { color: var(--tone-gold); font: 650 .875rem/1.3 var(--mono); }
.project-shelf h3 { font-size: clamp(1.65rem, 2.6vw, 2.4rem); letter-spacing: -.025em; }
.project-shelf p { color: var(--muted-dark); font-size: .94rem; }
.project-shelf a { min-height: 46px; display: inline-flex; align-items: center; gap: .42rem; padding: .6rem .82rem; border: 1px solid var(--tone-gold); border-radius: var(--radius-pill); color: var(--tone-gold); font-weight: 800; }
.project-shelf a svg { width: 1.15rem; height: 1.15rem; }

/* Operating practice */
.operations {
  width: min(calc(100% - 1.5rem), var(--page-max));
  margin: .75rem auto;
  padding: clamp(2.5rem, 4vw, 4.25rem) var(--pad);
  border: 1px solid #737219;
  border-radius: var(--radius-island);
  background-color: var(--cream-soft);
  background-image: url("media/operations-forest.webp");
  background-position: center;
  background-size: cover;
  color: var(--canvas);
}
.operations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border-radius: var(--radius-card);
  background: rgb(235 219 178 / .94);
  box-shadow: 0 0 0 .7rem rgb(235 219 178 / .94);
}
.practice-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(1.15rem, 1.8vw, 1.65rem);
  border: 1px solid var(--light-line);
  border-radius: var(--radius-card);
  background: var(--cream);
}
.practice-top { display: flex; justify-content: space-between; color: var(--muted-light); }
.practice-metric { display: flex; align-items: end; gap: .75rem; margin-top: 1.2rem; }
.practice-metric strong { color: var(--canvas); font-size: clamp(3rem, 5.2vw, 5.5rem); line-height: .8; letter-spacing: -.035em; }
.practice-metric span { max-width: 10ch; color: var(--muted-light); font-size: .9rem; font-weight: 750; line-height: 1.25; }
.practice-card h3 { margin-top: 1.2rem; font-size: clamp(1.45rem, 2.1vw, 2.1rem); line-height: 1.02; letter-spacing: -.02em; }
.practice-card > p:not(.practice-top):not(.practice-metric) { margin-top: .8rem; color: var(--muted-light); }
.practice-stack { display: flex; flex-wrap: wrap; gap: .42rem; padding-top: 1.4rem; }
.practice-stack li { border-color: var(--light-line); }
.practice-deliver .practice-top, .practice-deliver .practice-metric strong, .practice-deliver h3 { color: #365a34; }
.practice-observe .practice-top, .practice-observe .practice-metric strong, .practice-observe h3 { color: #31586a; }
.practice-recover .practice-top, .practice-recover .practice-metric strong, .practice-recover h3 { color: #74465a; }
.practice-deliver .practice-stack li { background: var(--tone-green); color: #29432d; }
.practice-observe .practice-stack li { background: var(--tone-blue); color: #213e4b; }
.practice-recover .practice-stack li { background: var(--tone-rose); color: #553143; }

/* Decisions */
.decisions {
  width: min(calc(100% - 1.5rem), var(--page-max));
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: .75rem auto;
  padding: clamp(2.7rem, 4.5vw, 4.5rem) var(--pad);
  overflow: hidden;
  border: 1px solid #35696a;
  border-radius: var(--radius-island);
  background-color: var(--canvas);
  background-image: url("media/decisions-network.webp");
  background-position: center;
  background-size: cover;
}
.decisions > header {
  align-self: start;
  position: sticky;
  top: calc(var(--header-offset) + 1rem);
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-card);
  background: rgb(29 32 33 / .95);
}
.decisions .kicker { color: var(--yellow); }
.decisions > header h2 { max-width: 10ch; margin-top: 1rem; }
.decisions > header > p:not(.kicker) { max-width: 42ch; margin-top: 1.3rem; color: var(--muted-dark); }
.decisions > header .text-link { margin-top: 1.3rem; color: var(--cream); }
.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  border-radius: var(--radius-card);
  background: rgb(29 32 33 / .95);
  box-shadow: 0 0 0 .7rem rgb(29 32 33 / .95);
}
.decision-grid article {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-card);
  background: var(--canvas-soft);
}
.adr-number { display: inline-flex; color: var(--yellow); font: 700 1rem/1 var(--mono); }
.adr-label { margin-top: 1.4rem; color: var(--muted-dark); }
.decision-grid h3 { margin-top: .65rem; font-size: clamp(1.45rem, 2.3vw, 2.35rem); line-height: 1.05; letter-spacing: -.02em; }
.decision-grid article > p { margin-top: .75rem; color: var(--muted-dark); }
.decision-grid article > div { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--dark-line); }
.decision-grid article > div strong { color: var(--yellow); font-size: .9rem; text-transform: uppercase; }
.decision-grid article > div p { margin-top: .35rem; color: var(--cream-soft); }
.decision-grid article:first-child .adr-number,
.decision-grid article:first-child .adr-label,
.decision-grid article:first-child > div strong { color: var(--tone-blue); }
.decision-grid article:last-child .adr-number,
.decision-grid article:last-child .adr-label,
.decision-grid article:last-child > div strong { color: var(--tone-rose); }

/* Resume */
.resume {
  width: min(calc(100% - 1.5rem), var(--page-max));
  margin: .75rem auto;
  padding: clamp(2rem, 3.2vw, 3.25rem) var(--pad);
  overflow: hidden;
  border: 1px solid #9c711c;
  border-radius: var(--radius-island);
  background-color: var(--canvas);
  background-image: url("media/resume-board.webp");
  background-position: center;
  background-size: cover;
}
.resume-shell {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}
.resume-copy {
  padding: clamp(1.25rem, 2vw, 1.9rem);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-card);
  background: rgb(29 32 33 / .96);
}
.resume-copy .kicker { color: var(--yellow); }
.resume-copy h2 { max-width: 10ch; margin-top: .8rem; font-size: clamp(2.6rem, 4vw, 4.5rem); }
.resume-copy > p:not(.kicker) { max-width: 44ch; margin-top: 1.2rem; color: var(--muted-dark); }
.resume-summary { display: grid; gap: .55rem; margin-top: 1.4rem; }
.resume-summary div { padding: .8rem .9rem; border: 1px solid var(--dark-line); border-radius: 1rem; background: var(--canvas-soft); }
.resume-summary dt { color: var(--tone-gold); font: 700 .86rem/1.2 var(--mono); text-transform: uppercase; }
.resume-summary div:nth-child(2) dt { color: var(--tone-blue); }
.resume-summary div:nth-child(3) dt { color: var(--tone-green); }
.resume-summary dd { margin: .35rem 0 0; color: var(--cream-soft); font-size: .94rem; font-weight: 700; line-height: 1.35; }
.resume-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.resume-actions .text-link { color: var(--cream); }
.resume-viewer {
  position: relative;
  width: min(100%, 550px);
  justify-self: end;
  padding: .5rem;
  border: 1px solid #5f5a52;
  border-radius: 1.65rem;
  background: #202222;
  box-shadow: inset 0 1px 0 #5f5a52, inset 0 -3px 0 #0e0f0f, 0 8px 0 #111313, 0 20px 40px rgb(0 0 0 / .28);
}
.resume-viewer::before,
.resume-viewer::after {
  content: "+";
  position: absolute;
  z-index: 4;
  bottom: .82rem;
  color: #777068;
  font: 700 .72rem/1 var(--mono);
}
.resume-viewer::before { left: .85rem; }
.resume-viewer::after { right: .85rem; }
.viewer-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem .85rem;
  color: var(--cream-deep);
  font: 650 .85rem/1.2 var(--mono);
}
.viewer-toolbar span { display: inline-flex; align-items: center; gap: .5rem; }
.viewer-toolbar i {
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--tone-green);
  box-shadow: 0 0 10px rgb(184 216 176 / .7);
}
.resume-viewer iframe {
  width: 100%;
  aspect-ratio: 8.5 / 11;
  display: block;
  border: 1px solid #8c8579;
  border-radius: 1rem 1rem .7rem .7rem;
  background: #fff;
  box-shadow: inset 0 0 0 2px #111313;
}
.resume-viewer p { margin: .65rem 1.7rem .35rem; color: var(--cream-deep); font-size: .85rem; line-height: 1.35; }

/* Footer */
footer {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 1.5rem), var(--page-max));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .48fr) minmax(360px, .9fr);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  margin: .75rem auto 0;
  padding: clamp(2.8rem, 4.5vw, 4.5rem) var(--pad) 1.5rem;
  overflow: hidden;
  border: 1px solid #9b5877;
  border-radius: var(--radius-island) var(--radius-island) 0 0;
  background-color: var(--canvas);
  background-image: url("media/availability-roses.webp");
  background-position: center;
  background-size: cover;
}
footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    repeating-linear-gradient(to bottom, transparent 0 5px, rgb(231 189 203 / .055) 6px, transparent 7px 10px),
    linear-gradient(105deg, rgb(29 32 33 / .94) 0 32%, rgb(29 32 33 / .72) 62%, rgb(29 32 33 / .82));
}
.footer-lead .kicker { color: var(--yellow); }
.footer-lead h2 { max-width: 10ch; margin-top: 1rem; }
.footer-lead > p:last-child { max-width: 48ch; margin-top: 1.25rem; color: var(--muted-dark); }
.availability {
  position: relative;
  isolation: isolate;
  align-self: center;
  min-height: 205px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid #b16286;
  border-radius: var(--radius-card);
  background-color: #50303e;
  background-image: linear-gradient(to bottom, rgb(50 25 37 / .2), rgb(50 25 37 / .78)), url("media/availability-roses.webp");
  background-position: 60% center;
  background-size: cover;
  color: var(--cream);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 6px 0 #563744;
}
.availability::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 75% 18%, rgb(231 189 203 / .12), transparent 36%),
    repeating-linear-gradient(to bottom, transparent 0 5px, rgb(251 241 199 / .055) 6px, transparent 7px 10px);
}
.availability span { display: block; margin-bottom: .55rem; color: #efb6cf; font-size: .9rem; font-weight: 750; text-transform: uppercase; }
.availability strong { font-size: clamp(1.25rem, 2vw, 2rem); line-height: 1.08; }
.availability small { margin-top: 1rem; color: #f5d8e5; font: 650 .85rem/1.3 var(--mono); }
.contact-links { display: grid; align-content: center; gap: .62rem; font-style: normal; }
.contact-links a {
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .7rem .85rem;
  border: 1px solid transparent;
  border-radius: 1.35rem;
  background: var(--tone-peach);
  color: #432d20;
  font-weight: 750;
  transition: transform 180ms var(--ease-out);
}
.contact-links a:nth-child(2) { background: var(--tone-lavender); color: #3f3050; }
.contact-links a:nth-child(3) { background: var(--tone-blue); color: #213c49; }
.contact-links a > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(29 32 33 / .84);
  color: var(--cream);
  font-style: normal;
}
.contact-links a > i svg { width: 23px; height: 23px; }
.contact-email i { color: #ffb25c !important; }
.contact-github i { color: #ddc7f3 !important; }
.contact-linkedin i { color: #73c7f3 !important; }
.contact-links a > span { min-width: 0; display: grid; line-height: 1.2; overflow-wrap: anywhere; }
.contact-links small { font-size: .85rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.contact-links strong { margin-top: .18rem; font: 700 .86rem/1.25 var(--mono); }
.contact-links b { font-size: 1rem; }
.contact-links a:hover { transform: translateX(.25rem); }
.footer-note {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(231 189 203 / .28);
  color: var(--muted-dark);
  font-size: .9rem;
}

/* Stage 2 visibility gate remains the upper bound for any finite reveal. */
[data-motion-region]:not([data-visible="true"]),
[data-motion-region]:not([data-visible="true"]) *,
[data-motion-region]:not([data-visible="true"])::before,
[data-motion-region]:not([data-visible="true"])::after,
[data-motion-region]:not([data-visible="true"]) *::before,
[data-motion-region]:not([data-visible="true"]) *::after {
  animation-play-state: paused !important;
}

/* Responsive structure */
@media (max-width: 1180px) {
  .tech-drift { display: none; }
  .atlas-map { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
  .map-root { grid-column: 1 / -1; min-height: 0; }
  .map-bus { display: none; }
  .map-k3s, .map-amp, .map-forge { margin-left: 0; }
}

@media (max-width: 1000px) {
  .contact-label { display: none; }
  .header-contact { min-width: 48px; padding: .44rem; }
  .resume-shell { grid-template-columns: 1fr; }
  .resume-viewer { width: 100%; justify-self: stretch; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto minmax(0, 1fr) auto auto; column-gap: .55rem; }
  .menu-toggle { display: inline-flex; grid-column: 3; }
  .site-header nav {
    position: absolute;
    top: calc(100% + .55rem);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
    padding: .55rem;
    border: 1px solid #625c54;
    border-radius: 1.65rem;
    background-color: rgb(36 37 37 / .985);
    background-image: radial-gradient(circle, rgb(251 241 199 / .08) 1px, transparent 1px);
    background-size: 5px 5px;
    box-shadow: 0 5px 0 rgb(250 189 47 / .72), 0 18px 42px rgb(0 0 0 / .4);
    transform-origin: top center;
    transition: opacity 110ms linear, transform 120ms cubic-bezier(.2, 0, 0, 1);
  }
  .js .site-header nav { opacity: 0; visibility: hidden; transform: translateY(-8px); }
  .js .site-header.menu-open nav { opacity: 1; visibility: visible; transform: none; }
  .site-header nav a { min-height: 54px; justify-content: flex-start; padding-inline: .85rem; background: rgb(17 18 18 / .7); }
  .site-header nav a[aria-current] { background: var(--nav-tone); }
  .header-contact { grid-column: 4; margin-left: .12rem; }
}

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .about { min-height: 0; grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr); }
  .decisions { grid-template-columns: 1fr; }
  .section-heading, .work-heading, .operations-heading { grid-template-columns: 1fr; gap: 1rem; }
  .section-heading > p:last-child, .work-heading > p:last-child, .operations-heading > p:last-child { justify-self: start; }
  .atlas-map, .operations-grid, .project-shelf { grid-template-columns: 1fr; }
  .map-root { grid-column: auto; }
  .decisions > header { position: static; }
  footer { grid-template-columns: repeat(2, 1fr); }
  .footer-lead { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .project-panel, .project-console.is-ready .project-panel.is-active { grid-template-columns: 1fr; }
  .case-tiger .case-copy, .case-wizsearch .case-copy,
  .case-tiger .case-media, .case-wizsearch .case-media { grid-column: 1; grid-row: auto; }
  .case-tiger .case-copy, .case-wizsearch .case-copy { grid-row: 1; }
  .case-media { grid-row: 2; border-top: 8px solid var(--project-tone); border-left: 0; }
  .case-media img { height: auto; max-height: 360px; margin-block: 1rem; }
}

@media (max-width: 640px) {
  :root { --header-offset: 82px; --pad: 1.25rem; }
  body { font-size: 1rem; line-height: 1.5; }
  .site-header { top: .35rem; width: calc(100% - .7rem); min-height: 58px; column-gap: .35rem; padding: .34rem; border-radius: 1.35rem; }
  .wordmark { min-width: 44px; gap: .42rem; padding: .35rem .55rem; }
  .wordmark strong { max-width: 8.7rem; overflow: hidden; font-size: .875rem; text-overflow: ellipsis; }
  .header-contact { min-width: 44px; min-height: 44px; margin-left: .12rem; padding: .5rem; }
  .menu-toggle { min-width: 68px; min-height: 44px; padding: .55rem .55rem; }
  .menu-toggle span { font-size: .9rem; }
  .hero { padding: 5.75rem var(--page-edge) 2rem; }
  .hero-status { align-items: center; margin-bottom: 1rem; }
  h1 { font-size: clamp(2.9rem, 14.5vw, 4.65rem); }
  .hero-intro { margin-top: 1rem; line-height: 1.46; }
  .hero-actions { margin-top: 1rem; }
  .hero-stack { margin-top: .85rem; }
  .hero-actions { display: grid; }
  .button-link, .text-link { width: 100%; }
  .about, .atlas, .work, .operations, .decisions, .resume, footer { width: calc(100% - 2rem); }
  .about { grid-template-columns: 1fr; }
  .about-portrait { min-height: 255px; }
  .about-portrait img { width: min(76%, 300px); max-height: 300px; margin-inline: auto; }
  .about-portrait > p { font-size: .9rem; }
  .about-copy { margin: .5rem; padding: .9rem; border-radius: 1.35rem; }
  .about-copy h2 { font-size: clamp(2rem, 9vw, 3.15rem); }
  .about-intro, .about-facts, .about-proof, .about-actions { margin-top: .75rem; }
  .about-facts div { padding: .62rem .7rem; }
  .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-facts div:nth-child(-n+2) { grid-column: 1 / -1; }
  .about-proof { grid-template-columns: 1fr; gap: .35rem; }
  .about-proof li { display: block; padding: .65rem .75rem; }
  .about-proof strong, .about-proof small { margin-top: 0; }
  .about-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-actions a { min-width: 0; }
  .case-outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .decision-grid { grid-template-columns: 1fr; }
  .atlas, .operations { padding: 1.7rem 1rem; }
  .section-heading, .work-heading, .operations-heading { margin-bottom: 1.25rem; }
  .section-heading h2, .work-heading h2, .operations-heading h2,
  .decisions > header h2, .resume-copy h2, .footer-lead h2 { font-size: clamp(2.2rem, 9.8vw, 3.55rem); }
  .atlas-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .map-node { min-height: 0; padding: 1rem; }
  .map-node h3 { font-size: 1.75rem; }
  .map-node ul { padding-top: .65rem; font-size: .86rem; line-height: 1.4; }
  .inventory { grid-template-columns: 1fr; }
  .inventory ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem .75rem; }
  .inventory li { padding: .28rem 0; border: 0; border-radius: 0; }
  .storage-note { grid-column: 1; }
  .work { margin-block: .5rem; padding: 1.75rem 1rem; }
  .js .project-tabs { gap: .3rem; padding: .35rem; border-radius: 1.35rem; }
  .project-tabs button { min-height: 62px; grid-template-columns: 1fr; grid-template-rows: auto auto; justify-items: center; gap: .25rem; padding: .5rem .25rem; border-radius: 1rem; text-align: center; }
  .project-tabs svg { grid-row: auto; width: 25px; height: 25px; }
  .project-tabs strong { display: none; }
  .project-tabs span { font-size: .875rem; letter-spacing: -.01em; text-transform: none; }
  .case-copy { padding: .9rem; }
  .case-copy h3 { margin-top: .65rem; font-size: 2.05rem; }
  .case-brief { gap: .45rem; margin-top: .8rem; }
  .case-brief div { padding-top: .45rem; }
  .case-brief dd { font-size: .88rem; line-height: 1.4; }
  .case-tags, .case-outcomes { margin-top: 1rem; }
  .case-outcomes { gap: .35rem; }
  .case-outcomes strong { font-size: 2.35rem; }
  .case-outcomes span { margin-top: .3rem; }
  .topology-media img { max-height: 175px; }
  .media-toolbar { min-height: 46px; padding: .6rem .8rem; }
  .case-media figcaption { padding: .65rem .8rem; }
  .project-shelf article { grid-template-columns: 42px minmax(0, 1fr); padding: .9rem; }
  .project-shelf article > svg { width: 38px; height: 38px; }
  .project-shelf p, .project-shelf a { grid-column: 2; }
  .project-shelf a { justify-self: start; margin-top: .25rem; }
  .practice-card { padding: .9rem; }
  .practice-metric, .practice-card h3 { margin-top: .8rem; }
  .practice-metric strong { font-size: 2.75rem; }
  .practice-card > p:not(.practice-top):not(.practice-metric) { margin-top: .65rem; font-size: .96rem; line-height: 1.46; }
  .practice-stack { padding-top: .8rem; }
  .practice-stack { display: none; }
  .decisions { gap: 1.15rem; padding: 2rem 1rem; }
  .decisions > header { padding: .9rem; }
  .decisions > header > p:not(.kicker), .decisions > header .text-link { margin-top: .85rem; }
  .decision-grid article { padding: .9rem; }
  .adr-label { margin-top: .85rem; }
  .decision-grid article > div { margin-top: 1rem; }
  .resume { margin-block: .5rem; padding: 1.75rem 1rem; }
  .resume-copy { padding: .9rem; }
  .resume-copy h2, .resume-copy > p:not(.kicker), .resume-summary, .resume-actions { margin-top: .85rem; }
  footer { grid-template-columns: 1fr; }
  .footer-lead, .footer-note { grid-column: 1; }
  footer { gap: 1rem; margin-top: .5rem; padding: 2rem 1rem 1rem; border-radius: 2rem 2rem 0 0; }
  .footer-lead h2 { margin-top: .7rem; }
  .footer-lead > p:last-child, .footer-note { margin-top: .8rem; }
  .contact-links { grid-template-columns: 1fr; }
  .contact-links a:first-child { grid-column: auto; }
  .availability { min-height: 145px; }
}

@media (max-width: 700px) {
  .atlas { background-image: url("media/atlas-field-800.webp"); }
  .work { background-image: url("media/work-water-800.webp"); }
  .operations { background-image: url("media/operations-forest-800.webp"); }
  .decisions { background-image: url("media/decisions-network-800.webp"); }
  .resume { background-image: url("media/resume-board-800.webp"); }
  .resume-viewer { display: none; }
}

@media (max-width: 380px) {
  .site-header { column-gap: .4rem; }
  .wordmark { gap: .15rem; padding-inline: .35rem; }
  .wordmark strong { font-size: .875rem; }
  .menu-toggle { min-width: 60px; padding-inline: .42rem; }
  .hero-status { align-items: flex-start; flex-direction: column; }
  .availability-chip { padding-inline: .7rem; font-size: .9rem; }
  .media-toolbar span:last-child { display: none; }
  .hero-stack li, .case-tags li, .practice-stack li, .inventory li, .project-shelf li { font-size: .9rem; }
}

/* Motion accessibility and contrast resilience */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .case-study:hover .case-media img { transform: none; }
}

@media (prefers-contrast: more) {
  :root { --dark-line: #8d8170; --light-line: #736a5e; --muted-dark: #f1dfba; --muted-light: #302c28; }
  :where(a, button, [tabindex]):focus-visible { outline-width: 4px; }
}

@media (forced-colors: active) {
  * { forced-color-adjust: auto; }
  .availability-chip i { border: 1px solid currentColor; }
}

@media print {
  @page { margin: .55in; }
  *, *::before, *::after { animation: none !important; transition: none !important; box-shadow: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  body { font-size: 10pt; }
  .skip-link, .site-header, .about-sky, .case-media, .placement-flow, .about-actions, .project-shelf { display: none !important; }
  .hero, .about, .atlas, .work, .operations, .decisions, footer {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: .25in 0;
    border: 0;
    border-radius: 0;
    background: #fff !important;
    color: #000 !important;
  }
  .about, .case-platform, .case-pair, .operations-grid, .decision-grid, .decisions, footer { display: block; }
  .case-study, .about-copy, .map-node, .practice-card, .decision-grid article, .availability, .contact-links a {
    margin-bottom: .14in;
    border: 1px solid #777;
    background: #fff !important;
    color: #000 !important;
    break-inside: avoid;
  }
  a { color: #000 !important; text-decoration: underline; }
}
