:root {
  --graphite: #101214;
  --iron: #23272b;
  --steel: #66717a;
  --ash: #a9b0b6;
  --bone: #f4f1ea;
  --paper: #fbfaf6;
  --orange: #ff6a1a;
  --orange-ink: #a8430d;
  --gold: #e0c44b;
  --cyan: #19c2ff;
  --blueprint: #0d2742;
  --blueprint-deep: #071526;
  --blueprint-mid: #102c49;
  --line: rgba(244, 241, 234, 0.15);
  --line-strong: rgba(244, 241, 234, 0.28);
  --dark-line: rgba(16, 18, 20, 0.16);
  --max: 1180px;
  /* Real condensed industrial display face — replaces system Impact.
     Same bold all-caps identity, but loaded so it renders consistently
     cross-platform and reads premium instead of meme-poster. */
  --display: "Saira Condensed", Oswald, Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: Barlow, "Avenir Next", Aptos, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--graphite);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 21, 38, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

nav a:hover {
  color: var(--bone);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 108px 48px 28px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(25, 194, 255, 0.2), transparent 30%),
    linear-gradient(90deg, rgba(16, 18, 20, 0.98) 0%, rgba(16, 18, 20, 0.78) 48%, rgba(16, 18, 20, 0.24) 100%),
    url("assets/industrial-ai-field.svg") center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(16, 18, 20, 0.2), rgba(16, 18, 20, 0.88)),
    linear-gradient(90deg, rgba(244, 241, 234, 0.06) 1px, transparent 1px);
  background-size: auto, 96px 100%;
  mix-blend-mode: screen;
  opacity: 0.56;
}

.hero::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  padding-bottom: clamp(12px, 3vw, 32px);
}

.hero-kicker {
  max-width: 560px;
  margin: 0 0 18px;
  color: var(--orange);
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 900;
  line-height: 1.25;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 1040px;
  margin-bottom: 26px;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(54px, 7.4vw, 96px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--ash);
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.34;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 860px;
  margin: 24px 0 0;
  padding: 1px;
  background: var(--line);
}

.hero-proof div {
  min-height: 92px;
  padding: 17px 18px 16px;
  background: rgba(16, 18, 20, 0.78);
}

.hero-proof dt {
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-proof dd {
  margin: 0;
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.28;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.button.primary {
  background: var(--orange);
  color: var(--graphite);
}

.button.primary:hover {
  background: #ff7d38;
}

.button.secondary {
  border-color: rgba(244, 241, 234, 0.34);
  color: var(--bone);
}

.button.secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.section {
  padding: 94px 32px;
}

.split-header,
.section-header {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(300px, 0.8fr);
  gap: 7vw;
  max-width: var(--max);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 42px;
}

.split-header h2,
.section-header h2,
.contact-section h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
  text-transform: uppercase;
}

.split-header p,
.section-header p {
  margin-bottom: 0;
  color: inherit;
  font-size: 22px;
  line-height: 1.45;
}

.thesis-section,
.contact-section {
  background: var(--bone);
  color: var(--graphite);
}

.thesis-section .split-header p,
.contact-section p {
  color: rgba(16, 18, 20, 0.72);
}

.thesis-section .section-kicker,
.contact-section .section-kicker {
  color: var(--orange-ink);
}

.thesis-lead {
  display: block;
}

.thesis-copy {
  margin-top: 18px;
}

.industry-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--max);
  margin: 58px auto 0;
  padding: 8px;
  border: 1px solid rgba(16, 18, 20, 0.22);
  background: rgba(16, 18, 20, 0.22);
}

.industry-rail span {
  display: grid;
  min-height: 116px;
  place-items: center;
  padding: 0 10px;
  background: var(--paper);
  color: var(--blueprint);
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 34px);
  letter-spacing: 0;
  line-height: 1.04;
  text-align: center;
  text-transform: uppercase;
}

.showcase-section,
.operating-section {
  background: var(--graphite);
  color: var(--bone);
}

.showcase-section .section-header p,
.operating-section .section-header p {
  color: var(--ash);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid #090a0b;
  background: #090a0b;
}

.company-card {
  min-height: 318px;
  padding: 24px;
  border: 1px solid #090a0b;
  background: var(--iron);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.company-card.logo-card {
  min-height: 226px;
  align-items: center;
  justify-content: center;
  padding: 34px;
  position: relative;
}

.company-card.logo-card::after {
  display: none;
}

.company-card.logo-card::before {
  content: attr(data-name);
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.company-card.logo-card.aerospace::before {
  color: var(--graphite);
}

.company-card.logo-card .brandlogo {
  width: min(236px, 86%);
  height: 82px;
  margin: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.company-card.logo-card:hover .brandlogo,
.company-card.logo-card:focus-visible .brandlogo {
  opacity: 0;
  transform: scale(0.95);
}

.company-card.logo-card:hover::before,
.company-card.logo-card:focus-visible::before {
  opacity: 1;
}

.company-card::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 24px;
  background: var(--orange);
}

.defense {
  background: #17251d;
}

.fire {
  background: #4a2418;
}

.infrastructure {
  background: #0f334e;
}

.manufacturing {
  background: #33373a;
}

.aerospace {
  background: #ded2aa;
  color: var(--graphite);
}

.health {
  background: #173d3a;
}

.infrastructure::after,
.aerospace::after,
.health::after {
  background: var(--cyan);
}

.belief-list {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.belief {
  display: grid;
  grid-template-columns: 112px minmax(280px, 0.9fr) minmax(280px, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.belief span {
  color: var(--ash); /* was --steel #66717a (~3.7:1 on graphite — failed AA) */
  font-weight: 900;
  line-height: 1.2;
}

.belief h3 {
  margin-bottom: 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.12;
}

.belief p {
  margin-bottom: 0;
  color: var(--ash);
  line-height: 1.5;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid rgba(16, 18, 20, 0.12);
}

.contact-section p {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 20px;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 48px;
  background: rgba(7, 21, 38, 0.98);
  color: var(--gold);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(224, 196, 75, 0.72);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.footer-logo {
  height: 26px;
  width: auto;
  flex: 0 0 auto;
}

.site-footer > a {
  text-transform: uppercase;
}

@media (max-width: 1040px) {
  nav {
    gap: 14px;
    font-size: 13px;
  }

}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    padding: 0 20px;
  }

  .brand {
    gap: 10px;
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  nav a:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 96px 20px 22px;
  }

  .hero-content {
    padding-bottom: 18px;
  }

  h1 {
    font-size: clamp(42px, 12.5vw, 60px);
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    margin-top: 20px;
  }

  .hero-proof div {
    min-height: 0;
    padding: 10px 9px;
  }

  .hero-proof dt {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .hero-proof dd {
    font-size: 13px;
    line-height: 1.16;
  }

  .section {
    padding: 70px 20px;
  }

  .split-header,
  .section-header,
  .belief {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .industry-rail,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .industry-rail span {
    min-height: 88px;
  }

  .company-card {
    min-height: 245px;
  }

  .contact-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding: 24px 20px;
  }
}

/* ============================================================
   Clickable showcase cards + company brief pages
   ============================================================ */
.company-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.company-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.34);
}

.company-card::after {
  margin-top: 18px;
}

.detail-hero {
  padding: 122px 32px 52px;
  border-bottom: 1px solid var(--line);
}

.detail-back {
  display: inline-block;
  max-width: var(--max);
  margin: 0 auto 26px;
  width: 100%;
  color: var(--ash);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-back:hover {
  color: var(--orange);
}

.detail-hero .wrap,
.detail-section .wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.detail-kicker {
  margin: -6px 0 20px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.detail-hero h1 {
  margin-bottom: 22px;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
}

.detail-lead {
  max-width: 840px;
  margin: 0;
  color: var(--ash);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.34;
}

.sector-bar {
  width: 72px;
  height: 4px;
  margin-top: 26px;
  background: var(--orange);
}

.sector-bar.cyan {
  background: var(--cyan);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--line);
}

.metric {
  padding: 22px 20px;
  background: var(--iron);
}

.metric span {
  display: block;
  margin-bottom: 9px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--bone);
}

.detail-section {
  padding: 82px 32px;
  background: var(--graphite);
  color: var(--bone);
}

.metric-section {
  padding-top: 46px;
  padding-bottom: 46px;
}

.deployment-section {
  padding-top: 0;
  padding-bottom: 82px;
}

.detail-section.light {
  background: var(--bone);
  color: var(--graphite);
}

.detail-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6vw;
  max-width: var(--max);
  margin: 0 auto;
}

.detail-block h2 {
  margin-bottom: 14px;
  color: var(--orange-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-block p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(16, 18, 20, 0.76);
}

.detail-block p + p {
  margin-top: 14px;
}

.deploy-note {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: baseline;
  max-width: var(--max);
  margin: 46px auto 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: rgba(35, 39, 43, 0.7);
}

.deploy-note span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.deploy-note strong {
  font-weight: 400;
  font-size: 17px;
  line-height: 1.4;
  color: var(--bone);
}

.detail-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
}

.detail-nav a {
  color: var(--gold);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-nav a:hover {
  color: var(--bone);
}

@media (max-width: 900px) {
  .metric-grid,
  .detail-body {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding: 104px 20px 40px;
  }

  .detail-section {
    padding: 60px 20px;
  }
}

.operator {
  background: #2c2540;
}

.sleep {
  background: #15303b;
}

.sleep::after {
  background: var(--cyan);
}

.brandlogo {
  display: block;
  width: 132px;
  height: 52px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.brandlogo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brandlogo.contain img {
  object-fit: contain;
  padding: 0;
}

.team-section {
  background: var(--graphite);
  color: var(--bone);
}

.team-section .section-header p {
  color: var(--ash);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--line);
}

.team-grid article {
  min-height: 180px;
  padding: 26px 24px;
  background: rgba(35, 39, 43, 0.78);
}

.t-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--orange);
  color: var(--graphite);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.team-grid h3 {
  margin: 18px 0 10px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.team-grid p {
  margin: 0;
  color: var(--ash);
  line-height: 1.45;
}

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

/* Full portfolio logo wall */
.wall-page {
  padding: 130px 32px 90px;
  background: var(--graphite);
  color: var(--bone);
}

.wall-head {
  max-width: var(--max);
  margin: 0 auto 8px;
}

.wall-head h1 {
  margin-bottom: 18px;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(46px, 6.5vw, 96px);
  font-weight: 400;
  line-height: 0.94;
  text-transform: uppercase;
}

.wall-head p {
  max-width: 760px;
  margin: 0;
  color: var(--ash);
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.4;
}

.wall-label {
  max-width: var(--max);
  margin: 52px auto 0;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--max);
  margin: 18px auto 0;
}

.wall-cell {
  display: block;
  min-height: 178px;
  padding: 22px;
  background: var(--iron);
  border: 1px solid #2f343c;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

a.wall-cell:hover {
  background: #2b3038;
  border-color: var(--orange);
}

.wall-cell .chip {
  display: block;
  width: 116px;
  height: 46px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.wall-cell .chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wall-cell .chip.contain img {
  object-fit: contain;
  padding: 0;
}

.wall-cell .nm {
  margin-top: 20px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.wall-cell .sc {
  margin-top: 9px;
  color: var(--ash);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-wall .wall-cell.logo-only {
  display: grid;
  min-height: 160px;
  place-items: center;
  padding: 26px;
  position: relative;
}

.logo-wall .wall-cell.logo-only .chip {
  width: min(220px, 86%);
  height: 76px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.logo-wall .wall-cell.logo-only .chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.92;
}

.logo-wall .wall-cell.logo-only::before {
  content: attr(data-name);
  position: absolute;
  inset: 16px;
  display: grid;
  place-items: center;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.92;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.logo-wall .wall-cell.logo-only:hover .chip,
.logo-wall .wall-cell.logo-only:focus-visible .chip {
  opacity: 0;
  transform: scale(0.95);
}

.logo-wall .wall-cell.logo-only:hover::before,
.logo-wall .wall-cell.logo-only:focus-visible::before {
  opacity: 1;
}

@media (max-width: 900px) {
  .wall {
    grid-template-columns: 1fr 1fr;
  }
  .wall-page {
    padding: 104px 20px 64px;
  }
}

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

/* ============================================================
   Impeccable polish layer — a11y focus, motion, hover, type.
   Appended: aligns to PRODUCT.md, existing identity preserved.
   ============================================================ */

/* Keyboard focus — a dual ring that reads on dark AND the tan tab (WCAG 2.4.11) */
a:focus-visible,
.button:focus-visible,
.company-card:focus-visible,
.wall-cell:focus-visible,
nav a:focus-visible,
.detail-back:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--graphite), 0 0 0 5px var(--orange);
  border-radius: 2px;
}

/* Typography guardrails */
h1, h2, h3 { text-wrap: balance; }
.hero-copy, .split-header p, .belief p, .company-card p, .detail-lead { text-wrap: pretty; }
.hero-copy { line-height: 1.4; }            /* light-on-dark breathes more */

/* Intentional motion — consistent ease-out, no bounce */
.button, nav a, .company-card, .wall-cell, .detail-back {
  transition: transform .25s cubic-bezier(.22,1,.36,1),
              background-color .2s ease, color .2s ease,
              border-color .2s ease, box-shadow .25s ease, filter .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

/* Showcase cards (colored bg already) — lift on hover */
.company-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(0,0,0,.34);
}

/* Colored flagship tabs: inline background blocks a bg-hover, so lift + brighten */
.wall-cell.tab:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
  box-shadow: 0 8px 0 rgba(0,0,0,.32);
}

/* Reduced motion is not optional */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .button:hover,
  .company-card:hover,
  .wall-cell.tab:hover { transform: none; filter: none; }
}

/* Brand logo mark */
.brand-logo {
  height: 30px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}
@media (max-width: 900px) {
  .brand-logo { height: 26px; }
}

/* ============================================================
   Critique fixes — type weight, visible names, mobile nav, IA.
   ============================================================ */

/* Saira Condensed needs more weight than system Impact to read as display.
   Keep the bold all-caps identity; just give it real heft. */
h1,
.split-header h2,
.section-header h2,
.contact-section h2,
.industry-rail span,
.company-card.logo-card::before,
.detail-hero h1,
.wall-head h1,
.team-grid h3,
.metric strong,
.wall-cell .nm,
.logo-wall .wall-cell.logo-only::before {
  font-weight: 800;
}
.brand,
nav,
.site-footer,
.detail-nav a,
.wall-label,
.detail-kicker,
.section-kicker {
  font-weight: 600;
}

/* --- Company names visible at rest (were desktop-hover-only, so
   touch users never saw them and scannability suffered). Logo + name
   both shown; hover is now enhancement, not the only path to the name. --- */
.company-card.logo-card {
  flex-direction: column;
  gap: 14px;
}
.company-card.logo-card .brandlogo {
  order: 1;
  opacity: 1;
  transform: none;
}
.company-card.logo-card::before {
  position: static;
  inset: auto;
  order: 2;
  display: block;
  opacity: 1;
  transform: none;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 0.92;
}
.company-card.logo-card:hover .brandlogo,
.company-card.logo-card:focus-visible .brandlogo {
  opacity: 1;
  transform: none;
}

.logo-wall .wall-cell.logo-only {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.logo-wall .wall-cell.logo-only .chip {
  order: 1;
  opacity: 1;
  transform: none;
}
.logo-wall .wall-cell.logo-only .chip img {
  opacity: 0.95;
}
.logo-wall .wall-cell.logo-only::before {
  position: static;
  inset: auto;
  order: 2;
  opacity: 1;
  transform: none;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 0.95;
}
.logo-wall .wall-cell.logo-only:hover .chip,
.logo-wall .wall-cell.logo-only:focus-visible .chip {
  opacity: 1;
  transform: none;
}
/* Non-link cells shouldn't fake interactivity */
.logo-wall .wall-cell.logo-only:not(a) {
  cursor: default;
}

/* Connector between homepage flagship grid and the full portfolio page */
.showcase-more {
  max-width: var(--max);
  margin: 26px auto 0;
  text-align: right;
}
.showcase-more a {
  color: var(--orange);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.showcase-more a:hover {
  color: var(--bone);
}

/* --- Mobile menu: replaces the old rule that hid every nav link
   except the last one, leaving mobile users with no navigation. --- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold);
  cursor: pointer;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle .bars {
  position: relative;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  /* Keep the header on-screen instead of letting it scroll away */
  .site-header { position: fixed; }
  .nav-toggle { display: inline-flex; }

  nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    z-index: 9;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: #081428; /* fully opaque so page content never bleeds through */
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  }
  /* Override the old hide-all-but-last rule */
  nav a,
  nav a:not(:last-child) {
    display: block;
    padding: 13px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  nav a:last-child { border-bottom: none; }

  nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  nav { transition: none; }
}

/* ============================================================
   Larger redesign direction — field-map composition.
   Powers the primary homepage and the comparison redesign route.
   ============================================================ */
body.redesign {
  background: var(--blueprint-deep);
  color: var(--bone);
}

.redesign .site-header {
  background: rgba(7, 21, 38, 0.94);
}

.redesign-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  min-height: 88svh;
  padding: 124px 48px 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 20%, rgba(25, 194, 255, 0.18), transparent 30%),
    linear-gradient(145deg, var(--blueprint-deep) 0%, var(--graphite) 54%, #05080c 100%);
}

.redesign-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.redesign-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(244, 241, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 0%, black 22%, black 100%);
}

.field-map {
  position: absolute;
  right: clamp(-180px, -5vw, -70px);
  top: 18%;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(244, 241, 234, 0.18);
  transform: rotate(-8deg);
}

.field-map::before,
.field-map::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(25, 194, 255, 0.3);
}

.field-map::after {
  inset: 28%;
  border-color: rgba(255, 106, 26, 0.34);
}

.map-node {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--orange);
  box-shadow: 0 0 0 8px rgba(255, 106, 26, 0.12);
}

.map-node-a { top: 20%; left: 18%; }
.map-node-b { top: 32%; right: 24%; background: var(--cyan); box-shadow: 0 0 0 8px rgba(25, 194, 255, 0.12); }
.map-node-c { bottom: 21%; left: 32%; }
.map-node-d { right: 17%; bottom: 28%; background: var(--gold); box-shadow: 0 0 0 8px rgba(224, 196, 75, 0.12); }

.redesign-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.redesign-signal {
  margin-bottom: 18px;
  color: var(--orange);
  font-family: var(--body);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.redesign-hero h1 {
  max-width: 900px;
  margin-bottom: 26px;
  font-size: clamp(56px, 7.2vw, 96px);
  line-height: 0.9;
}

.redesign-hero-copy > p:not(.redesign-signal) {
  max-width: 720px;
  margin: 0;
  color: var(--ash);
  font-size: clamp(20px, 2.1vw, 29px);
  line-height: 1.36;
}

.redesign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.redesign-ledger {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1px;
  margin-bottom: 8px;
  background: var(--line);
  border: 1px solid var(--line);
}

.redesign-ledger div {
  padding: 18px;
  background: rgba(16, 18, 20, 0.84);
}

.redesign-ledger span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.redesign-ledger strong {
  display: block;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  line-height: 0.98;
  text-transform: uppercase;
}

.redesign-thesis,
.redesign-portfolio,
.redesign-operating,
.redesign-intake,
.redesign-contact {
  padding: clamp(72px, 9vw, 118px) 48px;
}

.redesign-thesis {
  background: var(--bone);
  color: var(--graphite);
}

.redesign-section-title {
  display: block;
  max-width: var(--max);
  margin: 0 auto 48px;
}

.redesign-section-title h2,
.portfolio-head h2,
.redesign-operating h2,
.redesign-intake h2,
.redesign-contact h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 5.2vw, 78px);
  font-weight: 800;
  line-height: 0.94;
  text-transform: uppercase;
}

.redesign-section-title p {
  margin: 18px 0 0;
  max-width: 760px;
  color: rgba(16, 18, 20, 0.72);
  font-size: 21px;
  line-height: 1.42;
}

.thesis-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid rgba(16, 18, 20, 0.18);
  background: rgba(16, 18, 20, 0.18);
  gap: 1px;
}

.thesis-board article {
  min-height: 310px;
  padding: 24px;
  background: var(--paper);
}

.thesis-board span {
  display: block;
  margin-bottom: 34px;
  color: var(--orange-ink);
  font-weight: 900;
}

.thesis-board h3 {
  margin-bottom: 14px;
  color: var(--blueprint);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.06;
}

.thesis-board p {
  margin: 0;
  color: rgba(16, 18, 20, 0.75);
  line-height: 1.55;
}

.redesign-portfolio {
  background: var(--graphite);
}

.portfolio-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  max-width: var(--max);
  margin: 0 auto 34px;
}

.portfolio-head-copy {
  max-width: 760px;
}

.portfolio-head p {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--ash);
  font-size: 19px;
  line-height: 1.48;
}

.portfolio-head a {
  flex: 0 0 auto;
  color: var(--orange);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-head a:hover {
  color: var(--bone);
}

.portfolio-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  background: #090a0b;
  border: 1px solid #090a0b;
}

.portfolio-board a {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 260px;
  padding: 24px;
  background: var(--iron);
  color: var(--bone);
  overflow: hidden;
  transition: background-color 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-board .field {
  color: var(--ash); /* real element (was ::before attr) so AT + selection get it */
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-board a::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 3px;
  background: var(--orange);
}

.portfolio-board a:hover,
.portfolio-board a:focus-visible {
  background: var(--blueprint-mid);
  transform: translateY(-3px);
}

.portfolio-board img {
  width: min(220px, 84%);
  height: 78px;
  object-fit: contain;
  align-self: center;
  justify-self: center;
}

.portfolio-board a > span:not(.field) {
  max-width: 10ch;
  font-family: var(--display);
  font-size: clamp(31px, 4vw, 56px);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}

.redesign-operating {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1fr);
  gap: 7vw;
  background: var(--blueprint-deep);
  border-block: 1px solid var(--line);
}

.operating-lines {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.operating-lines p {
  margin: 0;
  padding: 24px;
  background: rgba(16, 18, 20, 0.6);
  color: var(--ash);
  font-size: 19px;
  line-height: 1.45;
}

.operating-lines strong {
  color: var(--gold);
}

.redesign-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--bone);
  color: var(--graphite);
}

.redesign-contact > div {
  max-width: 780px;
}

.redesign-contact p {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(16, 18, 20, 0.72);
  font-size: 21px;
  line-height: 1.45;
}

.redesign-intake {
  background: var(--blueprint-deep);
  border-top: 1px solid var(--line);
}

.intake-copy {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(320px, 1fr);
  gap: 7vw;
  max-width: var(--max);
  margin: 0 auto;
  align-items: start;
}

.intake-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.intake-list p {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 22px 24px;
  background: rgba(16, 18, 20, 0.62);
}

.intake-list strong {
  color: var(--gold);
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

.intake-list span {
  color: var(--ash);
  font-size: 18px;
  line-height: 1.45;
}

@media (max-width: 1040px) {
  .redesign-hero,
  .redesign-section-title,
  .redesign-operating,
  .intake-copy {
    grid-template-columns: 1fr;
  }

  .redesign-ledger {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 860px;
    margin-top: 42px;
  }

  .thesis-board,
  .portfolio-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .redesign-hero {
    min-height: auto;
    padding: 108px 20px 30px;
  }

  .redesign-thesis,
  .redesign-portfolio,
  .redesign-operating,
  .redesign-intake,
  .redesign-contact {
    padding: 68px 20px;
  }

  .field-map {
    right: -210px;
    top: 22%;
    width: 620px;
    opacity: 0.72;
  }

  .thesis-board,
  .portfolio-board {
    grid-template-columns: 1fr;
  }

  .redesign-ledger {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 30px;
  }

  .redesign-ledger div {
    padding: 12px 10px;
  }

  .redesign-ledger span {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .redesign-ledger strong {
    font-size: 16px;
    line-height: 1.02;
  }

  .portfolio-head,
  .redesign-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-board a {
    min-height: 210px;
  }

  .intake-list p {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .redesign-hero h1 {
    font-size: clamp(45px, 14vw, 66px);
  }

  .redesign-hero-copy > p:not(.redesign-signal) {
    font-size: 19px;
  }

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

  .redesign-actions .button,
  .redesign-contact .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-board a:hover,
  .portfolio-board a:focus-visible {
    transform: none;
  }
}


/* Hero entrance — one orchestrated page-load reveal. Resting state is visible;
   motion applies only for users who have not asked to reduce it. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes bpRiseIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
  .redesign-signal { animation: bpRiseIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .redesign-hero h1 { animation: bpRiseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both; }
  .redesign-hero-copy > p:not(.redesign-signal) { animation: bpRiseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both; }
  .redesign-actions { animation: bpRiseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both; }
  .redesign-ledger { animation: bpRiseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }
}


/* Companies: clean logo grid at rest; name + sector reveal on hover/focus,
   logo stays put. Hover-capable devices only so touch keeps labels visible;
   labels stay in the a11y tree (opacity, not display:none). */
@media (hover: hover) {
  .portfolio-board a > span {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .portfolio-board a::after { opacity: 0; transition: opacity 0.22s ease; }
  .portfolio-board a:hover > span,
  .portfolio-board a:focus-visible > span { opacity: 1; transform: none; }
  .portfolio-board a:hover::after,
  .portfolio-board a:focus-visible::after { opacity: 1; }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .portfolio-board a > span { transition: opacity 0.15s ease; transform: none; }
}


/* #3 Thesis: de-carded into an editorial row list (was a 4-up card grid). */
.thesis-board {
  display: block;
  border: 0;
  background: transparent;
  border-top: 1px solid rgba(16, 18, 20, 0.16);
}
.thesis-board article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  column-gap: clamp(28px, 6vw, 88px);
  min-height: 0;
  padding: 30px 2px;
  background: transparent;
  border-bottom: 1px solid rgba(16, 18, 20, 0.16);
}
.thesis-board span {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.thesis-board h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 8px;
  font-family: var(--body);
  font-weight: 700;
  color: var(--blueprint);
}
.thesis-board p {
  grid-column: 2;
  grid-row: 2;
  max-width: 70ch;
}
@media (max-width: 700px) {
  .thesis-board article { grid-template-columns: 1fr; }
  .thesis-board span { grid-row: auto; margin-bottom: 6px; }
  .thesis-board h3, .thesis-board p { grid-column: 1; }
}

/* #4 Partners statement */
.redesign-partners {
  padding: clamp(72px, 9vw, 118px) 48px;
  background: var(--graphite);
  border-top: 1px solid var(--line);
}
.partners-copy {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(280px, 1fr);
  gap: 7vw;
  align-items: end;
}
.redesign-partners h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 5.2vw, 78px);
  font-weight: 800;
  line-height: 0.94;
  text-transform: uppercase;
  color: var(--bone);
}
.redesign-partners p {
  margin: 0;
  color: var(--ash);
  font-size: 21px;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .partners-copy { grid-template-columns: 1fr; gap: 22px; }
}


/* What to send: thesis-style rows with tag + copy (no separate heading) */
.intake-board article p {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
  max-width: 70ch;
}


/* Contact CTA: keep the email button, aligned under the partners-style copy */
.redesign-partners .contact-cta { max-width: var(--max); margin: 28px auto 0; }
