:root {
  --bg-ink: #111214;
  --bg-white: #ffffff;
  --bg-yellow: #f5b317;
  --bg-yellow-strong: #ffc328;
  --bg-muted: rgba(255, 255, 255, 0.7);
  --bg-line: rgba(255, 255, 255, 0.2);
  --bg-duration: 5600ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-ink);
  color: var(--bg-white);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

button,
a {
  font: inherit;
}

.eng-bg {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #17181a;
  isolation: isolate;
}

.eng-bg__media,
.eng-bg__layer,
.eng-bg__shade,
.eng-bg__grid {
  position: absolute;
  inset: 0;
}

.eng-bg__media {
  z-index: -4;
  overflow: hidden;
  background: #dfe2e4;
}

.eng-bg__media::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.74), rgba(214, 218, 221, 0.62)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(17, 18, 20, 0.055) 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(17, 18, 20, 0.055) 40px);
  opacity: 1;
  transition: opacity 320ms ease;
}

.eng-bg.is-media-ready .eng-bg__media::before {
  opacity: 0;
}

.eng-bg__layer {
  z-index: 1;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 900ms ease, transform 1600ms ease;
}

.eng-bg__layer.is-active {
  opacity: 1;
  transform: scale(1);
}

.eng-bg__layer img {
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  object-position: 58% center;
  transition: opacity 320ms ease;
}

.eng-bg__layer img.is-loaded {
  opacity: 1;
}

.eng-bg__layer--drawing {
  background: #d9dcdf;
}

.eng-bg__layer--drawing img.is-loaded {
  opacity: 0.76;
  filter: grayscale(1) contrast(1.6) brightness(1.05);
  mix-blend-mode: multiply;
}

.eng-bg__layer--drawing::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(17, 18, 20, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 18, 20, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(17, 18, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 18, 20, 0.05) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
  mix-blend-mode: multiply;
}

.eng-bg__layer--model img {
  filter: grayscale(0.88) contrast(1.2) brightness(0.65);
}

.eng-bg__layer--model::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(125deg, rgba(245, 179, 23, 0.22), transparent 42%),
    repeating-linear-gradient(32deg, transparent 0 56px, rgba(255, 255, 255, 0.1) 57px 58px);
}

.eng-bg__layer--final img {
  filter: saturate(0.9) contrast(1.04) brightness(0.82);
}

.eng-bg__load-status {
  position: absolute;
  z-index: 5;
  top: 86px;
  right: max(20px, calc((100vw - 1180px) / 2));
  display: inline-flex;
  margin: 0;
  align-items: center;
  gap: 9px;
  color: rgba(17, 18, 20, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}

.eng-bg__load-status::before {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(17, 18, 20, 0.22);
  border-top-color: var(--bg-yellow);
  border-radius: 50%;
  content: "";
  animation: eng-bg-loading-spin 700ms linear infinite;
}

.eng-bg.is-media-ready .eng-bg__load-status,
.eng-bg.is-media-unavailable .eng-bg__load-status {
  opacity: 0;
  pointer-events: none;
}

@keyframes eng-bg-loading-spin {
  to { transform: rotate(360deg); }
}

.eng-bg__shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(12, 13, 15, 0.94) 0%, rgba(12, 13, 15, 0.76) 38%, rgba(12, 13, 15, 0.22) 70%, rgba(12, 13, 15, 0.45) 100%),
    linear-gradient(0deg, rgba(12, 13, 15, 0.86) 0%, transparent 40%, rgba(12, 13, 15, 0.25) 100%);
}

[data-stage="0"] .eng-bg__shade {
  background:
    linear-gradient(90deg, rgba(13, 14, 16, 0.9) 0%, rgba(13, 14, 16, 0.68) 40%, rgba(13, 14, 16, 0.2) 75%),
    linear-gradient(0deg, rgba(13, 14, 16, 0.88) 0%, transparent 45%);
}

.eng-bg__grid {
  z-index: -2;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.55) 58%, transparent 88%);
}

.eng-bg__blueprint,
.eng-bg__wireframe {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.eng-bg__dimension {
  position: absolute;
  color: rgba(18, 19, 22, 0.76);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.eng-bg__dimension::before,
.eng-bg__dimension::after {
  position: absolute;
  content: "";
}

.eng-bg__dimension--horizontal {
  top: 22%;
  right: 9%;
  width: 32%;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(18, 19, 22, 0.65);
  text-align: center;
}

.eng-bg__dimension--horizontal::before,
.eng-bg__dimension--horizontal::after {
  bottom: -5px;
  width: 9px;
  height: 9px;
  border-top: 1px solid rgba(18, 19, 22, 0.65);
  border-left: 1px solid rgba(18, 19, 22, 0.65);
  transform: rotate(-45deg);
}

.eng-bg__dimension--horizontal::before { left: 0; }
.eng-bg__dimension--horizontal::after { right: 0; transform: rotate(135deg); }

.eng-bg__dimension--vertical {
  top: 34%;
  right: 7%;
  padding-left: 10px;
  border-left: 1px solid rgba(18, 19, 22, 0.65);
  writing-mode: vertical-rl;
}

.eng-bg__coordinate {
  position: absolute;
  right: 7%;
  bottom: 20%;
  color: rgba(18, 19, 22, 0.68);
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.eng-bg__wireframe {
  inset: 15% 8% 17% 44%;
  border: 1px solid rgba(245, 179, 23, 0.72);
  transform: perspective(900px) rotateY(-5deg) rotateX(2deg);
}

.eng-bg__wireframe i {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--bg-yellow);
  border-style: solid;
}

.eng-bg__wireframe i:nth-child(1) { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.eng-bg__wireframe i:nth-child(2) { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.eng-bg__wireframe i:nth-child(3) { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.eng-bg__wireframe i:nth-child(4) { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }

.eng-bg__wireframe span {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--bg-yellow);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.eng-bg__container {
  display: flex;
  min-height: 100svh;
  width: min(1440px, calc(100% - 72px));
  margin: 0 auto;
  flex-direction: column;
  padding: 34px 0 0;
}

.eng-bg__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bg-line);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.eng-bg__layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.8fr) minmax(400px, 1.2fr);
  flex: 1;
  gap: clamp(60px, 8vw, 140px);
  align-items: center;
  padding: clamp(62px, 9vh, 110px) 0;
}

.eng-bg__content {
  max-width: 660px;
}

.eng-bg__eyebrow {
  margin: 0 0 22px;
  color: var(--bg-yellow);
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eng-bg h1,
.eng-bg__title {
  max-width: 660px;
  margin: 0;
  font-size: clamp(3rem, 5.2vw, 5.4rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0;
}

.eng-bg__lead {
  max-width: 590px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.eng-bg__cta {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  padding: 0 26px;
  border: 1px solid var(--bg-yellow);
  border-radius: 4px;
  background: var(--bg-yellow);
  color: var(--bg-ink);
  font-size: 0.94rem;
  font-weight: 900;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.eng-bg__cta:hover {
  border-color: var(--bg-yellow-strong);
  background: var(--bg-yellow-strong);
  transform: translateY(-2px);
}

.eng-bg__cta:focus-visible,
.eng-bg button:focus-visible {
  outline: 3px solid rgba(245, 179, 23, 0.55);
  outline-offset: 4px;
}

.eng-bg__sequence {
  width: min(100%, 520px);
  justify-self: end;
  align-self: end;
  margin-bottom: 10px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(12, 13, 15, 0.58);
  backdrop-filter: blur(12px);
}

.eng-bg__sequence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bg-line);
}

.eng-bg__sequence-head > div {
  display: grid;
  gap: 5px;
}

.eng-bg__sequence-head span {
  color: var(--bg-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eng-bg__sequence-head strong {
  font-size: 1.12rem;
}

.eng-bg__sequence-head button {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--bg-white);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.eng-bg__tabs {
  display: grid;
}

.eng-bg__tabs button {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 3px 12px;
  padding: 17px 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--bg-line);
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease;
}

.eng-bg__tabs button:hover,
.eng-bg__tabs button.is-active {
  color: var(--bg-white);
}

.eng-bg__tabs button > span {
  grid-row: span 2;
  padding-top: 2px;
  color: var(--bg-yellow);
  font-size: 0.7rem;
  font-weight: 900;
}

.eng-bg__tabs strong {
  font-size: 0.91rem;
}

.eng-bg__tabs small {
  color: inherit;
  font-size: 0.72rem;
}

.eng-bg__tabs i {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--bg-yellow);
  transform: scaleX(0);
  transform-origin: left;
}

.eng-bg.is-playing .eng-bg__tabs button.is-active i {
  animation: bg-progress var(--bg-duration) linear forwards;
}

.eng-bg__provisional {
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  line-height: 1.45;
}

.eng-bg__capabilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--bg-line);
  background: rgba(11, 12, 14, 0.7);
  backdrop-filter: blur(10px);
}

.eng-bg__capabilities article {
  min-height: 166px;
  padding: 24px clamp(20px, 2.2vw, 34px);
  border-right: 1px solid var(--bg-line);
}

.eng-bg__capabilities article:last-child {
  border-right: 0;
}

.eng-bg__capabilities span {
  color: var(--bg-yellow);
  font-size: 0.7rem;
  font-weight: 900;
}

.eng-bg__capabilities h2,
.eng-bg__capabilities h3 {
  margin: 22px 0 7px;
  font-size: 1rem;
  line-height: 1.25;
}

.eng-bg__capabilities p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.5;
}

.eng-bg__anchor {
  position: absolute;
  bottom: 0;
}

@keyframes bg-progress {
  to { transform: scaleX(1); }
}

@media (max-width: 980px) {
  .eng-bg__container {
    width: min(100% - 48px, 780px);
  }

  .eng-bg__layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .eng-bg__sequence {
    width: min(100%, 580px);
    justify-self: start;
    align-self: auto;
  }

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

  .eng-bg__capabilities article:nth-child(2) {
    border-right: 0;
  }

  .eng-bg__capabilities article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--bg-line);
  }
}

@media (max-width: 620px) {
  .eng-bg__layer img {
    object-position: 66% center;
  }

  .eng-bg__shade,
  [data-stage="0"] .eng-bg__shade {
    background:
      linear-gradient(180deg, rgba(12, 13, 15, 0.72) 0%, rgba(12, 13, 15, 0.9) 47%, rgba(12, 13, 15, 0.95) 100%),
      linear-gradient(90deg, rgba(12, 13, 15, 0.78), rgba(12, 13, 15, 0.3));
  }

  .eng-bg__container {
    width: calc(100% - 28px);
    padding-top: 24px;
  }

  .eng-bg__layout {
    padding: 66px 0 54px;
  }

  .eng-bg h1,
  .eng-bg__title {
    font-size: clamp(2.65rem, 13vw, 3.45rem);
  }

  .eng-bg__lead {
    margin-top: 22px;
  }

  .eng-bg__sequence {
    padding: 18px;
  }

  .eng-bg__capabilities {
    grid-template-columns: 1fr;
  }

  .eng-bg__capabilities article,
  .eng-bg__capabilities article:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--bg-line);
  }

  .eng-bg__capabilities article:last-child {
    border-bottom: 0;
  }

  .eng-bg__wireframe {
    inset: 22% 7% 30% 20%;
  }

  .eng-bg__dimension--horizontal {
    top: 17%;
    right: 6%;
    width: 52%;
  }
}

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

  .eng-bg__layer,
  .eng-bg__cta {
    transition: none;
  }

  .eng-bg.is-playing .eng-bg__tabs button.is-active i {
    animation: none;
  }
}
