:root {
  color-scheme: dark;
  --ink: #f5f7f8;
  --muted: #a7adb4;
  --quiet: #6f7780;
  --bg: #0a0b0e;
  --surface: #101318;
  --surface-2: #151920;
  --line: #2a3038;
  --red: #e03a32;
  --red-dark: #a31f1b;
  --cyan: #59c4d7;
  --yellow: #e2c454;
  --max: 1180px;
  --sans: "DM Sans", Arial, sans-serif;
  --display: "Oswald", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  letter-spacing: 0;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.site-header.scrolled {
  background: rgba(10, 11, 14, 0.94);
  border-color: var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { border-radius: 4px; }
.desktop-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.desktop-nav a, .site-footer a, .about-links a, .case-links a { transition: color 150ms ease; }
.desktop-nav a:hover, .site-footer a:hover, .about-links a:hover, .case-links a:hover { color: var(--cyan); }
.menu-button { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 9px; cursor: pointer; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: var(--ink); transition: transform 150ms ease, opacity 150ms ease; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  position: fixed;
  inset: 72px 0 0 0;
  z-index: 35;
  padding: 34px 24px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.mobile-nav a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font: 600 30px/1.2 var(--display); }

.hero {
  position: relative;
  min-height: min(820px, 86vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-media, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; object-position: center 42%; }
.hero-shade { background: rgba(5, 7, 10, 0.66); }
.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 90px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1; letter-spacing: 0; }
h1 { max-width: 1120px; font-size: 120px; text-transform: uppercase; }
.hero-copy { max-width: 720px; margin: 26px 0 0; color: #e6e8ea; font-size: 23px; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.button-primary { background: var(--red); color: white; }
.button-primary:hover { background: #f04b43; }
.button-secondary { border-color: rgba(255,255,255,0.56); background: rgba(10,11,14,0.35); }
.button-secondary:hover { border-color: white; background: rgba(10,11,14,0.72); }
.hero-scroll { position: absolute; right: max(24px, calc((100vw - var(--max)) / 2)); bottom: 30px; z-index: 3; color: #d7dbde; font-size: 13px; font-weight: 600; }

.proof-strip {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
}
.proof-strip div { min-height: 120px; padding: 27px 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.proof-strip strong { font: 600 18px/1.2 var(--display); }
.proof-strip span { margin-top: 8px; color: var(--muted); font-size: 13px; }

.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 120px 0; }
.section-heading { max-width: 780px; margin-bottom: 70px; }
.section-heading h2, .process-intro h2, .about-copy h2, .contact-section h2 { font-size: 70px; }
.section-heading > p:last-child { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.section-heading.compact { margin-bottom: 48px; }

.flagship-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 118px;
}
.flagship-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
}
.commercial-flagship { border-top: 4px solid var(--red); }
.competitive-flagship { border-top: 4px solid var(--cyan); }
.flagship-media { margin: 0; overflow: hidden; border-bottom: 1px solid var(--line); background: #050608; }
.flagship-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.commercial-flagship .flagship-media img { object-position: center; }
.competitive-flagship .flagship-media img { object-position: center top; }
.flagship-copy { display: flex; flex: 1; flex-direction: column; padding: 34px; }
.flagship-copy h3 { font-size: 46px; }
.flagship-copy .case-links { margin-top: auto; padding-top: 30px; }
.supporting-heading { max-width: 680px; margin-bottom: 18px; }
.supporting-heading h3 { font-size: 48px; }

.case-study { border-top: 1px solid var(--line); padding: 54px 0 90px; }
.case-study-featured { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(440px, 1.15fr); gap: 68px; align-items: start; }
.case-study-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr); gap: 68px; align-items: center; }
.case-study-split.reverse .case-copy { order: 2; }
.case-study-split.reverse .case-media { order: 1; }
.case-number { margin: 0 0 18px; color: var(--yellow); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.project-status {
  display: inline-block;
  margin-right: 10px;
  padding: 4px 7px;
  border: 1px solid rgba(89, 196, 215, 0.55);
  border-radius: 3px;
  color: var(--cyan);
  line-height: 1;
}
.case-copy h3 { font-size: 58px; }
.case-lead { margin: 22px 0 0; color: #dadddf; font-size: 18px; }
.detail-list { margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); }
.detail-list li { position: relative; padding: 11px 0 11px 22px; border-top: 1px solid rgba(42,48,56,0.7); }
.detail-list li::before { content: ""; position: absolute; left: 0; top: 20px; width: 7px; height: 7px; background: var(--red); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.tag-row span { padding: 6px 9px; border: 1px solid var(--line); color: #bec4ca; font-size: 12px; border-radius: 3px; }
.case-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; color: var(--ink); font-size: 14px; font-weight: 700; }
.case-media { margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.case-media img { width: 100%; height: auto; object-fit: cover; }
.case-media figcaption { padding: 12px 14px; color: var(--quiet); font-size: 12px; border-top: 1px solid var(--line); }
.court-media img { aspect-ratio: 16/10; object-position: center; }
.bot-media { padding: 54px; background: #24262d; }
.bot-media img { border-radius: 4px; }
.bot-media figcaption { margin: 30px -54px -54px; background: var(--surface); }
.workbook-media img { aspect-ratio: 16/10; object-fit: cover; object-position: left top; }

.systems-section { border-top: 1px solid var(--line); }
.systems-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.systems-grid article { min-height: 275px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.system-index { color: var(--red); font: 600 13px/1 var(--display); }
.systems-grid h3 { margin-top: 44px; font-size: 27px; }
.systems-grid p { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.process-section { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr); gap: 80px; border-top: 1px solid var(--line); }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.process-list > li > span { color: var(--cyan); font: 600 14px/1.4 var(--display); }
.process-list strong { font-size: 18px; }
.process-list p { margin: 8px 0 0; color: var(--muted); }

.about-section { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 80px; align-items: start; border-top: 1px solid var(--line); }
.about-mark { min-height: 360px; display: grid; place-items: center; background: var(--red); color: white; font: 700 132px/1 var(--display); }
.about-copy p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 18px; }
.about-copy h2 { margin-bottom: 28px; }
.about-links { display: flex; gap: 24px; margin-top: 30px; font-weight: 700; }

.contact-section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 80px;
  padding: 76px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 60px;
  align-items: end;
  background: #edf1f3;
  color: #0b0d10;
}
.contact-section .eyebrow { color: var(--red-dark); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; }
.contact-actions .button { width: 100%; color: white; }
.contact-actions p { color: #515961; font-size: 14px; }

.site-footer { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 32px 0 44px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--quiet); font-size: 13px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .hero { min-height: 760px; }
  .hero-content { padding-bottom: 100px; }
  h1 { font-size: 96px; }
  .section-heading h2, .process-intro h2, .about-copy h2, .contact-section h2 { font-size: 54px; }
  .case-copy h3 { font-size: 48px; }
  .about-mark { font-size: 110px; }
  .proof-strip { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
  .proof-strip div { min-height: 94px; border-bottom: 1px solid var(--line); }
  .case-study-featured, .case-study-split, .process-section, .about-section, .contact-section { grid-template-columns: 1fr; }
  .flagship-grid { grid-template-columns: 1fr; }
  .case-study-split.reverse .case-copy, .case-study-split.reverse .case-media { order: initial; }
  .systems-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-section { padding: 52px; }
}

@media (max-width: 620px) {
  .site-header { height: 64px; padding: 0 18px; }
  .mobile-nav { top: 64px; }
  .brand img { width: 32px; height: 32px; }
  .hero { min-height: 700px; }
  .hero-media { object-position: 55% center; }
  .hero-content, .section, .proof-strip, .contact-section, .site-footer { width: calc(100% - 32px); }
  h1 { font-size: 64px; }
  .hero-copy { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-scroll { display: none; }
  .section { padding: 84px 0; }
  .section-heading { margin-bottom: 46px; }
  .case-study { padding: 38px 0 68px; }
  .case-study-featured, .case-study-split { gap: 36px; }
  .flagship-grid { gap: 18px; margin-bottom: 82px; }
  .flagship-copy { padding: 26px 22px; }
  .flagship-copy h3 { font-size: 39px; }
  .supporting-heading h3 { font-size: 40px; }
  .case-media { min-width: 0; }
  .bot-media { padding: 24px; }
  .bot-media figcaption { margin: 22px -24px -24px; }
  .systems-grid { grid-template-columns: 1fr; }
  .systems-grid article { min-height: 230px; }
  .process-section, .about-section { gap: 46px; }
  .about-mark { min-height: 240px; }
  .about-mark { font-size: 90px; }
  .about-links, .case-links { flex-direction: column; gap: 14px; }
  .contact-section { padding: 36px 24px; margin-bottom: 50px; }
  .contact-section h2 { font-size: 45px; }
  .contact-actions .button { font-size: 13px; overflow-wrap: anywhere; }
  .site-footer { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
