
:root {
  color-scheme: light;
  --red: #e11d2e;
  --charcoal: #1f2937;
  --ink: #151a21;
  --muted: #66717d;
  --body-copy: #515b67;
  --soft: #77818c;
  --number: #929aa4;
  --line: #dde2e7;
  --surface: #f3f4f6;
  --page: #ffffff;
  --header-bg: rgba(255,255,255,.97);
  --nav-panel: #ffffff;
  --button-bg: #1f2937;
  --button-hover: #11161d;
  --button-text: #ffffff;
  --continuation-bg: #151b22;
  --continuation-copy: #929aa4;
  --shell: min(1440px, calc(100vw - 96px));
  --header-height: 116px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--charcoal);
  color: var(--button-text);
  padding: 10px 14px;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  height: var(--header-height);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(31,41,55,.095);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 306px; height: auto; transform: translateX(-7.5%); }
.site-nav { display: flex; align-items: center; gap: 38px; }
.site-nav a {
  position: relative;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  padding: 8px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--red);
  transition: right 180ms ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { right: 0; }
.site-nav .nav-contact { margin-left: 8px; }
.site-nav .nav-contact span { color: var(--charcoal); margin-left: 3px; transition: color 160ms ease; }
.site-nav .nav-contact:hover span,
.site-nav .nav-contact:focus-visible span { color: var(--red); }
.menu-toggle { display: none; }

.hero {
  min-height: calc(100vh - var(--header-height) - 42px);
  display: flex;
  flex-direction: column;
}
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(280px, .58fr);
  gap: clamp(72px, 8.5vw, 150px);
  padding-top: clamp(70px, 7.4vh, 102px);
  padding-bottom: clamp(76px, 9vh, 118px);
}
.hero-main { max-width: 940px; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  margin-bottom: 36px;
}
.hero-kicker__rule { width: 30px; height: 2px; background: var(--red); flex: 0 0 auto; }
.hero h1 {
  margin: 0;
  max-width: 920px;
  color: var(--charcoal);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: clamp(46px, 4vw, 64px);
  font-weight: 450;
  line-height: 1.055;
  letter-spacing: -.048em;
}
.hero-line { display: block; }
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 645px);
  margin-top: clamp(40px, 5vh, 58px);
}
.hero-copy p {
  margin: 0;
  color: var(--body-copy);
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.68;
  letter-spacing: -.012em;
}
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--charcoal);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.button--primary { background: var(--button-bg); color: var(--button-text); }
.button--primary span { color: var(--button-text); font-size: 17px; transition: color 160ms ease, transform 160ms ease; }
.button--primary:hover,
.button--primary:focus-visible { background: var(--button-hover); border-color: var(--button-hover); transform: translateY(-1px); }
.button--primary:hover span,
.button--primary:focus-visible span { color: #ff6470; transform: translateX(2px); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.text-link span { color: var(--charcoal); transition: color 160ms ease, transform 160ms ease; }
.text-link:hover span,
.text-link:focus-visible span { color: var(--red); transform: translateX(2px); }

.hero-side {
  align-self: center;
  width: 100%;
  max-width: 360px;
  margin-top: 24px;
}
.scope-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.scope-rule { width: 22px; height: 1px; background: var(--red); flex: 0 0 auto; }
.scope-list { border-top: 1px solid var(--line); }
.scope-list > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
  font-size: 15px;
  letter-spacing: -.015em;
}
.scope-number {
  color: var(--number);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
}

.hero-capabilities {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(48px, 6vw, 96px);
  padding-block: 33px 37px;
}
.hero-capabilities article {
  min-width: 0;
  padding-right: 10px;
}
.capability-number {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
}
.hero-capabilities h2 {
  margin: 0 0 8px;
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.015em;
}
.hero-capabilities p {
  margin: 0;
  max-width: 310px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

.prototype-spacer {
  min-height: 420px;
  background: var(--continuation-bg);
  color: var(--button-text);
  display: flex;
  align-items: center;
}
.prototype-spacer .shell { display: flex; align-items: baseline; justify-content: space-between; gap: 40px; }
.prototype-spacer p { margin: 0; font-size: clamp(30px, 4vw, 54px); font-weight: 450; letter-spacing: -.04em; }
.prototype-spacer span { max-width: 440px; color: var(--continuation-copy); font-size: 13px; line-height: 1.7; }

.reveal { animation: reveal 650ms cubic-bezier(.2,.65,.25,1) both; }
.reveal--1 { animation-delay: 70ms; }
.reveal--2 { animation-delay: 140ms; }
.reveal--3 { animation-delay: 210ms; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
  :root { --shell: min(100% - 48px, 1440px); --header-height: 96px; }
  .brand img { width: 256px; }
  .site-nav { gap: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-side { width: min(100%, 560px); max-width: none; margin-top: 0; align-self: auto; }
  .scope-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-bottom: 1px solid var(--line); }
  .scope-list > div:nth-child(3), .scope-list > div:nth-child(4) { border-bottom: 0; }
  .scope-list > div:nth-child(odd) { padding-right: 20px; }
  .scope-list > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .hero-capabilities { column-gap: 36px; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100vw - 34px); --header-height: 82px; }
  .site-header { backdrop-filter: none; }
  .brand img { width: 218px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 0;
    padding: 10px 0;
    color: var(--charcoal);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
  }
  .menu-toggle__icon { width: 20px; height: 14px; display: grid; align-content: center; gap: 5px; }
  .menu-toggle__icon i { display: block; height: 1px; background: var(--charcoal); transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { transform: translateY(-3px) rotate(-45deg); }
  .site-nav {
    display: none;
    position: fixed;
    inset: var(--header-height) 0 auto;
    background: var(--nav-panel);
    border-bottom: 1px solid var(--line);
    padding: 24px 17px 28px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 18px; font-weight: 450; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
  .site-nav .nav-contact { margin-left: 0; }

  .hero-grid { padding-top: 52px; padding-bottom: 56px; gap: 44px; }
  .hero-kicker { margin-bottom: 25px; font-size: 9px; letter-spacing: .14em; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 49px); line-height: 1.045; letter-spacing: -.043em; }
  .hero-line { display: inline; }
  .hero-line + .hero-line::before { content: " "; }
  .hero-copy { margin-top: 30px; }
  .hero-copy p { font-size: 16px; line-height: 1.65; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; margin-top: 28px; }
  .button { width: 100%; justify-content: space-between; }
  .text-link { width: max-content; }
  .hero-side { max-width: none; }
  .scope-list { grid-template-columns: 1fr; border-bottom: 0; }
  .scope-list > div,
  .scope-list > div:nth-child(3),
  .scope-list > div:nth-child(4) { border-bottom: 1px solid var(--line); padding-inline: 0; border-left: 0; }
  .hero-capabilities { grid-template-columns: 1fr; padding-block: 0; }
  .hero-capabilities article { padding: 24px 0 25px; }
  .hero-capabilities article + article { border-top: 1px solid var(--line); }
  .capability-number { margin-bottom: 10px; }
  .prototype-spacer { min-height: 360px; }
  .prototype-spacer .shell { align-items: flex-start; flex-direction: column; }
}

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

/* Selected engineering work */
.selected-work {
  background: #111315;
  color: #f4f6f8;
  padding: clamp(88px, 9vw, 140px) 0 clamp(100px, 11vw, 170px);
}
.work-shell { display: grid; gap: clamp(72px, 8vw, 118px); }
.work-header {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  column-gap: clamp(70px, 10vw, 170px);
  align-items: end;
}
.work-kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #8f99a4;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
}
.work-kicker span { width: 30px; height: 2px; background: var(--red); }
.work-header h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 4.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 450;
}
.work-header > p {
  margin: 0 0 5px;
  max-width: 500px;
  color: #9ca6b1;
  font-size: 15px;
  line-height: 1.75;
}
.work-list { border-top: 1px solid #30353a; }
.work-project {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr);
  gap: clamp(54px, 7vw, 112px);
  align-items: center;
  padding: clamp(58px, 6.5vw, 96px) 0;
  border-bottom: 1px solid #30353a;
}
.work-project--reverse { grid-template-columns: minmax(300px, .65fr) minmax(0, 1.55fr); }
.work-project--reverse .project-media { order: 2; }
.work-project--reverse .project-copy { order: 1; }
.project-media {
  position: relative;
  min-height: clamp(360px, 37vw, 560px);
  overflow: hidden;
  border: 1px solid #343a40;
  background-color: #171a1d;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 34px 34px;
}
.project-media::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,.05);
  pointer-events: none;
}
.media-corner {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 1;
  color: #7f8993;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 36px;
}
.media-placeholder::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  border: 1px solid #46505a;
  color: var(--red);
  font-size: 22px;
  font-weight: 300;
}
.media-placeholder strong {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.media-placeholder span { color: #78828c; font-size: 12px; }
.project-copy { max-width: 430px; }
.project-eyebrow {
  margin-bottom: 22px;
  color: #8d97a2;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.project-copy h3 {
  margin: 0 0 24px;
  font-size: clamp(28px, 2.5vw, 40px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 450;
}
.project-copy p {
  margin: 0;
  color: #9ca6b1;
  font-size: 15px;
  line-height: 1.75;
}
.project-disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid #343a40;
}
.project-disciplines span {
  padding: 12px 18px 0 0;
  margin-right: 18px;
  color: #d4d9de;
  font-size: 11px;
}
.project-disciplines span + span { position: relative; }
.project-disciplines span + span::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 17px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--red);
}

@media (max-width: 1040px) {
  .work-header { grid-template-columns: 1fr; gap: 28px; }
  .work-header > p { max-width: 680px; }
  .work-project,
  .work-project--reverse { grid-template-columns: 1fr; gap: 38px; }
  .work-project--reverse .project-media,
  .work-project--reverse .project-copy { order: initial; }
  .project-copy { max-width: 680px; }
  .project-media { min-height: clamp(360px, 58vw, 580px); }
}

@media (max-width: 760px) {
  .selected-work { padding-top: 72px; padding-bottom: 94px; }
  .work-shell { gap: 60px; }
  .work-kicker { margin-bottom: 18px; font-size: 9px; }
  .work-header h2 { font-size: clamp(36px, 10.5vw, 48px); }
  .work-header > p { font-size: 14px; }
  .work-project,
  .work-project--reverse { padding: 46px 0 54px; gap: 30px; }
  .project-media { min-height: 300px; }
  .project-copy h3 { margin-bottom: 18px; }
  .project-copy p { font-size: 14px; }
  .project-disciplines { margin-top: 26px; }
}


/* V4.1 selected work population */
.work-project--feature {
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr);
  align-items: start;
}
.project-media--board {
  min-height: 0;
  padding: 60px 24px 24px;
  background-color: #15191d;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 34px 34px;
}
.board-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.board-shot {
  margin: 0;
  display: grid;
  gap: 12px;
}
.board-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #182217;
  border: 1px solid #2d343a;
}
.board-shot figcaption {
  color: #8d97a2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.project-copy--feature { max-width: 520px; }
.project-copy--feature p strong { color: #f4f6f8; font-weight: 550; }
.project-facts {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid #343a40;
}
.project-facts li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  padding: 14px 0;
  border-bottom: 1px solid #343a40;
  align-items: baseline;
}
.project-facts li span {
  color: #7f8993;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.project-facts li strong {
  color: #eef2f6;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.work-project--placeholder .project-media {
  min-height: 290px;
}
.media-placeholder--subdued::before { color: #77818c; border-color: #3d454d; }
.work-project--placeholder .project-copy h3 { max-width: 420px; }

@media (max-width: 1040px) {
  .work-project--feature { grid-template-columns: 1fr; }
  .project-copy--feature { max-width: 680px; }
}
@media (max-width: 760px) {
  .project-media--board { padding: 54px 16px 16px; }
  .board-media-grid { grid-template-columns: 1fr; gap: 14px; }
  .project-facts { margin-top: 24px; }
  .project-facts li { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
}


/* V4.2 media expansion */
.board-media-grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.board-media-grid--four .board-shot img {
  aspect-ratio: 1 / 0.94;
  object-fit: cover;
}
@media (max-width: 760px) {
  .board-media-grid--four {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


/* V4.3 PCB image visibility refinements */
.board-shot--pcb img {
  object-fit: contain;
  object-position: center center;
  background: #182217;
  padding: 8px;
}


/* V4.4 — normalize media clearance inside the four-view flight-controller grid */
.board-media-grid--four .board-shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border: 0;
  background: transparent;
  padding: 0;
}

.board-image-frame {
  width: 100%;
  aspect-ratio: 1 / 0.94;
  overflow: hidden;
  border: 1px solid #2d343a;
  background: #15191d;
}

.board-image-frame > img {
  display: block;
}

/* The raw PCB renders run almost to their source-image edges.
   Give them the same optical breathing room as the assembled top render. */
.board-image-frame--safe {
  padding: 14px;
}

.board-image-frame--safe > img {
  object-fit: contain;
  object-position: center center;
}

.board-image-frame--pcb {
  background: #15191d;
}

/* Preserve the supplied assembly-render background while preventing its
   slightly taller source image from being clipped by the shared frame. */
.board-image-frame--assembly {
  background: #15191d;
}

@media (max-width: 760px) {
  .board-image-frame--safe {
    padding: 10px;
  }
}

/* Retire the V4.3 per-image padding now that clearance is owned by the frame. */
.board-shot--pcb img {
  padding: 0;
  background: transparent;
}


/* V4.5 — match the generous clearance of Assembly top for the three tighter images */
.board-image-frame--match-clearance {
  padding: 24px;
}
.board-image-frame--match-clearance > img {
  object-fit: contain;
  object-position: center center;
}
@media (max-width: 760px) {
  .board-image-frame--match-clearance {
    padding: 18px;
  }
}

/* V4.6 — full-size, uncropped fit matching Assembly Top */
.board-media-grid--four .board-image-frame--match-clearance {
  padding: 0;
}

.board-media-grid--four .board-image-frame--match-clearance > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 0;
}

/* Keep the reference Assembly Top behavior unchanged. */
.board-media-grid--four .board-image-frame:not(.board-image-frame--match-clearance) > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}


/* V5 — Project 02: interactive systems / middleware integration */
.work-project--software {
  align-items: start;
}

.project-copy--software strong {
  color: #f4f6f8;
  font-weight: 550;
}

.project-media--software {
  min-height: 0;
  padding: 58px 20px 20px;
  background: #15191d;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 34px 34px;
}

.software-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  grid-template-rows: minmax(265px, 1fr) auto;
  gap: 16px;
}

.software-photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #30363c;
  background: #101214;
}

.software-photo--hero {
  grid-row: 1 / span 2;
  min-height: 540px;
}

.software-photo--detail {
  min-height: 258px;
}

.software-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.62) contrast(1.04) brightness(.82);
  transition: transform 500ms cubic-bezier(.2,.65,.25,1), filter 300ms ease;
}

.software-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8,10,12,.44));
  pointer-events: none;
}

.software-photo figcaption {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 13px;
  color: rgba(255,255,255,.78);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.software-photo:hover img {
  transform: scale(1.018);
  filter: saturate(.72) contrast(1.04) brightness(.86);
}

.architecture-card {
  border: 1px solid #30363c;
  background: #111417;
  padding: 20px;
  min-height: 258px;
  display: grid;
  align-content: start;
}

.architecture-label {
  color: #87919b;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.architecture-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.architecture-node {
  border-top: 1px solid #31373d;
  padding: 9px 0 4px;
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 8px;
}

.architecture-node span {
  grid-row: 1 / span 2;
  color: var(--red);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  padding-top: 2px;
}

.architecture-node strong {
  color: #edf1f5;
  font-size: 12px;
  font-weight: 550;
}

.architecture-node small {
  color: #78838d;
  font-size: 10px;
  line-height: 1.4;
}

.architecture-arrow {
  color: #59636d;
  font-size: 13px;
  line-height: 1;
  padding-left: 28px;
}

.project-strategy-note {
  margin-top: 28px;
  padding: 18px 0 0;
  border-top: 1px solid #343a40;
}

.project-strategy-note > span {
  display: block;
  margin-bottom: 8px;
  color: #8d97a2;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.project-strategy-note p {
  margin: 0;
  color: #c2c9d0;
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 1040px) {
  .software-media-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .software-photo--hero {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 440px;
  }
  .software-photo--detail,
  .architecture-card {
    min-height: 250px;
  }
}

@media (max-width: 760px) {
  .project-media--software {
    padding: 54px 14px 14px;
  }
  .software-media-grid {
    grid-template-columns: 1fr;
  }
  .software-photo--hero,
  .software-photo--detail {
    min-height: 300px;
  }
  .architecture-card {
    min-height: 0;
  }
}


/* V5.1 — alternate dark/light project bands in normal site rendering */
.work-project--light {
  position: relative;
  z-index: 0;
  color: #1f2937;
  border-bottom-color: #d9dee3;
  box-shadow: 0 0 0 100vmax #ffffff;
  clip-path: inset(0 -100vmax);
}

.work-project--light .project-eyebrow {
  color: #7a8590;
}

.work-project--light .project-copy h3 {
  color: #1f2937;
}

.work-project--light .project-copy p {
  color: #58636e;
}

.work-project--light .project-copy strong,
.work-project--light .project-copy--software strong {
  color: #1f2937;
}

.work-project--light .project-facts {
  border-top-color: #d9dee3;
}

.work-project--light .project-facts li {
  border-bottom-color: #d9dee3;
}

.work-project--light .project-facts li span {
  color: #808a94;
}

.work-project--light .project-facts li strong {
  color: #252d36;
}

.work-project--light .project-strategy-note {
  border-top-color: #d9dee3;
}

.work-project--light .project-strategy-note > span {
  color: #7a8590;
}

.work-project--light .project-strategy-note p {
  color: #46515c;
}

.work-project--light .project-disciplines {
  border-top-color: #d9dee3;
}

.work-project--light .project-disciplines span {
  color: #3d4751;
}

/* Media remains a controlled charcoal engineering surface inside the light project band. */
.work-project--light .project-media--software {
  border-color: #d4d9de;
  box-shadow: 0 12px 34px rgba(20, 26, 32, .07);
}

/* Show the active-object reference without a stylistic crop or color treatment,
   keeping the Creative Commons source visually intact. */
.software-photo--tangible {
  background: #e8ebee;
}

.software-photo--tangible img {
  object-fit: contain;
  object-position: center;
  filter: none;
  transform: none !important;
}

.software-photo--tangible::after {
  background: linear-gradient(180deg, transparent 68%, rgba(8,10,12,.64));
}

.software-photo figcaption small {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: none;
  font-weight: 400;
  color: rgba(255,255,255,.72);
}

.software-photo figcaption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-secondary-copy {
  margin-top: 16px !important;
}

@media (max-width: 760px) {
  .work-project--light {
    box-shadow: 0 0 0 100vmax #ffffff;
  }
}


/* V5.2 — correct alternating project surfaces.
   Project 02 is a genuine full-width light band, not a dark panel with white gutters. */
.work-project--light {
  background: #ffffff;
  box-shadow: 0 0 0 100vmax #ffffff;
  clip-path: inset(0 -100vmax);
}

/* Keep the media composition intentionally dark inside the light project band. */
.work-project--light .project-media--software {
  background-color: #15191d;
  color: #f4f6f8;
}

/* Replace attribution-required tangible-interface media with no-attribution-required
   Pexels stock and a restrained recognition overlay. */
.software-photo--aor {
  background: #111417;
}

.software-photo--aor img {
  object-fit: cover;
  object-position: center;
  filter: saturate(.72) contrast(1.04) brightness(.83);
}

.software-photo--aor::after {
  background:
    linear-gradient(180deg, rgba(8,10,12,.03) 48%, rgba(8,10,12,.58) 100%);
}

.recognition-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.recognition-marker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid rgba(225,29,46,.82);
  background: rgba(17,19,21,.78);
  color: #ffffff;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}

.recognition-marker::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: #e11d2e;
}

.recognition-marker--1 { left: 18%; top: 23%; }
.recognition-marker--2 { right: 17%; top: 37%; }
.recognition-marker--3 { left: 44%; bottom: 25%; }

/* Remove old attribution-specific tangible-image behavior. */
.software-photo--tangible {
  background: initial;
}
.software-photo--tangible img {
  object-fit: cover;
  filter: inherit;
}
.software-photo figcaption small {
  display: none;
}


/* V5.3 — refine representative AOR imagery */
.software-photo--aor img {
  object-position: center 44%;
  filter: saturate(.52) contrast(1.05) brightness(.78);
}

.recognition-marker--1 { left: 20%; top: 24%; }
.recognition-marker--2 { right: 20%; top: 43%; }
.recognition-marker--3 { left: 46%; bottom: 22%; }


/* V5.4 — project 02 uses custom illustrative AOR scenes generated for this site. */
.software-photo--generated-main img,
.software-photo--generated-detail img {
  object-fit: cover;
  filter: saturate(.9) contrast(1.02) brightness(.92);
}

.software-photo--generated-main img {
  object-position: center center;
}

.software-photo--generated-detail img {
  object-position: center center;
}

.software-photo--generated-main::after,
.software-photo--generated-detail::after {
  background: linear-gradient(180deg, transparent 58%, rgba(8,10,12,.48));
}

/* V5.6 — Project 01 media hover interaction.
   Scale the whole frame rather than the image so the carefully tuned PCB
   clearance remains intact and nothing becomes cropped on hover. */
.board-shot .board-image-frame {
  transition:
    transform 500ms cubic-bezier(.2,.65,.25,1),
    border-color 220ms ease,
    box-shadow 300ms ease;
  transform-origin: center center;
}

.board-shot .board-image-frame > img {
  transition: filter 300ms ease;
}

.board-shot:hover .board-image-frame {
  transform: translateY(-2px) scale(1.008);
  border-color: #414951;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.board-shot:hover .board-image-frame > img {
  filter: saturate(1.04) contrast(1.025) brightness(1.025);
}

.board-shot figcaption {
  transition: color 220ms ease;
}

.board-shot:hover figcaption {
  color: #c2c9d0;
}

@media (prefers-reduced-motion: reduce) {
  .board-shot .board-image-frame,
  .board-shot .board-image-frame > img {
    transition: none;
  }
  .board-shot:hover .board-image-frame {
    transform: none;
  }
}


/* V5.7 — Project 03: modular robotics control platform */
.work-project--robotics {
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, .78fr);
  align-items: start;
}

.project-media--robotics {
  min-height: 0;
  padding: 58px 20px 20px;
  background-color: #15191d;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 34px 34px;
}

.robot-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.robot-shot {
  margin: 0;
  display: grid;
  gap: 12px;
}

.robot-image-frame {
  overflow: hidden;
  border: 1px solid #30363c;
  background: #111417;
  aspect-ratio: 1.56 / 1;
  transition:
    transform 500ms cubic-bezier(.2,.65,.25,1),
    border-color 220ms ease,
    box-shadow 300ms ease;
}

.robot-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: filter 300ms ease;
}

.robot-shot figcaption {
  color: #8d97a2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.robot-shot:hover .robot-image-frame {
  transform: translateY(-2px) scale(1.008);
  border-color: #414951;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.robot-shot:hover .robot-image-frame img {
  filter: saturate(1.04) contrast(1.025) brightness(1.025);
}

.robot-shot:hover figcaption {
  color: #c2c9d0;
}

.project-copy--robotics {
  max-width: 520px;
}

.project-copy--robotics strong {
  color: #f4f6f8;
  font-weight: 550;
}

@media (max-width: 1040px) {
  .work-project--robotics {
    grid-template-columns: 1fr;
  }
  .project-copy--robotics {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .project-media--robotics {
    padding: 54px 14px 14px;
  }
  .robot-media-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .robot-image-frame,
  .robot-image-frame img {
    transition: none;
  }
  .robot-shot:hover .robot-image-frame {
    transform: none;
  }
}


/* V5.9 — Project 04: ESP32-S3 sense carrier platform */
.work-project--sense {
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, .78fr);
  align-items: start;
}

.project-media--sense {
  min-height: 0;
  padding: 58px 20px 20px;
  background-color: #15191d;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 34px 34px;
  border: 1px solid #d4d9de;
  box-shadow: 0 12px 34px rgba(20, 26, 32, .07);
}

.sense-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sense-shot {
  margin: 0;
  display: grid;
  gap: 12px;
}

.sense-image-frame {
  overflow: hidden;
  border: 1px solid #30363c;
  background: #111417;
  aspect-ratio: 1.56 / 1;
  transition:
    transform 500ms cubic-bezier(.2,.65,.25,1),
    border-color 220ms ease,
    box-shadow 300ms ease;
}

.sense-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: filter 300ms ease;
}

.sense-shot figcaption {
  color: #6c7680;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.sense-shot:hover .sense-image-frame {
  transform: translateY(-2px) scale(1.008);
  border-color: #414951;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.sense-shot:hover .sense-image-frame img {
  filter: saturate(1.04) contrast(1.025) brightness(1.025);
}

.sense-shot:hover figcaption {
  color: #c2c9d0;
}

.project-copy--sense {
  max-width: 520px;
}

@media (max-width: 1040px) {
  .work-project--sense {
    grid-template-columns: 1fr;
  }
  .project-copy--sense {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .project-media--sense {
    padding: 54px 14px 14px;
  }
  .sense-media-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sense-image-frame,
  .sense-image-frame img {
    transition: none;
  }
  .sense-shot:hover .sense-image-frame {
    transform: none;
  }
}


/* V5.11 — Project 05: integrated ESP32-S3 bait-boat controller */
.work-project--baitboat {
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, .78fr);
  align-items: start;
}

.project-media--baitboat {
  min-height: 0;
  padding: 58px 20px 20px;
  background-color: #15191d;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 34px 34px;
}

.baitboat-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.baitboat-shot {
  margin: 0;
  display: grid;
  gap: 12px;
}

.baitboat-image-frame {
  overflow: hidden;
  border: 1px solid #30363c;
  background: #111417;
  aspect-ratio: .86 / 1;
  transition:
    transform 500ms cubic-bezier(.2,.65,.25,1),
    border-color 220ms ease,
    box-shadow 300ms ease;
}

.baitboat-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: filter 300ms ease;
}

.baitboat-shot figcaption {
  color: #8d97a2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.baitboat-shot:hover .baitboat-image-frame {
  transform: translateY(-2px) scale(1.008);
  border-color: #414951;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.baitboat-shot:hover .baitboat-image-frame img {
  filter: saturate(1.04) contrast(1.025) brightness(1.025);
}

.baitboat-shot:hover figcaption {
  color: #c2c9d0;
}

.project-copy--baitboat {
  max-width: 520px;
}

.project-copy--baitboat strong {
  color: #f4f6f8;
  font-weight: 550;
}

@media (max-width: 1040px) {
  .work-project--baitboat {
    grid-template-columns: 1fr;
  }
  .project-copy--baitboat {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .project-media--baitboat {
    padding: 54px 14px 14px;
  }
  .baitboat-media-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .baitboat-image-frame,
  .baitboat-image-frame img {
    transition: none;
  }
  .baitboat-shot:hover .baitboat-image-frame {
    transform: none;
  }
}


/* V5.15 — homepage content/IA refinement */
.hero-grid {
  padding-top: clamp(64px, 6.8vh, 90px);
}

.hero-main {
  align-self: center;
}

.hero .hero-copy {
  margin-top: clamp(34px, 4.4vh, 50px);
}

.text-link--hero {
  font-size: 15px;
}

/* Detailed capabilities */
.capabilities-section {
  background: #f5f6f7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(84px, 9vw, 132px) 0;
}

.capabilities-shell {
  display: grid;
  gap: 64px;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .75fr);
  column-gap: clamp(70px, 9vw, 150px);
  align-items: end;
}

.section-kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 24px;
  color: #707a85;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-kicker > span {
  width: 23px;
  height: 1px;
  background: var(--red);
  flex: 0 0 auto;
}

.section-intro h2 {
  margin: 0;
  max-width: 800px;
  color: var(--charcoal);
  font-size: clamp(38px, 3.3vw, 54px);
  line-height: 1.08;
  font-weight: 450;
  letter-spacing: -.042em;
}

.section-intro > p {
  margin: 0;
  color: var(--body-copy);
  font-size: 16px;
  line-height: 1.75;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #ccd2d8;
}

.capability-detail {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 34px 42px 38px 0;
  border-bottom: 1px solid #ccd2d8;
}

.capability-detail:nth-child(odd) {
  padding-right: clamp(40px, 5vw, 84px);
  border-right: 1px solid #ccd2d8;
}

.capability-detail:nth-child(even) {
  padding-left: clamp(40px, 5vw, 84px);
}

.capability-detail__number {
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  padding-top: 4px;
}

.capability-detail h3 {
  margin: 0 0 10px;
  color: var(--charcoal);
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -.025em;
}

.capability-detail p {
  margin: 0 0 18px;
  color: #5d6772;
  font-size: 14px;
  line-height: 1.7;
}

.capability-detail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.capability-detail li {
  position: relative;
  padding-left: 16px;
  color: #303a44;
  font-size: 13px;
  line-height: 1.55;
}

.capability-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 5px;
  height: 1px;
  background: var(--red);
}

/* Company + contact */
.company-contact {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: clamp(88px, 9vw, 140px) 0;
}

.company-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(70px, 9vw, 150px);
  align-items: start;
}

.company-panel h2,
.contact-panel h2 {
  margin: 0 0 24px;
  color: var(--charcoal);
  font-size: clamp(36px, 3.1vw, 50px);
  line-height: 1.08;
  font-weight: 450;
  letter-spacing: -.04em;
}

.company-panel h2 span {
  display: block;
  margin-top: 8px;
  color: #717b85;
  font-size: .42em;
  font-weight: 500;
  letter-spacing: -.015em;
}

.company-panel > p,
.contact-panel > p {
  margin: 0 0 18px;
  max-width: 650px;
  color: #59636e;
  font-size: 15px;
  line-height: 1.75;
}

.company-panel .company-lead {
  color: #303a44;
  font-size: 17px;
}

.company-details {
  margin: 38px 0 0;
  border-top: 1px solid var(--line);
}

.company-details > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.company-details dt {
  color: #7d8791;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.company-details dd {
  margin: 0;
  color: #27313a;
  font-size: 14px;
  line-height: 1.6;
}

.company-details a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-panel {
  border-left: 1px solid var(--line);
  padding-left: clamp(48px, 5vw, 82px);
}

.contact-form {
  margin-top: 34px;
  display: grid;
  gap: 22px;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label > span {
  color: #36404a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.contact-form label em {
  color: #8a939d;
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfd5db;
  border-radius: 0;
  background: #ffffff;
  color: #1f2937;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.contact-form input {
  height: 50px;
  padding: 0 14px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 170px;
  padding: 13px 14px;
  line-height: 1.55;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #707a84;
  box-shadow: 0 0 0 2px rgba(31,41,55,.06);
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.form-footer p {
  margin: 0;
  max-width: 330px;
  color: #7a848e;
  font-size: 11px;
  line-height: 1.55;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: #4f5964;
  font-size: 13px;
}

.form-status.is-success { color: #256a3e; }
.form-status.is-error { color: #a12734; }

.site-footer {
  background: #15191d;
  color: #a3abb4;
  border-top: 1px solid #292f35;
}

.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin: 0;
  font-size: 11px;
  letter-spacing: .025em;
}

@media (max-width: 1040px) {
  .section-intro,
  .company-contact-grid {
    grid-template-columns: 1fr;
  }

  .section-intro {
    gap: 22px;
  }

  .contact-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 56px;
  }
}

@media (max-width: 760px) {
  .capabilities-section,
  .company-contact {
    padding: 72px 0;
  }

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

  .capability-detail,
  .capability-detail:nth-child(odd),
  .capability-detail:nth-child(even) {
    padding: 28px 0 30px;
    border-right: 0;
  }

  .form-row--split {
    grid-template-columns: 1fr;
  }

  .company-details > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .footer-inner {
    padding-block: 22px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

/* Multi-domain project positioning */
.domain-index {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 10px;
  margin-top: 24px;
}
.domain-index span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid #343a40;
  color: #a9b2bc;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .domain-index { margin-top: 4px; }
  .domain-index span { font-size: 8px; letter-spacing: .11em; }
}


/* V5.27 production performance */
.capabilities-section, .work-project, .company-contact {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
picture { display: contents; }


/* V5.28 — capability hierarchy + mobile project media swipe galleries */
.capability-detail__group {
  display: block;
  margin: 0 0 7px;
  color: #7f8993;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mobile-swipe-hint {
  display: none;
}

@media (max-width: 760px) {
  .mobile-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin: -2px 2px 12px 0;
    color: #7f8993;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
  }

  .work-project--light .mobile-swipe-hint {
    color: #66717c;
  }

  .mobile-swipe-hint span {
    color: var(--red);
    font-size: 12px;
    line-height: 1;
  }

  .mobile-swipe-gallery,
  .board-media-grid.board-media-grid--four.mobile-swipe-gallery,
  .robot-media-grid.mobile-swipe-gallery,
  .sense-media-grid.mobile-swipe-gallery,
  .baitboat-media-grid.mobile-swipe-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 0 8px;
  }

  .mobile-swipe-gallery::-webkit-scrollbar {
    display: none;
  }

  .mobile-swipe-gallery > figure {
    flex: 0 0 88%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .project-media--board,
  .project-media--robotics,
  .project-media--sense,
  .project-media--baitboat {
    overflow: hidden;
  }

  /* A partial next card is intentional: it is the swipe affordance. */
  .mobile-swipe-gallery > figure:last-child {
    margin-right: 8%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-swipe-gallery {
    scroll-behavior: auto;
  }
}


/* Language navigation + legal pages */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
}
.language-switch a,
.language-switch span {
  color: var(--soft);
  text-decoration: none;
  padding: 8px 2px;
}
.language-switch .is-active { color: var(--red); }
.language-switch a:hover,
.language-switch a:focus-visible { color: var(--charcoal); }

.footer-inner { flex-wrap: wrap; }
.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.footer-links a {
  color: #c0c6cc;
  font-size: 11px;
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a:focus-visible { color: #ffffff; }
.form-footer a { color: inherit; text-underline-offset: 2px; }

.legal-page {
  min-height: calc(100vh - var(--header-height));
  padding: clamp(64px, 7vw, 104px) 0 clamp(84px, 9vw, 128px);
  background: var(--page);
}
.legal-shell { max-width: 920px; }
.legal-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.legal-kicker::before { content: ""; width: 22px; height: 1px; background: var(--red); }
.legal-page h1 {
  margin: 0 0 48px;
  color: var(--charcoal);
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.03;
  font-weight: 450;
  letter-spacing: -.045em;
}
.legal-section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.legal-section h2 {
  margin: 0 0 14px;
  color: var(--charcoal);
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -.02em;
}
.legal-section h3 {
  margin: 24px 0 9px;
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 600;
}
.legal-section p,
.legal-section li,
.legal-section address {
  color: var(--body-copy);
  font-size: 15px;
  line-height: 1.72;
}
.legal-section p { margin: 0 0 12px; }
.legal-section ul { margin: 12px 0 0; padding-left: 20px; }
.legal-section address { font-style: normal; }
.legal-section a { text-underline-offset: 3px; }
.legal-meta { color: var(--soft); font-size: 12px; margin-top: -28px; margin-bottom: 44px; }
.legal-note {
  margin-top: 42px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--body-copy);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .language-switch {
    margin: 8px 0 0;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    width: 100%;
  }
  .site-nav .language-switch a,
  .site-nav .language-switch span { border-bottom: 0; padding: 4px 0; font-size: 13px; }
  .legal-page { padding-top: 56px; }
  .legal-page h1 { margin-bottom: 38px; }
  .footer-links { gap: 14px; }
}


/* V5.32 — restrained motion and interaction polish */
::selection {
  background: rgba(225, 29, 46, .20);
  color: inherit;
}

.site-header {
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(225, 29, 46, .18);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .055);
}
.site-nav a.is-current {
  color: var(--red);
}
.site-nav a.is-current::after {
  right: 0;
}

.scope-list > div {
  transition: padding-left 220ms ease, border-color 220ms ease;
}
.scope-list > div:hover {
  padding-left: 4px;
  border-bottom-color: rgba(225, 29, 46, .24);
}
.scope-number {
  transition: color 180ms ease, transform 180ms ease;
}
.scope-list > div:hover .scope-number {
  color: var(--red);
  transform: translateX(2px);
}

.section-kicker > span,
.work-kicker span,
.scope-rule {
  transform-origin: left center;
  transition: transform 420ms cubic-bezier(.2,.65,.25,1), opacity 220ms ease;
}
.scroll-reveal.is-visible .section-kicker > span,
.scroll-reveal.is-visible .work-kicker span,
.scroll-reveal.is-visible .scope-rule {
  transform: scaleX(1.24);
}

.capability-detail {
  position: relative;
  transition: background-color 240ms ease, transform 240ms cubic-bezier(.2,.65,.25,1);
}
.capability-detail:hover,
.capability-detail:focus-within {
  background: rgba(255,255,255,.42);
  transform: translateY(-2px);
}
.capability-detail__number,
.capability-detail__group,
.capability-detail h3,
.capability-detail li::before {
  transition: color 200ms ease, width 220ms ease, letter-spacing 220ms ease;
}
.capability-detail:hover .capability-detail__group,
.capability-detail:focus-within .capability-detail__group {
  color: var(--red);
}
.capability-detail:hover .capability-detail__number,
.capability-detail:focus-within .capability-detail__number {
  letter-spacing: .18em;
}
.capability-detail:hover li::before,
.capability-detail:focus-within li::before {
  width: 9px;
}

.project-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.project-eyebrow::before {
  content: "";
  width: 12px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--red);
  transform-origin: left center;
  transition: width 320ms cubic-bezier(.2,.65,.25,1), opacity 180ms ease;
  opacity: .78;
}
.work-project:hover .project-eyebrow::before,
.work-project:focus-within .project-eyebrow::before {
  width: 26px;
  opacity: 1;
}
.project-media {
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 360ms cubic-bezier(.2,.65,.25,1);
}
.work-project:hover .project-media,
.work-project:focus-within .project-media {
  border-color: rgba(225, 29, 46, .24);
  box-shadow: 0 18px 46px rgba(0,0,0,.10);
}
.work-project--light:hover .project-media,
.work-project--light:focus-within .project-media {
  box-shadow: 0 18px 46px rgba(17,24,39,.08);
}

/* Elements are only hidden once JS has opted into motion. */
.motion-ready .scroll-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 620ms cubic-bezier(.2,.65,.25,1),
    transform 620ms cubic-bezier(.2,.65,.25,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .capability-detail:hover,
  .capability-detail:focus-within {
    transform: none;
  }
  .work-project:hover .project-media,
  .work-project:focus-within .project-media {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .scroll-reveal,
  .motion-ready .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-header,
  .scope-list > div,
  .scope-number,
  .capability-detail,
  .capability-detail__number,
  .capability-detail__group,
  .capability-detail h3,
  .capability-detail li::before,
  .project-eyebrow::before,
  .project-media {
    transition: none !important;
  }
}


/* V5.33 — cross-platform mobile layout hardening */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body,
main,
.site-header,
.hero,
.capabilities-section,
.selected-work,
.company-contact,
.site-footer {
  min-width: 0;
  max-width: 100%;
}

/* Use percentage-based gutters instead of 100vw for the content shell.
   This avoids mobile-browser viewport quirks while browser UI expands/collapses. */
.shell {
  width: min(1440px, calc(100% - 96px));
  max-width: 100%;
}

/* The old 100vmax paint trick is fragile on mobile Safari/Chrome.
   A non-layout pseudo-layer gives light project bands a true viewport-wide surface. */
.work-project--light {
  position: relative;
  isolation: isolate;
  background: transparent;
  box-shadow: none !important;
  clip-path: none !important;
}
.work-project--light::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  width: 100dvw;
  transform: translateX(-50%);
  background: #ffffff;
  pointer-events: none;
}

/* Grid/flex children must be allowed to shrink below intrinsic content widths. */
.hero-grid,
.hero-main,
.hero-side,
.capabilities-shell,
.section-intro,
.capabilities-grid,
.capability-detail,
.work-shell,
.work-header,
.work-list,
.work-project,
.project-media,
.project-copy,
.project-copy--feature,
.project-copy--software,
.project-copy--robotics,
.project-copy--sense,
.project-copy--baitboat,
.board-media-grid,
.software-media-grid,
.robot-media-grid,
.sense-media-grid,
.baitboat-media-grid,
.company-contact-grid,
.company-panel,
.contact-panel,
.contact-form,
.footer-inner {
  min-width: 0;
}

img,
picture,
video,
svg {
  max-width: 100%;
}

.project-copy,
.project-media,
.project-facts,
.project-strategy-note,
.project-disciplines,
.company-panel,
.contact-panel,
.contact-form,
.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
}

/* Long German/technical strings should wrap rather than widen the page. */
h1, h2, h3,
p, li, dd, dt,
.project-facts strong,
.project-facts span,
.project-disciplines span,
.capability-detail,
.legal-section {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

@media (max-width: 1040px) {
  .shell {
    width: min(1440px, calc(100% - 48px));
  }
}

@media (max-width: 760px) {
  :root {
    --shell: calc(100% - 32px);
  }

  html,
  body {
    overflow-x: clip;
  }

  .shell {
    width: calc(100% - 32px);
    margin-inline: auto;
  }

  /* content-visibility is useful on desktop but has caused paint/layout
     inconsistencies in mobile WebKit; keep mobile layout deterministic. */
  .capabilities-section,
  .work-project,
  .company-contact {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  .site-header,
  .header-inner {
    width: 100%;
    max-width: 100%;
  }

  .header-inner {
    gap: 14px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 78px);
  }

  .brand img {
    width: min(190px, 100%);
    transform: none;
  }

  .menu-toggle {
    flex: 0 0 auto;
  }

  .site-nav {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero,
  .hero-grid,
  .capabilities-section,
  .selected-work,
  .company-contact,
  .site-footer {
    width: 100%;
    max-width: 100%;
  }

  .hero-grid,
  .section-intro,
  .capabilities-grid,
  .work-header,
  .work-project,
  .work-project--reverse,
  .work-project--feature,
  .work-project--software,
  .work-project--robotics,
  .work-project--sense,
  .work-project--baitboat,
  .company-contact-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .work-project,
  .work-project--reverse,
  .work-project--feature,
  .work-project--software,
  .work-project--robotics,
  .work-project--sense,
  .work-project--baitboat {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .project-media,
  .project-media--board,
  .project-media--software,
  .project-media--robotics,
  .project-media--sense,
  .project-media--baitboat {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .mobile-swipe-gallery,
  .board-media-grid.board-media-grid--four.mobile-swipe-gallery,
  .robot-media-grid.mobile-swipe-gallery,
  .sense-media-grid.mobile-swipe-gallery,
  .baitboat-media-grid.mobile-swipe-gallery {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    contain: inline-size;
  }

  .mobile-swipe-gallery > figure {
    flex: 0 0 86%;
    width: 86%;
    max-width: 86%;
    min-width: 0;
  }

  .mobile-swipe-gallery > figure img,
  .mobile-swipe-gallery > figure picture {
    width: 100%;
    max-width: 100%;
  }

  .software-media-grid {
    width: 100%;
    max-width: 100%;
  }

  .software-photo,
  .architecture-card {
    min-width: 0;
    max-width: 100%;
  }

  .project-copy h3,
  .section-intro h2,
  .work-header h2,
  .company-panel h2,
  .contact-panel h2 {
    max-width: 100%;
  }

  .project-facts li,
  .company-details > div,
  .form-row--split {
    min-width: 0;
    max-width: 100%;
  }

  .form-footer,
  .footer-inner,
  .footer-links {
    width: 100%;
    max-width: 100%;
  }

  .site-footer {
    overflow: hidden;
  }

  .work-project--light::before {
    width: 100vw;
    width: 100dvw;
  }
}

@media (max-width: 380px) {
  .shell {
    width: calc(100% - 24px);
  }
  .brand img {
    width: min(168px, 100%);
  }
  .hero h1 {
    font-size: clamp(32px, 10.2vw, 39px);
  }
  .section-intro h2,
  .work-header h2 {
    font-size: clamp(31px, 9.4vw, 38px);
  }
  .project-copy h3 {
    font-size: clamp(25px, 7.8vw, 31px);
  }
  .project-media--board,
  .project-media--robotics,
  .project-media--sense,
  .project-media--baitboat,
  .project-media--software {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Landscape phones and compact tablets: retain a single-column reading flow. */
@media (max-width: 900px) and (orientation: landscape) {
  .shell {
    width: calc(100% - 40px);
  }
  .work-project,
  .work-project--reverse,
  .work-project--feature,
  .work-project--software,
  .work-project--robotics,
  .work-project--sense,
  .work-project--baitboat,
  .company-contact-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* V5.35 — Project 01 frame fix: the media is wrapped in <picture>, so
   the earlier > img-only fit rules did not apply. Apply sizing/fitting to
   picture-wrapped images as well, preserving the intended unclipped views. */
.board-image-frame > picture {
  display: block;
  width: 100%;
  height: 100%;
}

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

.board-media-grid--four .board-image-frame--match-clearance > picture > img {
  object-fit: contain;
  object-position: center center;
  padding: 0;
}

.board-media-grid--four .board-image-frame:not(.board-image-frame--match-clearance) > picture > img {
  object-fit: cover;
  object-position: center center;
}

/* V5.36 — desktop-only flight-controller framing correction.
   Mobile already renders correctly; on wider layouts, ensure the three
   non-reference views use true full-view containment with a little
   optical breathing room, matching Assembly Top rather than cropping. */
@media (min-width: 761px) {
  .board-media-grid--four .board-image-frame--match-clearance {
    padding: 14px;
    background: #15191d;
  }

  .board-media-grid--four .board-image-frame--match-clearance > picture,
  .board-media-grid--four .board-image-frame--match-clearance > picture > img {
    width: 100%;
    height: 100%;
  }

  .board-media-grid--four .board-image-frame--match-clearance > picture > img {
    object-fit: contain;
    object-position: center center;
  }

  /* Keep the reference Assembly Top exactly as before. */
  .board-media-grid--four .board-image-frame:not(.board-image-frame--match-clearance) {
    padding: 0;
  }

  .board-media-grid--four .board-image-frame:not(.board-image-frame--match-clearance) > picture > img {
    object-fit: cover;
    object-position: center center;
  }
}
