:root {
  --ink: #050505;
  --ink-2: #24160e;
  --text: #e0e6df;
  --muted: #bfc8bd;
  --paper: #17110e;
  --wash: #0e0a08;
  --line: #342820;
  --orange-dark: #d95200;
  --orange: #fb6802;
  --steel: #b4a298;
  --canvas: #050505;
  --shadow: 0 24px 70px rgba(5, 5, 5, 0.16);
  --container: 1180px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  background: var(--wash);
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: var(--ink);
  background: var(--orange);
  border-radius: 6px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  min-height: var(--header-height);
  color: #ffffff;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(5, 5, 5, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-weight: 850;
  line-height: 1;
}

@font-face {
  font-family: "RoboPlastic Roboto";
  src: url("../fonts/Roboto-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.brand-mark {
  display: block;
  width: 54px;
  height: 54px;
  flex: none;
}

.brand-name {
  font-family: "RoboPlastic Roboto", Roboto, Arial, sans-serif;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.8px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: rgba(224, 230, 223, 0.82);
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
}

.nav-toggle span:not(.sr-only) {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 84svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(ellipse at 82% 46%, rgba(251, 104, 2, 0.12), transparent 52%),
    linear-gradient(150deg, #050505, #1a100a 65%, #050505);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, var(--canvas));
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 64px;
  padding: 130px 0 70px;
}

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

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--orange);
}

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

h1,
h2,
h3 {
  line-height: 1.04;
}

h1 {
  margin-bottom: 24px;
  font-size: 76px;
  font-weight: 900;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 30px;
  color: rgba(224, 230, 223, 0.78);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 850;
  line-height: 1.1;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: #050505;
  background: var(--orange);
  border-color: var(--orange);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ff8c36;
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.hero-microcopy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(224, 230, 223, 0.72);
  font-size: 14px;
  font-weight: 750;
}

.hero-microcopy span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-logo-frame {
  width: min(440px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-logo-img {
  width: 100%;
  height: auto;
}

.signal-strip {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  padding-bottom: 72px;
  background: linear-gradient(180deg, transparent 0 40px, var(--wash) 40px);
}

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

.signal-card,
.capability-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.signal-card {
  padding: 26px;
}

.signal-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-weight: 900;
}

.signal-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.signal-card p,
.capability-card p,
.section-heading p,
.contact-copy p,
.footer-grid p,
.error-copy p {
  color: var(--muted);
}

.section {
  padding: 90px 0;
}

.systems {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact-copy h2,
.error-copy h1 {
  margin-bottom: 18px;
  font-size: 48px;
  font-weight: 900;
}

.section-heading p {
  max-width: 720px;
  font-size: 18px;
}

.cards {
  display: grid;
  gap: 18px;
}

.systems .cards {
  position: relative;
  z-index: 3;
}

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capability-card {
  min-height: 280px;
  padding: 24px;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--ink);
  background: var(--orange);
  border-radius: 6px;
  font-weight: 900;
}

.capability-card h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

.dark-section {
  color: #ffffff;
  background: linear-gradient(135deg, #050505, #24160e 70%, #050505);
}

.contact {
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.20) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.20) 1px, transparent 1px);
  background-size: 42px 42px;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 50px;
  align-items: start;
}

.contact-copy p,
.error-copy p {
  color: rgba(224, 230, 223, 0.74);
  font-size: 18px;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  margin-top: 14px;
  padding: 12px 15px;
  border: 1px solid rgba(251, 104, 2, 0.22);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 850;
  background:
    linear-gradient(135deg, rgba(251, 104, 2, 0.11), rgba(217, 82, 0, 0.10)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 28px rgba(5, 5, 5, 0.08);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-mail:hover,
.contact-mail:focus-visible {
  border-color: rgba(251, 104, 2, 0.48);
  color: #050505;
  box-shadow: 0 18px 34px rgba(251, 104, 2, 0.13);
  transform: translateY(-1px);
}

.contact-form {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.contact-form-stack {
  display: grid;
  gap: 18px;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
}

.contact-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(251, 104, 2, 0.18);
  border-radius: 6px;
  background: rgba(5, 5, 5, 0.42);
  text-decoration: none;
}

.contact-social a:hover,
.contact-social a:focus-visible {
  border-color: rgba(251, 104, 2, 0.58);
  background: rgba(251, 104, 2, 0.12);
  transform: translateY(-1px);
}

.contact-social img {
  width: 28px;
  height: 28px;
  opacity: 0.68;
}

.contact-social a:hover img,
.contact-social a:focus-visible img {
  opacity: 1;
}

.inputs-cont {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(224, 230, 223, 0.82);
  font-weight: 750;
}

.contact-form label.full,
.contact-form .button,
.message-cont {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  color: #ffffff;
  background: rgba(5, 5, 5, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 12px 14px;
  outline: none;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(224, 230, 223, 0.46);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(251, 104, 2, 0.76);
  box-shadow: 0 0 0 3px rgba(251, 104, 2, 0.14);
  background: rgba(5, 5, 5, 0.86);
}

.name-cont {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.loader-cont {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: rgba(5, 5, 5, 0.42);
  backdrop-filter: blur(2px);
}

.loader {
  width: 58px;
  height: 58px;
  border: 5px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--orange);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.form-ajax.is-loading .loader-cont {
  display: flex;
}

.form-ajax.is-loading .inputs-cont,
.form-ajax.is-loading .message-cont {
  opacity: 0.42;
}

.form-ajax.is-loading button,
.form-ajax.is-loading input,
.form-ajax.is-loading textarea {
  pointer-events: none;
}

.message-cont {
  display: none;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 750;
}

.message-cont.is-visible {
  display: block;
}

.message-cont.info {
  color: #050505;
  background: var(--orange);
}

.message-cont.error {
  color: #ffffff;
  background: #bc3044;
}

.messages {
  position: fixed;
  right: 20px;
  bottom: 82px;
  z-index: 90;
  width: min(420px, calc(100% - 40px));
  pointer-events: none;
}

.message-box {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 14px;
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.message-box.info {
  background: #0f6b5e;
}

.message-box.error {
  background: #bc3044;
}

.message-box-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
}

.message-box-close::before,
.message-box-close::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 8px;
  width: 16px;
  height: 2px;
  background: var(--paper);
}

.message-box-close::before {
  transform: rotate(45deg);
}

.message-box-close::after {
  transform: rotate(-45deg);
}

.site-footer {
  padding: 40px 0;
  color: rgba(224, 230, 223, 0.76);
  background: #050505;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  color: #ffffff;
}

.footer-grid p {
  margin: 0;
  color: rgba(224, 230, 223, 0.62);
}

.copyright {
  text-align: right;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  min-width: 52px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #050505;
  background: var(--orange);
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.error-page {
  min-height: 70svh;
}

.error-hero {
  min-height: 78svh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
}

.error-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 60px;
}

.error-alert {
  width: min(100%, 460px);
  margin: 24px 0 28px;
  padding: 14px 16px;
  color: #ffffff;
  background: #bc3044;
  border-radius: 8px;
  font-weight: 850;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.error-mark {
  width: 260px;
  height: 260px;
  color: var(--orange);
  opacity: 0.82;
}

.error-mark img {
  width: 100%;
  height: 100%;
}

@media (max-width: 1100px) {
  h1 {
    font-size: 58px;
  }

  .section-heading h2,
  .contact-copy h2,
  .error-copy h1 {
    font-size: 40px;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .copyright {
    text-align: left;
  }
}

@media (max-width: 800px) {
  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 23px;
  }

  :root {
    --header-height: 68px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--header-height) - 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 14px 18px;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    visibility: hidden;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .nav-links a {
    min-height: 48px;
    width: 100%;
  }

  .hero-visual {
    justify-content: center;
    width: 100%;
  }

  .hero-grid {
    gap: 42px;
    padding: 112px 0 58px;
  }

  h1 {
    font-size: 42px;
  }

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

  .hero-logo-frame {
    width: min(360px, 100%);
    margin-inline: auto;
  }

  .signal-strip {
    margin-top: 0;
    padding: 42px 0 56px;
    background: var(--wash);
  }

  .signal-grid,
  .four-up {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 66px 0;
  }

  .section-heading h2,
  .contact-copy h2,
  .error-copy h1 {
    font-size: 34px;
  }

  .contact-grid {
    gap: 30px;
  }

  .inputs-cont {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-social {
    gap: 8px;
    padding: 12px;
  }

  .contact-social a {
    width: 38px;
    height: 38px;
  }

  .contact-social img {
    width: 25px;
    height: 25px;
  }

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

  .error-mark {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  h1 {
    font-size: 34px;
  }

  .section-heading h2,
  .contact-copy h2,
  .error-copy h1 {
    font-size: 30px;
  }

  .hero-microcopy {
    display: grid;
  }

  .signal-card,
  .capability-card {
    padding: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.brand-logo {
  width: 246px;
  height: auto;
}

.brand:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}

.site-header {
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid var(--line);
}

.signal-card {
  border-top: 2px solid var(--orange);
}

.footer-brand .brand-logo {
  width: 204px;
}

.contact-copy .eyebrow {
  color: var(--orange);
}

@media (max-width: 800px) {
  .brand-logo {
    width: 196px;
  }

  .hero-logo-frame {
    width: min(300px, 100%);
  }
}
