:root {
  color-scheme: light;
  --bg: #eae9e0;
  --paper: #f8f7ee;
  --panel: #f1f0e6;
  --border: #a5a598;
  --strong: #33362e;
  --ink: #181a16;
  --muted: #4e5247;
  --dark: #181a18;
  --dark-muted: #c3c7b9;
  --accent: #f5da48;
  --accent-hover: #ffe96d;
  --green: #28512c;
  --error: #892d24;
  --chart-grid: #5b6052;
  --chart-memory: #a9cfb3;
  --chart-read: #9dc8f1;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --display: "Bahnschrift", "DIN Alternate", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-inline-size: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid #564700; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1248px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 10px 16px; color: var(--ink); background: var(--accent); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  color: var(--paper);
  background: var(--dark);
  border-block-start: 3px solid var(--accent);
  border-block-end: 1px solid #3c4036;
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 63px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font: 800 21px/1 var(--display);
  letter-spacing: .15em;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.brand-mark::before {
  content: "";
  width: 17px;
  height: 17px;
  background:
    linear-gradient(90deg, var(--dark) 0 4px, transparent 4px 13px, var(--dark) 13px),
    linear-gradient(51deg, transparent 41%, var(--dark) 42% 58%, transparent 59%);
}
.header-inner nav { display: flex; align-items: stretch; height: 100%; }
.header-inner nav a {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 42px;
  padding-inline: clamp(12px, 2vw, 27px);
  border-inline-start: 1px solid #363930;
  color: #d2d3c8;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
}
.header-inner nav a:last-child { border-inline-end: 1px solid #363930; }
.header-inner nav a::after { content: ""; position: absolute; inset: auto 10px 0; height: 3px; background: transparent; }
.header-inner nav a:hover, .header-inner nav a:focus-visible { background: #2b2e25; color: var(--paper); }
.header-inner nav a:hover::after, .header-inner nav a:focus-visible::after,
body:has(#services:target) nav a[href="#services"]::after,
body:has(#resources:target) nav a[href="#resources"]::after,
body:has(#connection:target) nav a[href="#connection"]::after { background: var(--accent); }
.site-header :focus-visible { outline-color: var(--accent); outline-offset: 2px; }
.account { display: flex; align-items: center; justify-self: end; gap: 12px; min-width: 0; }
.account-name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dark-muted); font: 12px/1.4 var(--mono); }

.button {
  position: relative;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  transition: background-color .16s, border-color .16s, color .16s;
}
.button span { font-size: 1.1em; }
.button-small { gap: 7px; min-height: 38px; padding-inline: 12px; font-size: 13px; }
.button-primary { background: var(--accent); border-color: var(--strong); color: var(--ink); padding-inline-end: 21px; }
.button-primary::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, transparent 0 44%, var(--strong) 45% 53%, var(--panel) 54%);
  pointer-events: none;
}
.button-primary:hover { background: var(--accent-hover); }
.button-outline { background: transparent; border-color: #7e8072; color: var(--ink); }
.button-outline:hover { border-color: var(--strong); background: #dddccf; }
.site-header .button-outline { color: var(--paper); border-color: #666957; }
.site-header .button-outline:hover { color: var(--accent); border-color: var(--accent); background: #252821; }
.nav-icon { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  min-height: 415px;
  margin-top: 28px;
  border: 1px solid var(--strong);
  background: var(--panel);
}
.hero::before, .login-screen::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(90deg, #777d631a 1px, transparent 1px), linear-gradient(#777d631a 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(135deg, #000 4%, #0009 46%, transparent 76%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: min(180px, 28%);
  height: 6px;
  background: linear-gradient(120deg, var(--accent) 0 95%, transparent 95%);
  pointer-events: none;
}
.hero-content {
  grid-area: 1 / 1;
  align-self: center;
  padding: clamp(29px, 5vw, 64px);
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 700 12px/1.5 var(--mono); letter-spacing: .12em; }
.hero-dot { width: 17px; height: 9px; background: var(--accent); border: 1px solid #5f5420; clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); }
.hero h1 {
  margin-top: 20px;
  font: 800 clamp(42px, 5.05vw, 76px)/1.02 var(--display);
  letter-spacing: -.075em;
}
.hero h1 span { display: block; }
.hero-copy { margin-top: 21px; max-width: 35ch; color: var(--muted); font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-art {
  z-index: -1;
  grid-area: 1 / 2;
  min-height: 100%;
  border-inline-start: 1px solid var(--strong);
}
.orbit-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #10130e;
  background-image:
    linear-gradient(145deg, #20221b75, transparent 47%),
    url("/nexus-static/assets/nexus-orbit.webp");
  background-position: center, right 48%;
  background-size: cover, auto 109%;
  background-repeat: no-repeat;
}
.orbit-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #c7d1a812 1px, transparent 1px),
    linear-gradient(#c7d1a812 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(130deg, #000, #0004 60%, transparent);
}
.orbit-panel::after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid #c7d1a852;
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 23px 2px,
    linear-gradient(var(--accent), var(--accent)) left top / 2px 23px,
    linear-gradient(#dee4c2, #dee4c2) right bottom / 23px 2px,
    linear-gradient(#dee4c2, #dee4c2) right bottom / 2px 23px;
  background-repeat: no-repeat;
  pointer-events: none;
}

main[id], .section { scroll-margin-top: 110px; }
.section { margin-top: 40px; }
.section-heading {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
  padding: 0 0 12px 13px;
  border-bottom: 1px solid var(--strong);
}
.section-heading::before { content: ""; position: absolute; top: 4px; left: 0; width: 4px; height: 22px; background: var(--accent); border-bottom: 4px solid var(--strong); }
.section-heading h2 { font: 800 clamp(23px, 2.5vw, 32px)/1.15 var(--display); letter-spacing: -.04em; }
.section-heading p { color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.6; }
.health-tools { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; text-align: right; }
.service-grid, .resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { min-width: 0; border: 1px solid var(--border); background: var(--paper); }
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 19px 0;
  border-top: 2px solid var(--strong);
  transition: border-color .16s, background-color .16s;
}
.service::after { content: ""; position: absolute; top: -2px; left: 0; width: 42px; height: 2px; background: var(--accent); }
.service:hover, .service:focus-within { border-color: var(--strong); background: #fffdf2; }
.service-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; }
.service-icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid var(--strong); background: #eeeee4; color: var(--ink); font: 23px/1 var(--mono); }
.tavern-icon { background: var(--accent); }
.api-icon { background: var(--dark); color: var(--accent); font-size: 19px; }
.status { display: inline-flex; gap: 7px; align-items: center; min-height: 27px; padding: 3px 8px; border: 1px solid #a1a192; color: var(--muted); font-size: 12px; line-height: 1.3; }
.status-dot { flex: 0 0 auto; width: 6px; height: 6px; background: currentColor; }
.status[data-state="online"] { color: var(--green); background: #e7eee1; border-color: #8da188; }
.status[data-state="offline"] { color: var(--error); background: #f6e8e1; border-color: #b99183; }
.service h3 { margin-bottom: 7px; font: 800 clamp(20px, 2vw, 26px)/1.16 var(--display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.service-name-detail { margin-left: 4px; color: var(--muted); font-size: 14px; font-weight: 650; white-space: nowrap; }
.service p { margin-bottom: 16px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.card-footer { display: flex; flex-wrap: wrap; gap: 0 9px; align-items: center; justify-content: space-between; min-height: 48px; border-top: 1px solid #c9c9bc; margin-top: auto; }
.service-detail { color: var(--muted); font: 11px/1.5 var(--mono); overflow-wrap: anywhere; }
.text-link { display: inline-flex; gap: 7px; align-items: center; min-height: 42px; color: var(--ink); font-size: 14px; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link span { display: grid; place-items: center; width: 18px; height: 18px; background: var(--accent); }

.resource-card {
  padding: 17px 18px 14px;
  border-color: #454a3e;
  border-top: 2px solid var(--accent);
  background: var(--dark);
  color: var(--paper);
}
.resource-card h3, .service-memory h3 { font-size: 15px; font-weight: 700; }
#resource-status { flex-shrink: 0; max-width: 55%; }
.resource-value, .disk-rates { display: flex; min-height: 46px; margin-top: 8px; align-items: center; }
.resource-value { font: 700 clamp(26px, 3vw, 38px)/1.12 var(--mono); letter-spacing: -.06em; }
.resource-value[data-level="high"] { color: #ffba79; }
.resource-detail { color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.resource-card .resource-detail, .resource-card .disk-legend, .chart-times { color: var(--dark-muted); }
.disk-rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.disk-rates strong { display: block; margin-top: 3px; font: 650 clamp(15px, 1.7vw, 22px)/1.2 var(--mono); letter-spacing: -.045em; }
.disk-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.disk-legend::before { content: ""; flex-shrink: 0; width: 14px; height: 2px; background: var(--chart-read); }
.legend-write::before { background: var(--accent); }
.resource-chart { display: block; width: 100%; height: 76px; margin-top: 13px; }
.chart-times { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; padding-top: 5px; font: 11px/1.5 var(--mono); }
.chart-times span:last-child { text-align: end; }
.service-memory { margin-top: 12px; padding: 17px 19px; }
.service-memory > p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.memory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; list-style: none; padding: 0; margin: 12px 0 0; }
.memory-list:empty { display: none; }
.memory-row { display: grid; grid-template-columns: minmax(66px, 1fr) minmax(28px, 1fr) minmax(70px, auto); align-items: center; gap: 9px; font-size: 13px; overflow-wrap: anywhere; }
.memory-row code { color: var(--muted); text-align: end; font-family: var(--mono); white-space: nowrap; }
.memory-row progress { appearance: none; width: 100%; height: 5px; border: 0; background: #cfcec1; }
.memory-row progress::-webkit-progress-bar { background: #cfcec1; }
.memory-row progress::-webkit-progress-value { background: #806707; }
.memory-row progress::-moz-progress-bar { background: #806707; }

.connection-card { padding: 0 20px; border-top: 2px solid var(--strong); }
.endpoint-row, .key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.endpoint-row { padding-block: 17px; }
.connection-card h3 { font-size: 14px; font-weight: 700; }
.endpoint-row code, .key-row code { display: block; margin-top: 6px; font: 13px/1.5 var(--mono); overflow-wrap: anywhere; }
.endpoint-row code { color: #624b03; }
.keys-area, .models-area { padding: 17px 0; border-top: 1px solid #c9c9bc; }
.models-heading, .model-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#models-message { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.models-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 11px 0 0; padding: 0; }
.model-row { min-width: 0; padding: 6px 8px 6px 11px; background: var(--panel); border: 1px solid var(--border); }
.model-row code { min-width: 0; color: var(--ink); font: 13px/1.5 var(--mono); overflow-wrap: anywhere; }
.model-row button { flex-shrink: 0; min-height: 34px; }
.keys-message { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.keys-list { list-style: none; padding: 0; margin: 9px 0 0; }
.key-row { padding-block: 8px; }
.key-row + .key-row { border-top: 1px solid #c9c9bc; }
.key-row .key-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex-shrink: 0; }

.site-footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 36px; padding: 18px 0 28px; border-top: 1px solid var(--strong); color: var(--muted); font: 12px/1.5 var(--mono); }
.site-footer span:first-child { color: var(--ink); font-weight: 800; letter-spacing: .16em; }
.login-screen { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 100svh; padding: 30px 16px; background: var(--bg); }
.login-screen::before { position: fixed; }
.login-shell {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1fr);
  width: min(848px, 100%);
  border: 1px solid var(--strong);
  border-top: 5px solid var(--accent);
  background: var(--panel);
}
.login-dialog { padding: clamp(22px, 5vw, 52px); }
.login-art { border-inline-start: 1px solid var(--strong); background-size: cover, auto 102%; }
.dialog-top { margin-bottom: 29px; }
.login-dialog h1 { font: 800 clamp(26px, 4vw, 36px)/1.18 var(--display); letter-spacing: -.055em; }
.login-dialog p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.login-dialog form { display: grid; gap: 8px; margin-top: 19px; }
.login-dialog label { font-size: 13px; font-weight: 650; }
.login-dialog input { width: 100%; min-height: 45px; border: 1px solid #77796c; border-radius: 0; padding-inline: 10px; background: var(--paper); color: var(--ink); }
.login-dialog input + label { margin-top: 6px; }
.login-dialog form button { justify-self: start; min-width: 120px; margin-top: 9px; }
.login-dialog .form-error { color: var(--error); }
.toast { position: fixed; z-index: 6; inset: auto 20px 20px auto; max-width: min(400px, calc(100% - 40px)); padding: 11px 16px; border: 1px solid #717559; border-left: 4px solid var(--accent); background: var(--dark); color: var(--paper); font-size: 14px; }

@media (min-width: 1120px) {
  :root { --rail: 76px; }
  body:not(.login-screen) { padding-inline-start: var(--rail); }
  .site-header { margin-inline-start: calc(-1 * var(--rail)); padding-inline-start: var(--rail); }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-inner nav {
    position: fixed;
    inset: 67px auto 0 0;
    flex-direction: column;
    width: var(--rail);
    height: auto;
    padding-top: 23px;
    border-inline-end: 1px solid var(--border);
    background: var(--paper);
  }
  .header-inner nav a {
    justify-items: center;
    gap: 7px;
    min-height: 64px;
    padding: 12px 2px;
    border: 0;
    color: var(--muted);
    font-size: 12px;
  }
  .header-inner nav a:last-child { border: 0; }
  .header-inner nav a::after { inset: 9px auto 9px 0; width: 4px; height: auto; }
  .header-inner nav a:hover, .header-inner nav a:focus-visible,
  body:has(#services:target) nav a[href="#services"],
  body:has(#resources:target) nav a[href="#resources"],
  body:has(#connection:target) nav a[href="#connection"] { background: #e7e6da; color: var(--ink); }
  .header-inner nav a:focus-visible { outline-color: #564700; outline-offset: -3px; }
  .nav-icon { display: block; width: 19px; height: 19px; background: currentColor; }
  .nav-services {
    background: conic-gradient(currentColor 25%, transparent 0 50%, currentColor 0 75%, transparent 0) top left / 20px 20px;
    mask-image: linear-gradient(#000 8px, transparent 8px 11px, #000 11px);
  }
  .nav-resources { clip-path: polygon(0 77%, 19% 77%, 19% 57%, 42% 57%, 42% 36%, 65% 36%, 65% 14%, 100% 14%, 100% 31%, 82% 31%, 82% 54%, 58% 54%, 58% 74%, 36% 74%, 36% 94%, 0 94%); }
  .nav-connection { clip-path: polygon(5% 23%, 15% 12%, 49% 46%, 15% 80%, 5% 69%, 29% 46%, 5% 23%, 100% 23%, 100% 84%, 63% 84%, 63% 70%, 100% 70%, 100% 23%); }
}

@media (max-width: 920px) {
  .shell { width: calc(100% - 48px); }
  .hero-content { padding: 34px 31px; }
  .service { padding-inline: 15px; }
  .card-footer { align-content: center; }
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 58px; gap: 12px; }
  .account-name { display: none; }
  .hero { min-height: 360px; margin-top: 20px; }
  .hero-content { padding: 29px 19px 34px; }
  .hero h1 { font-size: clamp(39px, 6.2vw, 53px); }
  .hero-copy { font-size: 15px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { padding-inline: 12px; gap: 7px; }
  .section { margin-top: 32px; }
  .service-grid, .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-disk { grid-column: 1 / -1; }
  .memory-list, .models-list { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding-top: 8px; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; margin-top: 7px; border-top: 1px solid #363930; }
  .header-inner nav a { min-height: 39px; padding-inline: 12px; font-size: 13px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-content { padding: 24px 19px 26px; }
  .hero-art { grid-area: 2 / 1; min-height: clamp(156px, 51vw, 252px); border-inline-start: 0; border-top: 1px solid var(--strong); }
  .hero h1 { font-size: clamp(38px, 10vw, 54px); }
  .hero-copy { margin-top: 14px; }
  .hero-actions { margin-top: 19px; }
  .orbit-panel::after { inset: 10px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 23px; }
  .health-tools { flex-wrap: wrap; justify-content: flex-end; }
  .service-grid, .resource-grid, .login-shell { grid-template-columns: 1fr; }
  .service, .connection-card, .resource-card, .service-memory { padding-inline: 14px; }
  .key-row { align-items: start; flex-direction: column; }
  .key-row .key-actions { justify-content: flex-start; flex-shrink: 1; }
  .login-art { min-height: clamp(133px, 40vw, 200px); border-inline-start: 0; border-top: 1px solid var(--strong); }
}

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

:root {
  --bg: #eeefea;
  --paper: #fafbf5;
  --panel: #e5e8e1;
  --ink: #182722;
  --dark: #11241f;
  --accent: #d8f65b;
  --accent-hover: #e7ff96;
  --muted: #4c5e56;
  --border: #a8b6ae;
  --strong: #374a41;
}
.site-header { border-top: 0; }
.site-header::after {
  content: ""; position: absolute; inset: auto 0 -1px; height: 2px;
  background: var(--accent); transform: scaleX(var(--reading, 0)); transform-origin: left;
}
.header-inner nav a[aria-current]::after { background: var(--accent); }
.hero {
  overflow: hidden;
  margin-top: 18px;
  min-height: clamp(470px, 71svh, 760px);
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  color: var(--paper);
  background: linear-gradient(110deg, #142922, #071b17 75%);
}
.hero::before { background-size: 64px 64px; opacity: .8; }
.hero-content { z-index: 1; padding: clamp(24px, 4vw, 68px); }
.hero h1 { font-size: clamp(60px, 6.8vw, 102px); line-height: 1.07; }
.hero h1 span:last-child { color: #b8d0c4; }
.hero .eyebrow { color: #d4e7da; }
.hero-copy { color: #c4d4cc; }
.hero .button-outline { background: transparent; border-color: #7c9386; color: var(--paper); }
.hero .button-outline:hover { background: #31463a; }
.hero .button-primary, .login-dialog .button-primary { background: var(--accent); color: var(--ink); }
.hero-art { z-index: 0; border: 0; }
.particle-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-panel.field-ready {
  background: radial-gradient(ellipse at 52% 52%, #224238, #0e2721 55%, #071b17 90%);
}
.orbit-panel::before { mask-image: radial-gradient(ellipse, transparent 28%, black); }
.orbit-panel::after {
  inset: clamp(15px, 2vw, 30px); border-color: #95b2a02c;
  border-block-end-style: dashed;
}
.section { margin-top: 0; padding-block: clamp(45px, 8vh, 94px); border-bottom: 1px solid var(--border); }
.section-heading { margin-bottom: 22px; padding-inline-start: 0; }
.section-heading::before { display: none; }
.section-heading h2 { font-size: clamp(30px, 4.1vw, 59px); }
.service { padding-top: 24px; min-height: 225px; }
.service h3 { margin-top: 8px; }
.service-top { margin-bottom: 22px; }
.service-icon { border-radius: 50%; }
.resource-card { padding-block: 24px; }
.resource-chart { height: 100px; }
.login-screen { background: #0b201a; }
.login-shell {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  width: min(1240px, 94vw); min-height: min(680px, 78svh); border: 1px solid #82968a;
  background: var(--paper);
}
.login-art { grid-area: 1 / 1; border: 0; }
.login-dialog { grid-area: 1 / 2; align-self: center; padding: clamp(26px, 4vw, 62px); }
.login-dialog .dialog-top { margin-bottom: clamp(35px, 6vh, 72px); }
.login-dialog h1 { font-size: clamp(32px, 3.3vw, 50px); }
.login-dialog input { background: transparent; border: 0; border-bottom: 1px solid #839287; padding-inline: 3px; }
.login-dialog form { gap: 12px; margin-top: 28px; }
.login-dialog form button { justify-content: space-between; width: 100%; margin-top: 18px; }
.boot-screen {
  position: fixed; z-index: 9; inset: 0; pointer-events: none;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-content: center; gap: 12px; padding-inline: max(10vw, calc((100vw - 620px) / 2));
  background: #10221c; color: #dfeddf; font: 14px var(--mono);
  transition: opacity .36s, clip-path .42s cubic-bezier(.6,0,.25,1);
}
.boot-screen strong { grid-column: 1 / -1; font: 850 clamp(58px, 11vw, 162px)/1 var(--display); letter-spacing: -.065em; }
.boot-screen output { color: var(--accent); }
.boot-screen progress { grid-column: 1 / -1; appearance: none; width: 100%; height: 3px; border: 0; accent-color: var(--accent); }
.boot-screen progress::-webkit-progress-bar { background: #41594c; }
.boot-screen progress::-webkit-progress-value { background: var(--accent); transition: width .18s; }
.boot-complete { opacity: 0; clip-path: inset(0 0 100%); }
@media (min-width: 900px) {
  #connection { display: grid; grid-template-columns: minmax(190px, .47fr) minmax(0, 1fr); gap: 32px; }
  #connection .section-heading { align-self: start; position: sticky; top: 92px; }
}
@media (max-width: 720px) {
  .hero-content { padding: 24px; }
  .hero h1 { font-size: clamp(43px, 8vw, 61px); }
  .login-shell { grid-template-columns: 1fr; width: min(460px, 100%); min-height: 0; }
  .login-dialog { grid-area: 2 / 1; padding: 26px; }
  .login-art { height: clamp(150px, 23svh, 225px); }
  .login-dialog .dialog-top { margin-bottom: 18px; }
}
@media (max-width: 540px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { grid-area: 1 / 1; height: clamp(190px, 57vw, 295px); min-height: 0; }
  .hero-content { grid-area: 2 / 1; }
  .hero h1 span { display: inline; }
}
@media (prefers-reduced-motion: no-preference) {
  .section.in-view .section-heading { animation: chapter-heading .6s ease-out both; }
  #services.in-view .service { animation: service-rise .7s cubic-bezier(.2,.7,.2,1) backwards; }
  #resources.in-view .resource-card { animation: monitor-wipe .75s ease-out backwards; }
  #connection.in-view .connection-card { animation: chapter-heading .8s ease-out backwards; }
  .section.in-view article:nth-child(2) { animation-delay: 75ms !important; }
  .section.in-view article:nth-child(3) { animation-delay: 150ms !important; }
}
@keyframes service-rise { from { opacity: .12; transform: translateY(27px); } }
@keyframes chapter-heading { from { opacity: .24; transform: translateX(-18px); } }
@keyframes monitor-wipe { from { clip-path: inset(0 0 96%); } to { clip-path: inset(0); } }
