:root {
  --ink: #10100f;
  --paper: #f7f7f2;
  --paper-2: #e7e3d8;
  --line: #cbc5b7;
  --green: #1f8f6a;
  --red: #d9573b;
  --blue: #355d7d;
  --gold: #b58b32;
  --muted: #5f5c54;
  --shadow: 0 24px 70px rgba(16, 16, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Avenir Next, Aptos, Segoe UI, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  color: var(--paper);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-elevated {
  background: rgba(247, 247, 242, 0.92);
  border-bottom: 1px solid rgba(16, 16, 15, 0.12);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  font-family: Georgia, Cambria, serif;
  font-weight: 700;
}

.nav {
  gap: 22px;
  font-size: 0.92rem;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.nav-pill {
  border: 1px solid currentColor;
  padding: 9px 13px;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line);
}

#signal-map,
.hero-shade {
  position: absolute;
  inset: 0;
}

#signal-map {
  width: 100%;
  height: 100%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 16, 15, 0.96), rgba(16, 16, 15, 0.68) 52%, rgba(16, 16, 15, 0.2)),
    repeating-linear-gradient(0deg, rgba(247, 247, 242, 0.04) 0 1px, transparent 1px 88px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1180px) / 2));
  padding-top: 78px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

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

h1,
h2 {
  font-family: Georgia, Cambria, Times New Roman, serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: 5.2rem;
}

h2 {
  margin-bottom: 22px;
  font-size: 3rem;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.hero-copy {
  max-width: 650px;
  color: rgba(247, 247, 242, 0.82);
  font-size: 1.16rem;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

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

.button.ghost {
  color: var(--paper);
}

.dark-button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.copy-button {
  background: transparent;
  color: var(--ink);
}

.signal-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(247, 247, 242, 0.16);
  color: rgba(247, 247, 242, 0.78);
  font-size: 0.86rem;
}

.signal-strip span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  border-right: 1px solid rgba(247, 247, 242, 0.14);
}

.section {
  padding: 88px 32px;
}

.section-heading,
.system-grid,
.work-layout,
.contact-panel,
.site-footer {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 50px;
  align-items: end;
}

.section-heading h2 {
  max-width: 700px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
  border: 1px solid var(--line);
}

.system-item {
  min-height: 260px;
  background: var(--paper);
  padding: 28px;
}

.item-index {
  color: var(--green);
  font-family: Georgia, Cambria, Times New Roman, serif;
  font-size: 2.1rem;
}

.system-item p,
.work-layout p,
.contact-panel p {
  color: var(--muted);
}

.work-section {
  background: #20201d;
  color: var(--paper);
}

.work-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 60px;
  align-items: center;
}

.work-layout p {
  color: rgba(247, 247, 242, 0.72);
  max-width: 520px;
}

.workbench {
  border: 1px solid rgba(247, 247, 242, 0.18);
  background: rgba(247, 247, 242, 0.08);
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.16);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  background: var(--line);
  border-radius: 50%;
}

.terminal-bar span:nth-child(1) {
  background: var(--red);
}

.terminal-bar span:nth-child(2) {
  background: var(--gold);
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

.terminal-line {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 88px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.12);
}

.terminal-line:last-child {
  border-bottom: 0;
}

.terminal-line strong {
  color: var(--gold);
  font-family: Georgia, Cambria, Times New Roman, serif;
  font-size: 1.6rem;
}

.terminal-line em {
  color: rgba(247, 247, 242, 0.58);
  font-style: normal;
  text-align: right;
}

.contact-section {
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(16, 16, 15, 0.06) 49% 50%, transparent 50%),
    var(--paper-2);
  background-size: 44px 44px, auto;
}

.contact-panel {
  padding: 64px 0;
}

.contact-panel h2,
.contact-panel p {
  max-width: 720px;
}

.copy-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--green);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding: 18px;
  }

  .nav {
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.84rem;
  }

  .nav a:not(.nav-pill) {
    display: none;
  }

  .nav-pill {
    max-width: 205px;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-inner {
    width: min(100% - 36px, 620px);
    margin: 0 18px;
    padding-top: 86px;
    padding-bottom: 92px;
  }

  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.15rem;
  }

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

  .signal-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-strip span {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.76rem;
  }

  .section {
    padding: 64px 18px;
  }

  .section-heading,
  .system-grid,
  .work-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .system-grid {
    display: grid;
  }

  .system-item {
    min-height: 210px;
  }

  .terminal-line {
    grid-template-columns: 42px 1fr;
  }

  .terminal-line em {
    grid-column: 2;
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}

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