:root {
  --paper: #f2f2ee;
  --paper-2: #e9e9e3;
  --ink: #111210;
  --ink-2: #4a4b46;
  --ink-3: #85867f;
  --rule: #cfd0c8;
  --accent: #4d0099;
  --accent-deep: #3a0073;
  --accent-light: #c4a6f2;
  --max: 1200px;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 26px; height: 26px; color: var(--ink); }
.brand-word { font-weight: 800; font-stretch: 112%; letter-spacing: 0.06em; font-size: 16px; }
.nav-links { display: flex; align-items: stretch; height: 100%; font-size: 15px; }
.nav-links a { display: flex; align-items: center; padding: 0 20px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta { background: var(--ink); color: var(--paper); margin-left: 12px; }
.nav-links .nav-cta:hover { background: var(--accent); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center;
  padding: 14px 22px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 15px;
  border: 1px solid var(--accent);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Hero */
.hero { padding: 40px 0 88px; }
.meta-row {
  display: flex; gap: 32px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.08em; color: var(--ink-3);
  padding-bottom: 14px; border-bottom: 1px solid var(--rule);
}
.meta-row .status { color: var(--accent); }
.meta-row .status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; background: var(--accent); }
.hero h1 {
  margin-top: 64px;
  font-size: clamp(44px, 7.6vw, 104px);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-foot {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end;
  margin-top: 48px;
}
.lede { max-width: 560px; font-size: 20px; color: var(--ink-2); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Diagram */
.diagram {
  display: grid; grid-template-columns: 1fr 64px 1fr 64px 1fr;
  align-items: stretch;
}
.block {
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px 24px 28px;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.block-key { background: var(--accent); border-color: var(--accent); color: #fff; }
.block-tag { font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); }
.block-key .block-tag { color: var(--accent-light); }
.block-name { font-size: 26px; font-weight: 700; font-stretch: 90%; margin-top: 10px; }
.block-desc { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.block-key .block-desc { color: #e6dcf7; }
.wire { position: relative; align-self: center; height: 1px; background: var(--ink); }
.wire::after {
  content: ""; position: absolute; right: 0; top: -4px;
  border-left: 7px solid var(--ink); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
}

/* Sections */
.section { padding: 96px 0; border-top: 1px solid var(--ink); }
.sec-head {
  display: flex; gap: 16px; align-items: baseline;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 40px;
}
.sec-num { color: var(--accent); }
.sec-label { color: var(--ink-3); }
.section h2, .contact h2 {
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 700; font-stretch: 85%;
  line-height: 1.02; letter-spacing: -0.015em;
}
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }

/* Contact */
.contact { background: var(--ink); color: var(--paper); padding: 96px 0 104px; border-top: 4px solid var(--accent); }
.sec-head-inv .sec-label { color: #8d8e87; }
.sec-head-inv .sec-num { color: var(--accent-light); }
.contact-lede { margin-top: 24px; max-width: 520px; color: #b9bab3; font-size: 18px; }
.contact-side { padding-top: 6px; }
.contact-mail {
  display: inline-block; font-size: clamp(22px, 2.6vw, 32px); font-weight: 600;
  border-bottom: 2px solid var(--accent-light); padding-bottom: 4px;
}
.contact-mail:hover { color: var(--accent-light); }

/* Footer */
.footer { background: var(--ink); color: #8d8e87; border-top: 1px solid #33342f; padding: 24px 0; font-size: 12px; letter-spacing: 0.06em; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 960px) {
  .split, .hero-foot { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .meta-row { gap: 16px; }
  .hero h1 { margin-top: 40px; }
  .lede { font-size: 18px; }
  .diagram { grid-template-columns: 1fr; }
  .wire { width: 1px; height: 32px; margin: 0 auto; }
  .wire::after { right: auto; top: auto; bottom: 0; left: -4px; border: 0;
    border-top: 7px solid var(--ink); border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; }
  .section, .contact { padding: 64px 0; }
}

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