/* 1. Design tokens and locally bundled font */
@font-face {
  font-family: 'Meteorite Anton';
  src: url('fonts/Anton-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #181818;
  --surface: #252525;
  --raised: #303030;
  --line: #404040;
  --section-border: 3px solid var(--line);
  --text: #f2f2f2;
  --muted: #bdbdbd;
  --quiet: #999999;
  --copy: #d2d2d2;
  --display: Impact, 'Meteorite Anton', Haettenschweiler, 'Arial Narrow Bold', 'Arial Narrow', sans-serif;
  --bs-body-font-family: Arial, Helvetica, sans-serif;
}

/* Override Bootstrap's dark tokens with neutral greys. */
:root, [data-bs-theme="dark"] {
  color-scheme: dark;
  --bs-body-bg: var(--bg);
  --bs-body-bg-rgb: 24, 24, 24;
  --bs-body-color: var(--text);
  --bs-body-color-rgb: 242, 242, 242;
  --bs-emphasis-color: var(--text);
  --bs-emphasis-color-rgb: 242, 242, 242;
  --bs-secondary-color: var(--muted);
  --bs-secondary-color-rgb: 189, 189, 189;
  --bs-tertiary-color: var(--quiet);
  --bs-tertiary-color-rgb: 153, 153, 153;
  --bs-secondary-bg: var(--surface);
  --bs-secondary-bg-rgb: 37, 37, 37;
  --bs-tertiary-bg: var(--raised);
  --bs-tertiary-bg-rgb: 48, 48, 48;
  --bs-border-color: var(--line);
  --bs-border-color-translucent: rgba(255, 255, 255, .16);
  --bs-primary: var(--text);
  --bs-primary-rgb: 242, 242, 242;
  --bs-primary-text-emphasis: var(--text);
  --bs-primary-bg-subtle: var(--surface);
  --bs-primary-border-subtle: var(--line);
  --bs-link-color: var(--text);
  --bs-link-color-rgb: 242, 242, 242;
  --bs-link-hover-color: #ffffff;
  --bs-link-hover-color-rgb: 255, 255, 255;
  --bs-heading-color: var(--text);
  --bs-focus-ring-color: rgba(242, 242, 242, .55);
  --bs-highlight-color: var(--text);
  --bs-highlight-bg: var(--raised);
  --bs-code-color: var(--muted);
}

/* 2. Base typography, shared layout and accessible states */
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: #ffffff; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--text); outline-offset: 6px; }
button:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
::selection { background: #dddddd; color: var(--bg); }
/* Required by navigation.js: keep hidden menus out of display and tab order. */
[hidden] { display: none !important; }
.container-xl { max-width: 1328px; padding-inline: 40px; }
.skip-link {
  position: absolute;
  left: 20px;
  top: -100px;
  padding: 12px;
  background: var(--text);
  color: var(--bg);
  z-index: 10;
}
.skip-link:focus { top: 10px; }
.eyebrow, .small-label {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 1.65px;
  text-transform: uppercase;
  font-weight: 600;
}
.eyebrow { color: var(--muted); margin-bottom: 25px; }
h2 {
  font-family: var(--display);
  font-size: 49px;
  line-height: 1.12;
  letter-spacing: -.7px;
  font-weight: 400;
  margin: 0;
}
h3 { font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -.35px; margin: 0; }
.section { --section-padding: 79px; padding-block: var(--section-padding); }
.home-page .section { padding-block: calc(var(--section-padding) / 2); }
.section-divider { margin: 0; border: 0; border-top: var(--section-border); opacity: 1; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 36px;
}
.section-heading .eyebrow { margin-bottom: 16px; }
.home-page .section-heading .eyebrow, .home-page .experience-heading .eyebrow { font-size: 12px; line-height: 1.5; }
.section-heading > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 3px;
  max-width: 380px;
  width: 35%;
}
.btn {
  border-radius: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  padding: 16px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}
.btn-light {
  --bs-btn-bg: var(--text);
  --bs-btn-border-color: var(--text);
  --bs-btn-color: var(--bg);
  --bs-btn-hover-bg: #d6d6d6;
  --bs-btn-hover-border-color: #d6d6d6;
  --bs-btn-active-bg: var(--muted);
  --bs-btn-active-border-color: var(--muted);
  --bs-btn-active-color: var(--bg);
  --bs-btn-focus-shadow-rgb: 189, 189, 189;
  --bs-btn-disabled-bg: var(--muted);
  --bs-btn-disabled-border-color: var(--muted);
}
.text-link { font-size: 14px; line-height: 1.5; display: inline-flex; align-items: center; gap: 24px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

/* 3. Header, wordmark and existing navigation states */
.site-header { background: #202020; border-bottom: var(--section-border); }
.header-inner {
  background: inherit;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.wordmark {
  font-family: var(--display);
  font-size: 31px;
  font-weight: 400;
  font-synthesis: none;
  color: var(--text);
  letter-spacing: -.5px;
  line-height: 1.2;
  white-space: nowrap;
}
.site-header .wordmark { font-size: clamp(25px, 2.2vw, 31px); }
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.8vw, 27px);
  font-size: 14px;
  line-height: 1.5;
}
.site-header nav a { padding: 12px 0; color: var(--muted); }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 6px; color: #ffffff; }
.site-header nav .nav-contact { color: var(--text); border-left: 1px solid var(--line); padding-left: 26px; }
.nav-contact span { margin-left: 14px; }
.nav-toggle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #666666;
  border-radius: 0;
  background: transparent;
  color: var(--text);
}
.nav-toggle:hover { background: var(--raised); }
.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* 4. Typography-led hero */
.hero { position: relative; isolation: isolate; padding-top: 62px; padding-bottom: 66px; }
.hero-wfc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero > :not(.hero-wfc-canvas) { position: relative; z-index: 1; }
.hero > .hero-wfc-controls { position: absolute; top: 12px; right: 16px; z-index: 2; display: flex; align-items: center; gap: 6px; opacity: 1; }
.hero-wfc-controls button { display: grid; place-items: center; height: 20px; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--muted); opacity: 1; cursor: pointer; }
.hero-wfc-controls .hero-wfc-reset, .hero-wfc-controls .hero-wfc-stop { width: 22px; }
.hero-wfc-controls svg { width: 12px; height: 12px; }
.hero-wfc-controls .hero-wfc-text { padding-inline: 7px; font-size: 12px; line-height: 1; white-space: nowrap; }
.hero-wfc-controls button:hover { color: var(--text); border-color: var(--muted); }
.hero-text-hidden .hero-content { visibility: hidden; }
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 8.2vw, 120px);
  line-height: 1.12;
  letter-spacing: -2px;
  margin: 0 0 39px;
  white-space: nowrap;
}
.hero h1 span:first-child { color: #a6a6a6; }
.hero h1 span:nth-child(2) { color: #d0d0d0; }
.hero h1 span:last-child { color: #ffffff; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.hero-statement { font-size: 19px; line-height: 1.65; max-width: 650px; margin: 0; color: #d1d1d1; }
.hero-actions { display: flex; align-items: flex-start; min-width: 218px; }

/* 5. Seven-category capabilities bar */
.capabilities { background: var(--surface); border-block: var(--section-border); }
.capability-list { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); margin: 0 auto; }
.capability-list li {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  line-height: 1.45;
  font-size: 13px;
  font-weight: 600;
  border-right: 1px solid var(--line);
  padding: 15px 10px;
}
.capability-list li:first-child { border-left: 1px solid var(--line); }

/* 6. Services: centred turnkey delivery with three connected engagement routes */
.engagements { display: flex; flex-direction: column; align-items: center; }
.services-summary { width: 100%; margin: 32px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; text-align: left; }
.engagement {
  min-width: 0;
  position: relative;
  padding: 25px;
  background: #202020;
  border: 2px solid var(--line);
  border-radius: 8px;
}
.engagement-primary {
  width: min(640px, 100%);
  padding: 30px 36px;
  text-align: center;
  background: var(--surface);
  border-color: #777777;
}
.engagement .small-label { letter-spacing: 1.2px; color: var(--muted); margin: 0 0 12px; }
.engagement h3 { font-size: 18px; margin-bottom: 16px; }
.engagement-primary h3 { font-size: 27px; margin-bottom: 14px; }
.engagement > p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.engagement-primary > p { text-align: left; }
.engagement > p + p { margin-top: 16px; }
.service-branches { width: 100%; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.service-branches > .engagement:nth-of-type(1) { margin-top: 76px; }
.service-branches > .engagement:nth-of-type(2) { margin-top: 140px; }
.service-branches > .engagement:nth-of-type(3) { margin-top: 100px; }
.service-wires { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.service-wires path { fill: none; stroke: #777777; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* 7. Attributed engineering experience and illustration spaces */
.experience-section { background: #202020; border-block: var(--section-border); }
.experience-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 32px; align-items: center; margin-bottom: 24px; }
.experience-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.experience-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
.project-card { min-width: 0; }
.project-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.project-card h3 { font-family: var(--display); font-size: 32px; font-weight: 400; line-height: 1.15; margin: 0 0 12px; }
.project-copy > p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
.project-copy > p:not(.employer-attribution) + p { margin-top: 16px; }
.project-copy > p.employer-attribution { font-size: 13px; line-height: 1.5; color: var(--copy); margin: 0 0 16px; }
.project-featured .work-illustration { margin-bottom: 0; }
.work-illustration { position: relative; min-width: 0; margin: 0 0 16px; }
.work-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--surface);
}
.work-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
/* Reconstruction information remains available on hover, keyboard focus and touch focus. */
.illustration-info { position: static; }
.illustration-info button { position: absolute; right: 10px; bottom: 10px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 1px solid var(--muted); border-radius: 50%; background: rgba(24, 24, 24, .85); color: var(--muted); font: italic 600 14px/1 Georgia, serif; cursor: help; }
.illustration-tooltip { position: absolute; bottom: 42px; right: 10px; z-index: 2; width: max-content; max-width: calc(100% - 20px); padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--text); font-size: 12px; line-height: 1.5; visibility: hidden; }
.illustration-info:not(.is-dismissed):hover .illustration-tooltip,
.illustration-info:not(.is-dismissed):focus-within .illustration-tooltip { visibility: visible; }


/* 8. Engineering Notes previews */
.notes-grid { column-gap: 24px; row-gap: 20px; }
.notes-heading { display: grid; grid-template-columns: minmax(0, 1fr) 35%; gap: 16px 40px; align-items: start; }
.notes-heading > .eyebrow { grid-column: 1 / -1; width: 100%; max-width: none; margin: 0; }
.experience-cta, .notes-cta { justify-self: end; align-self: center; text-align: right; }

.note-image-placeholder { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; }
.note-card { width: calc((100% - 48px) / 3); padding: 24px 0; }
.note-card h3 { font-size: 18.4px; line-height: 1.3; margin-bottom: 12px; }
.note-card > p:last-child { font-size: 15px; line-height: 1.6; color: var(--muted); margin-bottom: 0; }

/* 9. Shared static pages, publication listings and reusable article layout */
.document-page { padding-block: 65px 80px; }
.page-heading { margin-bottom: 42px; }
.document-page:not(.capability-page) .page-heading { max-width: 900px; }
.capability-page { --capability-prose-width: 860px; }
.capability-page .document-section:not(.capability-experience) > p { max-width: var(--capability-prose-width); }
.capability-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.capability-intro-grid > .page-intro { width: 100%; margin-bottom: 0; }
.capability-experience.follows-experience-band { border-top: 0; padding-top: 0; }
.page-heading h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 70px); line-height: 1.12; margin: 0 0 25px; letter-spacing: -.5px; overflow-wrap: anywhere; }
.page-heading > .text-link { margin-bottom: 30px; }
.page-intro { font-size: 19px; line-height: 1.6; color: var(--copy); }
.electronics-subtitle, .mechanical-subtitle, .software-subtitle, .robotics-subtitle, .embedded-subtitle, .instrumentation-subtitle, .integration-subtitle { color: var(--muted); font-size: 18px; margin: -15px 0 22px; }
.electronics-capability-grid, .mechanical-capability-grid, .software-capability-grid, .robotics-capability-grid, .embedded-capability-grid, .instrumentation-capability-grid, .integration-capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 42px; }
.electronics-capability h3, .mechanical-capability h3, .software-capability h3, .robotics-capability h3, .embedded-capability h3, .instrumentation-capability h3, .integration-capability h3 { font-size: 22px; line-height: 1.3; margin-bottom: 12px; }
.electronics-capability p, .mechanical-capability p, .software-capability p, .robotics-capability p, .embedded-capability p, .instrumentation-capability p, .integration-capability p { color: var(--muted); margin: 0; }
.software-work, .robotics-work, .embedded-work, .instrumentation-work, .integration-work { display: grid; gap: 30px; }
.software-work p + p, .robotics-work p + p, .embedded-work p + p, .instrumentation-work p + p, .integration-work p + p { margin-top: 16px; }
.document-section { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 42px; }
.document-page:not(.capability-page) .document-section { max-width: 1000px; }
.document-section h2 { font-size: 36px; margin-bottom: 22px; }
.founder-profile h2 { margin-bottom: 7px; }
.discuss-section { border-top: 0; padding-top: 0; }
.document-section p { color: var(--muted); }
.experience-read-more { display: inline; color: var(--text); }
.document-page:not(.capability-page) .document-section p { max-width: 800px; }
.underwater-band, .capability-band { margin-top: 48px; padding-block: 42px; }
.underwater-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.underwater-copy { min-width: 0; }
.underwater-images { display: grid; gap: 18px; }
.image-popup-link { display: block; cursor: zoom-in; }
.image-popup { max-width: 96vw; max-height: 96vh; padding: 42px 12px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); }
.image-popup::backdrop { background: rgba(0, 0, 0, .85); }
.image-popup-image { display: block; width: auto; height: auto; max-width: calc(96vw - 26px); max-height: calc(96vh - 56px); object-fit: contain; }
.image-popup-close { position: absolute; top: 2px; right: 6px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; }
.image-popup-close:hover { background: var(--raised); }

.underwater-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.underwater-image-placeholder { aspect-ratio: 3 / 2; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; color: var(--quiet); font-size: 12px; }
.underwater-copy h2, .research-copy h2 { font-size: 36px; margin-bottom: 22px; }
.underwater-copy p, .research-copy p { color: var(--muted); }
.underwater-copy p:last-child, .research-copy p:last-child { margin-bottom: 0; }

.capability-navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.capability-navigation .text-link { display: block; min-width: 0; overflow-wrap: anywhere; }
.capability-previous { grid-column: 1; grid-row: 1; text-align: left; }
.capability-contact { grid-column: 2; grid-row: 1; text-align: center; }
.capability-next { grid-column: 3; grid-row: 1; text-align: right; }

.career-timeline { list-style: none; padding: 0 0 0 24px; border-left: 2px solid var(--line); margin: 28px 0 0; }
.career-timeline li { margin-bottom: 28px; }
.career-timeline .eyebrow { margin-bottom: 8px; color: var(--text); }
.principles-band { background: var(--surface); border-block: var(--section-border); padding-block: 40px; margin-top: 48px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1000px; }
.principles > div { min-width: 0; }
.principles h3 { margin-bottom: 14px; }
.principles p { max-width: 800px; color: var(--muted); margin: 0; }
.draft-notice { border-left: 3px solid var(--quiet); background: var(--surface); padding: 16px 20px; font-size: 14px; color: var(--muted); }
.notes-article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px; }
.notes-article-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
/* Explicit local-review exception to the monochrome palette: drafts only. */
.notes-article-card[data-note-status="draft"], .note-card[data-note-status="draft"] { --draft-border: #e89a3c; }
.notes-article-card[data-note-status="draft"] { border-color: var(--draft-border); border-width: 2px; }
.note-card[data-note-status="draft"] { outline: 2px solid var(--draft-border); outline-offset: 6px; }
.notes-card-image { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--surface); border-bottom: 1px solid var(--line); }
.notes-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.notes-article-card h2 { font-family: var(--bs-body-font-family); font-size: 19.2px; font-weight: 400; line-height: 1.35; letter-spacing: normal; margin: 0 0 14px; }
.notes-card-summary { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 26px; }
.notes-card-footer { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.notes-card-footer .text-link { font-size: 14px; }
.notes-card-date { margin: 0 0 0 auto; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: right; }
.note-card h3 a:hover, .notes-article-card h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.longform { max-width: 780px; margin-inline: auto; }
.longform h2 { font-size: 31px; margin: 38px 0 18px; }
.longform > p, .longform li { color: var(--copy); line-height: 1.7; }
.longform li { margin-bottom: 12px; }
.longform p a { text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.generated-article { overflow-wrap: anywhere; }
.generated-article img { display: block; max-width: 100%; height: auto; margin-block: 24px; }
.rabbit-hole { position: relative; margin-block: 104px 40px; padding: 46px 28px 28px; background: #111111; border: 1px dotted var(--quiet); border-radius: 6px; color: var(--copy); line-height: 1.7; }
.generated-article .rabbit-hole-illustration { position: absolute; top: -118px; right: 6px; width: 240px; max-width: 75%; height: 160px; object-fit: contain; margin: 0; pointer-events: none; }
.rabbit-hole-content > :last-child { margin-bottom: 0; }
.rabbit-hole-content > :first-child { margin-top: 0; }
.generated-article table { overflow-wrap: normal; }
.generated-article pre { max-width: 100%; overflow-x: auto; padding: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.generated-article pre code { white-space: pre; color: var(--copy); }
.generated-article blockquote { border-left: 3px solid var(--line); padding-left: 20px; color: var(--muted); }
.article-date { color: var(--muted); font-size: 14px; line-height: 1.5; }
/* Privacy preferences share the site's neutral button and focus styles. */
.privacy-notice { overflow-wrap: anywhere; }
.analytics-preferences { border: 1px solid var(--line); background: var(--surface); padding: 24px; margin-block: 30px; border-radius: 6px; }
.analytics-preferences h3 { font-size: 22px; margin-bottom: 16px; }
.analytics-preferences p { color: var(--copy); line-height: 1.6; }
.analytics-preference-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.analytics-preference-actions .btn { min-height: 44px; white-space: normal; }
.analytics-preference-actions [aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.analytics-preferences [role="status"] { margin: 0; font-size: 14px; }
.equation { background: var(--surface); border-block: 1px solid var(--line); font-size: clamp(14px, 2.1vw, 20px); padding: 20px 12px; margin-block: 24px; text-align: center; overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; overflow-x: auto; margin-block: 24px; }
.table-scroll:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
table { width: 100%; font-size: 14px; line-height: 1.6; }
th, td { padding: 12px; border: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); }
.source-note { border-top: 1px solid var(--line); margin-top: 38px; font-size: 14px; color: var(--muted); }

/* 10. Contact and secondary project-brief guidance */
.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 85px; padding-block: 88px; }
.home-page .contact-section { padding-block: 44px; }
.contact-section h2 { font-size: 63px; }
.contact-copy > p:first-child { font-size: 16px; line-height: 1.6; color: var(--copy); margin-top: 4px; }
.contact-email { font-size: clamp(14px, 1.6vw, 21px); line-height: 1.5; font-weight: 600; display: inline-flex; align-items: center; gap: 14px; max-width: 100%; margin: 8px 0 4px; padding: 12px 0; }
.brief-details { border-block: 1px solid var(--line); margin-top: 25px; }
.brief-details summary { padding: 18px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 14px; line-height: 1.5; }
.brief-details ul { font-size: 16px; line-height: 1.6; color: var(--muted); padding-left: 18px; padding-bottom: 10px; }

/* 11. Footer */
.site-footer { border-top: var(--section-border); }
.footer-inner { min-height: 113px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.site-footer .wordmark { font-size: 24px; }
.site-footer p { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 0; }

/* 12. Responsive overrides, ordered from wide to narrow */
@media (min-width: 1440px) {
  .hero { padding-top: 73px; padding-bottom: 76px; }
}

@media (max-width: 1100px) {
  .container-xl { padding-inline: 30px; }
  .site-header nav .nav-contact { padding-left: 17px; }
  .hero-statement { font-size: 17px; max-width: 580px; }
  .engagement h3 { font-size: 17px; }
  .engagement-primary h3 { font-size: 23px; }
  .contact-section { gap: 45px; }
}

@media (max-width: 991.98px) {
  .header-inner { min-height: 85px; flex-wrap: wrap; gap: 0 15px; padding-block: 20px; }
  .site-header .wordmark { font-size: 29px; }
  .site-header nav {
    flex: 0 0 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 15px;
    margin-top: 17px;
    border-top: 1px solid var(--line);
  }
  .site-header nav a { font-size: 15px; padding: 13px 0; }
  .site-header nav .nav-contact { border-left: 0; padding-left: 0; }
}

@media (max-width: 850px) {
  .experience-heading { display: block; }
  .experience-heading .eyebrow { margin-bottom: 12px; }
  .experience-cta { margin-top: 20px; text-align: left; }
  .hero { padding-block: 45px; }
  .hero-bottom { gap: 30px; }
  .hero-statement { font-size: 16px; }
  .hero-actions { min-width: 203px; }
  .btn { gap: 24px; padding: 14px 17px; }
  .capability-list { grid-template-columns: repeat(4, 1fr); }
  .capability-list li { border-bottom: 1px solid var(--line); min-height: 67px; }
  .capability-list li:nth-child(5) { border-left: 1px solid var(--line); }
  .capability-list li:nth-child(n+5) { border-bottom: 0; }
  .capability-list li:last-child { grid-column: span 2; }
  .desktop-break { display: none; }
  .section { --section-padding: 58px; }
  h2 { font-size: 43px; }
  .section-heading > p { width: 40%; }
  .notes-heading { grid-template-columns: minmax(0, 1fr) 40%; }
  .engagement { padding: 20px; }
  .engagement-primary { padding: 26px; }
  .service-branches { gap: 18px; }
  .contact-section { gap: 30px; }
  .contact-section h2 { font-size: 50px; }
  .footer-inner { flex-wrap: wrap; padding-block: 25px; min-height: 0; }
  .site-footer p { order: 3; width: 100%; }
}

@media (max-width: 767.98px) {
  .underwater-layout { grid-template-columns: 1fr; }
  .underwater-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: 1fr; gap: 22px; }
  .principles > div + div { border-top: 1px solid var(--line); padding-top: 22px; }
  .experience-projects { grid-template-columns: 1fr; gap: 30px; }
  .project-featured { grid-column: auto; display: block; }
  .project-featured .work-illustration { margin-bottom: 16px; }
  .note-card { width: 100%; padding: 27px 0; }
  .service-branches { grid-template-columns: 1fr; gap: 20px; padding: 28px 0 0 24px; }
  .service-wires { display: block; }
  .service-branches > .engagement:nth-of-type(n) { margin-top: 0; }
  .note-card h3 { min-height: 0; }
}

@media (max-width: 575px) {
  .underwater-band, .capability-band { margin-top: 36px; padding-block: 30px; }
  .underwater-copy h2, .research-copy h2 { font-size: 31px; }
  .capability-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .capability-navigation .capability-contact { grid-column: 1 / -1; grid-row: 1; }
  .capability-previous { grid-column: 1; grid-row: 2; }
  .capability-next { grid-column: 2; grid-row: 2; }

  .rabbit-hole { margin-top: 78px; padding: 34px 18px 22px; }
  .generated-article .rabbit-hole-illustration { top: -86px; right: 0; width: 180px; height: 120px; }
  .electronics-capability-grid, .mechanical-capability-grid, .software-capability-grid, .robotics-capability-grid, .embedded-capability-grid, .instrumentation-capability-grid, .integration-capability-grid { grid-template-columns: 1fr; gap: 25px; }
  .hero > .hero-wfc-controls { top: 3px; right: 8px; }
  .hero-wfc-controls button { height: 16px; }
  .hero-wfc-controls .hero-wfc-reset, .hero-wfc-controls .hero-wfc-stop { width: 18px; }
  .hero-wfc-controls svg { width: 10px; height: 10px; }
  .container-xl { padding-inline: 22px; }
  .document-page { padding-block: 38px 50px; }
  .principles-band { padding-block: 30px; margin-top: 36px; }
  .page-intro { font-size: 17px; }
  .document-section h2 { font-size: 31px; }
  .site-header .wordmark { font-size: clamp(20px, 6vw, 27px); }
  .header-inner { min-height: 80px; padding-block: 18px; }
  .site-header nav { flex-wrap: wrap; }
  .nav-contact span { margin-left: 8px; }
  .hero { padding-top: 38px; padding-bottom: 36px; }
  .hero .eyebrow { letter-spacing: 1.25px; margin-bottom: 23px; }
  .hero h1 { font-size: clamp(63px, 18vw, 103px); white-space: normal; line-height: 1.01; letter-spacing: -1px; margin-bottom: 26px; }
  .hero h1 span { display: block; }
  .hero-bottom { display: block; }
  .hero-actions { margin-top: 27px; }
  .btn { font-size: 13px; padding: 14px 16px; gap: 22px; }
  .capability-list { grid-template-columns: repeat(2, 1fr); }
  .capability-list li { min-height: 42px; padding: 8px; }
  .capability-list li:nth-child(odd) { border-left: 1px solid var(--line); }
  .capability-list li:nth-child(n+5) { border-bottom: 1px solid var(--line); }
  .capability-list li:last-child { border-bottom: 0; }
  .section { --section-padding: 43px; }
  .section-heading { display: block; margin-bottom: 25px; }
  .section-heading .eyebrow { margin-bottom: 13px; }
  .section-heading > p { width: 100%; max-width: 100%; margin: 17px 0 0; }
  .notes-heading > .eyebrow { margin: 0 0 13px; }
  .notes-cta { margin-top: 20px; text-align: left; }
  h2 { font-size: 38px; }
  .services-summary { font-size: 16px; }
  .engagement { padding: 22px; }
  .engagement h3 { font-size: 18px; }
  .engagement-primary h3 { font-size: 22px; }
  .contact-section { display: block; }
  .contact-section h2 { font-size: 48px; }
  .contact-copy { padding-top: 24px; }
  .contact-email { font-size: clamp(13px, 3.6vw, 20px); gap: 10px; }
  .footer-inner { gap: 22px; }
  .site-footer .wordmark { font-size: 22px; }
  .site-footer .text-link { font-size: 12px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
