* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cold: #0b1116;
  --panel: #131e27;
  --panel-hover: #182530;
  --rail: #22323e;
  --rail2: #2e4252;
  --steel: #7a92a4;
  --body: #9db2c1;
  --white: #e9f1f7;
  --live: #ff6b2c;
  --live-bg: rgba(255, 107, 44, 0.09);

  --shell: 1000px;
  --gutter: 150px;
  --rowpad: 5rem;

  --display: 'Martian Mono', ui-monospace, monospace;
  --prose: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --data: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--prose);
  color: var(--body);
  line-height: 1.6;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  background:
    radial-gradient(ellipse 85% 38% at 50% -8%, rgba(255, 107, 44, 0.05) 0%, transparent 62%),
    var(--cold);
  background-repeat: no-repeat;
}

a { color: var(--white); }
code { font-family: var(--data); font-size: 0.92em; color: var(--white); }

:focus-visible { outline: 2px solid var(--live); outline-offset: 3px; border-radius: 1px; }

.sr-status {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ── Top bar ── */

.topbar {
  max-width: var(--shell); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--rail);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand span { font-family: var(--data); font-size: 0.82rem; color: var(--white); letter-spacing: 0.02em; }
.brand-mark { flex-shrink: 0; }
.topbar-link {
  font-family: var(--data); font-size: 0.78rem; color: var(--steel);
  text-decoration: none; transition: color 0.18s;
}
.topbar-link:hover { color: var(--live); }

/* ── Page spine and section labels ── */

.record { position: relative; max-width: var(--shell); margin: 0 auto; }

/* The spine is hot at the top. It becomes cool as it goes down. */
.record::before {
  content: ''; position: absolute; top: 0; bottom: 0;
  left: calc(var(--gutter) - 1px); width: 1px;
  background: linear-gradient(to bottom,
    var(--live) 0%, var(--rail2) 16%, var(--rail) 55%, var(--rail) 92%, transparent 100%);
  transform-origin: top; animation: draw 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.row {
  position: relative;
  display: grid; grid-template-columns: var(--gutter) 1fr;
  padding: var(--rowpad) 0;
}
.row + .row .val { border-top: 1px solid var(--rail); padding-top: var(--rowpad); margin-top: calc(var(--rowpad) * -1); }

.key {
  font-family: var(--data); font-size: 0.74rem; font-weight: 400;
  color: var(--steel); letter-spacing: 0.05em;
  text-align: right; padding-right: 1.7rem; line-height: 1;
  padding-top: 0.34rem;
}
.hero .key { color: var(--live); }

/* A node sits on the spine at each section. */
.node {
  position: absolute; left: calc(var(--gutter) - 1px); top: calc(var(--rowpad) + 0.1rem);
  width: 7px; height: 7px; margin-left: -3px;
  background: var(--cold); border: 1px solid var(--rail2);
}
.hero .node { background: var(--live); border-color: var(--live); }

.val { min-width: 0; padding-left: 2.1rem; }

/* ── Identity ── */

.hero { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.over {
  font-family: var(--data); font-size: 0.76rem; color: var(--steel);
  letter-spacing: 0.05em; margin-bottom: 1.6rem;
}
h1 {
  font-family: var(--display); font-weight: 600; font-stretch: 100%;
  font-size: clamp(3rem, 13.5vw, 9rem); line-height: 0.92; color: var(--white);
  letter-spacing: -0.03em; margin-bottom: 1.1rem;
}
h1 .as {
  font-size: 0.26em; font-weight: 500; color: var(--live);
  letter-spacing: 0.06em; vertical-align: 1.92em; margin-right: 0.16em;
}
.org {
  font-family: var(--prose); font-weight: 600; font-stretch: 88%;
  font-size: clamp(1.4rem, 3.4vw, 1.95rem); color: var(--white);
  letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 1.3rem;
}
.lead { font-size: 1.06rem; color: var(--body); max-width: 44ch; margin-bottom: 2.2rem; }
.acts { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ── Buttons ── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--prose); font-size: 0.9rem; font-weight: 500;
  color: var(--white); text-decoration: none; cursor: pointer;
  padding: 0.6rem 1.15rem; border: 1px solid var(--live); border-radius: 3px;
  background: var(--live-bg); transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.btn:hover { background: rgba(255, 107, 44, 0.17); }
.btn.ghost { border-color: var(--rail2); color: var(--body); background: transparent; }
.btn.ghost:hover { color: var(--white); border-color: var(--steel); background: rgba(255, 255, 255, 0.025); }

.mini {
  font-family: var(--data); font-size: 0.68rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.09em; cursor: pointer;
  color: var(--steel); background: transparent;
  border: 1px solid var(--rail2); border-radius: 2px; padding: 0.2rem 0.5rem;
  transition: color 0.18s, border-color 0.18s;
}
.mini:hover { color: var(--white); border-color: var(--steel); }
.mini.done { color: var(--live); border-color: var(--live); }

/* ── Shared section elements ── */

h2 {
  font-family: var(--prose); font-weight: 600; font-stretch: 88%;
  font-size: clamp(1.55rem, 3.4vw, 2rem); color: var(--white);
  letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 1rem;
}
.say { font-size: 1rem; color: var(--body); max-width: 54ch; }
.say a { color: var(--live); text-decoration-color: rgba(255, 107, 44, 0.4); text-underline-offset: 3px; }
.say a:hover { text-decoration-color: var(--live); }
.tail { margin-top: 1.8rem; }

/* ── Service cards ── */

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 2.2rem; }
.card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--rail); border-radius: 3px;
  padding: 1.5rem 1.5rem 1.6rem;
  transition: background 0.22s, border-color 0.22s;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--live); transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover { background: var(--panel-hover); border-color: var(--rail2); }
.card:hover::before { transform: scaleX(1); }
.card h3 {
  font-family: var(--prose); font-weight: 600; font-stretch: 88%;
  font-size: 1.12rem; color: var(--white); letter-spacing: -0.01em; margin-bottom: 0.5rem;
}
.card p { font-size: 0.92rem; color: var(--body); line-height: 1.55; }

/* ── Numbers ── */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.2rem; }
.stat {
  background: var(--panel); border: 1px solid var(--rail); border-radius: 3px;
  padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.3rem;
}
.stat-num {
  font-family: var(--display); font-weight: 600; font-stretch: 90%;
  font-size: 1.3rem; color: var(--white); letter-spacing: -0.02em; line-height: 1.2;
}
.stat-tag { font-family: var(--data); font-size: 0.72rem; color: var(--steel); }

/* ── Prefixes ── */

.peer {
  margin-top: 1.1rem;
  background: var(--panel); border: 1px solid var(--rail); border-radius: 3px; overflow: hidden;
}
.peer-head {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--rail);
}
.peer-title {
  font-family: var(--prose); font-weight: 600; font-stretch: 88%;
  font-size: 0.95rem; color: var(--white); margin-right: auto;
}
.fams { display: grid; grid-template-columns: 1fr 1fr; }
.pfx { list-style: none; padding: 0.7rem 0; }
.pfx + .pfx { border-left: 1px solid var(--rail); }
.pfx li {
  font-family: var(--data); font-size: 0.85rem; color: var(--white);
  padding: 0.26rem 1.1rem; white-space: nowrap; overflow-x: auto;
}
.peer-foot {
  font-size: 0.85rem; color: var(--steel);
  padding: 0.8rem 1.1rem; border-top: 1px solid var(--rail);
}

/* ── Term lists ── */

.terms { margin-top: 1.4rem; }
.term {
  display: grid; grid-template-columns: 150px 1fr; gap: 1.2rem;
  padding: 0.68rem 0; border-top: 1px solid var(--rail);
}
.term:last-child { border-bottom: 1px solid var(--rail); }
.term dt { font-size: 0.94rem; color: var(--steel); }
.term dd { font-family: var(--data); font-size: 0.88rem; color: var(--white); }

/* ── Facility ── */

.site { margin-top: 2.2rem; border-left: 2px solid var(--live); padding-left: 1.4rem; }
.site h3 {
  font-family: var(--prose); font-weight: 600; font-stretch: 88%;
  font-size: 1.28rem; color: var(--white); letter-spacing: -0.01em; line-height: 1.25;
}
.site-loc { font-family: var(--data); font-size: 0.8rem; color: var(--steel); margin-top: 0.35rem; }

/* ── Footer ── */

footer { border-top: 1px solid var(--rail); margin-top: 1rem; }
.foot-inner { max-width: var(--shell); margin: 0 auto; padding: 2.6rem 0 3.2rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-bottom: 1.2rem; }
.foot-links a {
  font-family: var(--data); font-size: 0.8rem; color: var(--steel);
  text-decoration: none; transition: color 0.18s;
}
.foot-links a:hover { color: var(--live); }
.foot-meta {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  font-family: var(--data); font-size: 0.75rem; color: var(--steel);
}
.foot-meta .sep { color: var(--rail2); }

/* ── Motion: one animation when the page loads ── */

@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero .val > * { animation: rise 620ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .over { animation-delay: 180ms; }
.hero h1 { animation-delay: 260ms; }
.hero .org { animation-delay: 360ms; }
.hero .lead { animation-delay: 440ms; }
.hero .acts { animation-delay: 520ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .card::before { display: none; }
}

/* ── Small screens ── */

@media (max-width: 860px) {
  :root { --gutter: 1px; --rowpad: 3.4rem; }

  .row { grid-template-columns: 1fr; }
  .val { padding-left: 1.5rem; }
  .key {
    text-align: left; padding-right: 0; padding-top: 0;
    padding-left: 1.5rem; margin-bottom: 1.1rem;
  }
  .row + .row .key {
    border-top: 1px solid var(--rail);
    padding-top: var(--rowpad); margin-top: calc(var(--rowpad) * -1);
  }
  .row + .row .val { border-top: 0; padding-top: 0; margin-top: 0; }
  .node { top: calc(var(--rowpad) + 0.05rem); }

  .hero { padding-top: 3.6rem; }
  .cards { grid-template-columns: 1fr; gap: 0.85rem; }
  .stats { grid-template-columns: 1fr; gap: 0.6rem; }
  .stat { flex-direction: row; align-items: baseline; gap: 0.7rem; padding: 0.9rem 1.1rem; }
  .fams { grid-template-columns: 1fr; }
  .pfx + .pfx { border-left: 0; border-top: 1px solid var(--rail); }
  .term { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media (max-width: 460px) {
  .foot-links { gap: 0.9rem 1.2rem; }
  .site { padding-left: 1.1rem; }
}
