:root {
  --bg: #ffffff;
  --fg: #050505;
  --muted: #6f6f68;
  --line: #d9d8d1;
  --paper: #f7f6f1;
  --soft: #f0efea;
  --black: #050505;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  overflow-x: clip;
}

body {
  font-size: 16px;
  line-height: 1.45;
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--fg);
}

a:hover {
  color: #333333;
}

.page {
  min-height: 100vh;
  padding: 34px 46px 34px;
  overflow-x: clip;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 22px;
}

.wordmark {
  font-size: clamp(54px, 10vw, 144px);
  line-height: 0.82;
  letter-spacing: 0;
  font-weight: 700;
}

.submark {
  margin-top: 16px;
  color: var(--fg);
  font-size: 15px;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav a {
  color: var(--muted);
  border-bottom: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 58px;
  align-items: start;
  padding: 58px 0 34px;
}

.hero.single {
  display: block;
  max-width: 1040px;
}

.kicker {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 20px;
  font-weight: 700;
}

h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(44px, 6.2vw, 108px);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 700;
  overflow-wrap: break-word;
}

h2 {
  margin: 0 0 28px;
  font-size: clamp(32px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 700;
  overflow-wrap: break-word;
}

h3 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.thesis {
  max-width: 720px;
  margin-top: 34px;
  color: var(--fg);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.22;
}

.system-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 18px);
}

.diagram-preview {
  margin: 0;
  border: 1px solid var(--fg);
  background: var(--paper);
  min-height: 420px;
}

.diagram-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.operating-sheet {
  border-top: 1px solid var(--fg);
  padding-top: 34px;
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.map-panel {
  min-height: 360px;
  border: 1px solid var(--fg);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  position: relative;
  overflow: hidden;
}

.map-panel::before,
.map-panel::after {
  content: "";
  position: absolute;
  border: 2px solid var(--fg);
  background: var(--bg);
}

.map-panel::before {
  width: 18px;
  height: 18px;
  left: 16%;
  top: 28%;
}

.map-panel::after {
  width: 18px;
  height: 18px;
  right: 18%;
  bottom: 24%;
}

.route {
  position: absolute;
  left: 21%;
  top: 34%;
  width: 56%;
  height: 34%;
  border-top: 3px solid var(--fg);
  border-right: 3px solid var(--fg);
  transform: skewY(-10deg);
}

.asset-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--fg);
}

.asset-dot.one {
  left: 38%;
  top: 44%;
}

.asset-dot.two {
  left: 56%;
  top: 50%;
}

.asset-dot.three {
  left: 70%;
  top: 61%;
}

.stack-diagram {
  display: grid;
  gap: 14px;
}

.stack-row {
  border: 1px solid var(--fg);
  padding: 18px 18px 16px;
  background: var(--bg);
}

.stack-row.black {
  background: var(--black);
  color: var(--bg);
}

.stack-row p {
  margin: 0;
  color: var(--muted);
}

.stack-row.black p {
  color: #d2d2ca;
}

.band {
  margin-top: 70px;
  border-top: 1px solid var(--fg);
  padding-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.cell {
  min-height: 190px;
  border: 1px solid var(--line);
  padding: 18px;
  background: var(--bg);
}

.profile-list {
  margin-top: 70px;
  border-top: 1px solid var(--fg);
  padding-top: 34px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.profile-list .cell {
  min-height: 118px;
  display: flex;
  align-items: flex-end;
}

.cell p,
.copy p {
  color: var(--muted);
  margin: 0;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.paper-hero {
  border-bottom: 1px solid var(--fg);
  padding-bottom: 58px;
}

.paper-hero h1 {
  max-width: 1180px;
  font-size: clamp(42px, 5.8vw, 94px);
}

.paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.paper-gate p {
  max-width: 620px;
  color: #222222;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.42;
}

.unlocked-actions {
  margin-top: 54px;
}

.gated-content[hidden],
[hidden] {
  display: none !important;
}

.paper-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(38px, 6vw, 92px);
  align-items: start;
  margin-top: 54px;
}

.paper-toc {
  position: sticky;
  top: 28px;
  padding-top: 6px;
}

.paper-toc nav {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.paper-toc a {
  color: var(--muted);
  border-bottom: 0;
  font-size: 13px;
  line-height: 1.28;
}

.paper-toc a:hover {
  color: var(--fg);
}

.paper-article {
  max-width: 980px;
}

.paper-section {
  position: relative;
  border-top: 1px solid var(--fg);
  padding: 30px 0 52px;
}

.paper-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.paper-section h2 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(30px, 3.4vw, 58px);
  line-height: 0.98;
}

.paper-section p {
  max-width: 860px;
  margin: 0 0 22px;
  color: #222222;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.52;
}

.paper-section p:last-child {
  margin-bottom: 0;
}

.section-number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.paper-meta {
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--fg);
  padding: 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.button.black {
  background: var(--fg);
  color: var(--bg);
}

.home-hero {
  max-width: 1120px;
  padding-top: clamp(42px, 7vw, 82px);
  padding-bottom: clamp(46px, 7vw, 82px);
}

.home-hero h1 {
  max-width: 1040px;
}

.home-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--line);
}

.home-index span {
  min-width: 0;
  min-height: 148px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.home-index span:last-child {
  border-right: 0;
}

.list {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.list-item {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.list-item p {
  margin: 0;
  color: var(--muted);
}

.meta {
  margin-top: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--fg);
  padding-top: 28px;
}

form {
  max-width: 720px;
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

input,
textarea,
select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--fg);
  color: var(--fg);
  padding: 14px 12px;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-panel {
  margin-top: 70px;
  border-top: 1px solid var(--fg);
  padding-top: 28px;
  max-width: 760px;
}

.contact-form {
  margin-top: 18px;
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.compact-form {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-form button {
  align-self: stretch;
}

.honeypot {
  display: none;
}

.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;
}

button {
  justify-self: start;
  background: var(--fg);
  color: var(--bg);
  border: 0;
  padding: 14px 18px;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

footer {
  margin-top: 80px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

@media (max-width: 980px) {
  .hero,
  .operating-sheet,
  .meta,
  .paper-layout {
    grid-template-columns: 1fr;
  }

  .diagram-preview {
    min-height: 0;
  }

  .paper-toc {
    position: static;
  }

  .paper-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .home-index span:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 24px 20px 28px;
  }

  .top {
    display: block;
  }

  .nav {
    margin-top: 24px;
    gap: 14px;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 42px;
  }

  .wordmark {
    font-size: 54px;
    line-height: 0.86;
  }

  h1,
  .paper-hero h1 {
    max-width: 100%;
    font-size: 40px;
    line-height: 1;
    overflow-wrap: break-word;
  }

  h2,
  .paper-section h2 {
    font-size: 32px;
    line-height: 1.02;
  }

  .thesis,
  .paper-section p,
  .paper-gate p {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.42;
  }

  .link-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    max-width: none;
    justify-content: center;
    text-align: center;
  }

  button {
    width: 100%;
  }

  .paper-toc nav {
    grid-template-columns: 1fr;
  }

  .paper-section {
    padding-bottom: 42px;
  }

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

  .profile-list,
  .compact-form {
    grid-template-columns: 1fr;
  }

  .home-index {
    grid-template-columns: 1fr;
  }

  .home-index span {
    min-height: 84px;
    border-right: 0;
  }

  footer {
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav {
    gap: 10px;
    font-size: 12px;
  }

  h1,
  .paper-hero h1 {
    font-size: 34px;
  }

  .thesis,
  .paper-section p,
  .paper-gate p {
    font-size: 18px;
  }
}
