/* AmerInd Group — site styles
   Palette sampled from the client's business card. */
:root {
  --navy: #0b3a6e;          /* card logo + footer bar */
  --navy-deep: #061e3a;     /* dark sections: a shade of the brand navy */
  --navy-ink: #04162b;
  --steel: #5e6062;         /* "GROUP" grey */
  --sky: #b1c1d2;           /* card corner stripe */
  --sky-soft: #dce5ee;
  --paper: #f3f6f9;
  --white: #fff;
  --text: #13253b;
  --text-muted: #4f5d6d;
  --on-dark: #e8eef5;
  --on-dark-muted: #9fb0c3;
  --rule: #d5dde6;
  --rule-dark: rgba(177, 193, 210, .16);

  /* discipline colours, as printed on the card */
  --electrical: #2f6db3;
  --electrical-on-dark: #8fb6e4;
  --automation: #2c893a;
  --automation-on-dark: #5cc26b;
  --mechanical: #ef781c;
  --structural: #66696b;
  --structural-on-dark: #b9bec3;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--electrical); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Type ---------- */
.display, h1, h2, h3 { font-weight: 700; margin: 0; letter-spacing: -.02em; }
.display { font-variation-settings: "wdth" 118; font-weight: 800; line-height: .98; letter-spacing: -.035em; }
h1.display { font-size: clamp(2.75rem, 6.4vw, 5.9rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.35rem); line-height: 1.05; font-variation-settings: "wdth" 112; letter-spacing: -.03em; }
h3 { font-size: 1.375rem; line-height: 1.2; font-variation-settings: "wdth" 106; }
p { margin: 0; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--text-muted); max-width: 38em; }
.section-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-intro .lede { justify-self: end; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border: 2px solid transparent;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #d3e1ef; color: var(--navy-deep); box-shadow: inset 0 -3px 0 var(--sky); }
.btn-primary:hover { background: #fff; box-shadow: inset 0 -3px 0 var(--electrical-on-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #0e4a8c; }
.btn-ghost { border-color: rgba(232, 238, 245, .4); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, .06); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.text-link { font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--sky); transition: text-decoration-color .2s; }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--rule); box-shadow: 0 8px 30px rgba(6, 30, 58, .06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.logo svg { width: 50px; height: auto; flex: none; }
.logo-word { display: grid; line-height: 1; }
.logo-word b { font-weight: 800; font-size: 1.62rem; letter-spacing: -.01em; font-variation-settings: "wdth" 125; }
.logo-word span { margin-top: 3px; font-weight: 700; font-size: .78rem; letter-spacing: .62em; color: var(--steel); font-variation-settings: "wdth" 125; padding-left: .12em; }
.logo--light { color: #fff; --mark-a: #fff; --mark-a-shade: var(--sky); --mark-swoosh: var(--structural-on-dark); --mark-gap: var(--navy-ink); }
.logo--light .logo-word span { color: var(--on-dark-muted); }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); margin: 0; padding: 0; }
.main-nav a:not(.btn) { position: relative; text-decoration: none; font-weight: 550; color: var(--text); padding: 8px 0; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.main-nav a:not(.btn):hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a:not(.btn)[aria-current="page"] { color: var(--navy); }
.main-nav .btn { min-height: 46px; padding: 0 20px; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: none; padding: 12px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Dark surfaces & blueprint grid ---------- */
.surface-dark { background: var(--navy-deep); color: var(--on-dark); }
.surface-dark .lede, .surface-dark p { color: var(--on-dark-muted); }
.surface-dark h1, .surface-dark h2, .surface-dark h3 { color: #fff; }
.surface-paper { background: var(--paper); }
.blueprint {
  background-image:
    linear-gradient(var(--rule-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-dark) 1px, transparent 1px),
    linear-gradient(rgba(177, 193, 210, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 193, 210, .05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(56px, 9vw, 120px); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 60% at 78% 10%, rgba(47, 109, 179, .28), transparent 60%), linear-gradient(180deg, transparent 55%, rgba(4, 22, 43, .6)); }
.hero > * { position: relative; z-index: 1; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.hero h1 { max-width: 11ch; }
.hero-side p { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--on-dark-muted); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@keyframes fade { to { opacity: 1; } }

.discipline-key { list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-dark); }
.discipline-key li + li { border-left: 1px solid var(--rule-dark); }
.discipline-key a { display: flex; align-items: center; gap: 14px; padding: 26px clamp(12px, 2vw, 28px); text-decoration: none; color: #fff; font-weight: 600; font-size: 1.05rem; transition: background-color .25s; }
.discipline-key li:first-child a { padding-left: 0; }
.discipline-key a:hover { background: rgba(255, 255, 255, .04); }
.discipline-key i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); }

/* ---------- Discipline cards ---------- */
.section { padding-block: clamp(80px, 11vw, 144px); }
.disciplines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.discipline { position: relative; padding: 40px clamp(16px, 2vw, 32px) 36px 0; display: flex; flex-direction: column; gap: 18px; }
.discipline + .discipline { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--rule); }
.discipline::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 4px; background: var(--c); transition: width .5s var(--ease); }
.discipline + .discipline::before { left: clamp(16px, 2vw, 32px); }
.discipline:hover::before { width: calc(100% - clamp(16px, 2vw, 32px)); }
.badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; }
.badge svg { width: 34px; height: 34px; }
.discipline p { color: var(--text-muted); font-size: 1rem; }
.discipline ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: .94rem; color: var(--text); }
.discipline li { padding: 9px 0; border-top: 1px dashed var(--rule); }
.discipline .text-link { margin-top: auto; padding-top: 12px; color: var(--navy); }

/* ---------- Credentials ---------- */
.credentials { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.statement { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.18; font-weight: 600; letter-spacing: -.025em; font-variation-settings: "wdth" 108; color: var(--navy-deep); }
.statement + p { margin-top: 28px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.facts li:first-child { padding-top: 0; }
.facts svg { width: 44px; height: 44px; color: var(--navy); }
.facts strong { display: block; font-size: 1.125rem; color: var(--navy-deep); font-variation-settings: "wdth" 106; }
.facts span { color: var(--text-muted); font-size: .97rem; }

/* ---------- Industries explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 2fr); border: 1px solid var(--rule); background: #fff; }
.explorer [role="tablist"] { display: flex; flex-direction: column; border-right: 1px solid var(--rule); }
.explorer [role="tab"] {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left; padding: 26px 28px; background: none; border: 0; border-bottom: 1px solid var(--rule);
  font-size: 1.125rem; font-weight: 600; color: var(--text-muted); cursor: pointer; position: relative;
  transition: color .2s, background-color .2s;
}
.explorer [role="tab"]:last-child { border-bottom: 0; }
.explorer [role="tab"]::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: var(--navy); transform: scaleY(0); transition: transform .3s var(--ease); }
.explorer [role="tab"]:hover { color: var(--navy-deep); background: var(--paper); }
.explorer [role="tab"][aria-selected="true"] { color: var(--navy-deep); background: var(--paper); }
.explorer [role="tab"][aria-selected="true"]::before { transform: scaleY(1); }
.explorer [role="tab"] svg { width: 30px; height: 30px; color: var(--sky); transition: color .2s; flex: none; }
.explorer [role="tab"][aria-selected="true"] svg { color: var(--navy); }
.panel { padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-content: start; }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: var(--navy-deep); margin-bottom: 16px; font-variation-settings: "wdth" 112; }
.panel p { color: var(--text-muted); }
.panel h4 { margin: 0 0 12px; font-size: .95rem; font-weight: 650; color: var(--navy-deep); }
.panel ul { list-style: none; margin: 0 0 28px; padding: 0; }
.panel li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: .98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.panel .chips li, .chips li { border: 0; padding: 6px 12px 6px 10px; background: var(--paper); font-size: .9rem; font-weight: 550; display: inline-flex; align-items: center; gap: 8px; }
.chips i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* ---------- Lifecycle ---------- */
.lifecycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stage { position: relative; padding: 44px 24px 0 0; }
.stage::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--rule-dark); }
.stage::after { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--navy-deep); border: 2px solid var(--sky); }
.stage-num { font-size: .95rem; font-weight: 700; color: var(--sky); font-variant-numeric: tabular-nums; }
.stage h3 { margin: 8px 0 14px; font-size: 1.5rem; }
.surface-dark .stage p { font-size: .97rem; }
.surface-dark .stage .receive { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--rule-dark); font-size: .92rem; color: var(--on-dark); }
.stage .receive b { display: block; color: var(--sky); font-weight: 600; margin-bottom: 4px; }

/* ---------- R&D teaser ---------- */
.rnd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 620px; }
.rnd-media { position: relative; overflow: hidden; background: var(--navy); margin: 0; }
.rnd-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); mix-blend-mode: luminosity; opacity: .85; }
.rnd-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11, 58, 110, .55), rgba(6, 30, 58, .1)); }
.surface-dark .rnd-media figcaption { position: absolute; left: 24px; bottom: 20px; z-index: 1; font-size: .82rem; color: var(--sky); }
.rnd-body { padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(48px, 7vw, 104px) clamp(32px, 6vw, 96px); max-width: 720px; display: flex; flex-direction: column; justify-content: center; }
.rnd-body h2 { margin-bottom: 20px; }
.areas { list-style: none; padding: 0; margin: 36px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.areas li { padding: 18px 0; border-top: 1px solid var(--rule-dark); }
.areas b { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.areas span { color: var(--on-dark-muted); font-size: .94rem; }
.rnd-body .btn { align-self: flex-start; }

/* ---------- Partners ---------- */
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.partner { background: #fff; border: 1px solid var(--rule); padding: 32px; display: flex; flex-direction: column; gap: 14px; min-height: 250px; transition: border-color .25s, transform .35s var(--ease), box-shadow .35s; }
.partner:hover { border-color: var(--sky); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(6, 30, 58, .08); }
.partner-mono { width: 56px; height: 56px; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.15rem; font-variation-settings: "wdth" 120; }
.partner h3 { color: var(--navy-deep); }
.partner p { color: var(--text-muted); font-size: .98rem; }
.partner .chips { margin: auto 0 0; }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -12%; top: -40%; width: 40%; height: 180%; background: var(--sky); transform: skewX(-38deg); }
.cta::after { content: ""; position: absolute; right: -9%; top: -40%; width: 24%; height: 180%; background: var(--navy); transform: skewX(-38deg); }
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: clamp(64px, 9vw, 112px); }
.cta h2 { color: #fff; max-width: 14ch; }
.cta-inner > div > p { color: #cfdbe8; margin-top: 18px; max-width: 34em; }
.cta-card { background: #fff; color: var(--text); padding: clamp(28px, 3vw, 40px); box-shadow: 0 30px 60px rgba(4, 22, 43, .3); max-width: 440px; justify-self: end; width: 100%; }
.cta-card .person { font-weight: 700; font-size: 1.25rem; color: var(--navy-deep); }
.cta-card .role { color: var(--text-muted); font-size: .95rem; margin-bottom: 20px; }
.contact-lines { list-style: none; margin: 0 0 24px; padding: 0; }
.contact-lines li { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 12px; padding: 8px 0; }
.contact-lines .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.contact-lines .ic svg { width: 17px; height: 17px; }
.contact-lines a, .contact-lines address { font-style: normal; text-decoration: none; overflow-wrap: anywhere; font-size: .98rem; }
.contact-lines a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.cta-card .btn { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: var(--on-dark-muted); padding-top: 72px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; }
.footer-grid h2 { font-size: .95rem; font-weight: 650; color: #fff; letter-spacing: 0; margin-bottom: 16px; font-variation-settings: "wdth" 100; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 5px 0; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-grid address { font-style: normal; line-height: 1.7; }
.footer-tagline { margin-top: 20px; max-width: 26em; }
.footer-bar { border-top: 1px solid var(--rule-dark); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
.footer-bar .key { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bar .key span { display: inline-flex; align-items: center; gap: 8px; }
.footer-bar .key i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* ---------- Scroll reveal (one gentle entrance per group) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .disciplines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discipline:nth-child(3) { border-left: 0; padding-left: 0; }
  .discipline:nth-child(3)::before { left: 0; }
  .discipline:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .lifecycle { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .partners { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto; background: #fff; border-bottom: 1px solid var(--rule); padding: 12px var(--gutter) 28px; box-shadow: 0 20px 40px rgba(6, 30, 58, .12); display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a:not(.btn) { display: block; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 1.1rem; }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .btn { margin-top: 20px; width: 100%; }
  .hero-copy, .section-intro, .credentials, .rnd, .cta-inner { grid-template-columns: 1fr; }
  .section-intro .lede { justify-self: start; }
  .discipline-key { grid-template-columns: 1fr 1fr; }
  .discipline-key li:nth-child(3) { border-left: 0; }
  .discipline-key li:nth-child(n+3) { border-top: 1px solid var(--rule-dark); }
  .discipline-key li:nth-child(3) a { padding-left: 0; }
  .explorer { grid-template-columns: 1fr; }
  .explorer [role="tablist"] { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--rule); scrollbar-width: none; }
  .explorer [role="tab"] { flex: none; border-bottom: 0; border-right: 1px solid var(--rule); padding: 18px 20px; font-size: 1rem; }
  .explorer [role="tab"] svg { display: none; }
  .explorer [role="tab"]::before { top: auto; left: 0; right: 0; bottom: -1px; width: auto; height: 3px; transform: scaleX(0); }
  .explorer [role="tab"][aria-selected="true"]::before { transform: scaleX(1); }
  .panel { grid-template-columns: 1fr; }
  .rnd { min-height: 0; }
  .rnd-media { aspect-ratio: 16 / 10; }
  .rnd-body { padding-inline: var(--gutter); }
  .cta::before { width: 70%; right: -52%; }
  .cta::after { display: none; }
  .cta-card { justify-self: stretch; max-width: none; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .logo svg { width: 42px; }
  .logo-word b { font-size: 1.35rem; }
  .logo-word span { font-size: .68rem; }
  .disciplines, .partners, .areas { grid-template-columns: 1fr; }
  .discipline, .discipline + .discipline { padding-left: 0; border-left: 0; }
  .discipline + .discipline { border-top: 1px solid var(--rule); }
  .discipline + .discipline::before { left: 0; }
  .lifecycle { grid-template-columns: 1fr; row-gap: 0; }
  .stage { padding: 0 0 36px 40px; }
  .stage::before { top: 18px; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .stage:last-child::before { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .discipline-key a { padding: 20px 12px; font-size: .98rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media (max-width: 620px) { .service-art svg text, .site-plan text { display: none; } }
.surface-dark :focus-visible, .cta :focus-visible, .site-footer :focus-visible { outline-color: var(--sky); }

/* ================= Inner pages ================= */
.page-hero { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 70% at 85% 0%, rgba(47, 109, 179, .3), transparent 60%); }
.page-hero > * { position: relative; z-index: 1; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); align-items: end; }
.page-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); max-width: 13ch; }
.page-hero .lede { color: var(--on-dark-muted); }
.page-hero .discipline-key { margin-top: clamp(40px, 6vw, 72px); }
.crumb { margin-bottom: 20px; font-size: .95rem; color: var(--on-dark-muted); }
.crumb a { color: var(--sky); text-underline-offset: 4px; }
.blueprint-light {
  background-image: linear-gradient(rgba(11, 58, 110, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 58, 110, .06) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
}

/* Service detail */
.service { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.service-head { position: sticky; top: calc(var(--header-h) + 32px); }
.service-head .badge { margin-bottom: 24px; }
.service-head h2 { margin-bottom: 20px; }
.service-head .btn { margin-top: 32px; }
.service-art { border: 1px solid var(--rule); background-color: #fff; padding: clamp(20px, 3vw, 36px); margin: 0 0 40px; }
.surface-paper .service-art { background-color: #fff; }
.service-art svg { width: 100%; height: auto; }
.service-art figcaption { margin-top: 14px; font-size: .9rem; color: var(--text-muted); }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px clamp(24px, 4vw, 48px); }
.spec h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--navy-deep); }
.spec ul { list-style: none; margin: 0 0 24px; padding: 0; }
.spec li { position: relative; padding: 11px 0 11px 26px; border-top: 1px solid var(--rule); font-size: .98rem; }
.spec li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c, var(--navy)); }

/* Numbered steps on light backgrounds */
.lifecycle.on-light { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.on-light .stage::before { background: var(--rule); }
.on-light .stage::after { background: #fff; border-color: var(--navy); }
.on-light .stage-num { color: var(--navy); }
.on-light .stage h3 { color: var(--navy-deep); }
.on-light .stage p { color: var(--text-muted); font-size: .97rem; }

/* Research focus areas */
.focus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.focus { background: #fff; border: 1px solid var(--rule); padding: clamp(28px, 3.4vw, 44px); display: grid; gap: 16px; align-content: start; }
.focus svg { width: 52px; height: 52px; color: var(--navy); }
.focus h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); color: var(--navy-deep); font-variation-settings: "wdth" 112; }
.focus p { color: var(--text-muted); }
.focus ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.focus li { background: var(--paper); padding: 6px 12px; font-size: .9rem; font-weight: 550; }
.hero-media { margin: 0; position: relative; border: 1px solid var(--rule-dark); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); mix-blend-mode: luminosity; opacity: .85; }
.hero-media figcaption { position: absolute; left: 16px; bottom: 12px; font-size: .82rem; color: var(--sky); }

/* About */
.leader { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; background: #fff; border: 1px solid var(--rule); padding: clamp(28px, 4vw, 56px); }
.leader h3 { margin-bottom: 18px; font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--navy-deep); font-variation-settings: "wdth" 112; }
.leader .role { margin: 6px 0 20px; color: var(--text-muted); font-size: 1.05rem; }
.leader p + p { margin-top: 14px; }
.creds { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.creds li { border: 1px solid var(--rule); padding: 8px 14px; font-weight: 600; font-size: .95rem; color: var(--navy-deep); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-dark); }
.principles li { padding: 36px clamp(16px, 2.5vw, 36px) 12px 0; }
.principles li + li { padding-left: clamp(16px, 2.5vw, 36px); border-left: 1px solid var(--rule-dark); }
.principles svg { width: 44px; height: 44px; color: var(--sky); margin-bottom: 20px; }
.principles h3 { margin-bottom: 10px; }
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.visit address { font-style: normal; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.45; color: var(--navy-deep); font-weight: 600; margin: 20px 0 28px; }
.site-plan { border: 1px solid var(--rule); background-color: #fff; aspect-ratio: 16 / 10; }
.site-plan svg { width: 100%; height: 100%; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-aside .cta-card { max-width: none; box-shadow: none; border: 1px solid var(--rule); }
.next-steps { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--rule); }
.next-steps li::before { content: counter(n); width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--navy); display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: var(--navy); }
.next-steps b { display: block; color: var(--navy-deep); }
.next-steps span { color: var(--text-muted); font-size: .96rem; }
.form-card { background: #fff; border: 1px solid var(--rule); padding: clamp(24px, 4vw, 52px); box-shadow: 0 30px 60px rgba(6, 30, 58, .06); }
.form-card h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 8px; color: var(--navy-deep); }
.form-card form > p:first-of-type { color: var(--text-muted); margin-bottom: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--navy-deep); }
.field .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #b9c5d2; border-radius: 0; background: #fff; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(47, 109, 179, .25); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .9rem; min-height: 0; }
.field-error:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; min-height: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #b9c5d2; font-weight: 550; font-size: .95rem; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.choice span i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.choice input:hover + span { border-color: var(--steel); }
.choice input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--electrical); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); }
.form-foot p { font-size: .9rem; color: var(--text-muted); max-width: 30em; }
.form-status { margin-top: 18px; padding: 14px 16px; background: #fdecea; color: #7a1c15; font-size: .95rem; }
.form-status:empty { display: none; }
.form-success { text-align: left; }
.form-success svg { width: 64px; height: 64px; color: var(--automation); margin-bottom: 20px; }
.form-success h2 { margin-bottom: 12px; }
.hp { position: absolute; left: -9999px; }

@media (max-width: 1080px) {
  .lifecycle.on-light { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .page-hero-grid, .service, .visit, .contact-layout { grid-template-columns: 1fr; }
  .service-head, .contact-aside { position: static; }
  .principles { grid-template-columns: 1fr; }
  .principles li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-dark); }
  .contact-aside { order: 2; }
}
@media (max-width: 620px) {
  .spec, .focus-grid, .form-grid { grid-template-columns: 1fr; }
  .lifecycle.on-light { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 1fr; }
}
