@font-face { font-family: "Archivo Expanded"; src: url("/fonts/ArchivoExpanded-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("/fonts/MartianMono-Variable.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* Layout: one cut runs down the middle of the page. Every section is two halves:
   the heading on the left, set against the cut, and the content on the right.
   One dot travels the cut from the top mark to the bottom one. */
:root {
  --void: #0d0c0f;
  --raised: #16141a;
  --sunken: #1f1c24;
  --line: #2e2a34;
  --ash: #ccc6be;
  --smoke: #8c857e;
  --sakura: #ffb7c5;
  --display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --gap: 40px;
  --side-l: max(24px, env(safe-area-inset-left, 0px));
  --side-r: max(24px, env(safe-area-inset-right, 0px));
  --snap: cubic-bezier(.3, 1.6, .6, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--void); color: var(--ash); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--sakura); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ash); }
:focus-visible { outline: 2px solid var(--sakura); outline-offset: 3px; border-radius: 6px; }
code { font: 400 .84em/1.4 var(--mono); color: var(--ash); background: var(--sunken); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 999px; background: var(--sakura); color: var(--void); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.top { max-width: 1200px; margin: 0 auto; padding: 20px var(--side-r) 20px var(--side-l); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ash); text-decoration: none; }
.brand:hover { color: var(--ash); }
.brand-mark { width: 30px; height: 30px; }
.brand-mark .half { fill: var(--ash); }
.brand-mark .dot { fill: var(--sakura); }
.wordmark { margin: 0; font: 900 22px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.wordmark i { display: inline-block; width: .21em; height: .21em; margin: 0 .045em; border-radius: 50%; background: var(--sakura); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.nav a { color: var(--smoke); text-decoration: none; font-size: 15px; padding: 8px 0; }
.nav a:hover { color: var(--ash); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; color: var(--ash); font: 600 15px/1 var(--sans); text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.btn:hover { border-color: var(--ash); color: var(--ash); }
.btn-primary { background: var(--sakura); border-color: var(--sakura); color: var(--void); }
.btn-primary:hover { background: var(--ash); border-color: var(--ash); color: var(--void); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* The page and its cut */
.page { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 var(--side-r) 0 var(--side-l); }
.cut, .cut-trail { display: none; position: absolute; left: 50%; width: 1px; margin-left: -.5px; pointer-events: none; transform-origin: top; }
.cut { background: var(--line); }
.cut-trail { height: 0; background: rgba(204, 198, 190, .32); }
.ride .cut, .ride .cut-trail { display: block; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(var(--gap) * 2); align-items: start; }
.split > .l { text-align: right; }
.section { padding-top: clamp(104px, 13vw, 168px); }

h1, h2, h3 { margin: 0; color: var(--ash); }
h1, h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: .96; }
.end { display: inline-block; width: .19em; height: .19em; margin-left: .07em; border-radius: 50%; background: var(--sakura); }
.note { margin: 22px 0 0 auto; max-width: 32ch; color: var(--smoke); }
.prose p { margin: 0 0 18px; max-width: 54ch; }
.prose p:last-child { margin-bottom: 0; }

/* Hero */
.hero { padding-top: clamp(16px, 3vw, 40px); display: grid; justify-items: center; }
.sight { position: relative; width: min(360px, 72vw); padding: 30px; }
.corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--smoke); }
.corner.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.mark { width: 100%; height: auto; overflow: visible; }
.mark .half { fill: var(--ash); }
.mark .own-dot { fill: var(--sakura); transform-box: fill-box; transform-origin: center; }
.mark .tick { stroke: var(--smoke); stroke-width: 3; fill: none; }
.ride .mark .own-dot { visibility: hidden; }
.est { position: relative; z-index: 1; margin: 16px 0 30px; padding: 6px 12px; background: var(--void); font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); }
.title { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(var(--gap) * 2); font-size: clamp(42px, 7vw, 88px); line-height: .9; }
.title .l { text-align: right; }
.title .l, .title .r { display: block; }
.hero-foot { width: 100%; margin-top: 30px; align-items: center; }
.lede { margin: 0 0 0 auto; max-width: 25ch; font-size: 19px; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Divisions */
.divisions, .ranks, .steps, .caps, .chat { list-style: none; margin: 0; padding: 0; }
.divisions { display: grid; gap: 34px; }
.divisions li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start; }
.tile { width: 56px; height: 56px; }
.tile rect { fill: var(--ash); }
.tile text { fill: var(--void); font: 900 30px var(--display); text-anchor: middle; }
.divisions h3 { font: 900 26px/1 var(--display); }
.divisions .addr { margin: 10px 0 8px; }
.divisions p { margin: 0; max-width: 46ch; color: var(--smoke); }
.divisions .addr code { color: var(--ash); }

/* Kit bot */
.status { display: inline-flex; align-items: center; gap: 10px; margin: 24px 0 0; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font: 500 13px/1 var(--mono); }
.beat { width: 8px; height: 8px; border-radius: 50%; background: var(--sakura); animation: beat 2.6s ease-out infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(255, 183, 197, .55); } 45%, 100% { box-shadow: 0 0 0 9px rgba(255, 183, 197, 0); } }
.demo { margin: 28px 0 0 auto; max-width: 440px; padding: 18px 20px 20px; text-align: left; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; }
.demo figcaption { margin-bottom: 14px; font-size: 13px; color: var(--smoke); }
.chat { display: grid; gap: 11px; min-height: 212px; align-content: start; font-size: 15px; line-height: 1.45; }
.chat li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; }
.chat .who { font-weight: 600; color: var(--smoke); }
.chat .bot .who { color: var(--sakura); }
.chat .game span:last-child { color: var(--smoke); font-style: italic; }
.chat code { padding: 1px 6px; }
.js .chat li { opacity: 0; transform: translateY(6px); transition: opacity .3s ease-out, transform .3s ease-out; }
.js .chat li.on { opacity: 1; transform: none; }
.caps { display: grid; gap: 16px; margin-top: 26px; }
.caps li { position: relative; max-width: 54ch; padding-left: 28px; }
.caps li::before { content: ""; position: absolute; left: 0; top: .48em; width: 11px; height: 11px; border: 2px solid var(--smoke); border-radius: 50%; }

/* Ranks */
.ranks { display: grid; gap: 30px; }
.ranks li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; align-items: center; }
.rank { width: 64px; height: 64px; overflow: visible; }
.rank .ring { fill: none; stroke: var(--ash); stroke-width: 9; transform-box: fill-box; transform-origin: center; }
.rank .ring-thin { stroke-width: 5.5; }
.rank .dot { fill: var(--sakura); transform-box: fill-box; transform-origin: center; }
.ranks h3 { margin-bottom: 6px; font: 900 24px/1 var(--display); text-transform: uppercase; }
.ranks p { margin: 0; max-width: 44ch; color: var(--smoke); }
.js .ranks .ring { transform: scale(.55); opacity: 0; transition: transform .7s var(--snap), opacity .35s ease-out; }
.js .ranks .ring.inner { transform: scale(.2); }
.js .ranks .dot { transform: translateY(-34px); opacity: 0; transition: transform .6s var(--snap), opacity .2s ease-out; }
.js .ranks.shown .ring, .js .ranks.shown .dot { transform: none; opacity: 1; }
.js .ranks.shown li:nth-child(2) .ring { transition-delay: .15s; }
.js .ranks.shown li:nth-child(2) .dot { transition-delay: .55s; }
.js .ranks.shown li:nth-child(3) .ring { transition-delay: .3s; }
.js .ranks.shown li:nth-child(3) .ring.inner { transition-delay: .5s; }
.js .ranks.shown li:nth-child(3) .dot { transition-delay: .8s; }

/* Join */
.steps { display: grid; gap: 26px; }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; align-items: start; }
.steps .n { font: 900 30px/1 var(--display); color: var(--sakura); }
.steps p { margin: 2px 0 14px; max-width: 46ch; }

/* Close */
.close { padding: clamp(140px, 16vw, 220px) 0 48px; display: grid; justify-items: center; text-align: center; }
.close .mark { width: min(200px, 48vw); }
.wordmark-big { margin: 30px 0 10px; font-size: 40px; }
.motto { margin: 0; color: var(--smoke); }
.emotes { display: flex; gap: 14px; margin: 38px 0 40px; }
.emotes img { width: 80px; height: 80px; }
.legal { margin: 0; font-size: 13px; color: var(--smoke); }

/* The dot that rides the cut */
.rider { display: none; position: fixed; left: 0; top: 0; z-index: 5; width: 100px; height: 100px; margin: -50px 0 0 -50px; pointer-events: none; will-change: transform; }
.rider span { position: absolute; inset: 0; border-radius: 50%; background: var(--sakura); }
.rider span::after { content: ""; position: absolute; inset: -3px; border: 3px solid var(--sakura); border-radius: 50%; opacity: 0; }
.rider.pulse span::after { animation: ring .7s ease-out; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }
.ride .rider { display: block; }

/* Intro: the halves close in, the dot drops into place, the cut runs down the page */
.intro .hero .half-l { transform: translateX(-70px); opacity: 0; }
.intro .hero .half-r { transform: translateX(70px); opacity: 0; }
.intro .hero .own-dot, .intro .rider span { transform: scale(0); }
.intro .title .l { transform: translateX(-36px); opacity: 0; }
.intro .title .r { transform: translateX(36px); opacity: 0; }
.intro .hero-foot, .intro .est, .intro .corner { opacity: 0; }
.intro .cut { transform: scaleY(0); }
.go .hero .half { transform: none; opacity: 1; transition: transform 1s var(--snap), opacity .4s ease-out; }
.go .hero .own-dot, .go .rider span { transform: none; transition: transform .6s .65s var(--snap); }
.go .title .l, .go .title .r { transform: none; opacity: 1; transition: transform .9s .3s var(--snap), opacity .5s .3s ease-out; }
.go .hero-foot, .go .est, .go .corner { opacity: 1; transition: opacity .8s .9s ease-out; }
.go .cut { transform: none; transition: transform 1.6s 1s cubic-bezier(.2, .7, .2, 1); }

/* Every few seconds the top mark parts and snaps shut, the brand's one move */
.idle .hero .half-l { animation: part-l 6s 1s infinite; }
.idle .hero .half-r { animation: part-r 6s 1s infinite; }
@keyframes part-l { 0%, 84%, 100% { transform: none; } 89% { transform: translateX(-18px); } 94% { transform: translateX(3px); } 97% { transform: none; } }
@keyframes part-r { 0%, 84%, 100% { transform: none; } 89% { transform: translateX(18px); } 94% { transform: translateX(-3px); } 97% { transform: none; } }

/* When the dot lands in the bottom mark, the halves close on it */
.close .landed .half-l { animation: lock-l .7s var(--snap); }
.close .landed .half-r { animation: lock-r .7s var(--snap); }
@keyframes lock-l { from { transform: translateX(-26px); } to { transform: none; } }
@keyframes lock-r { from { transform: translateX(26px); } to { transform: none; } }

/* Phones and narrow windows: one column, no cut */
@media (max-width: 900px) {
  .split, .title { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .split > .l, .title .l { text-align: left; }
  .note, .lede, .demo { margin-left: 0; }
  .title { font-size: clamp(40px, 12.5vw, 76px); row-gap: 0; }
  .hero { justify-items: start; }
  .sight, .est { justify-self: center; }
  .section { padding-top: 96px; }
  .nav { order: 3; width: 100%; }
}

@media (max-width: 420px) {
  .top .btn-small { display: none; }
  .chat { min-height: 330px; }
  .chat li { grid-template-columns: 1fr; gap: 2px; }
  .emotes img { width: 64px; height: 64px; }
}

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

/* Small pages: 404 and the Discord link */
.lost { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 22px; padding-block: 48px; text-align: center; }
.lost .mark { width: 150px; }
.lost h1 { font-size: clamp(30px, 6vw, 52px); line-height: .95; }
.lost p { margin: 0; max-width: 40ch; color: var(--smoke); }
