:root {
  color-scheme: dark;
  --black: #050607;
  --black-2: #0a0c0e;
  --panel: rgba(18, 20, 22, 0.78);
  --panel-solid: #111417;
  --steel: #c8d1d4;
  --steel-dim: #7d878b;
  --white: #f3f6f4;
  --red: #f4362d;
  --red-dark: #7e1714;
  --cyan: #78ead5;
  --gold: #f3c763;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 78% 12%, rgba(244, 54, 45, 0.22), transparent 29rem),
    radial-gradient(circle at 22% 78%, rgba(120, 234, 213, 0.1), transparent 23rem),
    linear-gradient(135deg, #050607 0%, #0f1113 54%, #060708 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

#arena {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(calc(100% - 32px), 1240px);
  min-height: 64px;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.62);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 6, 7, 0.86);
  border-color: rgba(244, 54, 45, 0.28);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand img,
.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.brand span {
  color: var(--white);
}

.brand small {
  margin-left: -6px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--steel);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.header-action,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.header-action,
.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 12px 36px rgba(244, 54, 45, 0.22);
}

.header-action:hover,
.btn:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: rgba(120, 234, 213, 0.45);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: end;
  gap: 40px;
  width: min(calc(100% - 32px), var(--max));
  min-height: 88svh;
  margin: 0 auto;
  padding: 154px 0 70px;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  right: -12%;
  bottom: 0;
  width: 62%;
  height: 54%;
  border: 1px solid rgba(244, 54, 45, 0.24);
  transform: skewX(-15deg);
  pointer-events: none;
  opacity: 0.9;
}

.hero-media {
  position: absolute;
  top: 84px;
  right: -18px;
  z-index: -1;
  width: min(620px, 52vw);
  opacity: 0.48;
  filter: saturate(1.18) contrast(1.08) drop-shadow(0 0 58px rgba(244, 54, 45, 0.22));
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(-8deg) skewX(-8deg);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.studio-copy h2,
.careers-copy h2,
.press-panel h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(3.1rem, 9vw, 7.8rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 860px;
  text-shadow: 0 16px 70px rgba(0, 0, 0, 0.8);
}

.hero-copy {
  max-width: 690px;
  margin: 28px 0 0;
  color: rgba(243, 246, 244, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.mission-board {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(244, 54, 45, 0.14), transparent 35%),
    rgba(12, 14, 16, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.mission-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-110%);
  animation: sweep 7s linear infinite;
}

.board-topline,
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--steel-dim);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.board-topline strong {
  color: var(--gold);
}

.mission-board h2 {
  margin: 22px 0 10px;
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.9;
}

.mission-board p {
  margin: 0;
  color: rgba(243, 246, 244, 0.74);
}

.build-readout {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.build-readout span {
  display: grid;
  gap: 7px;
}

.build-readout b {
  color: var(--steel);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.build-readout i {
  display: block;
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.build-readout i::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold));
  box-shadow: 0 0 24px rgba(244, 54, 45, 0.34);
}

.ticker {
  overflow: hidden;
  contain: layout paint;
  border-block: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
}

.ticker div {
  display: flex;
  gap: 34px;
  width: max-content;
  padding: 17px 0;
  animation: ticker 28s linear infinite;
}

.ticker span {
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ticker span::before {
  content: "/";
  margin-right: 34px;
  color: var(--red);
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 112px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.7fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading h2,
.studio-copy h2,
.careers-copy h2,
.press-panel h2 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.section-heading p:last-child,
.studio-copy p,
.careers-copy p,
.press-panel p {
  margin: 0;
  color: rgba(243, 246, 244, 0.72);
  font-size: 1.02rem;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(14, 16, 18, 0.78);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.project-card:hover {
  border-color: rgba(244, 54, 45, 0.38);
}

.project-card-featured {
  grid-column: span 2;
}

.project-art {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(135deg, rgba(244, 54, 45, 0.2), transparent 40%),
    radial-gradient(circle at 80% 18%, rgba(120, 234, 213, 0.16), transparent 15rem),
    #090b0d;
}

.stefek-art img {
  position: absolute;
  right: -38px;
  bottom: -150px;
  width: min(520px, 72%);
  opacity: 0.74;
  filter: contrast(1.12) saturate(1.08) drop-shadow(0 0 44px rgba(244, 54, 45, 0.22));
}

.stefek-art span,
.redwire-art span,
.toolkit-art span {
  position: absolute;
  display: block;
}

.stefek-art span {
  left: 30px;
  top: 38px;
  width: 42%;
  height: 42%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  transform: skewX(-18deg);
}

.redwire-art span:nth-child(1) {
  left: 18%;
  top: 19%;
  width: 54%;
  height: 54%;
  border: 1px solid rgba(244, 54, 45, 0.52);
  transform: rotate(45deg);
}

.redwire-art span:nth-child(2) {
  right: 14%;
  bottom: 16%;
  width: 34%;
  height: 42%;
  background: linear-gradient(160deg, rgba(244, 54, 45, 0.82), transparent);
  clip-path: polygon(0 0, 100% 18%, 70% 100%, 10% 80%);
}

.redwire-art span:nth-child(3) {
  left: 12%;
  bottom: 12%;
  width: 52%;
  height: 3px;
  background: var(--cyan);
  box-shadow: 0 0 26px var(--cyan);
}

.toolkit-art {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  padding: 24px;
}

.toolkit-art span {
  position: static;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.toolkit-art span:nth-child(1) {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
  border-color: rgba(244, 54, 45, 0.4);
}

.toolkit-art span:nth-child(2) {
  grid-column: 5 / 7;
  grid-row: 1 / 5;
}

.toolkit-art span:nth-child(3) {
  grid-column: 1 / 3;
  grid-row: 3 / 5;
  border-color: rgba(120, 234, 213, 0.36);
}

.toolkit-art span:nth-child(4) {
  grid-column: 3 / 5;
  grid-row: 3 / 5;
  border-color: rgba(243, 199, 99, 0.42);
}

.project-body {
  display: grid;
  align-content: start;
  min-height: 238px;
  padding: 22px;
}

.project-body h3 {
  margin: 16px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.project-body p {
  margin: 0;
  color: rgba(243, 246, 244, 0.72);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 44px;
  align-items: center;
}

.studio-copy {
  display: grid;
  gap: 22px;
}

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

.fact-grid div {
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.fact-grid span,
.contact-grid span,
.role-list span,
.value-card span,
.timeline-item span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fact-grid strong {
  display: block;
  margin-top: 16px;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.02;
  text-transform: uppercase;
}

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

.value-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.07), transparent),
    rgba(255, 255, 255, 0.035);
}

.value-card h3,
.timeline-item h3,
.role-list h3 {
  margin: 18px 0 10px;
  font-size: 1.35rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.value-card p,
.timeline-item p,
.role-list p {
  margin: 0;
  color: rgba(243, 246, 244, 0.7);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.timeline-item {
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--panel);
}

.careers {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: 38px;
  align-items: start;
}

.careers-copy {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 22px;
}

.careers-copy .btn {
  justify-self: start;
}

.role-list {
  display: grid;
  gap: 14px;
}

.role-list article {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.press {
  padding-block: 40px 112px;
}

.press-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(244, 54, 45, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 54, 45, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.press-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.contact {
  padding-top: 70px;
}

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

.contact-grid a,
.social-grid a {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.contact-grid a:hover,
.social-grid a:hover {
  border-color: rgba(120, 234, 213, 0.42);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-2px);
}

.contact-grid strong {
  display: block;
  min-width: 0;
  margin-top: 10px;
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.social-grid a {
  display: grid;
  gap: 14px;
  min-height: 122px;
}

.social-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
}

.social-grid strong {
  align-self: end;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--steel-dim);
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.footer-brand span {
  color: var(--white);
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 1;
  transform: none;
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes sweep {
  0% {
    transform: translateX(-110%);
  }
  42%,
  100% {
    transform: translateX(110%);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .brand small,
  .header-action {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(5, 6, 7, 0.94);
    backdrop-filter: blur(16px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px;
  }

  .hero,
  .studio,
  .careers,
  .section-heading,
  .press-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .hero-media {
    top: 82px;
    right: -130px;
    width: min(620px, 96vw);
    opacity: 0.32;
  }

  .mission-board {
    max-width: 560px;
  }

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

  .project-card-featured {
    grid-column: auto;
  }

  .project-card {
    min-height: auto;
  }

  .careers-copy {
    position: static;
  }

  .press-actions {
    justify-content: flex-start;
  }

  .social-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), 1240px);
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand span {
    font-size: 0.92rem;
  }

  .hero,
  .section,
  .site-footer {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero {
    gap: 26px;
    padding-top: 112px;
    padding-bottom: 22px;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.5rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .press-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 74px 0;
  }

  .project-art {
    height: 230px;
  }

  .mission-board {
    padding: 16px;
  }

  .mission-board h2 {
    margin: 14px 0 8px;
    font-size: 2.45rem;
  }

  .mission-board p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.94rem;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .build-readout {
    gap: 9px;
    margin-top: 14px;
  }

  .build-readout span:nth-child(3) {
    display: none;
  }

  .build-readout b {
    font-size: 0.67rem;
  }

  .build-readout i {
    height: 7px;
  }

  .fact-grid,
  .social-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid strong {
    font-size: 0.95rem;
  }
}

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