:root {
  --brand: #f4cf00;
  --brand-strong: #d8b600;
  --brand-soft: #fff8c9;
  --ink: #171717;
  --ink-2: #202024;
  --ink-3: #2c2c31;
  --text: #28282d;
  --muted: #6f6f78;
  --line: #e2e2e5;
  --line-dark: #3a3a40;
  --surface: #ffffff;
  --surface-alt: #f4f5f6;
  --surface-dark: #171719;
  --success: #17754a;
  --danger: #a62920;
  --warning: #866000;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 8px 25px rgba(17, 17, 20, .07);
  --shadow: 0 22px 65px rgba(17, 17, 20, .11);
  --shell: 1240px;
  --focus: 0 0 0 4px rgba(244, 207, 0, .35);
  --theme-hero-image: none;
  --theme-eyebrow: #6d5c00;
  --theme-utility: #111113;
  --theme-utility-text: #c9c9cf;
  --theme-hero-middle: #1c1c20;
  --theme-hero-end: #131315;
  --theme-panel: #29292e;
  --theme-panel-border: #424248;
  --theme-panel-light: #f8f8f9;
  --theme-panel-light-end: #e9e9eb;
  --theme-panel-muted: #a8a8b0;
  --theme-panel-readout: #202024;
  --theme-panel-readout-border: #35353a;
  --theme-panel-readout-text: #f1f1f2;
  --theme-card: #ffffff;
  --theme-dark-card: #242428;
  --theme-on-brand: #171717;
  --theme-on-dark: #ffffff;
  --theme-accent-on-dark: #f4cf00;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--surface-dark); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-is-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin-top: 0; }
h1, h2, h3, h4 {
  color: var(--ink);
  font-family: "Arial Narrow", "Roboto Condensed", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.05;
}
h1 { font-size: clamp(3rem, 7vw, 6.7rem); }
h2 { font-size: clamp(2.15rem, 4.2vw, 4.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin-bottom: 1.2rem; }
::selection { color: var(--theme-on-brand); background: var(--brand); }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.shell--narrow { width: min(calc(100% - 40px), 860px); }
.section { padding: clamp(44px, 3.8vw, 64px) 0; }
.section--muted { background: var(--surface-alt); }
.page-template-home .section--intro { padding-block: clamp(44px, 3.6vw, 60px); background: var(--surface); }
.content-section { padding: clamp(44px, 3.8vw, 64px) 0; }
.page-template-contact .section { padding: clamp(54px, 5.5vw, 90px) 0; }
.sr-only {
  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;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 12px 16px;
  color: var(--theme-on-brand);
  background: var(--brand);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.eyebrow {
  margin-bottom: 14px;
  color: var(--theme-eyebrow);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .17em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow--light { color: var(--theme-accent-on-dark); }
.text-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}
.text-link .icon { transition: transform .18s ease; }
.text-link:hover .icon { transform: translateX(4px); }
.text-link:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid transparent;
  outline-offset: 3px;
  box-shadow: var(--focus);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--theme-on-dark);
  background: var(--surface-dark);
  border-bottom: 1px solid color-mix(in srgb, var(--theme-on-dark) 10%, transparent);
  box-shadow: 0 10px 35px rgba(0,0,0,.08);
  backdrop-filter: blur(16px);
}
.utility-bar { color: var(--theme-utility-text); background: var(--theme-utility); border-bottom: 1px solid var(--line-dark); }
.utility-bar__inner {
  display: flex;
  min-height: 34px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: .72rem;
}
.utility-bar p { margin: 0; letter-spacing: .02em; }
.utility-bar__links { display: flex; gap: 24px; align-items: center; }
.utility-bar__links a { display: inline-flex; gap: 7px; align-items: center; text-decoration: none; }
.utility-bar__links a:hover { color: var(--theme-on-dark); }
.utility-bar__links .icon { color: var(--theme-accent-on-dark); }
.main-header__inner { display: flex; min-height: 82px; align-items: center; gap: clamp(22px, 3vw, 48px); }
.brand-lockup {
  display: inline-flex;
  min-width: 285px;
  flex: 0 0 auto;
  gap: 14px;
  align-items: center;
  color: var(--theme-on-dark);
  text-decoration: none;
}
.brand-lockup__mark {
  display: grid;
  width: 108px;
  height: 55px;
  flex: 0 0 auto;
  place-items: center;
}
.brand-lockup__mark img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.brand-lockup__copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.12; }
.brand-lockup__copy strong { overflow: hidden; font-size: .98rem; letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; }
.brand-lockup__copy span { margin-top: 5px; color: var(--theme-utility-text); font-size: .67rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.brand-lockup--full { min-width: 0; }
.brand-lockup__full-image { display: block; width: 180px; height: auto; object-fit: contain; object-position: left center; }
.brand-lockup--footer .brand-lockup__full-image { width: min(100%, 330px); }
.brand-lockup--footer.brand-lockup--mark { min-width: 0; }
.brand-lockup--footer.brand-lockup--mark .brand-lockup__mark { width: 146px; height: 74px; }
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; margin: 0; padding: 0; gap: 5px; align-items: center; list-style: none; }
.site-nav__link {
  display: block;
  padding: 10px 11px;
  color: var(--theme-utility-text);
  border-radius: 7px;
  font-size: .84rem;
  font-weight: 760;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.site-nav__link:hover { color: var(--theme-on-dark); background: color-mix(in srgb, var(--surface-dark) 88%, var(--theme-on-dark)); }
.site-nav__link.is-active { color: var(--theme-accent-on-dark); }
.header-actions { display: flex; gap: 14px; align-items: center; }
.header-portal { color: var(--theme-utility-text); font-size: .8rem; font-weight: 760; text-decoration: none; white-space: nowrap; }
.header-portal:hover { color: var(--theme-on-dark); }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: #29292d;
  border: 1px solid #3f3f45;
  border-radius: 9px;
  cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.mobile-navigation {
  max-height: var(--mobile-navigation-max-height, calc(100vh - 130px));
  max-height: var(--mobile-navigation-max-height, calc(100dvh - 130px));
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--theme-on-dark);
  background: var(--surface-dark);
  border-top: 1px solid var(--line-dark);
  -webkit-overflow-scrolling: touch;
}
.mobile-navigation nav { padding-block: 20px 28px; }
.mobile-navigation .site-nav__list { display: grid; gap: 3px; }
.mobile-navigation .site-nav__link { padding: 13px 2px; border-bottom: 1px solid #2d2d31; border-radius: 0; font-size: 1.05rem; }
.mobile-navigation__actions { display: grid; margin-top: 20px; gap: 10px; }
.site-header.is-condensed .utility-bar { display: none; }
.site-header.is-condensed .main-header__inner { min-height: 68px; }

/* Buttons */
.button {
  display: inline-flex;
  min-height: 46px;
  padding: 11px 19px;
  gap: 10px;
  justify-content: center;
  align-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .86rem;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-2px); }
.button .icon { transition: transform .16s ease; }
.button:hover .icon { transform: translateX(3px); }
.button--primary { color: var(--theme-on-brand); background: var(--brand); border-color: var(--brand-strong); }
.button--primary:hover { background: var(--brand); box-shadow: 0 13px 32px color-mix(in srgb, var(--brand) 28%, transparent); filter: brightness(1.06); }
.button--dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.button--dark:hover { background: color-mix(in srgb, var(--ink) 88%, #fff); box-shadow: 0 13px 32px rgba(0,0,0,.18); }
.button--ghost-light { color: var(--theme-on-dark); background: color-mix(in srgb, var(--theme-on-dark) 4%, transparent); border-color: color-mix(in srgb, var(--theme-on-dark) 26%, transparent); }
.button--ghost-light:hover { background: color-mix(in srgb, var(--theme-on-dark) 10%, transparent); border-color: color-mix(in srgb, var(--theme-on-dark) 45%, transparent); }
.button--large { min-height: 54px; padding: 14px 23px; }
.button--compact { min-height: 40px; padding: 9px 14px; font-size: .78rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Home hero */
.home-hero {
  position: relative;
  overflow: hidden;
  color: var(--theme-on-dark);
  background:
    radial-gradient(circle at 83% 24%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 25%),
    linear-gradient(120deg, color-mix(in srgb, var(--surface-dark) 88%, transparent) 0%, color-mix(in srgb, var(--theme-hero-middle) 88%, transparent) 55%, color-mix(in srgb, var(--theme-hero-end) 90%, transparent) 100%),
    var(--theme-hero-image, none) center / cover no-repeat,
    linear-gradient(120deg, var(--surface-dark) 0%, var(--theme-hero-middle) 55%, var(--theme-hero-end) 100%);
}
.home-hero::before { position: absolute; z-index: 3; inset: 0 auto 0 0; width: 9px; content: ""; background: var(--brand); }
.home-hero__backgrounds { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.home-hero__backgrounds::after { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(112deg, color-mix(in srgb, var(--surface-dark) 91%, transparent) 0%, color-mix(in srgb, var(--surface-dark) 80%, transparent) 52%, color-mix(in srgb, var(--surface-dark) 66%, transparent) 100%); }
.home-hero__background-slide { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transform: scale(1.025); transition: opacity .8s ease, transform 5s ease; }
.home-hero__background-slide.is-active { opacity: 1; transform: scale(1); }
.home-hero__background-toggle { position: absolute; z-index: 4; right: max(20px, calc((100vw - var(--shell)) / 2)); bottom: 18px; padding: 7px 10px; color: rgba(255,255,255,.88); background: rgba(9,9,11,.48); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(9px); }
.home-hero__background-toggle:hover { color: #fff; background: rgba(9,9,11,.72); }
.home-hero__grid {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: .36;
  background-image: linear-gradient(color-mix(in srgb, var(--theme-on-dark) 4.5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--theme-on-dark) 4.5%, transparent) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(90deg, transparent 0, #000 45%, #000 100%);
}
.home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: clamp(540px, 58vh, 660px);
  padding-block: clamp(56px, 5vw, 76px);
  grid-template-columns: minmax(0, 1.33fr) minmax(390px, .67fr);
  gap: clamp(34px, 4.5vw, 72px);
  align-items: center;
}
.home-hero h1 { max-width: 820px; margin-bottom: 27px; color: var(--theme-on-dark); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(2.95rem, 3.7vw, 4.25rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
.home-hero h1 span { display: block; }
.home-hero h1 span + span { margin-top: .1em; }
.home-hero__lead { max-width: 620px; margin-bottom: 34px; color: var(--theme-utility-text); font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.7; }
.hero-assurances { display: flex; margin-top: 34px; flex-wrap: wrap; gap: 13px 27px; color: var(--theme-utility-text); font-size: .78rem; font-weight: 720; }
.hero-assurances span { display: inline-flex; gap: 7px; align-items: center; }
.hero-assurances .icon { color: var(--theme-accent-on-dark); }
.home-hero__visual { position: relative; }
.machine-panel {
  position: relative;
  padding: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--theme-panel), var(--surface-dark));
  border: 1px solid var(--theme-panel-border);
  border-radius: 26px;
  box-shadow: 0 38px 100px rgba(0,0,0,.42);
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}
.machine-panel::before { position: absolute; inset: 0; pointer-events: none; content: ""; background: linear-gradient(120deg, rgba(255,255,255,.06), transparent 35%); }
.machine-panel__topline { display: flex; padding: 5px 5px 18px; justify-content: space-between; gap: 12px; color: var(--theme-panel-muted); font-size: .7rem; font-weight: 850; letter-spacing: .1em; }
.status-light { display: inline-flex; gap: 8px; align-items: center; color: var(--theme-on-dark); }
.status-light::before { width: 8px; height: 8px; content: ""; background: #70c796; border-radius: 50%; box-shadow: 0 0 0 5px rgba(112,199,150,.12); }
.machine-panel__mark { position: relative; display: grid; height: 310px; min-height: 310px; place-items: center; overflow: hidden; isolation: isolate; color-scheme: only light; background: var(--theme-panel-light); border-radius: 15px; }
.machine-panel__mark img { width: 90%; max-height: 290px; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(0,0,0,.17)); }
.machine-panel__mark--mark img { width: 84%; }
.machine-panel__mark--full_lockup img { width: 93%; }
.machine-showcase__slide {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: inherit;
  grid-area: 1 / 1;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(14px) scale(.985);
  transition: opacity .42s ease, transform .42s ease, visibility .42s;
}
.machine-showcase__slide.is-active { z-index: 1; opacity: 1; visibility: visible; transform: none; }
.machine-partner-card {
  display: grid;
  width: min(100%, 470px);
  min-height: inherit;
  padding: 36px 30px;
  place-content: center;
  justify-items: center;
  color: var(--ink);
  text-align: center;
}
.machine-partner-card > span {
  margin-bottom: 17px;
  color: var(--theme-eyebrow);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.machine-partner-card > strong {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  font-weight: 900;
  letter-spacing: .035em;
  line-height: 1;
}
.machine-partner-card > p { display: -webkit-box; max-width: 370px; max-height: 4.65em; margin: 18px 0 0; overflow: hidden; color: var(--muted); font-size: .9rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.machine-partner-card--image { padding: 26px 30px; grid-template-rows: auto minmax(100px, 1fr) auto auto; align-content: stretch; }
.machine-partner-card--image > span { margin-bottom: 10px; }
.machine-panel__mark .machine-partner-card--image img { width: min(76%, 420px); max-height: 130px; align-self: center; object-fit: contain; filter: none; }
.machine-partner-card--image > strong { margin-top: 8px; font-size: 1rem; letter-spacing: .02em; line-height: 1.2; }
.machine-partner-card--image > p { max-height: 3.1em; margin-top: 10px; -webkit-line-clamp: 2; }
.machine-panel__readout { display: grid; margin-top: 14px; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.machine-panel__readout div { padding: 13px 11px; background: var(--theme-panel-readout); border: 1px solid var(--theme-panel-readout-border); border-radius: 9px; }
.machine-panel__readout span { display: block; margin-bottom: 4px; color: var(--theme-panel-muted); font-size: .66rem; font-weight: 800; letter-spacing: .085em; text-transform: uppercase; }
.machine-panel__readout strong { color: var(--theme-panel-readout-text); font-size: .8rem; }
.machine-panel__footer { display: flex; padding: 16px 4px 3px; gap: 10px; align-items: center; }
.machine-panel__accent { width: 36px; height: 4px; flex: 0 0 auto; background: var(--brand); border-radius: 10px; }
.machine-panel__footer p { margin: 0; color: var(--theme-panel-muted); font-size: .78rem; }
.machine-showcase__controls[hidden] { display: none; }
.machine-showcase__controls { position: relative; z-index: 2; display: flex; margin-left: auto; gap: 9px; align-items: center; }
.machine-showcase__dots { display: flex; gap: 2px; align-items: center; }
.machine-showcase__dot {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.machine-showcase__dot::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  content: "";
  background: #777780;
  border-radius: 20px;
  transform: translate(-50%, -50%);
  transition: width .18s ease, background .18s ease;
}
.machine-showcase__dot[aria-current="true"]::after { width: 16px; background: var(--brand); }
.machine-showcase__toggle {
  min-height: 32px;
  padding: 2px 10px 2px 0;
  color: var(--theme-utility-text);
  background: transparent;
  border: 0;
  border-right: 1px solid #3b3b40;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.machine-showcase__toggle:hover { color: var(--theme-on-dark); }
.hero-photo { position: relative; margin: 0; overflow: hidden; border: 1px solid #44444a; border-radius: 26px; box-shadow: 0 38px 100px rgba(0,0,0,.42); }
.hero-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-photo::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 52%, rgba(0,0,0,.75)); }
.hero-photo figcaption { position: absolute; z-index: 1; right: 24px; bottom: 22px; left: 24px; color: #fff; font-size: .82rem; font-weight: 750; }

/* Shared section composition */
.split-intro { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(32px, 6vw, 84px); align-items: start; }
.split-intro h2 { max-width: 620px; margin-bottom: 0; }
.split-intro__copy { padding-top: 7px; }
.split-intro__copy > p { max-width: 690px; color: var(--muted); font-size: clamp(1.02rem, 1.55vw, 1.2rem); }
.page-template-home .split-intro h2 { max-width: 580px; font-size: clamp(2.2rem, 3.3vw, 3.4rem); line-height: 1.08; }
.section-heading { display: flex; margin-bottom: 28px; justify-content: space-between; gap: 30px; align-items: end; }
.section-heading h2 { max-width: 840px; margin-bottom: 0; }
.page-template-home .section-heading h2 { max-width: 760px; font-size: clamp(2.25rem, 3.55vw, 3.65rem); line-height: 1.08; }
.section-heading--light h2 { color: var(--theme-on-dark); }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card {
  position: relative;
  display: flex;
  min-height: 0;
  padding: 32px 30px;
  flex-direction: column;
  background: var(--theme-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.service-card:hover { z-index: 2; background: color-mix(in srgb, var(--theme-card, #fff) 94%, var(--brand)); box-shadow: var(--shadow); transform: translateY(-5px); }
.service-card__number { position: absolute; top: 24px; right: 25px; color: var(--muted); font-family: ui-monospace, monospace; font-size: .72rem; font-weight: 800; }
.service-card__icon { display: grid; width: 52px; height: 52px; margin-bottom: 30px; place-items: center; color: var(--theme-on-brand); background: var(--brand); border-radius: 12px; }
.service-card__icon .icon { width: 27px; height: 27px; }
.service-card > h3 { margin-bottom: 14px; }
.service-card > p { margin-bottom: 20px; color: var(--muted); font-size: .92rem; }
.service-card > a { display: inline-flex; margin-top: auto; gap: 5px; align-items: center; color: var(--ink); font-size: .77rem; font-weight: 850; text-decoration: none; }
.service-card > a .icon { width: 14px; height: 14px; }
.service-grid--detail { gap: 20px; border: 0; }
.service-card--detail { width: 100%; min-height: 0; padding: clamp(25px, 2.2vw, 32px); scroll-margin-top: clamp(96px, 14vh, 150px); border: 1px solid var(--line); border-radius: var(--radius); }
.service-card--detail:hover { transform: translateY(-3px); }
.service-card--detail .service-card__heading { display: flex; margin-bottom: 24px; justify-content: space-between; align-items: start; }
.service-card--detail .service-card__icon { margin: 0; }
.service-card--detail .service-card__number { position: static; }
.service-card__content { display: grid; gap: 0; align-content: start; }
.service-card__content > h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 2.1vw, 2.08rem); }
.service-card__content > p { margin: 0; color: var(--muted); font-size: .92rem; }
.service-card__content > .check-list { margin: 18px 0 0; }
.service-card__actions { margin-top: 24px; }
.check-list { display: grid; margin: 22px 0 0; padding: 0; gap: 10px; list-style: none; }
.check-list li { display: flex; gap: 9px; align-items: flex-start; color: var(--text); font-size: .86rem; }
.check-list .icon { margin-top: 4px; color: var(--theme-eyebrow); }

/* Sectors */
.sectors-section { color: var(--theme-on-dark); background: var(--surface-dark); }
.sector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sector-card { display: grid; min-height: 220px; padding: clamp(28px, 4vw, 46px); grid-template-columns: 72px 1fr; gap: 26px; align-items: start; background: var(--theme-dark-card); border: 1px solid var(--line-dark); border-radius: var(--radius); }
.sector-card__icon { display: grid; width: 66px; height: 66px; place-items: center; color: var(--theme-on-brand); background: var(--brand); border-radius: 50%; }
.sector-card__icon .icon { width: 31px; height: 31px; }
.sector-card h3 { margin-bottom: 13px; color: var(--theme-on-dark); font-size: clamp(1.45rem, 2.5vw, 2rem); }
.sector-card p { margin: 0; color: var(--theme-utility-text); }

/* Process */
.process-grid { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); list-style: none; }
.process-card { position: relative; padding: 30px 26px 0 0; }
.process-card::before { position: absolute; top: -7px; left: 0; width: 12px; height: 12px; content: ""; background: var(--brand); border: 2px solid var(--ink); border-radius: 50%; }
.process-card > span { display: block; margin-bottom: 26px; color: var(--muted); font-family: ui-monospace, monospace; font-size: .72rem; font-weight: 800; }
.process-card h3 { margin-bottom: 12px; }
.process-card p { margin: 0; color: var(--muted); font-size: .9rem; }
body.layout--precision .process-card:nth-child(n + 5),
body.layout--executive .process-card:nth-child(n + 5) { margin-top: 35px; padding-top: 38px; border-top: 2px solid var(--ink); }
body.layout--precision .process-card:nth-child(n + 5)::before,
body.layout--executive .process-card:nth-child(n + 5)::before { top: -7px; }

/* Project cards / empty gallery */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { overflow: hidden; background: var(--theme-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 0 rgba(0,0,0,.02); }
.project-card__media { position: relative; display: block; overflow: hidden; background: var(--theme-dark-card); }
.project-card__media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .35s ease; }
.project-card:hover .project-card__media img { transform: scale(1.035); }
.project-card__placeholder { display: grid; width: 100%; aspect-ratio: 3/2; place-items: center; color: var(--theme-panel-muted); background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 38px 38px; }
.project-card__placeholder .icon { width: 58px; height: 58px; }
.project-card__category { position: absolute; left: 18px; bottom: 17px; padding: 7px 10px; color: var(--theme-on-brand); background: var(--brand); border-radius: 6px; font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.project-card__body { display: flex; min-height: 230px; padding: 26px; flex-direction: column; justify-content: space-between; gap: 20px; }
.project-card h3 { margin-bottom: 11px; }
.project-card h3 a { text-decoration: none; }
.project-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.project-card .text-link { font-size: .78rem; }
.work-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-examples__intro { display: grid; margin-bottom: 38px; grid-template-columns: minmax(0, .95fr) minmax(0, .7fr); gap: clamp(34px, 6vw, 86px); align-items: end; }
.work-examples__intro h2 { max-width: 670px; margin: 0; }
.work-examples__intro > p { max-width: 590px; margin: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.7; }
.work-example { overflow: hidden; background: var(--theme-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.work-example__visual { position: relative; display: flex; min-height: 112px; padding: 20px 22px; justify-content: space-between; align-items: flex-start; color: var(--theme-on-dark); background: linear-gradient(135deg, var(--surface-dark), var(--theme-dark-card)); }
.work-example__visual::after { position: absolute; inset: 0; content: ""; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 34px 34px; }
.work-example__visual > span, .work-example__visual i { position: relative; z-index: 1; font-style: normal; }
.work-example__visual > span { color: var(--theme-accent-on-dark); font-family: ui-monospace, monospace; font-size: .75rem; font-weight: 900; letter-spacing: .1em; }
.work-example__visual i { display: grid; width: 48px; height: 48px; place-items: center; color: var(--theme-on-brand); background: var(--brand); border-radius: 50%; }
.work-example__visual .icon { width: 24px; height: 24px; }
.work-example__body { display: flex; padding: 28px 30px 30px; flex-direction: column; }
.work-example__body h3 { margin-bottom: 13px; font-size: clamp(1.3rem, 1.65vw, 1.6rem); }
.work-example__body > p:not(.eyebrow) { margin-bottom: 23px; color: var(--muted); font-size: .9rem; line-height: 1.62; }
.work-example__body dl { display: grid; margin: auto 0 0; gap: 9px; }
.work-example__body dl > div { display: grid; padding-top: 10px; grid-template-columns: 106px 1fr; gap: 12px; border-top: 1px solid var(--line); }
.work-example__body dt { color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.work-example__body dd { margin: 0; color: var(--ink); font-size: .81rem; font-weight: 760; }
.work-placeholder { display: grid; min-height: 410px; overflow: hidden; grid-template-columns: minmax(330px, .85fr) minmax(0, 1.15fr); background: var(--theme-card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.work-placeholder__visual { position: relative; display: grid; min-height: 410px; place-items: center; overflow: hidden; background: var(--surface-dark); }
.work-placeholder__visual::before { position: absolute; inset: 0; content: ""; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 50px 50px; }
.work-placeholder__visual img { position: relative; z-index: 2; width: 74%; filter: drop-shadow(0 20px 25px rgba(0,0,0,.35)); }
.technical-ring { position: absolute; border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent); border-radius: 50%; }
.technical-ring--one { width: 390px; height: 390px; }
.technical-ring--two { width: 250px; height: 250px; border-style: dashed; }
.work-placeholder > div:last-child { display: flex; padding: clamp(35px, 6vw, 72px); flex-direction: column; justify-content: center; align-items: flex-start; }
.work-placeholder h3 { max-width: 630px; margin-bottom: 18px; font-size: clamp(1.8rem, 3vw, 3rem); }
.work-placeholder p:not(.eyebrow) { max-width: 620px; color: var(--muted); }
.empty-work { max-width: 850px; margin: 0 auto; padding: clamp(45px, 8vw, 90px); text-align: center; background: var(--theme-card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.empty-work__icon { display: grid; width: 74px; height: 74px; margin: 0 auto 28px; place-items: center; color: var(--theme-on-brand); background: var(--brand); border-radius: 50%; }
.empty-work__icon .icon { width: 34px; height: 34px; }
.empty-work h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.empty-work > p:not(.eyebrow) { max-width: 650px; margin-inline: auto; color: var(--muted); }
.empty-work code { padding: 2px 5px; background: #eeeef0; border-radius: 5px; }
.inline-checks { display: flex; margin: 25px 0 0; padding: 0; flex-wrap: wrap; gap: 12px 24px; list-style: none; }
.inline-checks li { display: inline-flex; gap: 7px; align-items: center; font-weight: 760; }
.inline-checks .icon { color: var(--theme-eyebrow); }

/* CTA */
.cta-band { padding: clamp(52px, 5.2vw, 74px) 0; background: var(--brand); }
.cta-band__inner { display: flex; justify-content: space-between; gap: 40px; align-items: center; }
.cta-band .eyebrow { color: var(--theme-on-brand); }
.cta-band h2 { max-width: 760px; margin-bottom: 14px; color: var(--theme-on-brand); font-size: clamp(2.1rem, 3.8vw, 3.85rem); }
.cta-band p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: var(--theme-on-brand); }
.cta-band .button { flex: 0 0 auto; }

/* Page hero */
.page-hero { position: relative; overflow: hidden; color: var(--theme-on-dark); background: linear-gradient(125deg, var(--surface-dark), var(--theme-dark-card)); }
.page-hero::before { position: absolute; top: 0; right: 8%; width: 420px; height: 420px; content: ""; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 28%, transparent), transparent 65%); }
.page-hero::after { position: absolute; inset: 0 auto 0 0; width: 8px; content: ""; background: var(--brand); }
.page-hero__grid { position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(90deg, transparent, #000); }
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(85px, 11vw, 150px); }
.page-hero--compact .page-hero__inner { padding-block: clamp(65px, 8vw, 105px); }
.page-hero h1 { max-width: 1040px; margin-bottom: 27px; color: var(--theme-on-dark); font-size: clamp(3rem, 6.4vw, 6rem); }
.page-hero__lead { max-width: 790px; margin: 0; color: var(--theme-utility-text); font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.page-template-about .page-hero__inner, .page-template-services .page-hero__inner, .page-template-work .page-hero__inner { padding-block: clamp(58px, 6.6vw, 92px); }
.page-template-about .page-hero h1, .page-template-services .page-hero h1, .page-template-work .page-hero h1 { max-width: 900px; font-size: clamp(2.55rem, 4.4vw, 4.4rem); }

/* Services systems */
.systems-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(50px, 9vw, 120px); align-items: start; }
.systems-layout > div:first-child { position: sticky; top: 130px; }
.systems-layout h2 { margin-bottom: 22px; }
.systems-layout > div:first-child > p:not(.eyebrow) { max-width: 560px; color: var(--muted); }
.systems-list { border-top: 1px solid var(--line); }
.system-row { display: grid; padding: 28px 0; grid-template-columns: 58px 1fr; gap: 20px; border-bottom: 1px solid var(--line); }
.system-row > span { display: grid; width: 50px; height: 50px; place-items: center; color: var(--ink); background: var(--brand-soft); border-radius: 50%; }
.system-row > span .icon { width: 24px; height: 24px; }
.system-row h3 { margin-bottom: 8px; }
.system-row p { margin: 0; color: var(--muted); font-size: .9rem; }

/* About */
.about-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(45px, 9vw, 120px); align-items: start; }
.about-panel { padding: 34px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.about-panel__item { display: grid; padding: 20px 0; grid-template-columns: 46px 1fr; gap: 16px; border-bottom: 1px solid var(--line); }
.about-panel__item:last-child { padding-bottom: 0; border-bottom: 0; }
.about-panel__item > span { display: grid; width: 42px; height: 42px; place-items: center; color: var(--theme-on-brand); background: var(--brand); border-radius: 9px; }
.about-panel__item strong { display: block; margin-bottom: 4px; color: var(--ink); }
.about-panel__item p { margin: 0; color: var(--muted); font-size: .84rem; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principles-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.principle-card { display: flex; min-height: 0; padding: 30px; flex-direction: column; background: var(--theme-card); border: 1px solid var(--line); border-radius: var(--radius); }
.principle-card > span { display: block; margin-bottom: 38px; color: var(--muted); font-family: ui-monospace, monospace; font-size: .72rem; font-weight: 850; }
.principle-card h3 { margin-bottom: 14px; }
.principle-card p { margin: 0; color: var(--muted); }
body.layout--evergreen.page-template-about .section-heading h2 { max-width: 1000px; font-size: clamp(2.15rem, 3.2vw, 3.5rem); line-height: 1.08; }
.dark-feature { color: var(--theme-on-dark); background: var(--surface-dark); }
.dark-feature__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(42px, 7vw, 96px); align-items: center; }
.dark-feature h2 { color: var(--theme-on-dark); }
.dark-feature p:not(.eyebrow) { max-width: 650px; color: var(--theme-utility-text); }
.dark-feature__diagram { display: flex; min-height: 260px; flex-direction: column; justify-content: center; gap: 12px; }
.dark-feature__diagram span { display: block; padding: 16px 20px; color: var(--theme-on-dark); background: var(--theme-dark-card); border: 1px solid var(--line-dark); border-radius: 8px; font-size: .78rem; font-weight: 900; letter-spacing: .13em; }
.dark-feature__diagram span:nth-of-type(2) { margin-left: 8%; border-left: 5px solid var(--brand); }
.dark-feature__diagram span:nth-of-type(3) { margin-left: 16%; }
.dark-feature__diagram span:nth-of-type(4) { margin-left: 24%; color: var(--theme-on-brand); background: var(--brand); border-color: var(--brand); }
.dark-feature__diagram i { display: none; }

/* Project detail */
.project-hero { position: relative; display: flex; min-height: clamp(520px, 68vh, 780px); align-items: end; overflow: hidden; background: var(--surface-dark); }
.project-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.82) 78%), linear-gradient(90deg, rgba(0,0,0,.62), transparent 65%); }
.project-hero__content { position: relative; z-index: 1; padding-bottom: clamp(55px, 8vw, 100px); color: #fff; }
.project-hero__content h1 { max-width: 970px; margin-bottom: 22px; color: #fff; font-size: clamp(3rem, 6.4vw, 6rem); }
.project-hero__content > p:not(.eyebrow) { max-width: 760px; margin: 0; color: #dedee2; font-size: 1.1rem; }
.back-link { display: inline-block; margin-bottom: 35px; color: #fff; font-size: .82rem; font-weight: 780; text-decoration: none; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(50px, 9vw, 120px); align-items: start; }
.project-facts { position: sticky; top: 120px; padding: 32px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.project-facts h2 { margin-bottom: 20px; font-size: 1.55rem; }
.project-facts > div { display: grid; padding: 15px 0; gap: 3px; border-bottom: 1px solid var(--line); }
.project-facts span { color: var(--muted); font-size: .69rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.project-facts strong { color: var(--ink); font-size: .92rem; }
.project-facts .button { width: 100%; margin-top: 24px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { display: block; padding: 0; overflow: hidden; color: inherit; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 12px; cursor: zoom-in; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.gallery-item:hover { border-color: color-mix(in srgb, var(--brand) 52%, var(--line)); box-shadow: var(--shadow-sm); }
.image-dialog { width: min(calc(100vw - 24px), 1500px); max-width: none; max-height: calc(100dvh - 24px); padding: 0; overflow: visible; color: #fff; background: transparent; border: 0; }
.image-dialog:not([open]) { display: none; }
.image-dialog::backdrop { background: rgba(0,0,0,.9); backdrop-filter: blur(8px); }
.image-dialog--fallback { position: fixed; z-index: 10000; inset: 0; display: grid; width: 100vw; height: 100dvh; max-height: none; padding: 12px; place-items: center; background: rgba(0,0,0,.9); backdrop-filter: blur(8px); }
.image-dialog-open, .image-dialog-open body { overflow: hidden; }
.image-dialog__frame { position: relative; display: grid; width: 100%; max-height: calc(100dvh - 24px); padding: 62px clamp(12px, 2.5vw, 34px) 18px; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: clamp(10px, 2vw, 26px); background: rgba(16,17,20,.97); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.image-dialog__figure { min-width: 0; margin: 0; grid-column: 2; }
.image-dialog__media { display: grid; min-height: 0; place-items: center; }
.image-dialog img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 152px); object-fit: contain; border-radius: 9px; }
.image-dialog__meta { display: flex; min-height: 28px; margin-top: 12px; align-items: baseline; justify-content: space-between; gap: 18px; color: #fff; }
.image-dialog__caption { overflow-wrap: anywhere; font-size: .9rem; line-height: 1.45; }
.image-dialog__counter { flex: 0 0 auto; color: #d5d8df; font-size: .75rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.image-dialog__close, .image-dialog__nav { display: grid; min-width: 48px; min-height: 48px; padding: 0; place-items: center; color: #fff; background: rgba(25,25,28,.94); border: 1px solid #73737b; box-shadow: 0 6px 24px rgba(0,0,0,.35); cursor: pointer; }
.image-dialog__close { position: absolute; z-index: 2; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); width: 48px; height: 48px; border-radius: 50%; }
.image-dialog__nav { width: 52px; height: 52px; border-radius: 50%; }
.image-dialog__nav[hidden] { display: none; }
.image-dialog__nav:hover, .image-dialog__nav:focus-visible, .image-dialog__close:hover, .image-dialog__close:focus-visible { color: var(--theme-on-brand); background: var(--brand); border-color: var(--brand); }
.image-dialog__nav--previous { grid-column: 1; }
.image-dialog__nav--previous .icon { transform: rotate(180deg); }
.image-dialog__nav--next { grid-column: 3; }

/* Service detail dialogs */
.service-card__more { margin: 0; align-self: flex-start; }
.service-detail-fallback { width: 100%; margin: 24px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.service-detail-fallback summary { color: var(--ink); font-size: .8rem; font-weight: 850; cursor: pointer; }
.service-detail-fallback__body { padding-top: 18px; }
.service-detail-fallback__body > :last-child { margin-bottom: 0; }
.service-dialog { width: min(94vw, 920px); max-width: none; max-height: min(86vh, 900px); padding: 0; overflow: hidden; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.service-dialog::backdrop { background: rgba(8,11,13,.76); backdrop-filter: blur(9px); }
.service-dialog__inner { max-height: min(86vh, 900px); overflow: auto; }
.service-dialog__header { position: sticky; z-index: 1; top: 0; display: flex; padding: clamp(23px, 4vw, 38px) clamp(23px, 5vw, 52px) 21px; justify-content: space-between; gap: 22px; align-items: flex-start; background: color-mix(in srgb, var(--surface) 94%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.service-dialog__header .eyebrow { margin-bottom: 9px; }
.service-dialog__header h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); }
.service-dialog__close { flex: 0 0 auto; }
.service-dialog__close .icon { width: 18px; height: 18px; }
.service-dialog__body { padding: clamp(24px, 5vw, 52px); }
.service-dialog__summary { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.18rem); }
.service-dialog__body .check-list { max-width: 760px; }
.service-dialog__body > .check-list,
.service-detail-fallback__body > .check-list { margin-top: 18px; }
.service-dialog__copy { max-width: 760px; margin-top: 29px; }
.service-dialog__copy h2, .service-dialog__copy h3 { margin-top: 1.7em; font-size: clamp(1.35rem, 2.5vw, 2rem); }
.service-dialog__gallery { display: grid; margin-top: 34px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service-dialog__image { margin: 0; overflow: hidden; background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.service-dialog__image-link { display: grid; color: inherit; cursor: zoom-in; }
.service-dialog__image-link:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.service-dialog__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr); gap: clamp(35px, 7vw, 85px); align-items: start; }
.contact-details { position: sticky; top: 120px; }
.contact-details h2 { margin-bottom: 20px; font-size: clamp(2rem, 3.6vw, 3.5rem); }
.contact-details > p:not(.eyebrow) { color: var(--muted); }
.contact-methods { display: grid; margin-top: 34px; border-top: 1px solid var(--line); }
.contact-methods > a, .contact-methods > div { display: grid; padding: 18px 0; grid-template-columns: 46px 1fr; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-methods > a:hover strong { text-decoration: underline; }
.contact-methods > a > span, .contact-methods > div > span { display: grid; width: 42px; height: 42px; place-items: center; color: var(--theme-on-brand); background: var(--brand); border-radius: 9px; }
.contact-methods small { display: block; margin-bottom: 2px; color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.contact-methods strong { display: block; color: var(--ink); font-size: .9rem; overflow-wrap: anywhere; }
.contact-tip { margin-top: 28px; padding: 20px; color: #5b542e; background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 7px; }
.contact-tip strong { display: block; margin-bottom: 5px; color: var(--ink); }
.contact-tip p { margin: 0; font-size: .82rem; }
.contact-form-card { padding: clamp(28px, 5vw, 54px); background: var(--theme-card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contact-form-card__heading { padding-bottom: 28px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.contact-form-card__heading h2 { margin-bottom: 8px; font-size: clamp(2rem, 3.4vw, 3rem); }
.contact-form-card__heading p:last-child { margin: 0; color: var(--muted); font-size: .84rem; }

/* Grav form plugin */
form[name="contact"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-field { min-width: 0; margin: 0; }
.form-field.form-field--full, .form-field[data-grav-field="textarea"], .form-field[data-grav-field="checkbox"], .form-actions, form[name="contact"] > .buttons { grid-column: 1 / -1; }
.form-label, .form-field > label, .form-field label { display: block; margin-bottom: 7px; color: var(--ink); font-size: .8rem; font-weight: 800; }
.required { color: var(--danger); }
.form-input-wrapper { width: 100%; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 49px;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 8px;
  outline: 3px solid transparent;
  outline-offset: 3px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input:hover, .form-field textarea:hover, .form-field select:hover { border-color: var(--ink); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--brand-strong); box-shadow: var(--focus); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: 1; }
.form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #5f5f66 50%), linear-gradient(135deg, #5f5f66 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form-field[data-grav-field="checkbox"] .form-input-wrapper, .form-field.checkbox .form-input-wrapper { display: flex; gap: 10px; align-items: flex-start; }
.form-field input[type="checkbox"] { width: 19px; height: 19px; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--brand-strong); }
.form-field[data-grav-field="checkbox"] label, .form-field.checkbox label { margin: 0; color: #5a5a62; font-size: .79rem; font-weight: 600; }
.form-field[data-grav-field="checkbox"] label a, .form-field.checkbox label a { font-weight: 800; }
.form-actions, form[name="contact"] > .buttons { display: flex; padding-top: 8px; justify-content: flex-start; }
.form-actions .button, form[name="contact"] > .buttons button { min-height: 52px; padding-inline: 23px; color: var(--theme-on-brand); background: var(--brand); border: 1px solid var(--brand-strong); border-radius: 9px; font-weight: 850; cursor: pointer; }
.form-actions .button:hover, form[name="contact"] > .buttons button:hover { background: var(--brand); filter: brightness(1.06); }
.form-actions .button[disabled], form[name="contact"] > .buttons button[disabled] { opacity: .65; cursor: wait; }
.form-field.has-error input, .form-field.has-error textarea, .form-field.has-error select { border-color: var(--danger); }
.form-message, .form-field .form-errors, .form-field .help-block { margin-top: 6px; color: var(--danger); font-size: .73rem; }
.alert, .notices { grid-column: 1 / -1; }

/* Prose and legal */
.prose { color: #414148; font-size: 1.03rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin: 2.3em 0 .55em; font-size: clamp(1.8rem, 3.5vw, 3rem); }
.prose h3 { margin: 1.8em 0 .55em; }
.prose p, .prose li { max-width: 760px; }
.prose a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .45rem; }
.prose blockquote { margin: 2rem 0; padding: 20px 24px; color: #5c5428; background: var(--brand-soft); border-left: 5px solid var(--brand); }
.prose hr { margin: 3rem 0; border: 0; border-top: 1px solid var(--line); }
.legal-details { margin: 45px 0 0; border-top: 1px solid var(--line); }
.legal-details > div { display: grid; padding: 16px 0; grid-template-columns: minmax(150px, .35fr) 1fr; gap: 24px; border-bottom: 1px solid var(--line); }
.legal-details dt { color: var(--muted); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.legal-details dd { margin: 0; color: var(--ink); font-weight: 700; }
.admin-warning { margin-top: 30px; padding: 18px 20px; color: #6c5100; background: #fff5cb; border: 1px solid #e7d57e; border-radius: 8px; }

/* Messages */
.site-messages { position: fixed; z-index: 1100; top: 130px; right: 20px; display: grid; width: min(420px, calc(100% - 40px)); gap: 10px; }
.site-message { display: flex; padding: 16px 18px; gap: 12px; align-items: flex-start; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.site-message__dot { width: 10px; height: 10px; margin-top: 7px; flex: 0 0 auto; background: var(--success); border-radius: 50%; }
.site-message--error .site-message__dot { background: var(--danger); }
.site-message--warning .site-message__dot { background: var(--warning); }

/* Footer */
.site-footer { --theme-footer-muted: var(--theme-utility-text); color: var(--theme-utility-text); background: var(--surface-dark); }
.site-footer__grid { display: grid; padding-block: clamp(62px, 8vw, 100px); grid-template-columns: minmax(0, 1.4fr) .65fr .9fr; gap: clamp(38px, 7vw, 95px); }
.site-footer .brand-lockup { min-width: 0; margin-bottom: 23px; }
.site-footer__brand > p { max-width: 500px; color: var(--theme-footer-muted); font-size: .88rem; }
.footer-cta { display: inline-flex; gap: 8px; align-items: center; color: var(--theme-accent-on-dark); font-size: .82rem; font-weight: 850; text-decoration: none; }
.site-footer h2 { margin-bottom: 21px; color: var(--theme-on-dark); font-family: inherit; font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-links, .footer-contact { display: grid; margin: 0; padding: 0; gap: 10px; list-style: none; }
.footer-links a { color: var(--theme-footer-muted); font-size: .86rem; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--theme-on-dark); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--theme-utility-text); font-size: .82rem; }
.footer-contact .icon { margin-top: 4px; color: var(--theme-accent-on-dark); }
.footer-contact a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer__legal { display: flex; padding-block: 24px; justify-content: space-between; gap: 30px; align-items: flex-start; border-top: 1px solid color-mix(in srgb, var(--theme-on-dark) 15%, transparent); }
.site-footer__legal p { margin: 0 0 3px; color: var(--theme-panel-muted); font-size: .67rem; }
.site-footer__policies { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.site-footer__policies a { color: var(--theme-footer-muted); font-size: .7rem; text-decoration: none; }
.site-footer__policies a:hover { color: var(--theme-on-dark); }

/* Error */
.error-page { display: grid; min-height: 70vh; padding: 100px 0; place-items: center; color: #fff; background: #19191c; text-align: center; }
.error-page h1 { margin-bottom: 24px; color: #fff; }
.error-page > .shell > p:not(.eyebrow) { color: #b6b6bd; }
.error-page .button-row { justify-content: center; }

/* Animation: content stays visible until the script has explicitly prepared it. */
.reveal { transition: opacity .55s ease, transform .55s ease; }
.reveal.reveal--ready { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: none; }

/*
  Layout profiles retain the original theme class as a compatibility alias for
  existing deployments. Their geometry and type remain layout-owned; the later
  palette blocks replace their colour tokens independently.
*/
body.theme--executive {
  --brand: #3d7eff;
  --brand-strong: #285ec8;
  --brand-soft: #e7efff;
  --ink: #12213a;
  --ink-2: #172b49;
  --ink-3: #213957;
  --text: #30415c;
  --muted: #5f6e84;
  --line: #d8e1ed;
  --line-dark: #345174;
  --surface: #fcfdff;
  --surface-alt: #f0f4fa;
  --surface-dark: #0d1b33;
  --shadow-sm: 0 10px 26px rgba(12, 34, 66, .08);
  --shadow: 0 25px 68px rgba(12, 34, 66, .14);
  --focus: 0 0 0 4px rgba(61, 126, 255, .3);
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --theme-utility: #09162a;
  --theme-utility-text: #b9cae5;
  --theme-hero-middle: #193563;
  --theme-hero-end: #091426;
  --theme-panel: #152949;
  --theme-panel-border: #34557f;
  --theme-panel-light: #f5f8ff;
  --theme-panel-light-end: #dce8f8;
  --theme-panel-muted: #b8c9df;
  --theme-panel-readout: #10233f;
  --theme-panel-readout-border: #294765;
  --theme-panel-readout-text: #dce8f8;
  --theme-card: #ffffff;
  --theme-dark-card: #132845;
}

body.theme--foundry {
  --brand: #d9823b;
  --brand-strong: #a95724;
  --brand-soft: #fcebdd;
  --ink: #2e2521;
  --ink-2: #3d302a;
  --ink-3: #4e3b32;
  --text: #4c4039;
  --muted: #78675d;
  --line: #e3d7cc;
  --line-dark: #60483c;
  --surface: #fdfaf6;
  --surface-alt: #f4ece4;
  --surface-dark: #251c18;
  --shadow-sm: 0 10px 26px rgba(53, 35, 25, .08);
  --shadow: 0 25px 68px rgba(53, 35, 25, .14);
  --focus: 0 0 0 4px rgba(217, 130, 59, .3);
  --radius-xs: 0;
  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;
  --theme-utility: #1c1512;
  --theme-utility-text: #e3cdc0;
  --theme-hero-middle: #493027;
  --theme-hero-end: #1c1411;
  --theme-panel: #3b2a24;
  --theme-panel-border: #765243;
  --theme-panel-light: #fffaf3;
  --theme-panel-light-end: #f1dfd0;
  --theme-panel-muted: #d5b7a5;
  --theme-panel-readout: #30211d;
  --theme-panel-readout-border: #5f4035;
  --theme-panel-readout-text: #f8e7db;
  --theme-card: #fffdf9;
  --theme-dark-card: #35251f;
}

body.theme--blueprint {
  --brand: #1769d1;
  --brand-strong: #0e4c9d;
  --brand-soft: #ddebff;
  --ink: #102f59;
  --ink-2: #174474;
  --ink-3: #21588f;
  --text: #385879;
  --muted: #536b85;
  --line: #cbddec;
  --line-dark: #3f6b95;
  --surface: #f9fcff;
  --surface-alt: #eaf4fc;
  --surface-dark: #082b58;
  --shadow-sm: 0 8px 22px rgba(12, 61, 112, .08);
  --shadow: 0 22px 56px rgba(12, 61, 112, .13);
  --focus: 0 0 0 4px rgba(23, 105, 209, .3);
  --radius-xs: 0;
  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;
  --theme-utility: #062349;
  --theme-utility-text: #c4d9ef;
  --theme-hero-middle: #0c417d;
  --theme-hero-end: #061f42;
  --theme-panel: #0b396d;
  --theme-panel-border: #3979af;
  --theme-panel-light: #f6fbff;
  --theme-panel-light-end: #dceefd;
  --theme-panel-muted: #bad4ea;
  --theme-panel-readout: #082e59;
  --theme-panel-readout-border: #2d628f;
  --theme-panel-readout-text: #e6f3ff;
  --theme-card: #ffffff;
  --theme-dark-card: #0a3767;
}

body.theme--evergreen {
  --brand: #4ca47c;
  --brand-strong: #34785c;
  --brand-soft: #e0f0e7;
  --ink: #18372d;
  --ink-2: #20483b;
  --ink-3: #2c5d4c;
  --text: #3f5a50;
  --muted: #596f65;
  --line: #d4e1d8;
  --line-dark: #416c5c;
  --surface: #fbfdf9;
  --surface-alt: #eef4ee;
  --surface-dark: #102b26;
  --shadow-sm: 0 10px 28px rgba(17, 52, 42, .08);
  --shadow: 0 24px 64px rgba(17, 52, 42, .14);
  --focus: 0 0 0 4px rgba(76, 164, 124, .3);
  --radius-xs: 10px;
  --radius-sm: 15px;
  --radius: 22px;
  --radius-lg: 34px;
  --theme-utility: #0b211d;
  --theme-utility-text: #bcd4ca;
  --theme-hero-middle: #1e4b3d;
  --theme-hero-end: #0d241f;
  --theme-panel: #1b4035;
  --theme-panel-border: #4d7d6b;
  --theme-panel-light: #f7fcf7;
  --theme-panel-light-end: #dcecdf;
  --theme-panel-muted: #c4d9cf;
  --theme-panel-readout: #15362e;
  --theme-panel-readout-border: #3e6959;
  --theme-panel-readout-text: #e3f0e8;
  --theme-card: #ffffff;
  --theme-dark-card: #1a4035;
}

/*
  Colour themes are independent from layout themes. These blocks deliberately
  override every shared colour token while leaving geometry and typography to
  the selected layout. This gives all 25 layout/palette combinations the same
  component coverage.
*/
body.palette--precision {
  --brand: #f4cf00;
  --brand-strong: #d8b600;
  --brand-soft: #fff8c9;
  --ink: #171717;
  --ink-2: #202024;
  --ink-3: #2c2c31;
  --text: #28282d;
  --muted: #6f6f78;
  --line: #e2e2e5;
  --line-dark: #3a3a40;
  --surface: #ffffff;
  --surface-alt: #f4f5f6;
  --surface-dark: #171719;
  --shadow-sm: 0 8px 25px rgba(17, 17, 20, .07);
  --shadow: 0 22px 65px rgba(17, 17, 20, .11);
  --focus: 0 0 0 4px rgba(244, 207, 0, .35);
  --theme-eyebrow: #6d5c00;
  --theme-utility: #111113;
  --theme-utility-text: #c9c9cf;
  --theme-hero-middle: #1c1c20;
  --theme-hero-end: #131315;
  --theme-panel: #29292e;
  --theme-panel-border: #424248;
  --theme-panel-light: #f8f8f9;
  --theme-panel-light-end: #e9e9eb;
  --theme-panel-muted: #a8a8b0;
  --theme-panel-readout: #202024;
  --theme-panel-readout-border: #35353a;
  --theme-panel-readout-text: #f1f1f2;
  --theme-card: #ffffff;
  --theme-dark-card: #242428;
  --theme-on-brand: #171717;
  --theme-on-dark: #ffffff;
  --theme-accent-on-dark: #f4cf00;
}

body.palette--executive {
  --brand: #3d7eff;
  --brand-strong: #285ec8;
  --brand-soft: #e7efff;
  --ink: #12213a;
  --ink-2: #172b49;
  --ink-3: #213957;
  --text: #30415c;
  --muted: #5f6e84;
  --line: #d8e1ed;
  --line-dark: #345174;
  --surface: #fcfdff;
  --surface-alt: #f0f4fa;
  --surface-dark: #0d1b33;
  --shadow-sm: 0 10px 26px rgba(12, 34, 66, .08);
  --shadow: 0 25px 68px rgba(12, 34, 66, .14);
  --focus: 0 0 0 4px rgba(61, 126, 255, .3);
  --theme-eyebrow: #285ec8;
  --theme-utility: #09162a;
  --theme-utility-text: #b9cae5;
  --theme-hero-middle: #193563;
  --theme-hero-end: #091426;
  --theme-panel: #152949;
  --theme-panel-border: #34557f;
  --theme-panel-light: #f5f8ff;
  --theme-panel-light-end: #dce8f8;
  --theme-panel-muted: #b8c9df;
  --theme-panel-readout: #10233f;
  --theme-panel-readout-border: #294765;
  --theme-panel-readout-text: #dce8f8;
  --theme-card: #ffffff;
  --theme-dark-card: #132845;
  --theme-on-brand: #09162a;
  --theme-on-dark: #ffffff;
  --theme-accent-on-dark: #3d7eff;
}

body.palette--foundry {
  --brand: #d9823b;
  --brand-strong: #a95724;
  --brand-soft: #fcebdd;
  --ink: #2e2521;
  --ink-2: #3d302a;
  --ink-3: #4e3b32;
  --text: #4c4039;
  --muted: #78675d;
  --line: #e3d7cc;
  --line-dark: #60483c;
  --surface: #fdfaf6;
  --surface-alt: #f4ece4;
  --surface-dark: #251c18;
  --shadow-sm: 0 10px 26px rgba(53, 35, 25, .08);
  --shadow: 0 25px 68px rgba(53, 35, 25, .14);
  --focus: 0 0 0 4px rgba(217, 130, 59, .3);
  --theme-eyebrow: #a45124;
  --theme-utility: #1c1512;
  --theme-utility-text: #e3cdc0;
  --theme-hero-middle: #493027;
  --theme-hero-end: #1c1411;
  --theme-panel: #3b2a24;
  --theme-panel-border: #765243;
  --theme-panel-light: #fffaf3;
  --theme-panel-light-end: #f1dfd0;
  --theme-panel-muted: #d5b7a5;
  --theme-panel-readout: #30211d;
  --theme-panel-readout-border: #5f4035;
  --theme-panel-readout-text: #f8e7db;
  --theme-card: #fffdf9;
  --theme-dark-card: #35251f;
  --theme-on-brand: #251c18;
  --theme-on-dark: #ffffff;
  --theme-accent-on-dark: #d9823b;
}

body.palette--blueprint {
  --brand: #1769d1;
  --brand-strong: #0e4c9d;
  --brand-soft: #ddebff;
  --ink: #102f59;
  --ink-2: #174474;
  --ink-3: #21588f;
  --text: #385879;
  --muted: #536b85;
  --line: #cbddec;
  --line-dark: #3f6b95;
  --surface: #f9fcff;
  --surface-alt: #eaf4fc;
  --surface-dark: #082b58;
  --shadow-sm: 0 8px 22px rgba(12, 61, 112, .08);
  --shadow: 0 22px 56px rgba(12, 61, 112, .13);
  --focus: 0 0 0 4px rgba(23, 105, 209, .3);
  --theme-eyebrow: #0e4c9d;
  --theme-utility: #062349;
  --theme-utility-text: #c4d9ef;
  --theme-hero-middle: #0c417d;
  --theme-hero-end: #061f42;
  --theme-panel: #0b396d;
  --theme-panel-border: #3979af;
  --theme-panel-light: #f6fbff;
  --theme-panel-light-end: #dceefd;
  --theme-panel-muted: #bad4ea;
  --theme-panel-readout: #082e59;
  --theme-panel-readout-border: #2d628f;
  --theme-panel-readout-text: #e6f3ff;
  --theme-card: #ffffff;
  --theme-dark-card: #0a3767;
  --theme-on-brand: #ffffff;
  --theme-on-dark: #ffffff;
  --theme-accent-on-dark: #72b3ff;
}

body.palette--evergreen {
  --brand: #4ca47c;
  --brand-strong: #34785c;
  --brand-soft: #e0f0e7;
  --ink: #18372d;
  --ink-2: #20483b;
  --ink-3: #2c5d4c;
  --text: #3f5a50;
  --muted: #596f65;
  --line: #d4e1d8;
  --line-dark: #416c5c;
  --surface: #fbfdf9;
  --surface-alt: #eef4ee;
  --surface-dark: #102b26;
  --shadow-sm: 0 10px 28px rgba(17, 52, 42, .08);
  --shadow: 0 24px 64px rgba(17, 52, 42, .14);
  --focus: 0 0 0 4px rgba(76, 164, 124, .3);
  --theme-eyebrow: #34785c;
  --theme-utility: #0b211d;
  --theme-utility-text: #bcd4ca;
  --theme-hero-middle: #1e4b3d;
  --theme-hero-end: #0d241f;
  --theme-panel: #1b4035;
  --theme-panel-border: #4d7d6b;
  --theme-panel-light: #f7fcf7;
  --theme-panel-light-end: #dcecdf;
  --theme-panel-muted: #c4d9cf;
  --theme-panel-readout: #15362e;
  --theme-panel-readout-border: #3e6959;
  --theme-panel-readout-text: #e3f0e8;
  --theme-card: #ffffff;
  --theme-dark-card: #1a4035;
  --theme-on-brand: #102b26;
  --theme-on-dark: #ffffff;
  --theme-accent-on-dark: #4ca47c;
}

body.theme--executive h1,
body.theme--executive h2,
body.theme--executive h3,
body.theme--executive h4 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.045em;
}

body.theme--foundry h1,
body.theme--foundry h2,
body.theme--foundry h3,
body.theme--foundry h4 {
  font-family: Rockwell, "Roboto Slab", "Courier New", serif;
  font-weight: 700;
  letter-spacing: -.035em;
}

body.theme--blueprint h1,
body.theme--blueprint h2,
body.theme--blueprint h3,
body.theme--blueprint h4 {
  font-family: "Arial Narrow", "Roboto Condensed", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

body.theme--evergreen h1,
body.theme--evergreen h2,
body.theme--evergreen h3,
body.theme--evergreen h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -.028em;
}

body.theme--executive .utility-bar,
body.theme--foundry .utility-bar,
body.theme--blueprint .utility-bar,
body.theme--evergreen .utility-bar {
  color: var(--theme-utility-text);
  background: var(--theme-utility);
  border-bottom-color: var(--line-dark);
}

body.theme--executive .site-nav__link,
body.theme--foundry .site-nav__link,
body.theme--blueprint .site-nav__link,
body.theme--evergreen .site-nav__link,
body.theme--executive .header-portal,
body.theme--foundry .header-portal,
body.theme--blueprint .header-portal,
body.theme--evergreen .header-portal { color: var(--theme-utility-text); }

body.theme--executive .site-nav__link:hover,
body.theme--foundry .site-nav__link:hover,
body.theme--blueprint .site-nav__link:hover,
body.theme--evergreen .site-nav__link:hover { color: var(--theme-on-dark); background: color-mix(in srgb, var(--surface-dark) 88%, var(--theme-on-dark)); }

body.theme--executive .mobile-navigation,
body.theme--foundry .mobile-navigation,
body.theme--blueprint .mobile-navigation,
body.theme--evergreen .mobile-navigation { background: var(--surface-dark); border-top-color: var(--line-dark); }

body.theme--executive .home-hero,
body.theme--foundry .home-hero,
body.theme--blueprint .home-hero,
body.theme--evergreen .home-hero {
  background:
    radial-gradient(circle at 83% 24%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 28%),
    linear-gradient(120deg, color-mix(in srgb, var(--surface-dark) 88%, transparent) 0%, color-mix(in srgb, var(--theme-hero-middle) 88%, transparent) 55%, color-mix(in srgb, var(--theme-hero-end) 92%, transparent) 100%),
    var(--theme-hero-image, none) center / cover no-repeat,
    linear-gradient(120deg, var(--surface-dark) 0%, var(--theme-hero-middle) 55%, var(--theme-hero-end) 100%);
}

body.theme--blueprint .home-hero__grid { opacity: .58; background-size: 42px 42px; }
body.theme--evergreen .home-hero__grid { opacity: .24; background-size: 76px 76px; }
body.theme--foundry .home-hero__grid { opacity: .2; background-size: 72px 72px; }

body.theme--executive .machine-panel,
body.theme--foundry .machine-panel,
body.theme--blueprint .machine-panel,
body.theme--evergreen .machine-panel {
  background: linear-gradient(145deg, var(--theme-panel), var(--surface-dark));
  border-color: var(--theme-panel-border);
  box-shadow: 0 38px 100px color-mix(in srgb, var(--surface-dark) 72%, transparent);
}

body.theme--executive .machine-panel__mark,
body.theme--foundry .machine-panel__mark,
body.theme--blueprint .machine-panel__mark,
body.theme--evergreen .machine-panel__mark { background: var(--theme-panel-light); }

body.theme--executive .machine-panel__topline,
body.theme--foundry .machine-panel__topline,
body.theme--blueprint .machine-panel__topline,
body.theme--evergreen .machine-panel__topline,
body.theme--executive .machine-panel__footer p,
body.theme--foundry .machine-panel__footer p,
body.theme--blueprint .machine-panel__footer p,
body.theme--evergreen .machine-panel__footer p { color: var(--theme-panel-muted); }

body.theme--executive .machine-panel__readout div,
body.theme--foundry .machine-panel__readout div,
body.theme--blueprint .machine-panel__readout div,
body.theme--evergreen .machine-panel__readout div { background: var(--theme-panel-readout); border-color: var(--theme-panel-readout-border); }

body.theme--executive .machine-panel__readout strong,
body.theme--foundry .machine-panel__readout strong,
body.theme--blueprint .machine-panel__readout strong,
body.theme--evergreen .machine-panel__readout strong { color: var(--theme-panel-readout-text); }

body.theme--executive .service-card,
body.theme--executive .principle-card,
body.theme--executive .project-card,
body.theme--executive .work-example,
body.theme--executive .contact-form-card,
body.theme--foundry .service-card,
body.theme--foundry .principle-card,
body.theme--foundry .project-card,
body.theme--foundry .work-example,
body.theme--foundry .contact-form-card,
body.theme--blueprint .service-card,
body.theme--blueprint .principle-card,
body.theme--blueprint .project-card,
body.theme--blueprint .work-example,
body.theme--blueprint .contact-form-card,
body.theme--evergreen .service-card,
body.theme--evergreen .principle-card,
body.theme--evergreen .project-card,
body.theme--evergreen .work-example,
body.theme--evergreen .contact-form-card { background: var(--theme-card); border-color: var(--line); }

body.theme--executive .sectors-section,
body.theme--executive .dark-feature,
body.theme--foundry .sectors-section,
body.theme--foundry .dark-feature,
body.theme--blueprint .sectors-section,
body.theme--blueprint .dark-feature,
body.theme--evergreen .sectors-section,
body.theme--evergreen .dark-feature { background: var(--surface-dark); }

body.theme--executive .sector-card,
body.theme--executive .dark-feature__diagram span:not(:nth-of-type(4)),
body.theme--foundry .sector-card,
body.theme--foundry .dark-feature__diagram span:not(:nth-of-type(4)),
body.theme--blueprint .sector-card,
body.theme--blueprint .dark-feature__diagram span:not(:nth-of-type(4)),
body.theme--evergreen .sector-card,
body.theme--evergreen .dark-feature__diagram span:not(:nth-of-type(4)) { background: var(--theme-dark-card); border-color: var(--line-dark); }

body.theme--executive .work-example__visual,
body.theme--foundry .work-example__visual,
body.theme--blueprint .work-example__visual,
body.theme--evergreen .work-example__visual { background: linear-gradient(135deg, var(--surface-dark), var(--theme-dark-card)); }

body.theme--executive .page-hero,
body.theme--foundry .page-hero,
body.theme--blueprint .page-hero,
body.theme--evergreen .page-hero { background: linear-gradient(125deg, var(--surface-dark), var(--theme-dark-card)); }

body.theme--executive .eyebrow,
body.theme--foundry .eyebrow,
body.theme--blueprint .eyebrow,
body.theme--evergreen .eyebrow,
body.theme--executive .machine-partner-card > span,
body.theme--foundry .machine-partner-card > span,
body.theme--blueprint .machine-partner-card > span,
body.theme--evergreen .machine-partner-card > span { color: var(--theme-eyebrow); }

body.theme--executive .eyebrow--light,
body.theme--foundry .eyebrow--light,
body.theme--blueprint .eyebrow--light,
body.theme--evergreen .eyebrow--light { color: var(--theme-accent-on-dark); }

body.theme--executive .cta-band .eyebrow,
body.theme--executive .cta-band p:not(.eyebrow),
body.theme--foundry .cta-band .eyebrow,
body.theme--foundry .cta-band p:not(.eyebrow),
body.theme--blueprint .cta-band .eyebrow,
body.theme--blueprint .cta-band p:not(.eyebrow),
body.theme--evergreen .cta-band .eyebrow,
body.theme--evergreen .cta-band p:not(.eyebrow) { color: var(--theme-on-brand); }

body.theme--blueprint .process-grid { border-top-width: 1px; }
body.theme--blueprint .service-card__icon,
body.theme--blueprint .about-panel__item > span { border-radius: 4px; }
body.theme--evergreen .service-card__icon,
body.theme--evergreen .about-panel__item > span { border-radius: 50%; }

/*
  Layout directions alter composition, grid rhythm and hierarchy without
  requiring a content migration. Desktop and responsive variants remain
  layout-owned; palette tokens continue to supply colour independently.
*/
@media (min-width: 1161px) {
  /* Executive: editorial consultancy */
  body.theme--executive .main-header__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; }
  body.theme--executive .site-nav { margin-left: 0; justify-self: center; }
  body.theme--executive .home-hero__inner { min-height: clamp(600px, 68vh, 760px); grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr); gap: clamp(48px, 6vw, 100px); }
  body.theme--executive .home-hero__copy { max-width: 590px; }
  body.theme--executive .machine-panel { padding: 24px; transform: none; }
  body.theme--executive.page-template-home .split-intro { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(58px, 8vw, 132px); }
  body.theme--executive.page-template-home .service-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
  body.theme--executive.page-template-home .service-card { grid-column: span 4; min-height: 330px; }
  body.theme--executive.page-template-home .service-card:nth-child(-n + 2) { grid-column: span 6; }
  body.theme--executive .project-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; }
  body.theme--executive .project-card { grid-column: span 4; }
  body.theme--executive .project-card:first-child { display: grid; min-height: 340px; grid-column: span 7; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); }
  body.theme--executive .project-card:nth-child(2) { grid-column: span 5; }
  body.theme--executive .project-card:first-child .project-card__media img,
  body.theme--executive .project-card:first-child .project-card__placeholder { height: 100%; aspect-ratio: auto; }
  body.theme--executive .project-card:first-child .project-card__body { min-height: 100%; }
  body.theme--executive.page-template-services .service-grid--detail { grid-template-columns: 1fr; gap: 14px; }
  body.theme--executive.page-template-services .service-card--detail { display: grid; min-height: 0; padding: 27px 30px; grid-template-columns: 72px minmax(0, 1fr) minmax(160px, 210px); column-gap: 28px; align-items: center; }
  body.theme--executive .service-card--detail > .service-card__heading { grid-row: 1; grid-column: 1; margin: 0; align-self: start; }
  body.theme--executive .service-card--detail > .service-card__content { grid-row: 1; grid-column: 2; }
  body.theme--executive .service-card--detail > .service-card__actions { width: 100%; min-width: 0; max-width: 210px; grid-row: 1; grid-column: 3; margin: 0; align-self: center; justify-self: end; }
  body.theme--executive .service-card--detail > .service-detail-fallback { grid-row: 2; grid-column: 1 / -1; }
  body.theme--executive .about-intro { grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); }
  body.theme--executive .contact-layout { grid-template-columns: minmax(320px, .68fr) minmax(0, 1.32fr); }
  body.theme--executive .project-layout { grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr); }

  /* Foundry: industrial modular catalogue */
  body.theme--foundry { --shell: 1380px; }
  body.theme--foundry .main-header__inner { min-height: 76px; gap: 26px; }
  body.theme--foundry .site-nav__list { gap: 0; }
  body.theme--foundry .site-nav__link { border-radius: 0; }
  body.theme--foundry .home-hero__inner { min-height: clamp(560px, 62vh, 690px); grid-template-columns: minmax(0, 1.16fr) minmax(410px, .84fr); gap: 52px; }
  body.theme--foundry .machine-panel { border-width: 2px; border-radius: 0; transform: none; }
  body.theme--foundry .machine-panel__mark { border-radius: 0; }
  body.theme--foundry.page-template-home .service-grid,
  body.theme--foundry.page-template-services .service-grid--detail { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  body.theme--foundry.page-template-home .service-card,
  body.theme--foundry.page-template-services .service-card--detail { grid-column: span 4; min-height: 0; border-width: 0 1px 1px 0; border-radius: 0; box-shadow: none; }
  body.theme--foundry.page-template-home .service-card:first-child { grid-column: span 6; }
  body.theme--foundry.page-template-home .service-card:nth-child(2),
  body.theme--foundry.page-template-home .service-card:nth-child(3) { grid-column: span 3; }
  body.theme--foundry.page-template-services .service-card--detail:first-child { grid-column: span 12; }
  body.theme--foundry.page-template-services .service-card--detail { grid-column: span 6; }
  body.theme--foundry .project-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  body.theme--foundry .project-card { grid-column: span 4; border-width: 0 1px 1px 0; border-radius: 0; box-shadow: none; }
  body.theme--foundry .project-card:first-child { grid-column: span 7; }
  body.theme--foundry .project-card:nth-child(2) { grid-column: span 5; }
  body.theme--foundry .process-grid { border: 1px solid var(--line); }
  body.theme--foundry .process-card { padding: 32px 26px; background: var(--theme-card); border-left: 1px solid var(--line); }
  body.theme--foundry .process-card:first-child { border-left: 0; }
  body.theme--foundry .process-card::before { display: none; }
  body.theme--foundry .systems-layout { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
  body.theme--foundry .systems-layout > div:first-child { padding-right: 34px; border-right: 2px solid var(--brand); }
  body.theme--foundry .work-examples { gap: 0; }
  body.theme--foundry .work-example { border-radius: 0; box-shadow: none; }

  /* Blueprint: technical dossier */
  body.theme--blueprint { --shell: 1320px; }
  body.theme--blueprint .main-header__inner { min-height: 74px; }
  body.theme--blueprint .site-nav__link { padding-inline: 14px; border-radius: 0; font-family: ui-monospace, monospace; font-size: .7rem; letter-spacing: .05em; }
  body.theme--blueprint .home-hero__inner { min-height: 0; padding-block: 64px; grid-template-columns: 1fr; gap: 38px; }
  body.theme--blueprint .home-hero__copy { display: grid; max-width: none; grid-template-columns: minmax(0, .8fr) minmax(300px, .6fr); column-gap: clamp(52px, 8vw, 140px); }
  body.theme--blueprint .home-hero__copy .eyebrow,
  body.theme--blueprint .home-hero__copy h1,
  body.theme--blueprint .home-hero__copy .home-hero__lead,
  body.theme--blueprint .home-hero__copy .button-row { grid-column: 1; }
  body.theme--blueprint .home-hero__copy .hero-assurances { grid-row: 1 / span 4; grid-column: 2; align-self: center; margin: 0; padding: 22px 0 22px 24px; border-left: 1px solid rgba(255,255,255,.35); }
  body.theme--blueprint .home-hero__visual { max-width: none; }
  body.theme--blueprint .machine-panel { display: grid; padding: 20px; grid-template-areas: "top top" "mark readout" "mark footer"; grid-template-columns: minmax(0, 1.35fr) minmax(245px, .65fr); gap: 15px 20px; border-radius: 0; transform: none; }
  body.theme--blueprint .machine-panel__topline { grid-area: top; padding: 3px 2px 8px; }
  body.theme--blueprint .machine-panel__mark { grid-area: mark; height: 350px; min-height: 350px; border-radius: 0; }
  body.theme--blueprint .machine-panel__readout { grid-area: readout; margin: 0; grid-template-columns: 1fr; }
  body.theme--blueprint .machine-panel__readout div { display: grid; padding: 18px; align-content: center; border-radius: 0; }
  body.theme--blueprint .machine-panel__footer { grid-area: footer; align-self: end; padding: 0 2px 4px; }
  body.theme--blueprint .page-hero__inner { width: min(calc(100% - 40px), 920px); text-align: center; }
  body.theme--blueprint .page-hero__lead { margin-inline: auto; }
  body.theme--blueprint.page-template-home .service-grid,
  body.theme--blueprint.page-template-services .service-grid--detail { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  body.theme--blueprint.page-template-home .service-card { display: grid; min-height: 0; padding: 24px 0; grid-template-columns: 68px minmax(210px, .7fr) minmax(0, 1.3fr) auto; column-gap: 22px; align-items: center; border-width: 0 0 1px; border-radius: 0; }
  body.theme--blueprint.page-template-home .service-card__icon { grid-row: 1 / span 2; grid-column: 1; margin: 0; }
  body.theme--blueprint.page-template-home .service-card h3 { grid-row: 1; grid-column: 2; margin: 0; }
  body.theme--blueprint.page-template-home .service-card p { grid-row: 1 / span 2; grid-column: 3; margin: 0; }
  body.theme--blueprint.page-template-home .service-card > a { grid-row: 2; grid-column: 4; margin: 0; }
  body.theme--blueprint.page-template-home .service-card__number { position: static; grid-row: 1; grid-column: 4; justify-self: end; }
  body.theme--blueprint.page-template-services .service-card--detail { display: grid; min-height: 0; padding: 26px 0; grid-template-columns: 72px minmax(0, 1fr) 185px; column-gap: 28px; align-items: center; border-width: 0 0 1px; border-radius: 0; }
  body.theme--blueprint .service-card--detail > .service-card__heading { grid-row: 1; grid-column: 1; margin: 0; align-self: start; }
  body.theme--blueprint .service-card--detail > .service-card__content { grid-row: 1; grid-column: 2; }
  body.theme--blueprint .service-card--detail > .service-card__actions { width: 100%; min-width: 0; max-width: 185px; grid-row: 1; grid-column: 3; margin: 0; justify-self: end; }
  body.theme--blueprint .service-card--detail > .service-detail-fallback { grid-row: 2; grid-column: 1 / -1; }
  body.theme--blueprint .project-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  body.theme--blueprint .project-card { display: grid; min-height: 276px; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); border-width: 0 0 1px; border-radius: 0; box-shadow: none; }
  body.theme--blueprint .project-card__media img,
  body.theme--blueprint .project-card__placeholder { height: 100%; min-height: 276px; aspect-ratio: auto; }
  body.theme--blueprint .project-card__body { min-height: 276px; }
  body.theme--blueprint .systems-layout,
  body.theme--blueprint .about-intro,
  body.theme--blueprint .contact-layout,
  body.theme--blueprint .project-layout { grid-template-columns: minmax(280px, .62fr) minmax(0, 1.38fr); gap: clamp(40px, 6vw, 92px); }
  body.theme--blueprint .about-panel,
  body.theme--blueprint .contact-form-card,
  body.theme--blueprint .project-facts { border-radius: 0; }

  /* Evergreen: spacious visual-led studio */
  body.theme--evergreen { --shell: 1300px; }
  body.theme--evergreen .main-header__inner { min-height: 90px; }
  body.theme--evergreen .site-nav__list { gap: 10px; }
  body.theme--evergreen .site-nav__link { padding-inline: 14px; }
  body.theme--evergreen .home-hero__inner { min-height: clamp(650px, 72vh, 800px); grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr); gap: clamp(62px, 8vw, 140px); }
  body.theme--evergreen .home-hero__copy { max-width: 560px; }
  body.theme--evergreen .machine-panel { padding: 26px; border-radius: 36px; transform: perspective(1200px) rotateY(-2deg); }
  body.theme--evergreen .machine-panel__mark { height: 340px; min-height: 340px; border-radius: 24px; }
  body.theme--evergreen.page-template-home .split-intro,
  body.theme--evergreen .about-intro,
  body.theme--evergreen .dark-feature__inner { grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(64px, 9vw, 150px); }
  body.theme--evergreen.page-template-home .service-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  body.theme--evergreen.page-template-home .service-card { grid-column: span 2; min-height: 320px; }
  body.theme--evergreen.page-template-home .service-card:nth-child(-n + 2) { grid-column: span 3; }
  body.theme--evergreen .project-grid { grid-auto-rows: minmax(180px, auto); grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
  body.theme--evergreen .project-card { grid-column: span 2; }
  body.theme--evergreen .project-card:first-child { grid-row: span 2; grid-column: span 4; }
  body.theme--evergreen .project-card:first-child .project-card__media img,
  body.theme--evergreen .project-card:first-child .project-card__placeholder { min-height: 330px; aspect-ratio: 16 / 9; }
  body.layout--evergreen.page-template-about .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 24px;
  }
  body.layout--evergreen.page-template-about .principle-card { grid-column: auto; }
  body.theme--evergreen .process-grid { gap: 18px; border: 0; }
  body.theme--evergreen .process-card { min-height: 250px; padding: 30px; background: var(--theme-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
  body.theme--evergreen .process-card::before { top: 21px; left: auto; right: 21px; }
  body.theme--evergreen.page-template-services .service-grid--detail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  body.theme--evergreen.page-template-services .service-card--detail { min-height: 0; padding: 36px; }
  body.theme--evergreen .cta-band__inner { padding-inline: clamp(24px, 4vw, 64px); }
  body.theme--evergreen .site-footer__grid { grid-template-columns: minmax(0, 1.5fr) .7fr .9fr; gap: clamp(54px, 8vw, 128px); }

  /* Executive: oversized editorial hierarchy and horizontal service index. */
  body.layout--executive .main-header__inner { grid-template-areas: "navigation brand actions"; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); min-height: 104px; }
  body.layout--executive .main-header__inner > .brand-lockup { grid-area: brand; justify-self: center; }
  body.layout--executive .site-nav { grid-area: navigation; justify-self: start; }
  body.layout--executive .header-actions { grid-area: actions; justify-self: end; }
  body.layout--executive .site-nav__link { padding-inline: 8px; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
  body.layout--executive .home-hero__copy {
    max-width: none;
    padding: clamp(38px, 4.6vw, 68px);
    color: var(--text);
    background: var(--theme-card);
    border-top: 7px solid var(--brand);
    box-shadow: 0 35px 90px color-mix(in srgb, var(--surface-dark) 46%, transparent);
  }
  body.layout--executive .home-hero__copy h1 { color: var(--ink); }
  body.layout--executive .home-hero__copy .eyebrow,
  body.layout--executive .home-hero__copy .hero-assurances .icon { color: var(--theme-eyebrow); }
  body.layout--executive .home-hero__copy .home-hero__lead { color: var(--muted); }
  body.layout--executive .home-hero__copy .hero-assurances { color: var(--text); }
  body.layout--executive .home-hero__copy .button--ghost-light { color: var(--ink); background: transparent; border-color: var(--line); }
  body.layout--executive .home-hero__copy .button--ghost-light:hover { background: var(--surface-alt); border-color: var(--brand-strong); }
  body.layout--executive .home-hero__visual { align-self: stretch; display: grid; margin-right: -6vw; align-items: center; }
  body.layout--executive .machine-panel { border-radius: 2px; }
  body.layout--executive .page-hero__inner {
    display: grid;
    grid-template-columns: minmax(170px, .28fr) minmax(0, 1fr);
    column-gap: clamp(42px, 7vw, 110px);
    align-items: start;
  }
  body.layout--executive .page-hero__inner > .eyebrow { grid-row: 1 / span 2; grid-column: 1; padding-top: 11px; }
  body.layout--executive .page-hero__inner > h1,
  body.layout--executive .page-hero__inner > .page-hero__lead { grid-column: 2; }
  body.layout--executive .page-hero__inner > h1 { margin-bottom: 30px; }
  body.layout--executive.page-template-services .section--muted { background: var(--surface); }
  body.layout--executive.page-template-services .service-card--detail { border-left: 4px solid var(--brand); box-shadow: var(--shadow-sm); }
  body.layout--executive.page-template-services .service-card--detail:hover { transform: translateX(6px); }
  body.layout--executive .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px clamp(70px, 12vw, 180px); }
  body.layout--executive .site-footer__brand { padding-bottom: 45px; grid-column: 1 / -1; border-bottom: 1px solid var(--line-dark); }

  /* Foundry: persistent industrial navigation rail and modular catalogue. */
  body.layout--foundry { --foundry-rail: clamp(258px, 22vw, 292px); }
  body.layout--foundry .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--foundry-rail);
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid var(--line-dark);
    border-bottom: 0;
    box-shadow: 18px 0 50px color-mix(in srgb, var(--surface-dark) 22%, transparent);
  }
  body.layout--foundry .site-header .shell { width: auto; margin: 0; }
  body.layout--foundry .site-header.is-condensed .utility-bar { display: block; }
  body.layout--foundry .utility-bar__inner {
    display: grid;
    min-height: 0;
    padding: 25px 26px;
    justify-content: stretch;
    gap: 17px;
    border-bottom: 1px solid var(--line-dark);
  }
  body.layout--foundry .utility-bar__links { display: grid; gap: 10px; }
  body.layout--foundry .main-header__inner,
  body.layout--foundry .site-header.is-condensed .main-header__inner {
    display: flex;
    min-height: 0;
    padding: 30px 26px;
    flex-direction: column;
    align-items: stretch;
    gap: 34px;
  }
  body.layout--foundry .brand-lockup { width: 100%; min-width: 0; }
  body.layout--foundry .brand-lockup__mark { width: 96px; }
  body.layout--foundry .brand-lockup__copy strong { white-space: normal; }
  body.layout--foundry .brand-lockup__full-image { width: min(100%, 190px); }
  body.layout--foundry .site-nav { width: 100%; margin: 0; }
  body.layout--foundry .site-nav__list { display: grid; width: 100%; align-items: stretch; }
  body.layout--foundry .site-nav__link {
    padding: 13px 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: .79rem;
    letter-spacing: .055em;
    text-transform: uppercase;
  }
  body.layout--foundry .site-nav__link.is-active { padding-left: 14px; border-left: 4px solid var(--brand); }
  body.layout--foundry .header-actions { display: grid; width: 100%; gap: 13px; }
  body.layout--foundry .header-actions .button { width: 100%; border-radius: 0; }
  body.layout--foundry .header-portal { padding-bottom: 11px; border-bottom: 1px solid var(--line-dark); }
  body.layout--foundry .site-main,
  body.layout--foundry .site-footer { margin-left: var(--foundry-rail); }
  body.layout--foundry .home-hero__copy { padding: clamp(34px, 4.4vw, 70px); background: color-mix(in srgb, var(--surface-dark) 74%, transparent); border: 1px solid var(--line-dark); }
  body.layout--foundry .page-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(330px, 1.2fr);
    column-gap: clamp(52px, 8vw, 120px);
    align-items: end;
  }
  body.layout--foundry .page-hero__inner > .eyebrow,
  body.layout--foundry .page-hero__inner > h1 { grid-column: 1; }
  body.layout--foundry .page-hero__inner > .page-hero__lead { grid-row: 2; grid-column: 2; padding: 25px 0 5px 28px; border-left: 1px solid var(--line-dark); }
  body.layout--foundry.page-template-services .service-card--detail:first-child {
    display: grid;
    padding: 40px;
    grid-template-columns: 86px minmax(0, 1fr) minmax(160px, 210px);
    column-gap: 34px;
    align-items: center;
  }
  body.layout--foundry.page-template-services .service-card--detail:first-child > .service-card__heading,
  body.layout--foundry.page-template-services .service-card--detail:first-child > .service-card__content,
  body.layout--foundry.page-template-services .service-card--detail:first-child > .service-card__actions { margin: 0; }
  body.layout--foundry.page-template-services .service-card--detail:first-child > .service-card__heading { grid-column: 1; }
  body.layout--foundry.page-template-services .service-card--detail:first-child > .service-card__content { grid-column: 2; }
  body.layout--foundry.page-template-services .service-card--detail:first-child > .service-card__actions { width: 100%; min-width: 0; max-width: 210px; grid-column: 3; justify-self: end; }
  body.layout--foundry.page-template-services .service-card--detail:first-child > .service-detail-fallback { grid-row: 2; grid-column: 1 / -1; }

  /* Blueprint: framed technical sheets, schedules and ruled process tables. */
  body.layout--blueprint .site-header { border-bottom: 3px solid var(--brand); box-shadow: none; }
  body.layout--blueprint .home-hero,
  body.layout--blueprint .page-hero { margin: 18px; border: 1px solid var(--line-dark); }
  body.layout--blueprint .home-hero::before,
  body.layout--blueprint .page-hero::after { width: 4px; }
  body.layout--blueprint .page-hero__inner {
    display: grid;
    width: min(calc(100% - 64px), 1180px);
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .65fr);
    column-gap: clamp(52px, 8vw, 120px);
    align-items: end;
    text-align: left;
  }
  body.layout--blueprint .page-hero__inner > .eyebrow,
  body.layout--blueprint .page-hero__inner > h1 { grid-column: 1; }
  body.layout--blueprint .page-hero__inner > .page-hero__lead { grid-row: 2; grid-column: 2; padding: 25px 0 4px 27px; border-left: 1px solid var(--line-dark); }
  body.layout--blueprint .page-hero__lead { margin: 0; }
  body.layout--blueprint .section-heading { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  body.layout--blueprint .process-grid { border: 1px solid var(--line); }
  body.layout--blueprint .process-card { min-height: 230px; padding: 28px; border-right: 1px solid var(--line); }
  body.layout--blueprint .process-card:last-child { border-right: 0; }
  body.layout--blueprint .process-card::before { display: none; }
  body.layout--blueprint .process-card > span { color: var(--theme-eyebrow); }
  body.layout--blueprint.page-template-services .section--muted { background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 48px; }
  body.layout--blueprint.page-template-services .service-card--detail { background: color-mix(in srgb, var(--theme-card) 94%, transparent); }

  /* Evergreen: floating navigation, immersive hero and staggered content islands. */
  body.layout--evergreen .site-header {
    position: fixed;
    inset: 0 0 auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
  body.layout--evergreen .utility-bar { background: color-mix(in srgb, var(--theme-utility) 72%, transparent); border-bottom-color: color-mix(in srgb, var(--line-dark) 55%, transparent); }
  body.layout--evergreen .main-header__inner {
    min-height: 82px;
    margin-top: 14px;
    padding-inline: 24px;
    background: color-mix(in srgb, var(--surface-dark) 82%, transparent);
    border: 1px solid color-mix(in srgb, var(--line-dark) 72%, transparent);
    border-radius: 999px;
    box-shadow: 0 22px 60px color-mix(in srgb, var(--surface-dark) 34%, transparent);
    backdrop-filter: blur(18px);
  }
  body.layout--evergreen .home-hero__inner {
    min-height: max(920px, 100vh);
    padding-top: 210px;
    padding-bottom: 90px;
    grid-template-columns: 1fr;
    gap: 58px;
    text-align: center;
  }
  body.layout--evergreen .home-hero__copy { max-width: 900px; margin-inline: auto; }
  body.layout--evergreen .home-hero h1 { max-width: 900px; margin-inline: auto; font-size: clamp(4rem, 6.4vw, 6.8rem); }
  body.layout--evergreen .home-hero__lead { margin-inline: auto; }
  body.layout--evergreen .home-hero .button-row,
  body.layout--evergreen .hero-assurances { justify-content: center; }
  body.layout--evergreen .home-hero__visual { width: min(100%, 900px); margin-inline: auto; }
  body.layout--evergreen .machine-panel { transform: none; }
  body.layout--evergreen .home-hero__grid { mask-image: radial-gradient(circle at center, #000, transparent 78%); }
  body.layout--evergreen .page-hero__inner { padding-top: 210px; padding-bottom: 115px; text-align: center; }
  body.layout--evergreen .page-hero h1,
  body.layout--evergreen .page-hero__lead { margin-inline: auto; }
  body.layout--evergreen .site-main > .section--muted,
  body.layout--evergreen .site-main > .cta-band { margin: 24px; border-radius: 48px; }
  body.layout--evergreen.page-template-home .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  body.layout--evergreen.page-template-home .service-card:nth-child(n) { grid-column: auto; min-height: 310px; padding: 40px; }
  body.layout--evergreen.page-template-home .service-card:first-child { grid-column: 1 / -1; min-height: 250px; }
  body.layout--evergreen.page-template-home .service-card:nth-child(even) { margin-top: 56px; }
  body.layout--evergreen.page-template-home .service-card:nth-child(odd):not(:first-child) { margin-bottom: 56px; }
  body.layout--evergreen.page-template-services .service-grid--detail { align-items: start; gap: 30px; }
  body.layout--evergreen.page-template-services .service-card--detail:nth-child(even) { margin-top: 64px; }
  body.layout--evergreen .section-heading { margin-bottom: 42px; }
}

@media (max-width: 1160px) {
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: grid; }
  .home-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 38px; }
  .machine-panel__mark { height: 260px; min-height: 260px; }
  .machine-panel__mark .machine-partner-card--image img { max-height: 100px; }
  .service-grid, .work-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 35px 0; }
  body.layout--precision .process-card:nth-child(n + 3),
  body.layout--executive .process-card:nth-child(n + 3) { margin-top: 0; padding-top: 38px; border-top: 2px solid var(--ink); }
  body.layout--precision .process-card:nth-child(n + 3)::before,
  body.layout--executive .process-card:nth-child(n + 3)::before { top: -7px; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }

  /* Precision: compact engineering controls and crisp accented cards. */
  body.layout--precision .site-header { border-bottom: 3px solid var(--brand); }
  body.layout--precision .mobile-navigation .site-nav__link.is-active { padding-inline: 13px; color: var(--theme-on-brand); background: var(--brand); border-bottom-color: var(--brand); }
  body.layout--precision .home-hero__copy { padding-left: clamp(20px, 3vw, 38px); border-left: 2px solid color-mix(in srgb, var(--brand) 72%, transparent); }
  body.layout--precision .section-heading { padding-bottom: 17px; border-bottom: 2px solid var(--ink); }
  body.layout--precision .service-card { border-top: 3px solid var(--brand); border-radius: 10px; }
  body.layout--precision .machine-panel { border-radius: 18px; }

  /* Executive: editorial content card, offset imagery and column navigation. */
  body.layout--executive .mobile-navigation nav { width: min(calc(100% - 40px), 780px); }
  body.layout--executive .mobile-navigation .site-nav__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  body.layout--executive .mobile-navigation .site-nav__link { font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; }
  body.layout--executive .home-hero__inner { grid-template-columns: 1fr; gap: 42px; align-items: start; }
  body.layout--executive .home-hero__copy { max-width: 790px; padding: clamp(32px, 6vw, 64px); color: var(--text); background: var(--theme-card); border-top: 7px solid var(--brand); box-shadow: 0 28px 70px color-mix(in srgb, var(--surface-dark) 44%, transparent); }
  body.layout--executive .home-hero__copy h1 { color: var(--ink); }
  body.layout--executive .home-hero__copy .eyebrow,
  body.layout--executive .home-hero__copy .hero-assurances .icon { color: var(--theme-eyebrow); }
  body.layout--executive .home-hero__copy .home-hero__lead { color: var(--muted); }
  body.layout--executive .home-hero__copy .hero-assurances { color: var(--text); }
  body.layout--executive .home-hero__copy .button--ghost-light { color: var(--ink); background: transparent; border-color: var(--muted); }
  body.layout--executive .home-hero__visual { width: min(88%, 690px); margin-left: auto; }
  body.layout--executive .machine-panel { border-radius: 2px; }
  body.layout--executive .page-hero__inner { display: grid; grid-template-columns: minmax(105px, .24fr) minmax(0, 1fr); column-gap: clamp(30px, 6vw, 78px); text-align: left; }
  body.layout--executive .page-hero__inner > .eyebrow { grid-row: 1 / span 2; grid-column: 1; padding-top: 9px; }
  body.layout--executive .page-hero__inner > h1,
  body.layout--executive .page-hero__inner > .page-hero__lead { grid-column: 2; }
  body.layout--executive .service-card { border-left: 4px solid var(--brand); border-radius: 2px; box-shadow: var(--shadow-sm); }

  /* Foundry: block-built modules, heavy rules and industrial navigation. */
  body.layout--foundry .site-header { border-bottom: 6px solid var(--brand); box-shadow: none; }
  body.layout--foundry .main-header__inner { min-height: 78px; }
  body.layout--foundry .menu-toggle,
  body.layout--foundry .button,
  body.layout--foundry .machine-panel,
  body.layout--foundry .machine-panel__mark { border-radius: 0; }
  body.layout--foundry .mobile-navigation { border-top-width: 2px; }
  body.layout--foundry .mobile-navigation .site-nav__list { gap: 0; }
  body.layout--foundry .mobile-navigation .site-nav__link { padding-inline: 14px; border: 1px solid var(--line-dark); margin-top: -1px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
  body.layout--foundry .mobile-navigation .site-nav__link.is-active { color: var(--theme-on-brand); background: var(--brand); border-color: var(--brand); }
  body.layout--foundry .home-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  body.layout--foundry .home-hero__copy { max-width: none; padding: clamp(27px, 5vw, 48px); background: color-mix(in srgb, var(--surface-dark) 76%, transparent); border: 2px solid var(--line-dark); }
  body.layout--foundry .home-hero__visual { width: 100%; max-width: 760px; margin: 0; }
  body.layout--foundry .section { border-bottom: 1px solid var(--line); }
  body.layout--foundry .service-grid { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  body.layout--foundry .service-card { border-width: 0 1px 1px 0; border-radius: 0; box-shadow: none; }
  body.layout--foundry .service-card:hover { transform: none; }
  body.layout--foundry .process-grid { gap: 0; border: 1px solid var(--line); }
  body.layout--foundry .process-card { padding: 28px; background: var(--theme-card); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  body.layout--foundry .process-card::before { display: none; }

  /* Blueprint: ruled dossier, indexed navigation and linear service schedule. */
  body.layout--blueprint .site-header { border-bottom: 3px solid var(--brand); box-shadow: none; }
  body.layout--blueprint .mobile-navigation .site-nav__list { counter-reset: mobile-blueprint-nav; gap: 0; }
  body.layout--blueprint .mobile-navigation .site-nav__item { counter-increment: mobile-blueprint-nav; }
  body.layout--blueprint .mobile-navigation .site-nav__link { display: grid; grid-template-columns: 34px 1fr; border-bottom: 1px solid var(--line-dark); font-family: ui-monospace, monospace; font-size: .78rem; letter-spacing: .04em; }
  body.layout--blueprint .mobile-navigation .site-nav__link::before { content: "0" counter(mobile-blueprint-nav); color: var(--theme-accent-on-dark); }
  body.layout--blueprint .home-hero,
  body.layout--blueprint .page-hero { margin: 12px; border: 1px solid var(--line-dark); }
  body.layout--blueprint .home-hero::before,
  body.layout--blueprint .page-hero::after { width: 4px; }
  body.layout--blueprint .home-hero__inner { grid-template-columns: 1fr; gap: 34px; }
  body.layout--blueprint .home-hero__visual { max-width: none; margin: 0; }
  body.layout--blueprint .machine-panel,
  body.layout--blueprint .machine-panel__mark { border-radius: 0; }
  body.layout--blueprint .section-heading { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  body.layout--blueprint .service-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  body.layout--blueprint .service-card { display: grid; padding: 25px 0; grid-template-columns: 58px minmax(0, 1fr); column-gap: 20px; border-width: 0 0 1px; border-radius: 0; box-shadow: none; }
  body.layout--blueprint .service-card__icon { grid-row: 1; grid-column: 1; margin: 0; }
  body.layout--blueprint .service-card__number { position: static; grid-row: 2; grid-column: 1; padding-top: 11px; text-align: center; }
  body.layout--blueprint .service-card > h3,
  body.layout--blueprint .service-card > p,
  body.layout--blueprint .service-card > a { grid-column: 2; }
  body.layout--blueprint .service-card > h3 { grid-row: 1; margin: 0 0 10px; }
  body.layout--blueprint .service-card > p { grid-row: 2; }
  body.layout--blueprint .service-card > a { grid-row: 3; }
  body.layout--blueprint .service-card--detail { grid-template-columns: 68px minmax(0, 1fr); }
  body.layout--blueprint .service-card--detail > .service-card__heading { grid-row: 1 / span 2; grid-column: 1; margin: 0; flex-direction: column; justify-content: flex-start; gap: 14px; }
  body.layout--blueprint .service-card--detail > .service-card__content,
  body.layout--blueprint .service-card--detail > .service-card__actions { grid-column: 2; }
  body.layout--blueprint .service-card--detail > .service-card__content { grid-row: 1; }
  body.layout--blueprint .service-card--detail > .service-card__actions { grid-row: 2; }
  body.layout--blueprint .service-card--detail > .service-detail-fallback { grid-row: 3; grid-column: 1 / -1; }
  body.layout--blueprint .process-grid { gap: 0; border: 1px solid var(--line); }
  body.layout--blueprint .process-card,
  body.layout--blueprint .process-card:nth-child(3) { padding: 27px; background: color-mix(in srgb, var(--theme-card) 94%, transparent); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  body.layout--blueprint .process-card::before { display: none; }
  body.layout--blueprint.page-template-services .section--muted { background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 48px; }

  /* Evergreen: floating controls, centred hero and rounded content islands. */
  body.layout--evergreen .site-header { background: var(--surface-dark); border: 0; box-shadow: none; }
  body.layout--evergreen .main-header__inner { min-height: 74px; margin-block: 10px; padding-inline: 18px; background: var(--theme-dark-card); border: 1px solid var(--line-dark); border-radius: 999px; box-shadow: 0 16px 36px color-mix(in srgb, var(--surface-dark) 46%, transparent); }
  body.layout--evergreen .menu-toggle { border-radius: 50%; }
  body.layout--evergreen .mobile-navigation { padding: 0 10px 10px; background: var(--surface-dark); border: 0; }
  body.layout--evergreen .mobile-navigation nav { padding: 12px 18px 22px; background: var(--theme-dark-card); border: 1px solid var(--line-dark); border-radius: 24px; }
  body.layout--evergreen .mobile-navigation .site-nav__link { margin-bottom: 6px; padding-inline: 16px; background: color-mix(in srgb, var(--theme-dark-card) 86%, var(--theme-on-dark)); border: 0; border-radius: 999px; }
  body.layout--evergreen .mobile-navigation .site-nav__link.is-active { color: var(--theme-on-brand); background: var(--brand); }
  body.layout--evergreen .home-hero__inner { min-height: auto; padding-block: clamp(78px, 10vw, 120px); grid-template-columns: 1fr; gap: 48px; text-align: center; }
  body.layout--evergreen .home-hero__copy { max-width: 850px; margin-inline: auto; }
  body.layout--evergreen .home-hero h1,
  body.layout--evergreen .home-hero__lead { margin-inline: auto; }
  body.layout--evergreen .home-hero .button-row,
  body.layout--evergreen .hero-assurances { justify-content: center; }
  body.layout--evergreen .home-hero__visual { width: min(100%, 760px); margin-inline: auto; }
  body.layout--evergreen .machine-panel { border-radius: 30px; }
  body.layout--evergreen .page-hero__inner { text-align: center; }
  body.layout--evergreen .page-hero h1,
  body.layout--evergreen .page-hero__lead { margin-inline: auto; }
  body.layout--evergreen .site-main > .section--muted,
  body.layout--evergreen .site-main > .cta-band { margin: 14px; border-radius: 32px; }
  body.layout--evergreen .service-grid { gap: 24px; }
  body.layout--evergreen .service-card { padding: 34px; border-radius: 28px; box-shadow: var(--shadow-sm); }
  body.layout--evergreen .service-card:nth-child(even) { margin-top: 28px; }
  body.layout--evergreen .section-heading { margin-bottom: 36px; text-align: center; align-items: center; }
}

@media (max-width: 1120px) {
  .home-hero__inner { grid-template-columns: 1fr; min-height: auto; }
  .home-hero__copy { max-width: 760px; }
  .home-hero__visual { max-width: 650px; margin-inline: auto; }
  .machine-panel { transform: none; }
}

@media (max-width: 900px) {
  .utility-bar__inner > p { display: none; }
  .utility-bar__inner { justify-content: flex-end; }
  .brand-lockup { min-width: 0; }
  .brand-lockup__copy span { display: none; }
  .header-portal { display: none; }
  .home-hero__inner { grid-template-columns: 1fr; min-height: auto; }
  .home-hero__copy { max-width: 760px; }
  .home-hero__visual { max-width: 650px; }
  .machine-panel { transform: none; }
  .split-intro, .systems-layout, .about-intro, .dark-feature__inner, .project-layout, .contact-layout, .work-examples__intro { grid-template-columns: 1fr; }
  .systems-layout > div:first-child, .project-facts, .contact-details { position: static; }
  .sector-grid { grid-template-columns: 1fr; }
  .work-placeholder { grid-template-columns: 1fr; }
  .work-placeholder__visual { min-height: 330px; }
  .cta-band__inner { align-items: flex-start; flex-direction: column; }
  .site-footer__grid { grid-template-columns: 1.2fr .7fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .service-grid--detail { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .shell, .shell--narrow { width: min(calc(100% - 28px), var(--shell)); }
  .section { padding-block: 48px; }
  .utility-bar__links a span { display: none; }
  .utility-bar__links { gap: 17px; }
  .main-header__inner { min-height: 72px; gap: 12px; }
  .brand-lockup__mark { width: 78px; height: 40px; }
  .brand-lockup__copy strong { max-width: 145px; font-size: .82rem; }
  .brand-lockup__copy span { font-size: .58rem; letter-spacing: .08em; }
  .brand-lockup--header.brand-lockup--full .brand-lockup__full-image { width: 132px; }
  .header-actions { display: none; }
  .menu-toggle { margin-left: auto; }
  .home-hero::before, .page-hero::after { width: 5px; }
  .home-hero__inner { padding-block: 58px; }
  .home-hero h1 { max-width: 620px; font-size: clamp(2.7rem, 11.5vw, 3.45rem); line-height: 1.1; }
  .home-hero__lead { font-size: 1rem; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .button { width: 100%; }
  .hero-assurances { display: grid; }
  .machine-panel { padding: 11px; border-radius: 16px; }
  .machine-panel__topline { font-size: .68rem; letter-spacing: .075em; }
  .machine-panel__mark { height: 210px; min-height: 210px; }
  .machine-partner-card { padding: 26px 20px; }
  .machine-partner-card > span { margin-bottom: 12px; font-size: .66rem; letter-spacing: .12em; }
  .machine-partner-card > strong { font-size: clamp(2.15rem, 12vw, 3.1rem); }
  .machine-partner-card--image { padding: 16px 20px; }
  .machine-partner-card--image > span { margin-bottom: 8px; }
  .machine-panel__mark .machine-partner-card--image img { max-height: 75px; }
  .machine-partner-card--image > strong { margin-top: 5px; font-size: .9rem; }
  .machine-partner-card > p { margin-top: 13px; font-size: .78rem; }
  .machine-partner-card--image > p { max-height: 2.9em; margin-top: 7px; font-size: .76rem; line-height: 1.45; }
  .machine-panel__footer { flex-wrap: wrap; row-gap: 8px; }
  .machine-panel__footer p { min-width: 150px; }
  .machine-panel__readout { grid-template-columns: 1fr; }
  .machine-panel__readout div { display: flex; justify-content: space-between; align-items: center; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .text-link--desktop { display: none; }
  .service-grid, .project-grid, .principles-grid, .work-examples { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 32px 28px; }
  .service-card__icon { margin-bottom: 34px; }
  .work-examples__intro { margin-bottom: 34px; }
  .work-example__visual { min-height: 104px; padding: 18px; }
  .work-example__body { padding: 26px 24px 28px; }
  .service-card--detail { min-height: 0; padding: 25px 22px; }
  .service-card--detail .service-card__heading { margin-bottom: 20px; }
  .service-card__content > h2 { font-size: clamp(1.55rem, 8vw, 2rem); }
  .service-card__actions { margin-top: 20px; }
  .sector-card { grid-template-columns: 54px 1fr; gap: 18px; }
  .sector-card__icon { width: 52px; height: 52px; }
  .process-grid { grid-template-columns: 1fr; border: 0; }
  .process-card,
  body.layout--precision .process-card:nth-child(n + 3),
  body.layout--executive .process-card:nth-child(n + 3) { padding: 25px 0 25px 32px; border-top: 0; border-left: 2px solid var(--ink); }
  .process-card::before,
  body.layout--precision .process-card:nth-child(n + 3)::before,
  body.layout--executive .process-card:nth-child(n + 3)::before { top: 30px; left: -7px; }
  .process-card > span { margin-bottom: 15px; }
  .work-placeholder__visual { min-height: 260px; }
  .work-placeholder > div:last-child { padding: 30px 23px; }
  .page-hero__inner { padding-block: 75px; }
  .page-hero h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .dark-feature__diagram span:nth-of-type(n) { margin-left: 0; }
  .project-hero { min-height: 560px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .image-dialog { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
  .image-dialog--fallback { width: 100vw; max-height: none; padding: 6px; }
  .image-dialog__frame { max-height: calc(100dvh - 12px); padding: 58px 10px 10px; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
  .image-dialog__figure { grid-row: 1; grid-column: 1 / -1; }
  .image-dialog img { max-height: calc(100dvh - 205px); }
  .image-dialog__meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .image-dialog__nav { width: 100%; height: 48px; border-radius: 9px; }
  .image-dialog__nav--previous { grid-row: 2; grid-column: 1; }
  .image-dialog__nav--next { grid-row: 2; grid-column: 2; }
  .service-dialog { width: min(calc(100% - 22px), 920px); max-height: 90vh; }
  .service-dialog__inner { max-height: 90vh; }
  .service-dialog__header { padding: 21px 19px 17px; gap: 14px; }
  .service-dialog__body { padding: 23px 19px 27px; }
  .service-dialog__gallery { grid-template-columns: 1fr; }
  .contact-form-card { padding: 25px 19px; border-radius: var(--radius); }
  form[name="contact"] { grid-template-columns: 1fr; }
  form[name="contact"] > * { grid-column: 1 !important; }
  .legal-details > div { grid-template-columns: 1fr; gap: 4px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__brand { grid-column: auto; }
  .site-footer__legal { flex-direction: column; }
  .site-footer__policies { justify-content: flex-start; }
  .site-messages { top: 90px; right: 14px; width: calc(100% - 28px); }

  body.layout--executive .mobile-navigation .site-nav__list { grid-template-columns: 1fr; }
  body.layout--executive .home-hero__copy { padding: 30px 23px; }
  body.layout--executive .home-hero__visual { width: 100%; }
  body.layout--executive .page-hero__inner { display: block; }
  body.layout--executive .page-hero__inner > .eyebrow { padding-top: 0; }

  body.layout--foundry .process-card { border-right: 0; }
  body.layout--foundry .home-hero__copy { padding: 25px 21px; }

  body.layout--blueprint .home-hero,
  body.layout--blueprint .page-hero { margin: 8px; }
  body.layout--blueprint .service-card { padding-block: 22px; grid-template-columns: 52px minmax(0, 1fr); column-gap: 15px; }
  body.layout--blueprint .service-card--detail { grid-template-columns: 54px minmax(0, 1fr); }
  body.layout--blueprint .process-card,
  body.layout--blueprint .process-card:nth-child(3) { border-right: 0; }

  body.layout--evergreen .main-header__inner { padding-inline: 13px; }
  body.layout--evergreen .site-main > .section--muted,
  body.layout--evergreen .site-main > .cta-band { margin: 8px; border-radius: 22px; }
  body.layout--evergreen .service-card { padding: 30px 25px; border-radius: 22px; }
  body.layout--evergreen .service-card:nth-child(even) { margin-top: 10px; }
  body.layout--evergreen .section-heading { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal.reveal--ready { opacity: 1; transform: none; }
  .machine-showcase__slide { transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .button, .menu-toggle { display: none !important; }
  body { color: #000; background: #fff; }
  .page-hero, .home-hero { color: #000; background: #fff; }
  .page-hero h1, .home-hero h1 { color: #000; }
  .reveal.reveal--ready { opacity: 1; transform: none; }
}

/* Local, non-tracking captcha supplied by the Grav Form plugin */
.form-field[data-grav-field="basic-captcha"] { grid-column: 1 / -1; }
.form-field[data-grav-field="basic-captcha"] .form-input-wrapper { display: grid; max-width: 420px; gap: 10px; }
.form-field[data-grav-field="basic-captcha"] img { display: block; max-width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.form-field[data-grav-field="basic-captcha"] input { max-width: 220px; }
.form-field.has-errors input, .form-field.has-errors textarea, .form-field.has-errors select { border-color: var(--danger); }
.form-field .errors, .form-field .form-error { margin: 6px 0 0; color: var(--danger); font-size: .73rem; }

/* Grav Form v8: local CAPTCHA, refresh control and hidden honeypot */
.form-honeybear {
  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;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-data.basic-captcha {
  width: 100%;
}

.form-data.basic-captcha .form-input-wrapper {
  display: grid;
  width: min(100%, 420px);
  gap: 12px;
}

.form-data.basic-captcha .form-input-prepend {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: stretch;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--muted);
  border-radius: 8px;
}

.form-data.basic-captcha .form-input-prepend img {
  display: block;
  width: 180px;
  height: 56px;
  max-width: calc(100% - 48px);
  object-fit: contain;
  background: #fff;
  border: 0;
  border-radius: 0;
}

.form-data.basic-captcha .reload-captcha-button {
  display: grid;
  width: 48px;
  min-width: 48px;
  min-height: 56px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: var(--brand-soft);
  border: 0;
  border-left: 1px solid var(--muted);
  cursor: pointer;
  transition: background .15s ease;
}

.form-data.basic-captcha .reload-captcha-button:hover {
  color: var(--theme-on-brand);
  background: var(--brand);
}

.form-data.basic-captcha .reload-captcha-button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid transparent;
  outline-offset: -4px;
  box-shadow: inset var(--focus);
}

.form-data.basic-captcha .reload-captcha-button svg {
  width: 20px;
  height: 20px;
}

.form-data.basic-captcha input.form-input,
.form-data.basic-captcha input[type="text"] {
  width: min(100%, 220px);
  max-width: 220px;
  margin: 0;
}

@media (forced-colors: active) {
  .text-link:focus-visible,
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible,
  .form-data.basic-captcha .reload-captcha-button:focus-visible {
    outline-color: Highlight;
    box-shadow: none;
  }
}
