:root {
  color-scheme: dark;
  --bg: #101211;
  --bg-elevated: #171a18;
  --bg-muted: #20241f;
  --paper: #e8e5dc;
  --paper-muted: #b8b4aa;
  --line: rgba(232, 229, 220, 0.2);
  --line-strong: rgba(232, 229, 220, 0.45);
  --accent: #a81600;
  --accent-light: #ff8a74;
  --green: #c4e817;
  --amber: #e0bb68;
  --violet: #b6a3ff;
  --danger: #ff776f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(232, 229, 220, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 229, 220, 0.06) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  mix-blend-mode: overlay;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

.site {
  width: min(100%, 1728px);
  margin: 0 auto;
  padding: 0 12px 72px;
}

.nav {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(100%, 1728px);
  padding: 12px;
  transform: translateX(-50%);
  background: rgba(16, 18, 17, 0.72);
  border-bottom: 1px solid rgba(232, 229, 220, 0.08);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 0.98;
}

.slash {
  width: 9px;
  height: 32px;
  background: var(--accent);
  transform: skewX(-28deg);
  box-shadow: 0 0 28px rgba(168, 22, 0, 0.5);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.nav-links a {
  padding: 9px 10px;
  border: 1px solid transparent;
  color: var(--paper-muted);
}

.nav-links a:hover {
  border-color: var(--line);
  color: var(--paper);
  background: rgba(232, 229, 220, 0.05);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  min-height: 86svh;
  padding-top: 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16, 18, 17, 0.98) 0%, rgba(16, 18, 17, 0.93) 42%, rgba(16, 18, 17, 0.58) 68%, rgba(16, 18, 17, 0.14) 100%),
    linear-gradient(0deg, rgba(16, 18, 17, 0.78) 0%, rgba(16, 18, 17, 0) 54%);
}

#planes {
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  height: 100%;
  opacity: 0.82;
  transform: translateX(0);
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  padding: 32px 0 42px;
}

.kicker {
  order: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--paper-muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--accent);
}

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

h1 {
  order: 1;
  max-width: min(12ch, 100%);
  font-size: 64px;
  font-weight: 300;
  line-height: 0.9;
}

.hero-deck {
  order: 2;
  width: 100%;
  max-width: 680px;
  margin-top: 24px;
  color: var(--paper-muted);
  font-size: 21px;
  overflow-wrap: break-word;
}

.hero-actions {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.button.secondary {
  background: rgba(232, 229, 220, 0.05);
  color: var(--paper);
}

.hero-status {
  position: relative;
  z-index: 2;
  grid-row: 1;
  display: none;
  grid-template-columns: 1fr;
  align-self: center;
  justify-self: end;
  gap: 12px;
  width: min(100%, 430px);
  max-width: 430px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-muted);
}

.status-line {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
}

.status-line strong {
  color: var(--paper);
  font-weight: 400;
}

main {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  row-gap: 96px;
}

main > section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  padding-top: 64px;
}

.section-label {
  grid-column: 1 / -1;
  margin-bottom: 24px;
  color: var(--paper-muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.section-title {
  grid-column: 1 / -1;
  max-width: 780px;
  font-size: 42px;
  font-weight: 300;
  line-height: 0.98;
}

.section-copy {
  grid-column: 1 / -1;
  max-width: 640px;
  margin-top: 20px;
  color: var(--paper-muted);
  font-size: 18px;
}

.section-subhead {
  grid-column: 1 / -1;
  max-width: 680px;
  margin-top: 34px;
}

.section-subhead span {
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.section-subhead p {
  margin-top: 10px;
  color: var(--paper-muted);
  font-size: 18px;
}

.section-subhead + .modules {
  margin-top: 24px;
}

.work-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--line);
  background: var(--line);
}

.work-step {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 178px;
  padding: 20px;
  background: rgba(23, 26, 24, 0.94);
  transition: box-shadow 180ms ease;
}

.work-step::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(135deg, rgba(168, 22, 0, 0.2), rgba(23, 26, 24, 0) 58%),
    linear-gradient(180deg, rgba(255, 138, 116, 0.16), rgba(255, 138, 116, 0) 34%);
  transition: opacity 180ms ease;
}

.work-step > * {
  position: relative;
  z-index: 1;
}

.work-step:focus-visible,
.work-step:focus-within {
  box-shadow:
    inset 0 0 0 1px rgba(255, 138, 116, 0.42),
    inset 0 4px 0 rgba(168, 22, 0, 0.8);
}

.work-step:focus-visible::before,
.work-step:focus-within::before {
  opacity: 1;
}

.work-step:focus-visible .step-index,
.work-step:focus-within .step-index {
  color: var(--paper);
}

@media (hover: hover) and (pointer: fine) {
  .work-step:hover {
    box-shadow:
      inset 0 0 0 1px rgba(255, 138, 116, 0.34),
      inset 0 4px 0 rgba(168, 22, 0, 0.72);
  }

  .work-step:hover::before {
    opacity: 1;
  }

  .work-step:hover .step-index {
    color: var(--paper);
  }
}

.step-index,
.module-index {
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 12px;
}

.work-step h3,
.module h3 {
  margin-top: 28px;
  font-size: 24px;
  font-weight: 300;
}

.work-step p,
.module p {
  margin-top: 14px;
  color: var(--paper-muted);
  font-size: 15px;
}

.split {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.terminal {
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(168, 22, 0, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(168, 22, 0, 0.11) 1px, transparent 1px),
    #111412;
  background-size: 34px 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--paper-muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.terminal-body {
  display: grid;
  gap: 18px;
  padding: 24px 14px 18px;
  font-family: var(--mono);
  font-size: 12px;
}

.system-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
}

.system-row span:first-child {
  color: var(--paper-muted);
}

.system-row span:last-child {
  color: var(--paper);
}

.signal {
  color: var(--green);
}

.capability-list {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.capability {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
  background: var(--bg-elevated);
}

.capability strong {
  font-weight: 400;
}

.capability span {
  color: var(--paper-muted);
}

.modules {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 42px;
}

.module {
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 26, 24, 0.72);
}

.module:nth-child(2) {
  border-radius: 2px;
}

.module:nth-child(3) {
  border-color: rgba(196, 232, 23, 0.46);
}

.proof {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--line);
  background: var(--line);
}

.proof-item {
  padding: 20px;
  background: var(--bg-elevated);
}

.proof-item strong {
  display: block;
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 400;
}

.proof-item span {
  display: block;
  margin-top: 12px;
  color: var(--paper-muted);
}

.contact-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.contact-panel h2 {
  max-width: 740px;
  font-size: 42px;
  font-weight: 300;
  line-height: 0.98;
}

.contact-copy > p:not(.section-label) {
  max-width: 600px;
  margin-top: 18px;
  color: var(--paper-muted);
  font-size: 18px;
}

.contact-copy > .section-label {
  margin-bottom: 24px;
}

.contact-actions {
  display: grid;
  gap: 18px;
  align-content: start;
}

.contact-actions .button.primary {
  width: fit-content;
}

.contact-email {
  font-size: 20px;
  text-decoration: underline;
  text-decoration-color: rgba(168, 22, 0, 0.78);
  text-underline-offset: 6px;
  word-break: break-word;
}

.contact-prompt {
  max-width: 480px;
  color: var(--paper-muted);
  font-size: 15px;
  line-height: 1.5;
}

.about-rows {
  grid-column: 1 / -1;
  display: grid;
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
  font-family: var(--mono);
  font-size: 13px;
}

.about-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  margin: 0;
  padding: 14px 18px;
  background: var(--bg-elevated);
}

.about-row dt {
  align-self: center;
  margin: 0;
  color: var(--paper-muted);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.about-row dd {
  margin: 0;
  color: var(--paper);
}

.site-footer {
  display: grid;
  gap: 24px;
  margin-top: 96px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 0.98;
}

.footer-meta {
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-muted);
}

.footer-meta a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(168, 22, 0, 0.78);
  text-underline-offset: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.footer-links a {
  padding: 6px 0;
  color: var(--paper-muted);
}

.footer-links a:hover {
  color: var(--paper);
}

.js .reveal {
  transform: translateY(18px);
  opacity: 0;
  transition: transform 520ms ease, opacity 520ms ease;
}

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

@media (min-width: 600px) {
  h1 {
    font-size: 84px;
  }

  .work-grid,
  .modules,
  .proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .site,
  .nav {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero,
  main,
  main > section {
    grid-template-columns: repeat(16, minmax(0, 1fr));
  }

  .hero-copy {
    grid-column: 1 / 12;
  }

  #planes {
    width: min(78vw, 1160px);
  }

  .section-label {
    grid-column: 1 / 5;
    margin-bottom: 0;
  }

  .section-title {
    grid-column: 5 / 15;
    font-size: 56px;
  }

  .section-copy {
    grid-column: 5 / 15;
  }

  .section-subhead {
    grid-column: 5 / 15;
  }

  .split {
    grid-template-columns: subgrid;
  }

  .split .terminal {
    grid-column: 1 / 9;
  }

  .split .split-copy {
    grid-column: 10 / -1;
    align-self: center;
  }

  .work-grid,
  .modules,
  .proof,
  .about-rows {
    grid-column: 5 / -1;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 16px 32px;
  }

  .footer-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-links {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-auto-flow: column;
    justify-content: start;
    gap: 4px 18px;
    align-items: center;
  }

  .contact-panel {
    grid-template-columns: subgrid;
  }

  .contact-copy {
    grid-column: 1 / 8;
  }

  .contact-actions {
    grid-column: 9 / -1;
  }
}

@media (min-width: 960px) {
  .hero,
  main,
  main > section {
    grid-template-columns: repeat(24, minmax(0, 1fr));
  }

  .nav-links {
    font-size: 12px;
  }

  h1 {
    font-size: 114px;
  }

  .hero-copy {
    grid-column: 1 / 15;
  }

  .section-label {
    grid-column: 1 / 6;
  }

  .section-title {
    grid-column: 8 / 22;
    font-size: 64px;
  }

  .section-copy {
    grid-column: 8 / 19;
    font-size: 20px;
  }

  .section-subhead {
    grid-column: 8 / 19;
  }

  .work-grid {
    grid-column: 8 / -1;
  }

  .split .terminal {
    grid-column: 1 / 13;
  }

  .split .split-copy {
    grid-column: 15 / 23;
  }

  .modules {
    grid-column: 8 / -1;
    grid-template-columns: 1.25fr 0.9fr 1fr;
  }

  .capability {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .proof {
    grid-column: 8 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about-rows {
    grid-column: 8 / 23;
  }

  .contact-copy {
    grid-column: 1 / 12;
  }

  .contact-actions {
    grid-column: 14 / 23;
  }
}

@media (min-width: 1100px) {
  .work-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 960px) and (max-width: 1099px) {
  h1 {
    font-size: 96px;
  }
}

@media (min-width: 1200px) {
  .hero-status {
    grid-column: 17 / -1;
    display: grid;
  }
}

@media (max-width: 520px) {
  .nav {
    align-items: flex-start;
  }

  .brand {
    font-size: 17px;
  }

  .nav-links a {
    padding: 9px 6px;
  }

  .nav-links a span {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-copy {
    align-self: start;
    max-width: calc(100vw - 24px);
    padding-top: 64px;
  }

  .kicker {
    order: 2;
    margin: 18px 0 0;
  }

  h1 {
    order: 0;
    font-size: 54px;
  }

  .hero-deck {
    order: 3;
    font-size: 18px;
  }

  .hero-actions {
    order: 4;
  }

  .section-title,
  .contact-panel h2 {
    font-size: 36px;
  }

  .terminal {
    min-height: 390px;
  }
}

@media (max-width: 759px) {
  #planes {
    opacity: 0.74;
    transform: translateX(18%);
  }
}

@media (max-width: 420px) {
  .hero-actions {
    width: min(100%, 280px);
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }
}

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

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