/* Existing Swarm44 colours and controls, with a viewport-filling animation. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #141414;
  --muted: #707070;
  --line: #e6e6e6;
  --button-radius: 6px;
  --button-height: 40px;
  --button-padding: 9px 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
html, body { width: 100%; height: 100%; margin: 0; background: var(--paper); }
body { overflow: hidden; color: var(--ink); font: 16px/1.5 Inter, Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
main, .hero { width: 100%; height: 100svh; }
.hero { position: relative; background: url("/assets/homepage-background.webp") left top / max(100%, 280svh) auto no-repeat; }
.site-frame { position: fixed; inset: 36px; z-index: 3; pointer-events: none; }
.site-frame i { position: absolute; width: 14px; height: 14px; border-color: #8a8a92; border-style: solid; opacity: 0.55; }
.site-frame i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.site-frame i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.site-frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.site-frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.site-header { position: absolute; top: 58px; left: 76px; right: 76px; z-index: 4; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.site-wordmark { display: inline-block; color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.3; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }
.site-wordmark-brand { letter-spacing: 0.32em; }
.site-wordmark:hover { opacity: 0.65; }
.site-service-link { margin-left: auto; color: var(--ink); font-size: 12px; font-weight: 400; line-height: 1.3; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }
.site-service-link:hover { opacity: 0.65; }
.site-footer { position: absolute; bottom: 28px; left: 76px; right: 76px; z-index: 4; }
.site-legal { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.site-legal a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; color: var(--muted); font-size: 11px; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.site-legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.home-page .site-legal a { color: var(--ink); text-shadow: 0 0 3px rgb(255 255 255 / 65%); }
.register-link { gap: 8px; }
.register-link img { display: block; flex: none; width: 24px; height: 16px; object-fit: cover; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.swarm-mount, .swarm-scene, .swarm-stage { width: 100%; height: 100%; }
.swarm-scene, .swarm-stage { position: relative; }
.swarm-stage { isolation: isolate; }
.swarm-ring { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.swarm-core { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; transform: translate(-50%, -50%); }
.swarm-core-rotor { width: 100%; height: 100%; animation: swarm-core-orbit 6s linear infinite; }
.swarm-core-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #343a40; font-size: clamp(8px, 1vw, 11px); font-weight: 500; line-height: 1.4; letter-spacing: 0.025em; white-space: nowrap; pointer-events: none; }
.motion-toggle { position: absolute; top: 28px; right: 56px; z-index: 5; }
.motion-toggle:focus { width: auto; height: auto; margin: 0; padding: var(--button-padding); overflow: visible; clip-path: none; }
.swarm-scene[data-still="true"] .swarm-core-rotor { animation-play-state: paused; }
@keyframes swarm-core-orbit { to { transform: rotate(360deg); } }
.crystalized-ball[data-fallback="true"]::before { content: ""; position: absolute; inset: 15%; border: 1px solid #62686d; border-radius: 50%; background: radial-gradient(circle at 36% 32%, #fff, #f3f4f5 48%, #b0b4b7); }
.no-script { position: absolute; left: 50%; top: 42%; width: min(360px, calc(100% - 80px)); transform: translateX(-50%); margin: 0; text-align: center; color: var(--ink); font-size: 13px; }
.legal-page { overflow: auto; }
.legal-page .legal-main { height: auto; min-height: 0; padding: 150px 76px 48px; }
.legal-content { max-width: 760px; margin-inline: auto; font-size: 14px; line-height: 1.75; }
.legal-content h1 { margin: 0 0 20px; font-size: 34px; font-weight: 500; line-height: 1.2; letter-spacing: -0.035em; }
.legal-content .legal-intro { margin-bottom: 40px; font-size: 16px; color: var(--muted); }
.legal-content section { padding-top: 24px; margin-top: 30px; border-top: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 14px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.legal-content p { margin: 0 0 14px; }
.legal-content address { margin-bottom: 18px; font-style: normal; }
.legal-content a { color: inherit; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.legal-content .back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 24px; color: var(--muted); font-size: 11px; text-decoration: none; }
.legal-content .back-link:hover { color: var(--ink); text-decoration: underline; }
.legal-updated { padding-top: 32px; color: var(--muted); font-size: 11px; }
.legal-page .site-footer { position: static; padding: 0 76px 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--button-height); padding: var(--button-padding); border: 1px solid transparent; border-radius: var(--button-radius); font: 500 13px/22px Inter, Arial, sans-serif; text-decoration: none; cursor: pointer; }
.button-inverse { background: var(--paper); color: var(--ink); border-color: var(--line); }
.button-inverse:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.legal-contact { margin-block: 20px; }
.legal-contact .contact-help { margin-top: 8px; font-size: 11px; color: var(--muted); }
@media (max-width: 700px) {
  .site-frame { inset: 20px; }
  .site-header { top: max(40px, env(safe-area-inset-top)); left: 40px; right: 40px; }
  .site-wordmark { font-size: 12px; }
  .site-service-link { font-size: 10.5px; }
  .motion-toggle { top: 80px; right: 40px; }
  .site-footer { left: 40px; right: 40px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .site-legal { gap: 16px; }
  .site-legal a { font-size: 10.5px; }
  .register-link { gap: 6px; }
  .register-link img { width: 21px; height: 14px; }
  .legal-page .legal-main { padding: 120px 40px 32px; }
  .legal-content h1 { font-size: 28px; }
  .legal-content .legal-intro { font-size: 15px; }
  .legal-page .site-footer { padding: 0 40px max(12px, env(safe-area-inset-bottom)); }
}
@media (max-height: 600px) {
  .no-script { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
