:root {
  --ink: #111418;
  --ink-soft: #191d22;
  --cream: #f6f4f1;
  --paper: #fffefa;
  --red: #8b1f2d;
  --red-bright: #a72a3b;
  --grey: #697078;
  --line: rgba(17, 20, 24, 0.16);
  --line-light: rgba(246, 244, 241, 0.18);
  --container: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Aptos", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #d94f64;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 1000;
  background: var(--cream);
  color: var(--ink);
  padding: 12px 18px;
  border: 2px solid var(--red);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17, 20, 24, 0.92);
  border-bottom: 1px solid var(--line-light);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 80px;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand-link {
  display: inline-flex;
  width: fit-content;
}

.brand-link img,
.footer-brand img {
  display: block;
  width: 132px;
  height: auto;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.desktop-nav a {
  color: rgba(246, 244, 241, 0.76);
  font-size: 0.84rem;
  letter-spacing: 0.07em;
  transition: color 160ms ease;
}

.desktop-nav a:hover {
  color: #fff;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.8rem;
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding-top: 80px;
}

.hero-grid-lines {
  position: absolute;
  inset: 80px 0 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(246, 244, 241, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 244, 241, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent, black 35%, black);
}

.hero-layout {
  position: relative;
  width: min(1400px, calc(100vw - 64px));
  min-height: 720px;
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  align-items: center;
  gap: clamp(42px, 4.2vw, 68px);
  padding-block: 76px 72px;
}

.eyebrow {
  margin-bottom: 22px;
  color: rgba(246, 244, 241, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow-red {
  color: var(--red);
}

.eyebrow-dark {
  color: rgba(17, 20, 24, 0.58);
}

.hero h1 {
  max-width: 690px;
  margin-bottom: 26px;
  font-size: clamp(3.15rem, 4.7vw, 4.8rem);
  line-height: 0.98;
  font-weight: 430;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: #b12b3e;
}

.hero-intro {
  max-width: 655px;
  margin-bottom: 34px;
  color: rgba(246, 244, 241, 0.72);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}

.button-ghost {
  background: transparent;
  border-color: rgba(246, 244, 241, 0.32);
}

.button-ghost:hover {
  background: rgba(246, 244, 241, 0.08);
  border-color: rgba(246, 244, 241, 0.62);
}

.hero-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
}

.hero-principles span {
  position: relative;
  padding-left: 14px;
  color: rgba(246, 244, 241, 0.55);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.hero-principles span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--red);
}

.engineering-panel {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid rgba(246, 244, 241, 0.21);
  background: #0b0d10;
  box-shadow: 24px 28px 0 rgba(139, 31, 45, 0.18);
}

.engineering-panel picture,
.engineering-panel img {
  display: block;
  width: 100%;
  height: 100%;
}

.engineering-panel img {
  object-fit: contain;
  image-rendering: auto;
}

.engineering-panel:focus-visible {
  outline-color: var(--cream);
}

.engineering-panel:hover img {
  filter: brightness(1.04) contrast(1.03);
}

.authority-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
}

.authority-strip div {
  min-height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 25px;
}

.authority-strip div + div {
  border-left: 1px solid var(--line-light);
}

.authority-strip strong {
  margin-bottom: 3px;
  color: var(--cream);
  font-size: 1rem;
  font-weight: 600;
}

.authority-strip span {
  color: rgba(246, 244, 241, 0.48);
  font-size: 0.78rem;
}

.section {
  padding-block: 112px;
}

.risk-section,
.process-section {
  background: var(--cream);
}

.split-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr;
  align-items: end;
  gap: 13%;
  margin-bottom: 58px;
}

.split-heading h2,
.section-heading h2,
.governance-layout h2,
.insight-layout h2,
.contact-layout h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 3.5vw, 3.75rem);
  font-weight: 450;
  line-height: 1.04;
  letter-spacing: -0.047em;
}

.split-heading > p,
.section-heading > p,
.governance-intro {
  margin-bottom: 3px;
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.75;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.risk-card {
  min-height: 260px;
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.risk-card > span {
  display: block;
  margin-bottom: 54px;
  color: var(--red);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
}

.risk-card h3 {
  margin-bottom: 13px;
  font-size: 1.08rem;
  font-weight: 650;
}

.risk-card p {
  margin: 0;
  color: var(--grey);
  font-size: 0.92rem;
  line-height: 1.68;
}

.services-section {
  background: var(--paper);
}

.section-heading {
  max-width: 770px;
  margin-bottom: 54px;
}

.section-heading h2 {
  margin-bottom: 24px;
}

.section-heading.compact {
  max-width: 870px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 29px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.service-card:hover {
  z-index: 1;
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-4px);
}

.service-code {
  margin-bottom: 60px;
  color: var(--red);
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
}

.service-card h3 {
  max-width: 260px;
  margin-bottom: 14px;
  font-size: 1.36rem;
  font-weight: 560;
  line-height: 1.2;
}

.service-card > p {
  margin-bottom: 24px;
  color: var(--grey);
  font-size: 0.92rem;
  line-height: 1.7;
}

.service-card:hover > p {
  color: rgba(246, 244, 241, 0.65);
}

.service-card small {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--grey);
  font-size: 0.78rem;
  line-height: 1.5;
}

.service-card:hover small {
  border-color: var(--line-light);
  color: rgba(246, 244, 241, 0.45);
}

.inline-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.inline-cta p {
  margin: 0;
  color: var(--grey);
  font-size: 0.93rem;
}

.text-link {
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 650;
}

.text-link span {
  margin-left: 12px;
}

.sectors-section {
  background: var(--ink-soft);
  color: var(--cream);
}

.sectors-section .split-heading > p {
  color: rgba(246, 244, 241, 0.55);
}

.sector-list {
  border-top: 1px solid var(--line-light);
}

.sector-list article {
  display: grid;
  grid-template-columns: 80px 0.8fr 1fr;
  align-items: center;
  gap: 30px;
  min-height: 110px;
  border-bottom: 1px solid var(--line-light);
}

.sector-list article > span {
  color: var(--red-bright);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
}

.sector-list h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 520;
}

.sector-list p {
  margin: 0;
  color: rgba(246, 244, 241, 0.5);
  font-size: 0.9rem;
}

.experience-section {
  background: var(--paper);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--cream);
}

.project-figure {
  margin: 0;
  background: var(--ink);
}

.project-image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.project-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17, 20, 24, 0.07), rgba(139, 31, 45, 0.2)),
    linear-gradient(0deg, rgba(17, 20, 24, 0.18), transparent 56%);
  pointer-events: none;
}

.project-image-frame picture,
.project-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.project-image-frame img {
  object-fit: cover;
  filter: saturate(0.8) contrast(1.04) brightness(0.92);
  transition: transform 220ms ease;
}

.project-card:hover .project-image-frame img {
  transform: scale(1.015);
}

.project-figure figcaption {
  padding: 9px 16px 10px;
  color: rgba(246, 244, 241, 0.68);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-content {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.project-sector {
  margin-bottom: 28px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-content h3 {
  margin-bottom: 15px;
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 590;
}

.project-content > p:last-child {
  margin: 0;
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.65;
}

.experience-note {
  margin-top: 26px;
  color: var(--grey);
  font-size: 0.82rem;
  line-height: 1.6;
}

.governance-section {
  background: var(--red);
  color: #fff;
}

.governance-layout {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  align-items: center;
  gap: 11%;
}

.governance-layout .eyebrow {
  color: rgba(255, 255, 255, 0.56);
}

.governance-layout h2 {
  margin-bottom: 26px;
}

.governance-intro {
  color: rgba(255, 255, 255, 0.7);
}

.standards-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.standards-tags span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 0.78rem;
}

.governance-card {
  background: var(--ink);
  padding: 30px;
  box-shadow: 20px 20px 0 rgba(17, 20, 24, 0.2);
}

.card-kicker {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-light);
  color: rgba(246, 244, 241, 0.42);
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.governance-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.governance-card li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-light);
  color: rgba(246, 244, 241, 0.75);
  font-size: 0.86rem;
}

.governance-card li span {
  color: #d95467;
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-grid article {
  min-height: 230px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid span {
  display: block;
  margin-bottom: 58px;
  color: var(--red);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
}

.process-grid h3 {
  margin-bottom: 11px;
  font-size: 1.1rem;
  font-weight: 600;
}

.process-grid p {
  margin: 0;
  color: var(--grey);
  font-size: 0.86rem;
  line-height: 1.6;
}

.insight-section {
  background: var(--paper);
}

.insight-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 11%;
}

.insight-list {
  border-top: 1px solid var(--line);
}

.insight-list > a {
  display: block;
  position: relative;
  padding: 26px 35px 26px 0;
  border-bottom: 1px solid var(--line);
}

.insight-list > a::after {
  content: "↗";
  position: absolute;
  right: 0;
  top: 34px;
  color: var(--red);
}

.insight-list > a > span {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.insight-list > a h3 {
  margin: 9px 0 8px;
  font-size: 1.18rem;
  font-weight: 560;
}

.insight-list > a p {
  margin: 0;
  color: var(--grey);
  font-size: 0.88rem;
}

.contact-section {
  padding-block: 105px;
  background: var(--ink);
  color: var(--cream);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 12%;
}

.contact-layout h2 {
  font-size: clamp(2.4rem, 4.1vw, 4.2rem);
}

.contact-layout > div:last-child > p {
  margin-bottom: 28px;
  color: rgba(246, 244, 241, 0.6);
  font-size: 0.98rem;
  line-height: 1.7;
}

.button-light {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.button-light:hover {
  background: #fff;
  border-color: #fff;
}

.contact-email {
  display: block;
  width: fit-content;
  margin-top: 22px;
  color: rgba(246, 244, 241, 0.7);
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(246, 244, 241, 0.3);
}

.site-footer {
  padding: 72px 0 26px;
  background: #0b0d10;
  color: var(--cream);
  border-top: 1px solid var(--line-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 65px;
}

.footer-brand p {
  max-width: 290px;
  margin: 18px 0 0;
  color: rgba(246, 244, 241, 0.46);
  font-size: 0.84rem;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  margin-bottom: 10px;
  color: rgba(246, 244, 241, 0.64) !important;
  font-size: 0.76rem !important;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid p {
  margin: 0;
  color: rgba(246, 244, 241, 0.66);
  font-size: 0.82rem;
  line-height: 1.65;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.footer-bottom p {
  margin: 0;
  color: rgba(246, 244, 241, 0.62);
  font-size: 0.75rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}

.footer-legal a {
  color: rgba(246, 244, 241, 0.62);
  font-size: 0.75rem;
}

.footer-legal a:hover {
  color: #fff;
}

/* Inner-page system */

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  padding-top: 80px;
  background: var(--ink);
  color: var(--cream);
}

.page-hero-grid {
  position: absolute;
  inset: 80px 0 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(246, 244, 241, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 244, 241, 0.038) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(120deg, transparent 5%, black 55%, transparent 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 7vw;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(139, 31, 45, 0.55);
  transform: rotate(45deg);
}

.page-hero-layout {
  position: relative;
  z-index: 1;
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: end;
  gap: 10%;
  padding-block: 90px 78px;
}

.page-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.15rem, 4.8vw, 5.15rem);
  font-weight: 420;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.page-hero-side {
  padding-bottom: 6px;
}

.page-hero-side p {
  margin-bottom: 32px;
  color: rgba(246, 244, 241, 0.64);
  font-size: 1.1rem;
  line-height: 1.75;
}

.page-hero-side span {
  display: block;
  padding-top: 13px;
  border-top: 1px solid var(--line-light);
  color: rgba(246, 244, 241, 0.36);
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
}

.inner-section-heading {
  margin-left: calc((100% - var(--container)) / 2);
  margin-right: calc((100% - var(--container)) / 2);
}

.inner-paper-section {
  background: var(--paper);
}

.inner-cta {
  padding-block: 105px;
  background: var(--ink);
  color: var(--cream);
}

.inner-cta-layout {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: end;
  gap: 12%;
}

.inner-cta h2 {
  margin: 0;
  font-size: clamp(2.45rem, 4.1vw, 4.25rem);
  font-weight: 430;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.inner-cta-layout > div:last-child > p {
  margin-bottom: 28px;
  color: rgba(246, 244, 241, 0.6);
  font-size: 0.98rem;
  line-height: 1.72;
}

.inner-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Service detail */

.inner-problem-section {
  background: var(--cream);
}

.problem-outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.problem-outcome-grid article {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.problem-outcome-grid article:first-child {
  background: var(--ink);
  color: var(--cream);
}

.problem-outcome-grid span,
.list-kicker {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.problem-outcome-grid h2 {
  max-width: 500px;
  margin: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.65rem);
  font-weight: 480;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.problem-outcome-grid article:first-child h2 {
  color: rgba(246, 244, 241, 0.84);
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.scope-columns article {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.list-kicker {
  margin-bottom: 24px;
}

.precision-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.precision-list li {
  position: relative;
  padding: 13px 0 13px 17px;
  border-bottom: 1px solid var(--line);
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.5;
}

.precision-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 5px;
  height: 5px;
  background: var(--red);
}

.interface-section {
  background: var(--ink-soft);
  color: var(--cream);
}

.interface-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 12%;
}

.interface-layout h2,
.governance-detail-grid h2,
.appointment-grid h2,
.origin-grid h2,
.leadership-grid h2,
.senior-model-grid h2,
.evidence-grid h2,
.qa-layout h2,
.fire-control-grid h2,
.evidence-required-grid h2,
.topic-map-grid h2,
.contact-page-grid h2,
.careers-grid h2 {
  margin: 0;
  font-size: clamp(2.25rem, 3.5vw, 3.75rem);
  font-weight: 440;
  line-height: 1.04;
  letter-spacing: -0.048em;
}

.interface-list {
  border-top: 1px solid var(--line-light);
}

.interface-list div {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
}

.interface-list span {
  color: var(--red-bright);
  font-family: "Courier New", monospace;
  font-size: 0.77rem;
}

.interface-list p {
  margin: 0;
  color: rgba(246, 244, 241, 0.7);
  font-size: 0.96rem;
}

.governance-detail-section {
  background: var(--cream);
}

.governance-detail-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  gap: 12%;
}

.governance-detail-grid > div:last-child > p {
  margin: 0;
  color: var(--grey);
  font-size: 0.96rem;
  line-height: 1.78;
}

.stage-gates {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 38px;
  padding: 22px;
  border: 1px solid var(--line);
}

.stage-gates span {
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
}

.stage-gates i {
  color: var(--red);
  font-style: normal;
}

.compact-sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.compact-sector-grid a {
  min-height: 175px;
  display: flex;
  flex-direction: column;
  padding: 23px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    color 160ms ease,
    background 160ms ease;
}

.compact-sector-grid a:hover {
  background: var(--ink);
  color: var(--cream);
}

.compact-sector-grid span {
  color: var(--red);
  font-family: "Courier New", monospace;
  font-size: 0.77rem;
}

.compact-sector-grid strong {
  max-width: 180px;
  margin-top: auto;
  font-size: 0.98rem;
  font-weight: 580;
  line-height: 1.35;
}

.compact-sector-grid i {
  margin-top: 11px;
  color: var(--red);
  font-style: normal;
}

.faq-section {
  background: var(--cream);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 24px 60px 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.08rem;
  font-weight: 580;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 12px;
  color: var(--red);
  font-size: 1.5rem;
  font-weight: 300;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 800px;
  padding: 0 70px 24px 0;
  color: var(--grey);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* Service index */

.service-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-index-card {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  padding: 29px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    background 170ms ease,
    color 170ms ease,
    transform 170ms ease;
}

.service-index-card:hover {
  z-index: 1;
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-4px);
}

.service-index-card > span:first-child {
  color: var(--red);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
}

.service-index-card h2 {
  max-width: 270px;
  margin: 66px 0 16px;
  font-size: 1.46rem;
  font-weight: 560;
  line-height: 1.18;
}

.service-index-card p {
  margin: 0;
  color: var(--grey);
  font-size: 0.92rem;
  line-height: 1.7;
}

.service-index-card:hover p {
  color: rgba(246, 244, 241, 0.62);
}

.service-index-card strong {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--red);
  font-size: 0.8rem;
}

.service-index-card strong i {
  float: right;
  font-style: normal;
}

.appointment-section {
  background: var(--red);
  color: #fff;
}

.appointment-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 12%;
}

.appointment-steps {
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.appointment-steps article {
  display: grid;
  grid-template-columns: 50px 0.8fr 1.2fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
}

.appointment-steps span {
  font-family: "Courier New", monospace;
  font-size: 0.77rem;
}

.appointment-steps h3 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
}

.appointment-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.6;
}

.project-fit-section {
  background: var(--cream);
}

.project-fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-fit-grid article {
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-fit-grid h2 {
  max-width: 480px;
  margin-bottom: 32px;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 450;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* About */

.origin-section {
  background: var(--paper);
}

.origin-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12%;
}

.prose-block p,
.leadership-grid > div:last-child > p,
.evidence-grid > div:last-child > p,
.fire-control-grid > div:last-child > p {
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.82;
}

.prose-block p + p,
.leadership-grid > div:last-child > p + p,
.fire-control-grid > div:last-child > p + p {
  margin-top: 24px;
}

.leadership-section {
  background: var(--ink-soft);
  color: var(--cream);
}

.leadership-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 12%;
}

.leadership-profile {
  position: relative;
  overflow: hidden;
  width: min(100%, 480px);
  aspect-ratio: 3 / 4;
  margin: 0;
  border: 1px solid var(--line-light);
  background: var(--ink);
  box-shadow: 18px 18px 0 rgba(139, 31, 45, 0.16);
}

.leadership-profile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17, 20, 24, 0.42), transparent 28%),
    linear-gradient(0deg, rgba(17, 20, 24, 0.88), transparent 46%);
  pointer-events: none;
}

.leadership-profile picture,
.leadership-profile img {
  display: block;
  width: 100%;
  height: 100%;
}

.leadership-profile img {
  object-fit: cover;
  object-position: center 24%;
}

.leadership-profile figcaption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
}

.profile-code {
  color: rgba(246, 244, 241, 0.4);
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.leadership-profile figcaption div:last-child p {
  margin-bottom: 5px;
  color: rgba(246, 244, 241, 0.7);
  font-size: 0.8rem;
}

.leadership-profile figcaption div:last-child strong {
  display: block;
  max-width: 320px;
  color: var(--cream);
  font-size: 1rem;
  font-weight: 560;
}

.leadership-grid > div:last-child > p {
  color: rgba(246, 244, 241, 0.6);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principles-grid article {
  min-height: 270px;
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles-grid span {
  display: block;
  margin-bottom: 70px;
  color: var(--red);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
}

.principles-grid h3 {
  margin-bottom: 12px;
  font-size: 1.06rem;
  font-weight: 600;
}

.principles-grid p {
  margin: 0;
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.65;
}

.senior-model-section {
  background: var(--cream);
}

.senior-model-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 12%;
}

.model-points {
  border-top: 1px solid var(--line);
}

.model-points article {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 25px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.model-points span {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.model-points p {
  margin: 0;
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Sectors */

.sector-detail-section {
  background: var(--paper);
}

.sector-detail-list {
  border-top: 1px solid var(--line);
}

.sector-detail-list > article {
  display: grid;
  grid-template-columns: 70px 0.8fr 1fr 0.8fr;
  gap: 34px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.sector-number {
  color: var(--red);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
}

.sector-title h2 {
  margin-bottom: 17px;
  font-size: 1.75rem;
  font-weight: 520;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.sector-title p,
.sector-services > p:not(.list-kicker) {
  margin: 0;
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.7;
}

.sector-services a {
  display: inline-block;
  margin-top: 24px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 650;
}

.sector-services a span {
  margin-left: 8px;
}

/* Experience */

.case-study-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.case-study-list > article {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--paper);
}

.experience-figure {
  margin: 0;
}

.experience-image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.experience-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17, 20, 24, 0.08), rgba(139, 31, 45, 0.18)),
    linear-gradient(0deg, rgba(17, 20, 24, 0.18), transparent 52%);
  pointer-events: none;
}

.experience-image-frame picture,
.experience-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.experience-image-frame img {
  object-fit: cover;
  filter: saturate(0.76) contrast(1.04) brightness(0.9);
  transition: transform 220ms ease;
}

.case-study-list > article:hover .experience-image-frame img,
.prior-experience-grid article:hover .experience-image-frame img {
  transform: scale(1.015);
}

.experience-figure figcaption {
  padding: 8px 22px 0;
  color: var(--grey);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-code {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  align-items: baseline;
  padding: 22px 24px 0;
}

.case-code span {
  margin-right: auto;
  color: var(--red);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
}

.case-code p {
  margin: 0 0 4px;
  color: var(--grey);
  font-size: 0.8rem;
}

.case-main {
  padding: 20px 24px 0;
}

.case-main h2 {
  margin-bottom: 15px;
  font-size: 1.68rem;
  font-weight: 520;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.case-appointment {
  margin-bottom: 25px !important;
  color: var(--ink) !important;
  font-weight: 600;
}

.case-main p {
  margin: 0;
  color: var(--grey);
  font-size: 0.92rem;
  line-height: 1.7;
}

.case-study-list > article > div:last-child {
  margin-top: auto;
  padding: 24px;
}

.image-disclaimer {
  max-width: 980px;
  margin: 28px auto 0;
  padding: 16px 18px;
  border-left: 3px solid var(--red);
  background: rgba(139, 31, 45, 0.045);
  color: var(--grey);
  font-size: 0.86rem;
  line-height: 1.65;
}

.prior-experience-section {
  background: var(--cream);
}

.prior-experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.prior-experience-grid article {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.prior-experience-grid .experience-figure figcaption {
  padding-inline: 18px;
}

.prior-card-content {
  padding: 18px 20px 25px;
}

.prior-card-content > span {
  display: block;
  margin-bottom: 36px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.prior-card-content h3 {
  margin-bottom: 12px;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.3;
}

.prior-card-content p {
  margin: 0;
  color: var(--grey);
  font-size: 0.88rem;
  line-height: 1.65;
}

.evidence-section {
  background: var(--paper);
}

.evidence-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 12%;
}

/* Standards */

.hierarchy-section {
  background: var(--paper);
}

.hierarchy-list {
  border-top: 1px solid var(--line);
}

.hierarchy-list article {
  display: grid;
  grid-template-columns: 65px 0.9fr 1.1fr;
  gap: 38px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.hierarchy-list span {
  color: var(--red);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
}

.hierarchy-list h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.hierarchy-list p {
  margin: 0;
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.65;
}

.qa-section {
  background: var(--ink-soft);
  color: var(--cream);
}

.qa-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 12%;
}

.qa-layout > div:first-child > p:last-child {
  margin-top: 25px;
  color: rgba(246, 244, 241, 0.58);
  font-size: 0.86rem;
  line-height: 1.72;
}

.qa-controls {
  border-top: 1px solid var(--line-light);
}

.qa-controls article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
}

.qa-controls > article > span {
  color: var(--red-bright);
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
}

.qa-controls h3 {
  margin-bottom: 5px;
  font-size: 0.9rem;
  font-weight: 600;
}

.qa-controls p {
  margin: 0;
  color: rgba(246, 244, 241, 0.52);
  font-size: 0.86rem;
}

.fire-control-section {
  background: var(--cream);
}

.fire-control-grid,
.evidence-required-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 12%;
}

.fire-control-grid a {
  display: inline-block;
  margin-top: 18px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 650;
}

.evidence-required-section {
  background: var(--paper);
}

.evidence-table,
.article-table {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.evidence-table > div,
.article-table > div {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
}

.evidence-table > div > *,
.article-table > div > * {
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.evidence-table strong,
.article-table strong {
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
}

.evidence-table span,
.article-table span {
  color: var(--grey);
}

/* Insights */

.article-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.article-index-grid > a {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 29px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    background 170ms ease,
    color 170ms ease;
}

.article-index-grid > a:hover {
  background: var(--ink);
  color: var(--cream);
}

.article-index-code {
  color: var(--red);
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
}

.article-index-grid > a > p {
  margin: 62px 0 13px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.article-index-grid h2 {
  margin-bottom: 18px;
  font-size: 1.47rem;
  font-weight: 540;
  line-height: 1.2;
}

.article-index-grid > a > span:not(.article-index-code) {
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.66;
}

.article-index-grid > a:hover > span:not(.article-index-code) {
  color: rgba(246, 244, 241, 0.6);
}

.article-index-grid strong {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--red);
  font-size: 0.8rem;
}

.article-index-grid strong i {
  float: right;
  font-style: normal;
}

.topic-map-section {
  background: var(--red);
  color: #fff;
}

.topic-map-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 12%;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 9px;
}

.topic-tags span {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

.article-page {
  background: var(--paper);
}

.article-header {
  padding: 180px 0 82px;
  background: var(--ink);
  color: var(--cream);
}

.article-header-inner {
  max-width: 1040px;
}

.article-header h1 {
  max-width: 970px;
  margin-bottom: 32px;
  font-size: clamp(3.15rem, 5.3vw, 5.55rem);
  font-weight: 420;
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.article-standfirst {
  max-width: 780px;
  margin-bottom: 38px;
  color: rgba(246, 244, 241, 0.65);
  font-size: 1.05rem;
  line-height: 1.72;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}

.article-meta span {
  color: rgba(246, 244, 241, 0.38);
  font-size: 0.78rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  justify-content: center;
  gap: 85px;
  padding-block: 85px 120px;
}

.article-layout aside {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
}

.article-layout aside p {
  margin-bottom: 9px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.article-layout aside strong {
  display: block;
  margin-bottom: 13px;
  font-size: 0.8rem;
}

.article-layout aside span {
  display: block;
  color: var(--grey);
  font-size: 0.82rem;
  line-height: 1.62;
}

.article-layout aside a {
  display: block;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 650;
}

.article-body h2 {
  margin: 50px 0 18px;
  font-size: 2rem;
  font-weight: 520;
  line-height: 1.18;
  letter-spacing: -0.033em;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body > p {
  margin-bottom: 20px;
  color: #4f555c;
  font-size: 0.98rem;
  line-height: 1.85;
}

.article-callout {
  margin: 34px 0;
  padding: 28px;
  border-left: 4px solid var(--red);
  background: var(--cream);
}

.article-callout strong {
  display: block;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.article-callout ul {
  margin: 0;
  padding-left: 19px;
}

.article-callout li {
  margin: 9px 0;
  color: var(--grey);
  font-size: 0.78rem;
}

.article-table {
  margin: 30px 0;
}

/* Contact */

.contact-page-section {
  background: var(--paper);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 10%;
}

.contact-page-grid aside {
  align-self: start;
  padding: 28px;
  background: var(--ink);
  color: var(--cream);
}

.contact-page-grid aside h2 {
  margin-bottom: 25px;
  font-size: 2rem;
}

.contact-page-grid aside > a {
  display: block;
  width: fit-content;
  margin-bottom: 12px;
  color: #e76679;
  font-size: 0.83rem;
  border-bottom: 1px solid rgba(231, 102, 121, 0.5);
}

.contact-page-grid aside > p {
  margin: 4px 0;
  color: rgba(246, 244, 241, 0.58);
  font-size: 0.84rem;
}

.contact-rule {
  height: 1px;
  margin: 28px 0;
  background: var(--line-light);
}

.contact-page-grid aside h3 {
  margin-bottom: 16px;
  font-size: 0.88rem;
  font-weight: 600;
}

.contact-page-grid aside ol {
  margin: 0;
  padding-left: 20px;
}

.contact-page-grid aside li {
  margin: 10px 0;
  color: rgba(246, 244, 241, 0.6);
  font-size: 0.82rem;
}

.contact-small {
  margin-top: 24px !important;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}

.contact-page-grid > div > h2 {
  margin-bottom: 20px;
}

.form-intro {
  max-width: 680px;
  margin-bottom: 38px;
  color: var(--grey);
  font-size: 0.94rem;
  line-height: 1.68;
}

.project-form {
  border-top: 1px solid var(--line);
}

.project-form fieldset {
  margin: 0;
  padding: 32px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.project-form legend {
  margin-bottom: 22px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 22px;
}

.project-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.project-form label > span[aria-hidden="true"] {
  color: var(--red);
}

.project-form input:not([type="checkbox"]),
.project-form select,
.project-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}

.project-form textarea {
  min-height: 150px;
  resize: vertical;
}

.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
  outline: 3px solid rgba(139, 31, 45, 0.22);
  border-color: var(--red);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkbox-grid label {
  min-height: 48px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 500;
}

.checkbox-grid input,
.consent-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--red);
}

.consent-row {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px !important;
  margin-top: 28px;
}

.consent-row span {
  color: var(--grey);
  font-weight: 400;
  line-height: 1.6;
}

.consent-row a {
  color: var(--red);
  text-decoration: underline;
}

.consent-row b {
  color: var(--red);
}

.form-note {
  max-width: 700px;
  margin: 22px 0;
  color: var(--grey);
  font-size: 0.8rem;
  line-height: 1.6;
}

.project-form button {
  cursor: pointer;
}

.form-status {
  min-height: 24px;
  margin-top: 16px;
  color: var(--red);
  font-size: 0.82rem;
}

/* Careers and legal */

.careers-section {
  background: var(--paper);
}

.careers-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 12%;
}

.careers-grid > div:first-child > p:last-child {
  margin-top: 25px;
  color: var(--grey);
  font-size: 0.87rem;
  line-height: 1.75;
}

.career-principles {
  border-top: 1px solid var(--line);
}

.career-principles article {
  display: grid;
  grid-template-columns: 52px 0.7fr 1.3fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.career-principles span {
  color: var(--red);
  font-family: "Courier New", monospace;
  font-size: 0.77rem;
}

.career-principles h3 {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 600;
}

.career-principles p {
  margin: 0;
  color: var(--grey);
  font-size: 0.88rem;
  line-height: 1.62;
}

.legal-section {
  background: var(--paper);
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: center;
  gap: 90px;
}

.legal-layout aside {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
}

.legal-layout aside p {
  margin-bottom: 4px;
  color: var(--grey);
  font-size: 0.78rem;
}

.legal-layout aside strong {
  display: block;
  font-size: 0.78rem;
}

.legal-layout aside a {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 650;
}

.legal-copy h2 {
  margin: 42px 0 14px;
  font-size: 1.5rem;
  font-weight: 540;
  letter-spacing: -0.025em;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  margin-bottom: 19px;
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.82;
}

.legal-copy a {
  color: var(--red);
  text-decoration: underline;
}

.not-found-section {
  min-height: 760px;
  display: grid;
  place-items: center;
  padding-top: 80px;
  background: var(--ink);
  color: var(--cream);
}

.not-found-section h1 {
  max-width: 900px;
  margin-bottom: 25px;
  font-size: clamp(3.2rem, 6.5vw, 6.5rem);
  font-weight: 420;
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.not-found-section p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(246, 244, 241, 0.6);
}

.not-found-section .button {
  margin-right: 10px;
}

@media (max-width: 1050px) {
  .header-inner {
    grid-template-columns: 160px 1fr auto;
  }

  .desktop-nav {
    gap: 18px;
  }

  .desktop-nav a {
    font-size: 0.8rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .engineering-panel {
    width: min(900px, 100%);
  }

  .risk-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .project-card {
    min-height: 290px;
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 1fr;
  }

  .footer-grid > div:last-child {
    display: none;
  }

  .page-hero-layout {
    grid-template-columns: 1fr 0.75fr;
  }

  .scope-columns {
    grid-template-columns: 1fr 1fr;
  }

  .scope-columns article:last-child {
    grid-column: 1 / -1;
  }

  .compact-sector-grid,
  .principles-grid,
  .prior-experience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-index-grid,
  .article-index-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sector-detail-list > article {
    grid-template-columns: 55px 0.8fr 1.2fr;
  }

  .sector-services {
    grid-column: 2 / -1;
  }

  .case-study-list > article {
    grid-template-columns: 0.35fr 1fr;
  }

  .case-study-list > article > div:last-child {
    grid-column: 2;
  }

  .article-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 55px;
  }
}

@media (max-width: 820px) {
  :root {
    --container: min(100% - 32px, 1180px);
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .mobile-menu {
    display: block;
    position: relative;
  }

  .mobile-menu summary {
    width: 44px;
    height: 44px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 11px;
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--line-light);
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    width: 100%;
    height: 1px;
    display: block;
    background: var(--cream);
  }

  .mobile-menu nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 16px 20px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-light);
  }

  .mobile-menu nav > a:not(.button) {
    padding: 14px 5px;
    border-bottom: 1px solid var(--line-light);
    color: rgba(246, 244, 241, 0.78);
    font-size: 0.83rem;
  }

  .mobile-menu .button {
    margin-top: 14px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-layout {
    width: var(--container);
    min-height: auto;
    padding-block: 68px 58px;
  }

  .hero h1 {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }

  .authority-strip {
    grid-template-columns: 1fr 1fr;
  }

  .authority-strip div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line-light);
  }

  .authority-strip div:nth-child(4) {
    border-top: 1px solid var(--line-light);
  }

  .split-heading,
  .governance-layout,
  .insight-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .sector-list article {
    grid-template-columns: 50px 1fr;
    gap: 14px;
    padding-block: 24px;
  }

  .sector-list p {
    grid-column: 2;
  }

  .governance-card {
    margin-right: 14px;
  }

  .section {
    padding-block: 84px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .page-hero {
    min-height: auto;
    padding-top: 72px;
  }

  .page-hero-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 70px 62px;
  }

  .page-hero h1 {
    font-size: clamp(3.2rem, 12vw, 5.2rem);
  }

  .page-hero-side {
    max-width: 650px;
  }

  .inner-cta-layout,
  .interface-layout,
  .governance-detail-grid,
  .appointment-grid,
  .origin-grid,
  .leadership-grid,
  .senior-model-grid,
  .evidence-grid,
  .qa-layout,
  .fire-control-grid,
  .evidence-required-grid,
  .topic-map-grid,
  .contact-page-grid,
  .careers-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .problem-outcome-grid,
  .project-fit-grid {
    grid-template-columns: 1fr;
  }

  .problem-outcome-grid article {
    min-height: 310px;
  }

  .interface-list {
    margin-top: 10px;
  }

  .scope-columns {
    grid-template-columns: 1fr;
  }

  .scope-columns article:last-child {
    grid-column: auto;
  }

  .appointment-steps article {
    grid-template-columns: 45px 1fr;
  }

  .appointment-steps p {
    grid-column: 2;
  }

  .leadership-profile {
    width: min(540px, calc(100% - 18px));
  }

  .sector-detail-list > article {
    grid-template-columns: 46px 1fr;
  }

  .sector-detail-list > article > div:nth-child(3),
  .sector-services {
    grid-column: 2;
  }

  .hierarchy-list article {
    grid-template-columns: 50px 1fr;
  }

  .hierarchy-list p {
    grid-column: 2;
  }

  .article-layout,
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .article-layout aside,
  .legal-layout aside {
    position: static;
  }

  .article-layout aside {
    max-width: 480px;
  }

  .contact-page-grid aside {
    max-width: 520px;
  }

  .case-study-list {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .brand-link img,
  .footer-brand img {
    width: 118px;
  }

  .hero h1 {
    font-size: 2.95rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-principles {
    gap: 8px 16px;
  }

  .engineering-panel {
    min-height: 0;
    box-shadow: 12px 14px 0 rgba(139, 31, 45, 0.18);
  }

  .authority-strip {
    width: 100%;
  }

  .authority-strip div {
    min-height: 82px;
    padding: 15px 16px;
  }

  .risk-grid,
  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .risk-card {
    min-height: 220px;
  }

  .services-grid {
    border-left: 0;
  }

  .service-card {
    min-height: 300px;
    border-left: 1px solid var(--line);
  }

  .inline-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .process-grid {
    border-left: 0;
  }

  .process-grid article {
    min-height: 190px;
    border-left: 1px solid var(--line);
  }

  .process-grid span {
    margin-bottom: 36px;
  }

  .contact-section {
    padding-block: 82px;
  }

  .contact-layout h2 {
    font-size: 2.75rem;
  }

  .button-light {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .page-hero h1 {
    font-size: 3rem;
  }

  .inner-cta {
    padding-block: 82px;
  }

  .inner-cta h2 {
    font-size: 2.8rem;
  }

  .inner-cta-actions {
    flex-direction: column;
  }

  .inner-cta-actions .button {
    width: 100%;
  }

  .problem-outcome-grid article {
    min-height: 280px;
    padding: 24px;
  }

  .compact-sector-grid,
  .principles-grid,
  .prior-experience-grid,
  .service-index-grid,
  .article-index-grid {
    grid-template-columns: 1fr;
  }

  .service-index-card,
  .article-index-grid > a {
    min-height: 350px;
  }

  .appointment-steps article {
    grid-template-columns: 38px 1fr;
  }

  .model-points article {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .sector-detail-list > article {
    grid-template-columns: 34px 1fr;
    gap: 16px;
  }

  .case-study-list > article {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .case-study-list > article > div:last-child {
    grid-column: auto;
  }

  .hierarchy-list article {
    grid-template-columns: 36px 1fr;
    gap: 18px;
  }

  .article-header {
    padding: 145px 0 65px;
  }

  .article-header h1 {
    font-size: 3.1rem;
  }

  .article-layout {
    padding-block: 55px 85px;
  }

  .article-body h2 {
    font-size: 1.65rem;
  }

  .article-body > p {
    font-size: 0.91rem;
  }

  .evidence-table > div,
  .article-table > div {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .career-principles article {
    grid-template-columns: 38px 1fr;
  }

  .career-principles p {
    grid-column: 2;
  }

  .not-found-section .button {
    width: 100%;
    margin: 7px 0;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* Static Netlify export refinements */
:root {
  --near-black: #111418;
  --cream: #F6F4F1;
  --brand-red: #8B1F2D;
  --type-body: clamp(1rem, 0.22vw + 0.96rem, 1.125rem);
}

[hidden] {
  display: none !important;
}

body {
  font-size: var(--type-body);
}

body.menu-open {
  overflow: hidden;
}

p,
li,
input,
select,
textarea,
button {
  font-size: inherit;
}

.eyebrow,
.project-sector,
.service-code,
.article-index-code,
.list-kicker,
.card-kicker,
.profile-code,
.article-meta,
.experience-figure figcaption,
.project-figure figcaption {
  font-size: clamp(0.82rem, 0.18vw + 0.79rem, 0.9rem);
}

.hero h1 {
  font-size: clamp(2.9rem, 4.5vw, 4.55rem);
}

.page-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.7rem);
}

.page-hero-layout {
  min-height: 390px;
  padding-block: 50px 72px;
}

.article-header h1 {
  font-size: clamp(2.75rem, 5vw, 4.65rem);
}

.split-heading h2,
.section-heading h2,
.governance-layout h2,
.insight-layout h2,
.contact-layout h2 {
  font-size: clamp(2.2rem, 3.2vw, 3.45rem);
}

.desktop-nav {
  align-items: center;
}

.desktop-nav > a,
.nav-dropdown > summary {
  position: relative;
  color: rgba(246, 244, 241, 0.76);
  font-size: 0.84rem;
  letter-spacing: 0.07em;
  cursor: pointer;
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.desktop-nav > a[aria-current="page"],
.nav-dropdown.active > summary,
.nav-dropdown > summary:hover {
  color: #fff;
}

.desktop-nav > a[aria-current="page"]::after,
.nav-dropdown.active > summary::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 2px;
  background: var(--red);
}

.nav-dropdown {
  position: relative;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  z-index: 110;
  width: min(340px, 85vw);
  padding: 12px;
  background: var(--ink);
  border: 1px solid var(--line-light);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}

.nav-submenu a {
  display: block;
  padding: 10px 12px;
  color: rgba(246, 244, 241, 0.78);
  font-size: 0.86rem;
  line-height: 1.35;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  background: rgba(246, 244, 241, 0.08);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-light);
  color: var(--cream);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.mobile-navigation {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding-block: 16px 24px;
  border-top: 1px solid var(--line-light);
  background: var(--ink);
}

.mobile-navigation a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-light);
  color: rgba(246, 244, 241, 0.82);
  font-size: 1rem;
}

.mobile-navigation a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--red);
}

.breadcrumb {
  padding-top: 30px;
  margin-bottom: 28px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(246, 244, 241, 0.62);
  font-size: 0.85rem;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--red);
}

.breadcrumb a:hover {
  color: #fff;
}

.page-hero > .container {
  position: relative;
}

.page-hero > .container .page-hero-layout {
  width: 100%;
}

.diagram-wrap {
  min-width: 0;
}

.diagram-caption {
  margin: 18px 0 0;
  color: rgba(246, 244, 241, 0.6);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
}

.engineering-panel img {
  image-rendering: -webkit-optimize-contrast;
}

.diagram-dialog {
  width: min(94vw, 1560px);
  max-height: 94vh;
  padding: 0;
  border: 1px solid rgba(246, 244, 241, 0.24);
  background: #0b0d10;
  color: var(--cream);
}

.diagram-dialog::backdrop,
.cookie-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.diagram-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-light);
}

.diagram-dialog-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 560;
}

.diagram-dialog-header button,
.dialog-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-light);
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
}

.diagram-dialog img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(94vh - 82px);
  object-fit: contain;
}

.governance-link {
  display: inline-flex;
  margin-top: 34px;
}

.home-prior-experience {
  background: var(--paper);
}

.home-leadership {
  background: var(--ink);
}

.home-leadership .leadership-grid > div:last-child {
  color: var(--cream);
}

.home-leadership .leadership-grid > div:last-child > p {
  color: rgba(246, 244, 241, 0.7);
}

.service-index-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-index-card h2 {
  font-size: clamp(1.35rem, 1.5vw, 1.7rem);
}

.sector-building-types,
.sector-life-safety {
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.65;
}

.experience-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.experience-filters button {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.experience-filters button:hover,
.experience-filters button.active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

[data-experience-item][hidden] {
  display: none !important;
}

.case-study-list p,
.case-study-list li,
.prior-experience-grid p,
.project-card p {
  font-size: clamp(0.98rem, 0.14vw + 0.95rem, 1.05rem);
}

.case-code span,
.case-code p,
.image-disclaimer,
.experience-note {
  font-size: clamp(0.9rem, 0.14vw + 0.87rem, 0.98rem);
}

.page-hero-side > p {
  font-size: clamp(1.05rem, 0.35vw + 0.99rem, 1.22rem);
}

.risk-card p,
.service-card > p,
.service-card small,
.service-index-card p,
.authority-strip span,
.sector-list p,
.contact-page-grid aside > a,
.contact-page-grid aside > p,
.contact-page-grid aside li,
.form-intro,
.form-note,
.form-status,
.article-callout li,
.faq-list details p,
.footer-grid p,
.footer-grid a,
.footer-legal a,
.footer-cookie-button {
  font-size: clamp(0.9rem, 0.12vw + 0.88rem, 0.98rem);
}

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

.project-form .field,
.project-form fieldset > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-form label {
  font-weight: 600;
}

.project-form input,
.project-form select,
.project-form textarea {
  width: 100%;
}

.project-form input[type="checkbox"] {
  width: 20px;
  min-width: 20px;
}

.project-form input[aria-invalid="true"],
.project-form select[aria-invalid="true"],
.project-form textarea[aria-invalid="true"] {
  border-color: #a6001f;
  box-shadow: 0 0 0 2px rgba(166, 0, 31, 0.18);
}

.field-error {
  margin: 0;
  color: #8b0018;
  font-size: 0.9rem;
  font-weight: 650;
}

.form-error-summary {
  margin-bottom: 26px;
  padding: 18px;
  border: 2px solid #8b0018;
  background: #fff3f4;
  color: #58000f;
}

.form-error-summary p {
  margin: 0;
  font-weight: 650;
}

.form-fallback {
  margin-top: 22px;
  color: var(--grey);
}

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

.button-outline {
  background: transparent;
  color: var(--ink);
}

.confirmation-section {
  background: var(--paper);
}

.confirmation-card {
  max-width: 820px;
  padding: clamp(32px, 5vw, 70px);
  border: 1px solid var(--line);
}

.confirmation-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.footer-cookie-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.footer-cookie-button:hover {
  color: var(--cream);
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 500;
  max-width: 1180px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 22px;
  border: 1px solid rgba(246, 244, 241, 0.24);
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
}

.cookie-banner p {
  margin: 0 0 6px;
  color: rgba(246, 244, 241, 0.72);
  font-size: 0.92rem;
}

.cookie-banner .cookie-title {
  color: var(--cream);
  font-size: 1rem;
  font-weight: 700;
}

.cookie-banner a {
  color: var(--cream);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions,
.cookie-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-actions button,
.cookie-dialog-actions button {
  min-width: 120px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid rgba(246, 244, 241, 0.52);
  background: transparent;
  color: var(--cream);
  font-weight: 650;
  cursor: pointer;
}

.cookie-actions button:hover,
.cookie-dialog-actions button:hover {
  border-color: var(--red);
  background: var(--red);
}

.cookie-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: 90vh;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 2rem;
}

.dialog-close {
  border-color: var(--line);
}

.cookie-setting {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.cookie-setting p {
  margin: 6px 0 0;
  color: var(--grey);
  font-size: 0.92rem;
}

.cookie-setting input {
  width: 22px;
  height: 22px;
}

.cookie-dialog-actions {
  margin-top: 24px;
}

.cookie-dialog-actions button {
  border-color: var(--ink);
  color: var(--ink);
}

.cookie-dialog-actions button:hover {
  color: #fff;
}



/* CMS-managed Team section */
.team-section {
  padding-block: clamp(72px, 8vw, 128px);
  background: #f6f4f1;
  color: #111418;
}

.team-heading {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.team-heading h2 {
  max-width: 760px;
  margin-bottom: 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.team-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.team-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d7d5d2;
  margin-bottom: 22px;
}

.team-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.team-card-role {
  margin: 0 0 9px;
  color: #8b1f2d;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.team-card h3 {
  margin: 0 0 18px;
  color: #111418;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.team-card > p:not(.team-card-role) {
  max-width: 62ch;
  margin: 0 0 22px;
  color: #4f555d;
  line-height: 1.65;
}

.team-read-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 156px;
  padding: 16px 18px;
  border: 1px solid transparent;
  background: #ebe9e6;
  color: #111418;
  font: inherit;
  cursor: pointer;
  appearance: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.team-read-more:hover,
.team-read-more:focus-visible {
  border-color: #8b1f2d;
  background: #8b1f2d;
  color: #fff;
}

.team-read-more svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  transition: transform 220ms ease;
}

.team-card[data-open="true"] .team-read-more svg {
  transform: rotate(180deg);
}

.team-bio {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 20, 24, 0.18);
  color: #333940;
  line-height: 1.72;
}

.team-bio[hidden] {
  display: none !important;
}

.team-bio p:first-child {
  margin-top: 0;
}

.team-credentials {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #4f555d;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Transparent brand marks */
.site-header img,
.site-footer img {
  width: auto;
  max-width: 159px;
  height: 54px;
  object-fit: contain;
  background: transparent;
}

/* CMS social icons */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(246, 244, 241, 0.28);
  border-radius: 50%;
  color: #f6f4f1;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  transform: translateY(-2px);
  border-color: #8b1f2d;
  background: #8b1f2d;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cms-hidden {
  display: none !important;
}

@media (min-width: 1180px) {
  .team-grid:has(.team-card:nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card-media {
    aspect-ratio: 4 / 4.8;
  }
}


/* CMS-managed Team section */
.team-section {
  padding-block: clamp(72px, 8vw, 128px);
  background: #f6f4f1;
  color: #111418;
}

.team-heading {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.team-heading h2 {
  max-width: 760px;
  margin-bottom: 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.team-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.team-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d7d5d2;
  margin-bottom: 22px;
}

.team-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.team-card-role {
  margin: 0 0 9px;
  color: #8b1f2d;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.team-card h3 {
  margin: 0 0 18px;
  color: #111418;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.team-card > p:not(.team-card-role) {
  max-width: 62ch;
  margin: 0 0 22px;
  color: #4f555d;
  line-height: 1.65;
}

.team-read-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 156px;
  padding: 16px 18px;
  border: 1px solid transparent;
  background: #ebe9e6;
  color: #111418;
  font: inherit;
  cursor: pointer;
  appearance: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.team-read-more:hover,
.team-read-more:focus-visible {
  border-color: #8b1f2d;
  background: #8b1f2d;
  color: #fff;
}

.team-read-more svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  transition: transform 220ms ease;
}

.team-card[data-open="true"] .team-read-more svg {
  transform: rotate(180deg);
}

.team-bio {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 20, 24, 0.18);
  color: #333940;
  line-height: 1.72;
}

.team-bio[hidden] {
  display: none !important;
}

.team-bio p:first-child {
  margin-top: 0;
}

.team-credentials {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #4f555d;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Transparent brand marks */
.site-header img,
.site-footer img {
  width: auto;
  max-width: 159px;
  height: 54px;
  object-fit: contain;
  background: transparent;
}

/* CMS social icons */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(246, 244, 241, 0.28);
  border-radius: 50%;
  color: #f6f4f1;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  transform: translateY(-2px);
  border-color: #8b1f2d;
  background: #8b1f2d;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cms-hidden {
  display: none !important;
}

@media (min-width: 1180px) {
  .team-grid:has(.team-card:nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card-media {
    aspect-ratio: 4 / 4.8;
  }
}


/* =========================================================
   Final Team-section refinement
   ========================================================= */

.team-section {
  padding-block: clamp(72px, 7vw, 112px);
}

.team-heading {
  max-width: 820px;
  margin-bottom: clamp(38px, 4vw, 58px);
}

.team-heading .eyebrow,
.team-heading .section-eyebrow {
  color: #8b1f2d;
}

.team-heading h2 {
  max-width: 700px;
  margin-bottom: 18px;
}

.team-heading p {
  max-width: 720px;
  margin-bottom: 0;
}

/* Three-card structure, even when only two people exist */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2.4vw, 38px);
  align-items: start;
}

/* Prevent two cards from stretching across the entire page */
.team-card {
  min-width: 0;
  max-width: 100%;
}

/* Compact WSP-inspired portrait proportions */
.team-card-media {
  position: relative;
  aspect-ratio: 1 / 1.04;
  overflow: hidden;
  margin-bottom: 14px;
  background: #d7d5d2;
}

.team-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

/* Role and name */
.team-card-role {
  margin: 0 0 7px;
  color: #8b1f2d;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.team-card h3 {
  margin: 0 0 13px;
  color: #111418;
  font-size: clamp(1.7rem, 2.2vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.team-card > p:not(.team-card-role) {
  max-width: 48ch;
  margin: 0 0 15px;
  color: #4f555d;
  line-height: 1.58;
}

/* Compact Read more button */
.team-read-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-width: 154px;
  margin-top: 2px;
  padding: 15px 18px;
  border: 1px solid transparent;
  background: #ebe9e6;
  color: #111418;
  font: inherit;
  cursor: pointer;
  appearance: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.team-read-more:hover,
.team-read-more:focus-visible {
  border-color: #8b1f2d;
  background: #8b1f2d;
  color: #ffffff;
}

.team-read-more svg {
  width: 17px;
  height: 17px;
  flex: none;
  stroke: currentColor;
  transition: transform 200ms ease;
}

.team-card[data-open="true"] .team-read-more svg {
  transform: rotate(180deg);
}

.team-bio {
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid rgba(17, 20, 24, 0.18);
  color: #333940;
  line-height: 1.7;
}

.team-bio[hidden] {
  display: none !important;
}

/* =========================================================
   Final responsive logo sizing
   ========================================================= */

/* Remove restrictive older dimensions */
.site-header img,
.site-footer img {
  max-width: none;
  height: auto;
  background: transparent;
  object-fit: contain;
}

/* Header logo */
.site-header .site-logo img,
.site-header .logo img,
.site-header a[aria-label*="home"] img,
.site-header img[alt*="MILLI"],
.site-header img[alt*="Milli"] {
  width: clamp(148px, 11vw, 172px);
  height: auto;
  max-width: none;
}

/* Footer logo should have slightly greater visual presence */
.site-footer .site-logo img,
.site-footer .logo img,
.site-footer img[alt*="MILLI"],
.site-footer img[alt*="Milli"] {
  width: clamp(180px, 14vw, 210px);
  height: auto;
  max-width: none;
  margin-bottom: 18px;
}

@media (max-width: 1050px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header .site-logo img,
  .site-header .logo img,
  .site-header a[aria-label*="home"] img,
  .site-header img[alt*="MILLI"],
  .site-header img[alt*="Milli"] {
    width: 140px;
  }

  .site-footer .site-logo img,
  .site-footer .logo img,
  .site-footer img[alt*="MILLI"],
  .site-footer img[alt*="Milli"] {
    width: 174px;
  }
}

@media (max-width: 700px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card-media {
    aspect-ratio: 4 / 4.2;
  }

  .site-header .site-logo img,
  .site-header .logo img,
  .site-header a[aria-label*="home"] img,
  .site-header img[alt*="MILLI"],
  .site-header img[alt*="Milli"] {
    width: 124px;
  }

  .site-footer .site-logo img,
  .site-footer .logo img,
  .site-footer img[alt*="MILLI"],
  .site-footer img[alt*="Milli"] {
    width: 154px;
  }
}

/* =========================================================
   Compact cropped-logo treatment
   ========================================================= */

.site-header {
  min-height: 88px;
}

.site-header .site-logo,
.site-header .logo {
  display: flex;
  align-items: center;
  height: 88px;
}

.site-header .site-logo img,
.site-header .logo img,
.site-header a[aria-label*="home"] img,
.site-header img[alt*="MILLI"],
.site-header img[alt*="Milli"] {
  display: block;
  width: 118px;
  height: auto;
  max-width: 118px;
  margin: 0;
}

.site-footer .site-logo,
.site-footer .logo {
  display: inline-flex;
  align-items: center;
}

.site-footer .site-logo img,
.site-footer .logo img,
.site-footer img[alt*="MILLI"],
.site-footer img[alt*="Milli"] {
  display: block;
  width: 150px;
  height: auto;
  max-width: 150px;
  margin: 0 0 24px;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 76px;
  }

  .site-header .site-logo,
  .site-header .logo {
    height: 76px;
  }

  .site-header .site-logo img,
  .site-header .logo img,
  .site-header a[aria-label*="home"] img,
  .site-header img[alt*="MILLI"],
  .site-header img[alt*="Milli"] {
    width: 108px;
    max-width: 108px;
  }

  .site-footer .site-logo img,
  .site-footer .logo img,
  .site-footer img[alt*="MILLI"],
  .site-footer img[alt*="Milli"] {
    width: 140px;
    max-width: 140px;
  }
}

@media (max-width: 620px) {
  .site-header .site-logo img,
  .site-header .logo img,
  .site-header a[aria-label*="home"] img,
  .site-header img[alt*="MILLI"],
  .site-header img[alt*="Milli"] {
    width: 100px;
    max-width: 100px;
  }

  .site-footer .site-logo img,
  .site-footer .logo img,
  .site-footer img[alt*="MILLI"],
  .site-footer img[alt*="Milli"] {
    width: 128px;
    max-width: 128px;
  }
}

/* 2026 bilingual and proportional-layout refinement */
.language-toggle{display:inline-flex;align-items:center;gap:8px;margin-left:18px;padding:7px 10px;border:1px solid rgba(246,244,241,.18);font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.language-toggle a{color:rgba(246,244,241,.58);text-decoration:none;transition:color .18s ease}
.language-toggle a.active,.language-toggle a:hover,.language-toggle a:focus-visible{color:#f6f4f1}
.language-toggle a.active{position:relative}
.language-toggle a.active::after{content:"";position:absolute;left:0;right:0;bottom:-8px;height:2px;background:#8b1f2d}
.language-toggle span{color:#8b1f2d}
.mobile-language-toggle{display:none}
/* Keep the original compact header rhythm; logo artwork is cropped, so no large canvas is needed. */
.site-header{min-height:0!important}
.header-inner{min-height:88px!important;padding-top:0!important;padding-bottom:0!important}
.brand-link{display:flex;align-items:center;height:88px}
.brand-link img{display:block!important;width:122px!important;max-width:122px!important;height:auto!important;margin:0!important}
.footer-brand img{display:block!important;width:142px!important;max-width:142px!important;height:auto!important;margin:0 0 22px!important}
/* Homepage core services: 4 × 2, equal-height copy and aligned dividers. */
.home-services .service-grid,.services-overview .service-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.service-card{display:flex!important;flex-direction:column!important;min-height:100%!important}
.service-card>p{min-height:6.4em!important}
.service-card small{margin-top:auto!important;min-height:3.2em!important}
/* Improve numbered registers without changing the restrained visual language. */
.sector-number,.service-code,.article-index-code,.process-number,.card-number{font-size:clamp(.88rem,1vw,1.02rem)!important;font-weight:700!important;color:#8b1f2d!important;opacity:1!important;letter-spacing:.08em!important}
@media(max-width:1180px){.home-services .service-grid,.services-overview .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.language-toggle{margin-left:8px}.header-inner{min-height:78px!important}.brand-link{height:78px}.brand-link img{width:112px!important;max-width:112px!important}}
@media(max-width:900px){.desktop-nav,.header-cta>.language-toggle{display:none}.mobile-language-toggle{display:block;padding:0 24px 20px}.mobile-language-toggle .language-toggle{margin:0}.brand-link img{width:108px!important;max-width:108px!important}}
@media(max-width:680px){.home-services .service-grid,.services-overview .service-grid{grid-template-columns:1fr!important}.service-card>p,.service-card small{min-height:0!important}.brand-link img{width:102px!important;max-width:102px!important}.footer-brand img{width:128px!important;max-width:128px!important}}
/* Correct grid selectors for the actual approved markup. */
.services-section .services-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
.service-index-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:1180px){.services-section .services-grid,.service-index-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:680px){.services-section .services-grid,.service-index-grid{grid-template-columns:1fr!important}}

/* V4 header alignment: CTA and language switch remain on one row. */
.header-inner{grid-template-columns:150px minmax(0,1fr) auto!important;gap:clamp(18px,2vw,30px)!important;min-height:80px!important}
.brand-link{height:80px!important}.brand-link img{width:118px!important;max-width:118px!important}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;white-space:nowrap}
.header-actions .header-cta{margin:0;white-space:nowrap;min-height:44px;padding-inline:18px}
.header-actions .language-toggle{margin:0;flex:none}
@media(max-width:1240px){.desktop-nav{gap:14px}.desktop-nav a{font-size:.78rem}.header-actions{gap:9px}.header-actions .header-cta{padding-inline:14px;font-size:.78rem}.language-toggle{padding:6px 8px;font-size:.68rem}}
@media(max-width:980px){.header-actions{display:none}.mobile-language-toggle{display:block;padding:12px 0 4px}.mobile-language-toggle .language-toggle{margin:0}.header-inner{grid-template-columns:1fr auto!important}}

/* V4 header alignment correction */
@media (min-width: 981px) {
  .site-header .header-inner {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: clamp(22px, 2.5vw, 48px) !important;
  }

  .site-header .brand-link {
    flex: none !important;
    align-self: center !important;
  }

  .site-header .desktop-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
    gap: clamp(14px, 1.5vw, 27px) !important;
  }

  .site-header .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    min-width: max-content !important;
    white-space: nowrap !important;
  }

  .site-header .header-actions .header-cta {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: max-content !important;
    margin: 0 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  .site-header .header-actions .language-toggle {
    position: static !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  .site-header .mobile-language-toggle {
    display: none !important;
  }
}

@media (min-width: 981px) and (max-width: 1240px) {
  .site-header .header-inner {
    column-gap: 18px !important;
  }

  .site-header .desktop-nav {
    gap: 13px !important;
  }

  .site-header .desktop-nav a {
    font-size: 0.76rem !important;
  }

  .site-header .header-actions {
    gap: 8px !important;
  }

  .site-header .header-actions .header-cta {
    padding-inline: 13px !important;
    font-size: 0.75rem !important;
  }

  .site-header .header-actions .language-toggle {
    padding: 6px 7px !important;
    font-size: 0.67rem !important;
  }
}

/* V4 balanced spacing around desktop header CTA */
@media (min-width: 1241px) {
  .site-header .header-inner {
    column-gap: 30px !important;
  }

  .site-header .header-actions {
    gap: 30px !important;
  }
}

@media (min-width: 981px) and (max-width: 1240px) {
  .site-header .header-inner {
    column-gap: 18px !important;
  }

  .site-header .header-actions {
    gap: 18px !important;
  }
}

/* V4 final balanced CTA spacing */
@media (min-width: 1241px) {
  .site-header .header-actions {
    gap: 42px !important;
  }
}

@media (min-width: 981px) and (max-width: 1240px) {
  .site-header .header-actions {
    gap: 24px !important;
  }
}

/* V4 final compact KA / EN language switch */
@media (min-width: 981px) {
  .site-header .header-actions {
    gap: 30px !important;
  }

  .site-header .language-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    border: 0 !important;
    background: transparent !important;
    padding: 8px 0 !important;
    box-shadow: none !important;
  }

  .site-header .language-toggle a {
    position: relative !important;
    padding: 2px 0 7px !important;
    color: rgba(246, 244, 241, 0.58) !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-decoration: none !important;
  }

  .site-header .language-toggle a.active {
    color: #f6f4f1 !important;
  }

  .site-header .language-toggle a.active::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 2px !important;
    background: #8b1f2d !important;
  }

  .site-header .language-toggle span[aria-hidden="true"] {
    color: #8b1f2d !important;
    opacity: 0.9 !important;
  }
}

/* V4 proper branded language dropdown */
@media (min-width: 981px) {
  .site-header .header-actions {
    gap: 28px !important;
  }

  .site-header .language-dropdown {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    color: #f6f4f1;
  }

  .site-header .language-dropdown summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 58px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(246, 244, 241, 0.2);
    background: transparent;
    color: #f6f4f1;
    cursor: pointer;
    list-style: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition:
      border-color 160ms ease,
      background-color 160ms ease;
  }

  .site-header .language-dropdown summary::-webkit-details-marker {
    display: none;
  }

  .site-header .language-dropdown summary:hover,
  .site-header .language-dropdown summary:focus-visible,
  .site-header .language-dropdown[open] summary {
    border-color: rgba(139, 31, 45, 0.85);
    background: rgba(246, 244, 241, 0.035);
    outline: none;
  }

  .site-header .language-chevron {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #8b1f2d;
    border-bottom: 1.5px solid #8b1f2d;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
  }

  .site-header .language-dropdown[open] .language-chevron {
    transform: translateY(2px) rotate(225deg);
  }

  .site-header .language-menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 100;
    display: grid;
    min-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(246, 244, 241, 0.2);
    background: #111418;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  }

  .site-header .language-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    color: rgba(246, 244, 241, 0.64);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
  }

  .site-header .language-menu a + a {
    border-top: 1px solid rgba(246, 244, 241, 0.12);
  }

  .site-header .language-menu a:hover,
  .site-header .language-menu a:focus-visible {
    background: #171b20;
    color: #f6f4f1;
    outline: none;
    box-shadow: inset 3px 0 0 #8b1f2d;
  }

  .site-header .language-menu a.active {
    color: #f6f4f1;
    background: rgba(139, 31, 45, 0.13);
  }
}

/* Compact version inside the mobile navigation */
@media (max-width: 980px) {
  .mobile-language-toggle .language-dropdown {
    width: 100%;
  }

  .mobile-language-toggle .language-dropdown summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    color: #f6f4f1;
    cursor: pointer;
    list-style: none;
  }

  .mobile-language-toggle .language-dropdown summary::-webkit-details-marker {
    display: none;
  }

  .mobile-language-toggle .language-chevron {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #8b1f2d;
    border-bottom: 1.5px solid #8b1f2d;
    transform: rotate(45deg);
  }

  .mobile-language-toggle .language-menu {
    display: grid;
    border-top: 1px solid rgba(246, 244, 241, 0.12);
  }

  .mobile-language-toggle .language-menu a {
    padding: 13px 0;
    color: rgba(246, 244, 241, 0.68);
    text-decoration: none;
  }

  .mobile-language-toggle .language-menu a.active {
    color: #f6f4f1;
  }
}

/* Restore boxed full-name language selector */
@media (min-width: 981px) {
  .site-header .header-actions {
    gap: 28px !important;
  }

  .site-header .language-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    border: 1px solid rgba(246, 244, 241, 0.22) !important;
    background: transparent !important;
    box-shadow: none !important;
    white-space: nowrap !important;
  }

  .site-header .language-toggle a {
    position: relative !important;
    padding: 0 0 5px !important;
    color: rgba(246, 244, 241, 0.58) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-decoration: none !important;
  }

  .site-header .language-toggle a.active {
    color: #f6f4f1 !important;
  }

  .site-header .language-toggle a.active::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 2px !important;
    background: #8b1f2d !important;
  }

  .site-header .language-toggle span[aria-hidden="true"] {
    color: #8b1f2d !important;
    opacity: 0.9 !important;
  }
}


/* V5 Experience project cards */
.case-study-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 3rem;
  align-items: start;
}

.experience-project-card {
  background: #fff;
  border: 1px solid rgba(17, 20, 24, 0.16);
  overflow: hidden;
}

.experience-project-card .case-code {
  padding: 1.1rem 1.5rem 0;
}

.experience-project-card .case-main {
  padding: 0 1.5rem 1.7rem;
}

.experience-project-card .case-description {
  margin-top: 1.35rem;
}

.principal-constraints {
  margin-top: 1.9rem;
}

.principal-constraints-title {
  margin: 0 0 1rem;
  color: #8b1f2d;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.principal-constraints ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.principal-constraints li {
  position: relative;
  margin: 0;
  padding: 0.9rem 0 0.9rem 1.15rem;
  border-bottom: 1px solid rgba(17, 20, 24, 0.16);
}

.principal-constraints li::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 0;
  width: 0.28rem;
  height: 0.28rem;
  background: #8b1f2d;
}

@media (max-width: 860px) {
  .case-study-list {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
}


/* V5 Contact form dates and submit spacing */
.project-form input[type="date"] {
  width: 100%;
}

.project-form .privacy-consent-row {
  margin-top: 2rem;
}

.project-form .privacy-consent-row + .consent-row {
  margin-top: 1rem;
}

.project-form button[type="submit"] {
  margin-top: 2rem;
}

@media (max-width: 700px) {
  .project-form button[type="submit"] {
    width: 100%;
  }
}


/* V5 Supporting-file guidance */
.project-form .file-upload-note {
  margin: 0.55rem 0 1.5rem;
  max-width: 52rem;
  font-size: 0.78rem;
  line-height: 1.55;
  opacity: 0.7;
}


/* V6 Final shared footer */
.site-footer {
  background: #0d1013;
  color: #f6f4f1;
  padding: 4.5rem 0 1.6rem;
}

.site-footer .footer-main {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 0.9fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: 4rem;
}

.site-footer .footer-brand {
  max-width: 22rem;
}

.site-footer .footer-logo-link {
  display: inline-block;
  margin-bottom: 0.9rem;
}

.site-footer .footer-logo {
  display: block;
  width: 9rem;
  height: auto;
}

.site-footer h2 {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f6f4f1;
}

.site-footer p,
.site-footer a {
  font-size: 0.92rem;
  line-height: 1.65;
}

.site-footer .footer-brand p,
.site-footer .footer-project-fit p {
  margin: 0;
}

.site-footer .footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.site-footer .footer-column a {
  color: inherit;
  text-decoration: none;
}

.site-footer .footer-column a:hover,
.site-footer .footer-column a:focus-visible,
.site-footer .footer-legal a:hover,
.site-footer .footer-legal a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer .footer-cta {
  margin-top: 0.35rem;
  font-weight: 700;
}

.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(246, 244, 241, 0.18);
}

.site-footer .footer-bottom p {
  margin: 0;
  font-size: 0.78rem;
}

.site-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.5rem;
}

.site-footer .footer-legal a {
  color: inherit;
  font-size: 0.78rem;
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-footer .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding-top: 3.5rem;
  }

  .site-footer .footer-main {
    grid-template-columns: 1fr;
    padding-bottom: 2.5rem;
  }

  .site-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer .footer-legal {
    justify-content: flex-start;
    gap: 1rem 1.4rem;
  }
}


/* Careers — dynamic job postings */

.career-openings > p:not(.eyebrow) {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.job-card-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.job-card {
  border-top: 1px solid currentColor;
  padding: 1.5rem 0;
}

.job-card h3 {
  margin: 0.75rem 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.job-card p {
  max-width: 48rem;
}

.job-card > a {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.job-card-meta,
.job-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.job-card-meta span,
.job-page-meta span {
  border: 1px solid currentColor;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.job-page-meta {
  margin-top: 1.5rem;
}

.job-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.job-detail-section {
  padding: 0 0 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(17,20,24,0.22);
}

.job-detail-section h2 {
  margin-bottom: 1.25rem;
}

.job-detail-section ul {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.25rem;
}

.job-application-panel {
  position: sticky;
  top: 7rem;
  border: 1px solid rgba(17,20,24,0.28);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.job-application-panel .button {
  width: 100%;
  justify-content: center;
  margin-top: 1.5rem;
}

.job-deadline {
  margin-top: 1.5rem;
}

.job-back-link {
  display: inline-block;
  margin-top: 1.25rem;
}

@media (max-width: 800px) {
  .job-detail-layout {
    grid-template-columns: 1fr;
  }

  .job-application-panel {
    position: static;
  }
}


/* Careers vacancy section refinement */

.careers-openings-layout {
  max-width: 58rem;
}

.career-openings {
  width: 100%;
}

.career-openings-intro {
  max-width: 46rem;
  margin: 1rem 0 2.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.job-card {
  border-top: 1px solid rgba(17, 20, 24, 0.32);
  padding: 1.75rem 0 0;
}

.job-card h3 {
  color: #8B1F2D;
  max-width: 36rem;
  margin: 1.1rem 0 1rem;
}

.job-card > p {
  max-width: 42rem;
  line-height: 1.65;
}

.job-card > a {
  color: #8B1F2D;
  margin-top: 1.25rem;
}

.job-card > a:hover,
.job-card > a:focus-visible {
  text-decoration: underline;
}

.job-card-meta {
  gap: 0.6rem;
}

.job-card-meta span {
  border-color: rgba(139, 31, 45, 0.55);
  color: #8B1F2D;
  padding: 0.4rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}



/* Careers — aligned vacancy cards */

.careers-vacancies-section .career-openings {
  width: 100%;
}

.careers-vacancies-section .career-openings > .eyebrow {
  margin-bottom: 1.1rem;
  font-size: clamp(0.9rem, 1.2vw, 1.08rem);
  letter-spacing: 0.22em;
}

.career-openings-intro {
  max-width: 52rem;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
}

.job-card-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 0;
}

.job-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
  column-gap: clamp(2rem, 6vw, 6rem);
  row-gap: 1rem;
  align-items: start;
  border: 1px solid rgba(17, 20, 24, 0.2);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.job-card-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.job-card h3 {
  grid-column: 1;
  margin: 0.5rem 0 0;
  max-width: 42rem;
  color: #8B1F2D;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.12;
}

.job-card > p {
  grid-column: 2;
  margin: 0.5rem 0 0;
  max-width: 34rem;
  line-height: 1.65;
}

.job-card > a {
  grid-column: 2;
  justify-self: start;
  margin-top: 0.5rem;
  color: #8B1F2D;
  font-weight: 700;
}

.job-card-meta span {
  border: 1px solid rgba(139, 31, 45, 0.55);
  color: #8B1F2D;
  padding: 0.42rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
}

@media (max-width: 850px) {
  .job-card {
    grid-template-columns: 1fr;
  }

  .job-card h3,
  .job-card > p,
  .job-card > a {
    grid-column: 1;
  }
}




/* Careers — empty state using the standard site container */

.careers-section:has(.careers-empty-state) {
  padding-block: clamp(5rem, 8vw, 7rem);
}

.container.careers-empty-state {
  /* Width, margins and horizontal padding come from .container */
}

.careers-empty-state > div:first-child {
  width: 100%;
  max-width: none;
}

.careers-empty-state .eyebrow {
  margin: 0 0 1.5rem;
}

.careers-empty-state h2 {
  width: 100%;
  max-width: none;
  margin: 0 0 1.75rem;
  font-size: clamp(2.8rem, 4.6vw, 5rem);
  line-height: 1.05;
  font-weight: 400;
}

.careers-empty-state > div:first-child > p:last-child {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.75;
}

@media (max-width: 700px) {
  .careers-section:has(.careers-empty-state) {
    padding-block: 4rem;
  }

  .careers-empty-state h2 {
    font-size: clamp(2.3rem, 11vw, 3.8rem);
  }
}

