@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/chakra-petch-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/chakra-petch-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/chakra-petch-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --night: #060d1b;
  --panel: #0c1829;
  --panel-hi: #122036;
  --line: #1c2d47;
  --line-hi: #2c4468;

  --blue: #4a8eff;
  --blue-dim: #2d6fd4;
  --cyan: #00d4ff;
  --violet: #7c5cfc;
  --amber: #f39c12;
  --blurple: #5865f2;

  --ink: #c8d6e5;
  --ink-soft: #8a9bb3;
  --ink-bright: #f0f4f8;

  --display: "Chakra Petch", "Segoe UI", sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 1rem/1.65 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--cyan); }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink-bright);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.icon { width: 1.1em; height: 1.1em; flex: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--blue);
  color: var(--night);
  padding: 8px 14px;
  border-radius: 4px;
  z-index: 50;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}


/* header */

.notice {
  background: rgba(243, 156, 18, .1);
  border-bottom: 1px solid rgba(243, 156, 18, .25);
  color: var(--amber);
  font-size: .875rem;
  text-align: center;
  padding: 7px 20px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 13, 27, .94);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand img { height: 38px; width: auto; }

.menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.menu a {
  position: relative;
  display: block;
  padding: 6px 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
}
.menu a:hover { color: var(--ink-bright); background: var(--panel-hi); }
.menu a.btn { display: inline-flex; margin-left: 8px; }
.menu a.btn-discord, .menu a.btn-discord:hover { color: #fff; }
.menu a.btn-discord:hover { background: #4752c4; }
.menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.menu a:not(.btn):hover::after { transform: scaleX(.5); }
.menu a[aria-current="page"] { color: var(--ink-bright); }
.menu a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-hi);
  border-radius: 4px;
  color: var(--ink);
  font: 500 .9rem var(--body);
  padding: 6px 12px;
  cursor: pointer;
}


/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  font: 600 .95rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: rotate(-8deg) scale(1.1); }

.btn-main { background: var(--blue); color: #04101f; }
.btn-main:hover { background: #6aa3ff; color: #04101f; }

.btn-discord { background: var(--blurple); color: #fff; }
.btn-discord:hover { background: #4752c4; color: #fff; }

.btn-ghost { border-color: var(--line-hi); color: var(--ink-bright); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); color: var(--ink-bright); }

.btn-small { padding: 7px 14px; font-size: .875rem; }


/* home */

.hero { padding: 72px 0 64px; }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.kicker {
  font: 600 .8rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cyan);
  margin-bottom: 18px;
}

.hero h1 span { color: var(--blue); }

.hero .lead {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 34em;
  margin-bottom: 28px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ip {
  display: flex;
  align-items: stretch;
  max-width: 420px;
  margin-top: 32px;
  border: 1px solid var(--line-hi);
  border-radius: 5px;
  background: var(--panel);
  overflow: hidden;
}

.ip-label {
  padding: 12px 14px;
  font-size: .8rem;
  color: var(--ink-soft);
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.ip code {
  flex: 1;
  padding: 12px 14px;
  font: 600 1rem var(--mono);
  color: var(--cyan);
  display: flex;
  align-items: center;
}

.ip button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--panel-hi);
  color: var(--ink);
  font: 500 .85rem var(--body);
  padding: 0 14px;
  cursor: pointer;
}
.ip button:hover { color: var(--ink-bright); background: var(--line); }
.ip button.copied { color: #5fdc93; }
.ip button.copied .icon { animation: pop .4s ease; }

@keyframes pop {
  50% { transform: scale(1.35); }
}

.hero-art {
  justify-self: center;
  width: min(100%, 380px);
  filter: drop-shadow(0 20px 60px rgba(124, 92, 252, .28));
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .4s ease-out;
  animation: bob 7s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.block { padding: 64px 0; border-top: 1px solid var(--line); }

.block-head { max-width: 40em; margin-bottom: 32px; }
.block-head p { color: var(--ink-soft); margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}

.split p { color: var(--ink); }

.facts {
  margin: 0;
  padding: 4px 22px;
}
.facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
}
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); }
.facts dd {
  margin: 0;
  font: 600 1.25rem var(--display);
  color: var(--ink-bright);
  text-align: right;
}

.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mode {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 18px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.mode:hover { border-color: var(--line-hi); }

.mode .icon {
  width: 48px;
  height: 48px;
  padding: 11px;
  grid-row: span 3;
  color: var(--blue);
  background: rgba(74, 142, 255, .08);
  border-radius: 6px;
}
.mode:nth-child(2) .icon { color: var(--violet); background: rgba(124, 92, 252, .1); }
.mode:nth-child(3) .icon { color: var(--cyan); background: rgba(0, 212, 255, .08); }
.mode:nth-child(4) .icon { color: #9db8ff; }

.mode h3 { margin: 2px 0 2px; }
.mode p { margin: 0; color: var(--ink); }

.tags {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--ink-soft);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.spec-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.spec-group {
  padding: 20px 22px 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  border-radius: 6px;
}
.spec-group:nth-child(2) { border-top-color: var(--violet); }
.spec-group:nth-child(3) { border-top-color: var(--cyan); }

.spec-group h3 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.spec-group dl { margin: 0; }
.spec-group dl > div { padding: 12px 0; }
.spec-group dl > div + div { border-top: 1px solid var(--line); }
.spec-group dt { font-size: .85rem; color: var(--ink-soft); }
.spec-group dd {
  margin: 2px 0 0;
  font: 600 1.1rem var(--display);
  color: var(--ink-bright);
}
.spec-group small {
  display: block;
  font: 400 .88rem var(--body);
  color: var(--ink-soft);
  margin-top: 2px;
}

.join {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--line-hi);
  border-left: 3px solid var(--violet);
  border-radius: 6px;
  background: var(--panel);
}
.join h2 { margin-bottom: .25em; }
.join p { margin: 0; color: var(--ink-soft); max-width: 34em; }


/* inner pages */

.page-head { padding: 56px 0 32px; }
.page-head p { color: var(--ink-soft); font-size: 1.1rem; max-width: 36em; margin: 0; }

.page-body { padding-bottom: 72px; }

.group { margin-bottom: 40px; }

.group-title {
  font: 600 .8rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.person img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel-hi);
  border: 2px solid var(--line-hi);
}

.person h3 { font-size: 1.05rem; margin: 0; }
.person .role { font-size: .88rem; color: var(--ink-soft); }
.star { color: var(--amber); font-size: .85em; margin-left: 2px; }

.note {
  margin-top: 16px;
  padding: 24px;
  border: 1px dashed var(--line-hi);
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.note p { margin: 0; }
.note strong { color: var(--ink-bright); }

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.partner {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}
a.partner:hover { border-color: var(--violet); color: var(--ink); }

.partner-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.partner-body p { margin: 0; flex: 1; }
.partner h3 { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.partner h3 .icon { color: var(--ink-soft); width: 16px; height: 16px; }

.partner-cover { aspect-ratio: 16 / 8; width: 100%; object-fit: cover; }

.partner-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 0;
}
.partner-logo img { width: 56px; height: 56px; border-radius: 6px; object-fit: contain; }

.label {
  align-self: flex-start;
  font-size: .75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(145, 70, 255, .15);
  color: #b794f6;
}

.code {
  font-size: .9rem;
  padding: 9px 12px;
  border-radius: 4px;
  background: rgba(46, 204, 113, .08);
  border: 1px solid rgba(46, 204, 113, .2);
  color: #5fdc93;
}
.code code { font: 700 .95rem var(--mono); }

.status-frame {
  width: 100%;
  height: 640px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  display: block;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.status-bar p { margin: 0; color: var(--ink-soft); }

.watched-panel { margin-top: 24px; padding: 20px 22px; }
.panel-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.watched {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.watched li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--night);
}
.watched strong { display: block; color: var(--ink-bright); font-weight: 600; }
.watched span { font-size: .88rem; color: var(--ink-soft); }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}
.channel:hover { border-color: var(--blue); color: var(--ink); }
.channel > .icon { width: 22px; height: 22px; color: var(--blue); }
.channel.is-discord > .icon { color: #8b95ff; }
.channel small { display: block; color: var(--ink-soft); font-size: .82rem; }
.channel strong { color: var(--ink-bright); font-weight: 600; }
.channel .arrow { margin-left: auto; color: var(--ink-soft); width: 18px; height: 18px; }

.address {
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.address h2 { font-size: 1.2rem; }
.address dl { margin: 0; }
.address dt { font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; margin-top: 14px; }
.address dd { margin: 2px 0 0; }

.faq { max-width: 760px; }

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child { border-top: 1px solid var(--line); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  position: relative;
  font-weight: 600;
  color: var(--ink-bright);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font: 500 1.4rem/1 var(--display);
  color: var(--blue);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--blue); }
.faq details p { margin: 0 0 18px; color: var(--ink); max-width: 44em; }

.faq-more { margin-top: 36px; }
.faq-more p { color: var(--ink-soft); }

.prose { max-width: 720px; }
.prose h2 { font-size: 1.3rem; margin: 2em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }

.lost { padding: 96px 0; }
.lost code { font-family: var(--mono); color: var(--cyan); }


/* footer */

.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  font-size: .9rem;
  color: var(--ink-soft);
}

.foot .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.foot-name { font: 600 1.05rem var(--display); color: var(--ink-bright); margin-bottom: 6px; }
.foot p { max-width: 30em; }

.foot h2 {
  font: 600 .78rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink);
  margin: 4px 0 12px;
}

.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 6px; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--ink-bright); }

.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: .82rem;
}


.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: var(--panel-hi);
  border: 1px solid var(--line-hi);
  color: var(--ink-bright);
  padding: 10px 16px;
  border-radius: 5px;
  font-size: .9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* centred layout */

.hero .wrap {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 8px;
}
.hero-art { order: -1; width: 260px; }
.hero .lead { margin-left: auto; margin-right: auto; }
.actions { justify-content: center; }
.ip { margin-left: auto; margin-right: auto; text-align: left; }

.page-head, .block-head, .lost { text-align: center; }
.block-head, .page-head p { margin-left: auto; margin-right: auto; }

.split, .contact, .faq, .prose { max-width: 900px; margin-left: auto; margin-right: auto; }
.modes { max-width: 960px; margin: 0 auto; }

.group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 0;
  padding-bottom: 0;
}
.group-title::before, .group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.people {
  grid-template-columns: repeat(auto-fit, minmax(240px, 290px));
  justify-content: center;
}
.partners {
  grid-template-columns: repeat(auto-fit, minmax(270px, 340px));
  justify-content: center;
}

.note, .join {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.join { border-left-width: 1px; border-top: 3px solid var(--violet); }
.join p { margin: 0 auto; }

.status-bar { justify-content: center; }
.faq-more, .lost .actions { text-align: center; justify-content: center; }


/* motion */

.mode, .person, .partner, .channel, .join, .address, .spec-group, .facts, .fact, .st-card {
  background: var(--panel);
  transition: border-color .2s;
}
/* the soft light under the cursor: only while the cursor is on the card */
@media (hover: hover) {
  :is(.mode, .person, .partner, .channel, .join, .address, .spec-group, .facts, .fact, .st-card):hover {
    background:
      radial-gradient(280px circle at var(--mx, -500px) var(--my, -500px), rgba(74, 142, 255, .1), transparent 70%),
      var(--panel);
  }
}

.mode .icon { transition: transform .3s ease; }
.mode:hover .icon { transform: translateY(-3px) rotate(-6deg); }

.person img { transition: transform .3s ease, border-color .3s; }
.person:hover img { transform: scale(1.06) rotate(-3deg); border-color: var(--blue); }

.partner-cover { transition: transform .5s ease; }
a.partner:hover .partner-cover { transform: scale(1.04); }

.channel .arrow { transition: transform .2s ease; }
.channel:hover .arrow { transform: translateX(4px); }

/* Without GSAP (no JS, reduced motion, script failed): the first screen rises in with CSS once.
   With GSAP, html.motion (motion-boot.js) holds back only what the intro brings in until js/motion.js starts. */
html:not(.motion-on) .hero-text > *, html:not(.motion-on) .page-head .wrap > * {
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
}
html:not(.motion-on) .hero-text > :nth-child(2), html:not(.motion-on) .page-head .wrap > :nth-child(2) { animation-delay: .08s; }
html:not(.motion-on) .hero-text > :nth-child(3) { animation-delay: .16s; }
html:not(.motion-on) .hero-text > :nth-child(4) { animation-delay: .24s; }
html:not(.motion-on) .hero-text > :nth-child(5) { animation-delay: .32s; }
.motion:not(.motion-on) .hero-text > *, .motion:not(.motion-on) .page-head .wrap > *, .motion:not(.motion-on) .hero-art,
.motion:not(.motion-on) .top { opacity: 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
}

.hero h1 span, .h1 span, .pb h2 span, .pb h3 span, h2 span, .page-head h1 span { color: var(--blue); }
.hero h1 span {
  display: inline-block;
  animation: glint 6s ease-in-out 1.2s infinite;
}

@keyframes glint {
  0%, 88%, 100% { text-shadow: none; }
  93% { text-shadow: 0 0 18px rgba(74, 142, 255, .8); }
}

/* SplitText masks: words rise out of their own line */
.w { will-change: transform; }

/* the bar on top gets its lifted look once the page moves under it */
.top { transition: background-color .3s, box-shadow .3s, border-color .3s; }
.top.lifted { background: rgba(6, 13, 27, .82); backdrop-filter: blur(10px); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }

/* spec groups: the coloured top line is drawn as they arrive */
.spec-group { position: relative; }
.motion-on .spec-group { border-top-color: transparent !important; }
.motion-on .spec-group::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -2px; height: 2px; border-radius: 6px 6px 0 0;
  background: var(--blue); transform: scaleX(var(--drawn, 0)); transform-origin: left;
}
.motion-on .spec-group:nth-child(2)::before { background: var(--violet); }
.motion-on .spec-group:nth-child(3)::before { background: var(--cyan); }

/* reading progress on the long legal pages */
.reading-bar { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 40; background: var(--blue);
  transform: scaleX(0); transform-origin: left; pointer-events: none; }
html:not(.motion-on) .reading-bar { display: none; }

@supports selector(::details-content) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content {
    height: 0;
    overflow: hidden;
    transition: height .3s ease, content-visibility .3s allow-discrete;
  }
  .faq details[open]::details-content { height: auto; }
}


@media (max-width: 900px) {
  .split, .contact { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 40px; }
  .hero-art { width: 200px; }
  .modes, .spec-groups { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot .wrap > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 16px;
    background: var(--night);
    border-bottom: 1px solid var(--line);
  }
  .menu.open { display: flex; }
  .menu a { padding: 10px 4px; }
  .menu a:not(.btn)::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; transform: scaleY(0); }
  .menu a[aria-current="page"] { padding-left: 12px; }
  .menu a[aria-current="page"]::after { transform: scaleY(1); }
  .menu a.btn { display: flex; justify-content: center; margin: 8px 0 0; }
  .block { padding: 48px 0; }
  .join { padding: 24px; }
  .status-frame { height: 520px; }
}

@media (max-width: 480px) {
  .ip-label { display: none; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
