/* CyberCity RP: the public page and the server message pages, plus the tokens and base classes /admin builds on.
   The CSP forbids inline styles, so every variation is a class. No scripts, no external URLs. */

/* Rajdhani 700, self-hosted in two files. Without the unicode-range lists Polish letters fall out of the typeface. */
@font-face{font-family:"Rajdhani";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/rajdhani-700-latin-ext.woff2) format("woff2");
 unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Rajdhani";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/rajdhani-700-latin.woff2) format("woff2");
 unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---- tokens ---- */
:root{color-scheme:dark;
 --bg:#070B14;--bg-rgb:7 11 20;--surface:#0D1422;--surface-2:#131C2E;
 --line:#26334D;--line-strong:#6B7A99;--text:#EAF0F7;--muted:#A9B4C8;
 --cyan:#8BD5FA;--cyan-rgb:139 213 250;--pink:#FA3B8C;--pink-rgb:250 59 140;--pink-hover:#FF5C9E;--violet:#9D5CFF;
 --danger:#FF8A80;--ok:#7EE6A8;
 --font-body:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",Arial,sans-serif;
 --font-display:"Rajdhani","Bahnschrift","Roboto Condensed",sans-serif-condensed,"Avenir Next Condensed","Arial Narrow",system-ui,sans-serif;
 --display-stretch:87.5%;--display-adjust:1.08; /* Rajdhani has one width and ignores the stretch; the Bahnschrift fallback narrows to match it, so the page does not jump when the font arrives */
 --fs-h1:clamp(2.5rem,1.5rem + 3.6vw,4.5rem);--fs-h2:clamp(1.75rem,1.35rem + 1.6vw,2.5rem);
 --fs-h3:clamp(1.1875rem,1.1rem + .4vw,1.375rem);--fs-lead:clamp(1.0625rem,1rem + .4vw,1.3125rem);
 --fs-body:1rem;--fs-small:.875rem;--fs-label:.8125rem;--lh-body:1.65;--track-display:.03em;--track-label:.08em;
 --s-1:.25rem;--s-2:.5rem;--s-3:.75rem;--s-4:1rem;--s-5:1.5rem;--s-6:2rem;--s-7:3rem;
 --section-y:clamp(3.5rem,2.5rem + 5vw,6.5rem);--gutter:clamp(1.25rem,5vw,6rem);
 --container:76rem;--measure:65ch;--nav-h:3.5rem;--cut-sm:.625rem;--cut:1rem;--radius:2px;
 --glow-cyan:drop-shadow(0 0 1.25rem rgb(var(--cyan-rgb)/.35));
 --glow-pink:drop-shadow(0 0 1rem rgb(var(--pink-rgb)/.45));
 --shadow-logo:drop-shadow(0 .5rem 1.75rem rgb(var(--bg-rgb)/.7));
 --shadow-text:0 2px 1.5rem rgb(var(--bg-rgb)/.8);--dur:.18s;--ease:cubic-bezier(.2,.7,.2,1)}

/* ---- base (shared with /admin) ---- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:calc(var(--nav-h) + 1rem);-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:var(--fs-body)/var(--lh-body) var(--font-body);overflow-wrap:break-word;overflow-wrap:anywhere}
img{max-width:100%;height:auto}
a{color:var(--cyan);text-underline-offset:.2em}
:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
.wrap{width:min(100% - 2*var(--gutter),var(--container));margin-inline:auto}

/* display text: uppercase Rajdhani; sizes are multiplied by --display-adjust because the face runs small */
h1,h2,h3,.btn,.nav__brand,.nav__links a,.card time,.more summary,.more__head,.step::before,.footer__brand,.footer__links a,.ticker{
 font-family:var(--font-display);font-weight:700;font-stretch:var(--display-stretch);letter-spacing:var(--track-display);text-transform:uppercase}
h1,h2,h3{font-size:calc(var(--fs-h3)*var(--display-adjust));line-height:1.15;text-wrap:balance}
h1{font-size:calc(var(--fs-h1)*var(--display-adjust));line-height:1.05}
h2{font-size:calc(var(--fs-h2)*var(--display-adjust))}
.btn,.nav__links a,.card time,.more summary,.more__head,.footer__links a{font-size:calc(var(--fs-label)*var(--display-adjust));line-height:1.2;letter-spacing:var(--track-label)}

/* ---- buttons, on <a> or <button> (shared with /admin). The cut corner is drawn on ::before so the focus ring
   is not clipped; the transparent border keeps an edge in forced-colors mode. Label is --bg on pink (5.7:1). ---- */
.btn{--fill:var(--pink);--glow:var(--glow-pink);position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;
 min-height:3rem;margin:0;padding:var(--s-2) var(--s-5);border:1px solid transparent;border-radius:0;background:none;color:var(--bg);
 font-size:calc(var(--fs-body)*var(--display-adjust));text-align:center;text-decoration:none;cursor:pointer;appearance:none}
.btn::before,.btn--ghost::after{content:"";position:absolute;inset:0;z-index:-1;background:var(--fill);--c:var(--cut-sm);
 clip-path:polygon(0 0,100% 0,100% calc(100% - var(--c)),calc(100% - var(--c)) 100%,0 100%)}
.btn--ghost{--fill:var(--cyan);--glow:var(--glow-cyan);color:var(--cyan)}
.btn--ghost::after{inset:1.5px;background:#0A1120;--c:calc(var(--cut-sm) - .88px)} /* the smaller cut keeps the outline 1.5px on the diagonal */
.btn:hover{filter:var(--glow)}
.btn:not(.btn--ghost):hover{--fill:var(--pink-hover)}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.45;pointer-events:none} /* aria-disabled keeps the keyboard focus on the button */

/* ---- nav: one sticky row, no JavaScript ---- */
.nav{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:var(--s-4);height:var(--nav-h);padding-inline:var(--gutter);
 border-bottom:1px solid rgb(var(--cyan-rgb)/.14);background:rgb(var(--bg-rgb)/.72);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.nav__brand,.footer__brand{display:flex;align-items:center;gap:var(--s-2);color:var(--text);font-size:calc(1.125rem*var(--display-adjust));line-height:1.4;text-decoration:none}
.nav__brand{flex:none;align-self:stretch;margin-inline-end:auto} /* the auto margin pushes links and button to the right */
.nav__brand img,.footer__brand img{width:auto;height:2rem}
/* below 62rem the name is visually hidden but stays the link's accessible name */
.nav__brand span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* ponytail: on phones the links scroll sideways instead of opening a menu; enough for the four fixed sections */
.nav__links{min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x mandatory}
.nav__links li:has(:focus-visible){scroll-snap-align:center} /* a link reached with Tab is scrolled fully into view */
.nav__links ul,.footer__links ul{display:flex;margin:0;padding:0;list-style:none}
.nav__links ul{width:max-content}
.nav__links a,.footer__links a{display:flex;align-items:center;min-height:2.75rem;color:var(--text);text-decoration:none}
.nav__links a{padding-inline:var(--s-3);white-space:nowrap}
.nav__links a:hover,.footer__links a:hover{color:var(--cyan)}
.nav__brand:focus-visible,.nav__links a:focus-visible{outline-offset:-2px} /* the row would clip a ring drawn outside it */
.nav__cta{flex:none;min-height:2.75rem;padding-inline:var(--s-4);font-size:calc(var(--fs-label)*var(--display-adjust));white-space:nowrap}
@media (max-width:47.98rem){
 .nav__links{mask-image:linear-gradient(90deg,#000 calc(100% - 2rem),transparent);scroll-padding-inline-end:2rem} /* a focused link stops short of the fade */
 .nav__links ul{padding-inline-end:2rem}}
@media (max-width:51.98rem){
 .nav__cta{display:none}} /* the same button is on the first screen of the hero; six links and the button fit one row only from 52rem */

/* ---- hero. The overlay alphas were measured on the real photo (white text stays above 5:1); keep them. ---- */
/* haze on the page background: seen while the photo loads, or instead of it when the file is missing */
.hero,.page-msg{background-image:radial-gradient(70% 60% at 72% 32%,rgb(var(--cyan-rgb)/.3),transparent 70%),radial-gradient(60% 50% at 60% 92%,rgb(var(--pink-rgb)/.35),transparent 70%)}
.hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr);align-items:center;text-align:center;
 min-height:100vh;min-height:100svh;margin-top:calc(-1*var(--nav-h));padding:calc(var(--nav-h) + 2rem) 0 calc(4.5rem + 1.4vw)} /* the bottom keeps room for the HUD labels and the slanted ticker */
.hero__bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:57% 40%}
/* scanlines first, then the darkening gradient */
.hero::after{content:"";position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(0deg,rgb(var(--bg-rgb)/.3) 0 1px,transparent 1px 3px),linear-gradient(180deg,
 rgb(var(--bg-rgb)/.72) 0,rgb(var(--bg-rgb)/.60) 18%,rgb(var(--bg-rgb)/.62) 60%,rgb(var(--bg-rgb)/.88) 86%,var(--bg) 100%)}
.hero__mark{position:relative;isolation:isolate;width:fit-content;margin-inline:auto}
/* the logo with its colour channels pulled apart */
.hero__logo{display:block;width:clamp(10rem,6rem + 22vw,17rem);width:clamp(10rem,min(6rem + 22vw,34svh),17rem);
 filter:drop-shadow(-.2rem 0 0 rgb(var(--pink-rgb)/.55)) drop-shadow(.2rem 0 0 rgb(var(--cyan-rgb)/.55)) var(--shadow-logo)}
.hero h1{margin:var(--s-4) 0 0;color:#fff}
.hero__tagline{color:#fff;text-shadow:var(--shadow-text)}
.hero__tagline{max-inline-size:34rem;margin:.9rem auto 0;font-size:var(--fs-lead);line-height:1.5}

/* ---- glitch: split colour channels, displaced slices and streaks. Purely decorative. Everything that moves is in
   the motion block at the end of the file; without motion the page keeps the still split and the still streaks. ---- */
:root{--split:-.04em 0 rgb(var(--pink-rgb)/.8),.04em 0 rgb(var(--cyan-rgb)/.8);
 --streaks:linear-gradient(var(--pink),var(--pink)) 4% 0/46% .25rem no-repeat,
  linear-gradient(var(--cyan),var(--cyan)) 38% .5rem/58% .125rem no-repeat,
  linear-gradient(var(--violet),var(--violet)) 0 .875rem/30% .375rem no-repeat,
  linear-gradient(var(--pink),var(--pink)) 62% 1.5rem/34% .125rem no-repeat,
  linear-gradient(#fff,#fff) 20% 1.8125rem/22% 1px no-repeat,
  linear-gradient(var(--cyan),var(--cyan)) 10% 2.125rem/64% .3125rem no-repeat,
  linear-gradient(var(--pink),var(--pink)) 48% 2.75rem/40% .1875rem no-repeat,
  linear-gradient(var(--violet),var(--violet)) 74% 3.125rem/22% .125rem no-repeat,
  linear-gradient(var(--cyan),var(--cyan)) 28% 3.5rem/36% .25rem no-repeat,
  linear-gradient(var(--pink),var(--pink)) 0 4rem/52% .125rem no-repeat}
/* the title: white text over a cyan and a pink copy of itself, with three thin cuts through all of them.
   The copies carry an empty text alternative, so screen readers announce the name once. The cut pattern is
   one line box tall (1.05em is the h1 line-height) and repeats, so a name that wraps is cut the same way on every line. */
.glitch{position:relative;isolation:isolate;
 --cuts:linear-gradient(#000 0 24%,transparent 24% 26.5%,#000 26.5% 57%,transparent 57% 58.6%,#000 58.6% 80%,transparent 80% 82.2%,#000 82.2%) 0 0/100% 1.05em;
 -webkit-mask:var(--cuts);mask:var(--cuts)}
.glitch::before,.glitch::after{content:attr(data-text);content:attr(data-text) / "";position:absolute;inset:0;z-index:-1;pointer-events:none}
.glitch::before{color:var(--cyan);transform:translate(-.055em,-.02em);text-shadow:var(--shadow-text)}
.glitch::after{color:var(--pink);transform:translate(.055em,.02em)}
@media (forced-colors:active){.glitch::before,.glitch::after{display:none}} /* high-contrast mode would paint the copies in the text colour and smear the name */
/* two tinted copies of the photo above the real one; only one displaced band of each is ever shown.
   The cyan band is always there (the still glitch); the pink one appears during a burst. Both exist only
   next to the photo (.hero__bg), so a page without the file shows no bands and requests nothing. */
.hero__bg~.hero__inner::before,.hero__bg~.hero__inner::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-blend-mode:color;filter:brightness(1.25) saturate(1.3)}
.hero__bg~.hero__inner::before{background:linear-gradient(rgb(40 205 255/.8),rgb(40 205 255/.8)),url(/img/night-city.jpg) 57% 40%/cover no-repeat;
 clip-path:inset(63% 0 32.5% 0);transform:translateX(1.4%)}
.hero__bg~.hero__inner::after{background:linear-gradient(rgb(255 45 143/.85),rgb(255 45 143/.85)),url(/img/night-city.jpg) 57% 40%/cover no-repeat;opacity:0}
/* streaks behind the logo, and one more group over the photo on wide screens */
.hero__mark::before,.hero__mark::after,.hero::before{content:"";position:absolute;z-index:-1;block-size:4.125rem;background:var(--streaks);pointer-events:none}
.hero__mark::before{top:12%;left:-24%;inline-size:80%;opacity:.85;transform-origin:100% 50%} /* the origins make each group stretch away from the logo */
.hero__mark::after{bottom:8%;right:-26%;inline-size:68%;opacity:.7;transform-origin:0 50%}
.hero::before{display:none}
/* still accents on the rest of the page */
.nav__brand span,.section h2,.msg h1{text-shadow:var(--split)}
.card:hover h3,.tile:hover h3,.step:hover h3{text-shadow:var(--split)}
.btn:hover{text-shadow:.07em 0 rgb(var(--cyan-rgb)/.9)}
.btn--ghost:hover{text-shadow:-.07em 0 rgb(var(--pink-rgb)/.9)}
.hero__actions,.section__actions,.msg__actions{display:flex;flex-wrap:wrap;gap:var(--s-3)}
.hero__actions,.section__actions{flex-direction:column;max-inline-size:22rem}
.hero__actions{margin:1.75rem auto 0}
/* HUD: corner brackets and small labels along the bottom. Decoration only (aria-hidden). It comes before the text in
   the markup and has no z-index, so it paints above the darkening layer and below the logo, the title and the buttons. */
.hero__hud{position:absolute;inset:calc(var(--nav-h) + .75rem) .75rem calc(2.2rem + 1.4vw);display:flex;align-items:flex-end;justify-content:space-between;gap:var(--s-4);
 padding:0 var(--s-4) .55rem;pointer-events:none;color:rgb(var(--cyan-rgb)/.8);font:.6875rem/1 ui-monospace,"Cascadia Mono",Consolas,monospace;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;
 --b:1.375rem;--k:linear-gradient(rgb(var(--cyan-rgb)/.75),rgb(var(--cyan-rgb)/.75));
 background:var(--k) 0 0/var(--b) 2px,var(--k) 0 0/2px var(--b),var(--k) 100% 0/var(--b) 2px,var(--k) 100% 0/2px var(--b),
  var(--k) 0 100%/var(--b) 2px,var(--k) 0 100%/2px var(--b),var(--k) 100% 100%/var(--b) 2px,var(--k) 100% 100%/2px var(--b);background-repeat:no-repeat}
.hero__hud span:nth-child(2){display:none} /* the middle label needs a wider screen */
.hero__hint::after{content:"↓";display:inline-block;margin-inline-start:.5em}

/* ---- ticker: a slanted strip of short phrases under the hero. skewY keeps its width, so nothing sticks out sideways.
   By default it stands still with the phrases wrapped; it runs only in the motion block, which also shows the second copy. ---- */
.ticker{position:relative;z-index:1;display:flex;overflow:hidden;margin-top:-1.5rem;background:var(--pink);color:var(--bg);
 font-size:calc(1.125rem*var(--display-adjust));line-height:1.3;transform:skewY(-1.5deg)}
.ticker__track{flex:0 0 100%;display:flex;flex-wrap:wrap;justify-content:center;min-inline-size:100%;margin:0;padding:.55rem var(--gutter);list-style:none} /* exactly as wide as the strip, so the phrases wrap */
.ticker__track+.ticker__track{display:none}
.ticker li::before{content:"//";content:"//" / "";margin-inline:.55em;color:#fff} /* the slashes are decoration: empty text alternative */

/* ---- sections ---- */
.section{padding-block:calc(var(--section-y)/2)}
.section:last-child{padding-bottom:var(--section-y)}
.section h2{margin:0 0 var(--s-5)}
.section h3{margin:0}
.section h2::before,.tile h3::before{content:"";display:inline-block;inline-size:.8em;block-size:.62em;margin-inline-end:.4em;
 background:linear-gradient(110deg,transparent 0 22%,var(--pink) 22% 44%,transparent 44% 56%,var(--pink) 56% 78%,transparent 78%)} /* two slashes; 22% and 78% are the box corners */
/* a broken data line under every section heading */
.section h2::after{content:"";display:block;inline-size:min(100%,19rem);block-size:.1875rem;margin-top:var(--s-3);
 background:linear-gradient(90deg,var(--pink) 0 34%,transparent 34% 37%,var(--cyan) 37% 52%,transparent 52% 54%,var(--violet) 54% 59%,transparent 59% 66%,rgb(var(--cyan-rgb)/.35) 66%)}
/* faint streaks beside the heading on screens with room for them */
.section{position:relative;isolation:isolate}
.section::after{content:"";position:absolute;z-index:-1;top:calc(var(--section-y)/2);right:var(--gutter);inline-size:min(15rem,24%);block-size:4.125rem;background:var(--streaks);opacity:.3;pointer-events:none;display:none}
.section__actions{margin-top:var(--s-6)}
/* user text: line breaks are kept, so the server must not put whitespace between the tag and the text */
.prose{max-inline-size:var(--measure);margin:var(--s-3) 0 0;white-space:pre-line}

/* announcements: the newest card spans the row */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,26rem),1fr));gap:var(--s-5);align-items:start}
.card,.tile,.msg{background:linear-gradient(var(--surface-2),var(--surface));clip-path:polygon(0 0,calc(100% - var(--cut)) 0,100% var(--cut),100% 100%,0 100%)}
.card,.tile{position:relative;padding:clamp(1.25rem,1rem + 1vw,1.75rem)}
/* a short glitch tick on the top edge of every card and tile */
.card::after,.tile::after{content:"";position:absolute;top:0;right:calc(var(--cut) + .75rem);inline-size:5.5rem;block-size:.1875rem;
 background:linear-gradient(90deg,var(--pink) 0 44%,transparent 44% 52%,var(--cyan) 52% 78%,transparent 78% 85%,#fff 85%)}
.card{display:flex;flex-direction:column;border-inline-start:2px solid var(--cyan)}
.card:first-child,.card:nth-child(2):last-child{grid-column:1/-1}
.card:first-child{border-color:var(--pink)}
.card:first-child h3{font-size:calc(var(--fs-h3)*1.3*var(--display-adjust))}
.card time{order:-1;margin-bottom:var(--s-2);color:var(--muted)} /* shown above the title; the heading stays first in the markup */

/* <details> archives: the summaries are styled as controls. Plain block layout with the chevron positioned
   in the left padding, because not every browser honours flex or grid on <summary>. */
.more{margin-top:var(--s-5)}
.more summary{position:relative;display:block;padding:var(--s-2) var(--s-4) var(--s-2) 2.25rem;color:var(--cyan);cursor:pointer}
.more summary::-webkit-details-marker{display:none}
.more summary::before{content:"";position:absolute;top:calc(50% - .25rem);left:var(--s-4);width:.5rem;height:.5rem;border:solid var(--pink);border-width:0 2px 2px 0;transform:rotate(-45deg)}
.more[open]>summary::before,.more__item[open]>summary::before{transform:rotate(45deg)}
.more>summary{inline-size:fit-content;padding-block:.875rem;padding-inline-end:var(--s-5);border:1px solid var(--line-strong)}
.more>summary:hover{border-color:var(--cyan)}
.more__list,.more>.videos{margin-top:var(--s-4)}
.more__item{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.more__item+.more__item{margin-top:var(--s-2)}
.more__item>summary:hover{background:var(--surface-2)}
.more__head{margin:0;padding:var(--s-2) var(--s-4) var(--s-2) 2.25rem} /* an older announcement without a body: the same row, nothing to expand */
.more__item time,.more__item span{display:block}
.more__item time{color:var(--muted)}
.more__item span{color:var(--text);font-size:calc(var(--fs-body)*var(--display-adjust));letter-spacing:var(--track-display)}
.more__item .prose{margin:0;padding:0 var(--s-4) var(--s-4) 2.25rem}

/* videos */
.videos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:1.25rem}
.video{margin:0}
.video:only-child{max-inline-size:48rem}
.more>.videos{grid-template-columns:repeat(auto-fill,minmax(min(100%,18rem),1fr))} /* archived videos never grow larger than the newest three */
.more>.videos .video:only-child{max-inline-size:none}
.video iframe{display:block;inline-size:100%;block-size:auto;aspect-ratio:16/9;border:0;border-radius:var(--radius);background:#000}
.video figcaption{margin-top:var(--s-2);font-weight:600}

/* about (text + tiles) and the join steps; minmax(0,1fr) stops a long word from widening the page */
.about,.tiles,.steps{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s-4)}
.about{gap:var(--s-6);align-items:start}
.about__text .prose{font-size:var(--fs-lead)}
.tiles,.steps{margin:0;padding:0;list-style:none}
.tile .prose,.step .prose{color:var(--muted)}
.steps{gap:var(--s-6) var(--s-5);counter-reset:step}
.step{padding-top:var(--s-4);border-top:2px solid var(--line);counter-increment:step}
.step::before{content:counter(step,decimal-leading-zero);display:block;margin-bottom:var(--s-2);color:var(--cyan);font-size:calc(var(--fs-h2)*var(--display-adjust));line-height:1}

/* FAQ: native <details>, one row per question; the plus turns into a cross while the answer is open */
.faq{max-inline-size:52rem;border-top:1px solid var(--line)}
.faq__item{border-bottom:1px solid var(--line)}
.faq summary{position:relative;display:block;padding:var(--s-4) 3rem var(--s-4) 0;font-size:var(--fs-lead);font-weight:600;line-height:1.4;cursor:pointer}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";position:absolute;top:calc(50% - .4375rem);right:.5rem;inline-size:.875rem;block-size:.875rem;
 background:linear-gradient(var(--pink),var(--pink)) 50%/100% 2px no-repeat,linear-gradient(var(--pink),var(--pink)) 50%/2px 100% no-repeat}
.faq__item[open]>summary::after{transform:rotate(45deg)}
/* high-contrast mode drops gradients, so the sign is redrawn there in the text colour */
@media (forced-colors:active){.faq summary::after{forced-color-adjust:none;background-image:linear-gradient(CanvasText,CanvasText),linear-gradient(CanvasText,CanvasText)}}
.faq summary:hover{color:var(--cyan)}
.faq .prose{margin:0;padding:0 3rem var(--s-5) 0;color:var(--muted)}

/* ---- closing banner: dark text on pink (5.6:1), a slanted top edge and a dark button ---- */
.outro{position:relative;margin-top:calc(var(--section-y)/2);padding-block:calc(var(--section-y) + 3vw) var(--section-y);color:var(--bg);
 background:repeating-linear-gradient(115deg,rgb(var(--bg-rgb)/.09) 0 1px,transparent 1px 13px),var(--pink);clip-path:polygon(0 3vw,100% 0,100% 100%,0 100%)}
/* the dark streaks sit in the empty top padding (always taller than they are), so they can never cross the text */
.outro::after{content:"";position:absolute;right:var(--gutter);top:calc(3vw + .5rem);inline-size:min(20rem,28%);block-size:4.125rem;background:var(--streaks);filter:brightness(0);opacity:.3;pointer-events:none;display:none}
.outro h2{margin:0;font-size:calc(var(--fs-h1)*var(--display-adjust));line-height:1.05;text-shadow:.045em .045em 0 rgb(255 255 255/.5)}
.outro p{max-inline-size:36rem;margin:var(--s-4) 0 0;font-size:var(--fs-lead);font-weight:600;line-height:1.5}
.outro .btn{--fill:var(--bg);--glow:none;margin-top:var(--s-5);color:#fff}
.outro .btn:hover{--fill:#17233B}
.outro :focus-visible{outline-color:var(--bg)}

/* ---- footer ---- */
.footer{position:relative;padding-block:var(--s-7) var(--s-6);border-top:1px solid var(--line);background:var(--surface)}
.footer::before{content:"";position:absolute;inset:-2px 0 auto;block-size:3px;background:linear-gradient(90deg,var(--pink) 0 11%,transparent 11% 12.5%,var(--cyan) 12.5% 30%,
 transparent 30% 31%,var(--violet) 31% 36%,transparent 36% 55%,var(--pink) 55% 56.5%,transparent 56.5% 72%,var(--cyan) 72% 89%,transparent 89% 90.5%,var(--pink) 90.5%)}
.footer__inner{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s-4) var(--s-6);align-items:center}
.footer__brand{justify-self:start;min-height:2.75rem}
.footer__links ul{flex-wrap:wrap;column-gap:var(--s-5)}
.footer__links a{min-inline-size:2.75rem}
.footer__note,.footer__copy{margin:0;color:var(--muted);font-size:var(--fs-small)}
.footer__note{max-inline-size:var(--measure)}

/* ---- server message pages (errors, no access, login problems) ---- */
.page-msg{display:grid;grid-template-columns:minmax(0,1fr);place-items:center;min-height:100vh;min-height:100svh;padding:var(--s-5) var(--gutter)}
.msg{inline-size:min(100%,34rem);padding:clamp(1.5rem,1rem + 3vw,2.5rem);border-top:2px solid var(--pink);text-align:center}
.msg>*{margin:var(--s-4) 0 0}
.msg__logo{display:block;width:7.5rem;margin:0 auto}
.msg h1{font-size:calc(var(--fs-h2)*var(--display-adjust))}
.msg__code code{display:inline-block;max-inline-size:100%;padding:var(--s-2) var(--s-3);border:1px solid var(--line-strong);border-radius:var(--radius);background:var(--bg);color:var(--cyan);
 font:clamp(.9375rem,4.6vw,1.125rem)/1.4 ui-monospace,"Cascadia Mono",Consolas,monospace;-webkit-user-select:all;user-select:all} /* one click selects the whole value */
.msg__actions{justify-content:center;margin-top:var(--s-5)}

/* ---- wider screens ---- */
@media (min-width:36rem){
 .hero__hud span:nth-child(2){display:inline}
 .hero__actions,.section__actions{flex-direction:row;max-inline-size:none}
 .hero__actions{justify-content:center}
 .tiles,.steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:48rem){
 /* a long site name or button label gives way; the section links are never cut off */
 .section::after,.outro::after{display:block}
 .nav__links{flex:none}
 .nav__links a{padding-inline:var(--s-2)} /* five links and the button share one row from here up to 62rem */
 .nav__brand img{flex:none}
 .nav__brand span{min-width:0}
 .nav__cta{flex:0 1 auto;min-width:0;overflow:hidden;justify-content:flex-start}
 .footer__inner{grid-template-columns:fit-content(50%) minmax(0,1fr)}
 .footer__links ul{justify-content:flex-end}
 .footer__note,.footer__copy{grid-column:1/-1}}
@media (min-width:62rem){
 .nav__brand{flex:0 999 auto;min-width:2.8rem} /* the name gives way first, behind its ellipsis; 2.8rem is the logo, which is never squeezed */
 .nav__brand span{position:static;width:auto;height:auto;max-inline-size:16rem;clip-path:none;text-overflow:ellipsis}
 .nav__links a,.nav__cta{font-size:calc(var(--fs-small)*var(--display-adjust))}
 .nav__links a{padding-inline:var(--s-3)}
 /* text column on the left; the photo starts at 20% of the width and three gradients blend it into the page */
 .hero{text-align:start}
 .hero__bg{inset:0 0 0 20%;width:80%;object-position:50% 35%}
 .hero__bg~.hero__inner::before,.hero__bg~.hero__inner::after{inset:0 0 0 20%;background-position:0 0,50% 35%} /* the same box and framing as the photo */
 .hero::before{display:block;right:7%;bottom:21%;inline-size:min(21rem,27vw);opacity:.6}
 .hero::after{background:
  repeating-linear-gradient(0deg,rgb(var(--bg-rgb)/.3) 0 1px,transparent 1px 3px),
  linear-gradient(90deg,var(--bg) 0 20%,rgb(var(--bg-rgb)/.86) 34%,rgb(var(--bg-rgb)/.58) 50%,rgb(var(--bg-rgb)/0) 70%),
  linear-gradient(180deg,rgb(var(--bg-rgb)/.70) 0,rgb(var(--bg-rgb)/0) 22% 62%,rgb(var(--bg-rgb)/.75) 86%,var(--bg) 100%),
  linear-gradient(270deg,rgb(var(--bg-rgb)/.55) 0,rgb(var(--bg-rgb)/0) 14%)}
 .hero__inner>*{max-inline-size:min(34rem,42vw);margin-inline:0}
 .hero__actions{justify-content:flex-start}
 .about{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:var(--s-7)}
 .about__text:only-child{grid-column:1/-1}}
@media (min-width:75rem){
 .steps{grid-template-columns:repeat(auto-fit,minmax(15rem,1fr))}}

/* ---- motion: only on screens, and only for visitors who have not asked for less ---- */
@media screen and (prefers-reduced-motion:no-preference){
 html{scroll-behavior:smooth}
 a,.btn,.btn::before,.more summary,.more summary::before,.faq summary,.faq summary::after{transition:var(--dur) var(--ease);transition-property:color,background-color,border-color,filter,transform}
 /* glitch bursts: every value jumps (steps), two short bursts in a 7 s cycle, then stillness.
    The logo and the title also carry "rise", the entrance below: it is last in the list, so it wins while it runs. */
 .glitch{animation:glitch-title 7s steps(1) infinite,rise .7s var(--ease) .12s backwards}
 .glitch::before{animation:glitch-cyan 7s steps(1) infinite}
 .glitch::after{animation:glitch-pink 7s steps(1) infinite}
 .hero__inner::after{animation:glitch-photo 7s steps(1) infinite}
 .hero__inner::before{animation:glitch-photo-2 7s steps(1) infinite}
 .hero__mark{animation:glitch-mark 7s steps(1) infinite,rise .7s var(--ease) backwards}
 /* entrance: when the page opens, the hero pieces arrive one after another */
 .hero__tagline{animation:rise .7s var(--ease) .24s backwards}
 .hero__actions{animation:rise .7s var(--ease) .36s backwards}
 .hero__hud{animation:fade .9s ease .7s backwards}
 .hero__hint::after{animation:hint 1.6s var(--ease) infinite}
 /* the ticker runs: two copies side by side, each sliding left by its own width; a pointer over it pauses it */
 .ticker__track{flex:none;flex-wrap:nowrap;justify-content:space-around;padding-inline:0;animation:ticker 45s linear infinite}
 .ticker__track+.ticker__track{display:flex}
 .ticker li{white-space:nowrap}
 .ticker li::before{margin-inline:1.1em}
 .ticker:hover .ticker__track{animation-play-state:paused}
 /* headings and tiles twitch once under the pointer */
 .section h2:hover,.card:hover h3,.tile:hover h3,.step:hover h3{animation:glitch-text .4s steps(1) 1}
 /* the streaks by the logo never rest: each group slides and stretches a little (streak-drift) between its glitch jumps */
 .hero__mark::before{animation:glitch-streaks 5s steps(1) infinite,streak-drift 3.6s ease-in-out infinite alternate}
 .hero__mark::after{animation:glitch-streaks 6.3s steps(1) -2s infinite,streak-drift 4.7s ease-in-out -1.5s infinite alternate-reverse}
 .hero::before{animation:glitch-streaks 4.6s steps(1) -1s infinite}
 /* buttons on the public page: the plate jumps, the button itself (and so the area that takes the click) stays put */
 :is(.nav,.hero,.section) .btn:hover::before,:is(.nav,.hero,.section) .btn--ghost:hover::after{animation:glitch-nudge .28s steps(1) 1}}

@keyframes glitch-title{0%,89%,96%,100%{transform:none}
 90%{transform:translateX(.04em) skewX(-8deg)}
 92%{transform:translateX(-.05em)}
 94%{transform:translateX(.02em) skewX(5deg)}}
@keyframes glitch-cyan{0%,57%,62%,89%,97%,100%{clip-path:inset(0);transform:translate(-.055em,-.02em)}
 58%{clip-path:inset(40% 0 38% 0);transform:translate(-.2em,0)}
 60%{clip-path:inset(66% 0 10% 0);transform:translate(.14em,0)}
 90%{clip-path:inset(8% 0 64% 0);transform:translate(-.24em,0)}
 92%{clip-path:inset(52% 0 20% 0);transform:translate(.18em,0)}
 94%{clip-path:inset(30% 0 46% 0);transform:translate(-.12em,0)}
 96%{clip-path:inset(72% 0 4% 0);transform:translate(.22em,0)}}
@keyframes glitch-pink{0%,57%,62%,89%,97%,100%{clip-path:inset(0);transform:translate(.055em,.02em)}
 58%{clip-path:inset(12% 0 70% 0);transform:translate(.18em,0)}
 60%{clip-path:inset(48% 0 30% 0);transform:translate(-.16em,0)}
 90%{clip-path:inset(60% 0 14% 0);transform:translate(.2em,0)}
 92%{clip-path:inset(16% 0 58% 0);transform:translate(-.2em,0)}
 94%{clip-path:inset(78% 0 2% 0);transform:translate(.14em,0)}
 96%{clip-path:inset(34% 0 42% 0);transform:translate(-.18em,0)}}
/* every keyframe names all three properties: with gaps the browser cannot hand the animation to the compositor */
@keyframes glitch-photo{0%,57%,64%,89%,96%,100%{opacity:0;clip-path:inset(22% 0 66% 0);transform:translateX(0)}
 58%{opacity:1;clip-path:inset(22% 0 66% 0);transform:translateX(-3%)}
 60%{opacity:1;clip-path:inset(71% 0 21% 0);transform:translateX(2.5%)}
 62%{opacity:1;clip-path:inset(40% 0 52% 0);transform:translateX(-1.5%)}
 90%{opacity:1;clip-path:inset(12% 0 78% 0);transform:translateX(4%)}
 92%{opacity:1;clip-path:inset(76% 0 15% 0);transform:translateX(-3.5%)}
 94%{opacity:1;clip-path:inset(47% 0 44% 0);transform:translateX(2%)}}
@keyframes glitch-photo-2{0%,57%,64%,89%,96%,100%{clip-path:inset(63% 0 32.5% 0);transform:translateX(1.4%)}
 58%{clip-path:inset(48% 0 41% 0);transform:translateX(3.5%)}
 60%{clip-path:inset(9% 0 84% 0);transform:translateX(-2.5%)}
 62%{clip-path:inset(82% 0 10% 0);transform:translateX(2%)}
 90%{clip-path:inset(30% 0 58% 0);transform:translateX(-4%)}
 92%{clip-path:inset(55% 0 39% 0);transform:translateX(3%)}
 94%{clip-path:inset(18% 0 76% 0);transform:translateX(-2%)}}
@keyframes glitch-mark{0%,57%,62%,89%,95%,100%{transform:none}
 58%{transform:translateX(-.35rem) skewX(4deg)}
 60%{transform:translateX(.3rem)}
 90%{transform:translateX(.4rem) skewX(-6deg)}
 93%{transform:translateX(-.25rem)}}
@keyframes glitch-streaks{0%,24%,67%,100%{clip-path:inset(0);transform:none}
 18%{clip-path:inset(0 0 46% 0);transform:translateX(6%)}
 21%{clip-path:inset(30% 0 0 0);transform:translateX(-4%)}
 61%{clip-path:inset(52% 12% 0 0);transform:translateX(-7%)}
 64%{clip-path:inset(0 0 22% 30%);transform:translateX(3%)}}
@keyframes glitch-nudge{0%{transform:translateX(-2px)}
 25%{transform:translateX(2px) skewX(-6deg)}
 50%{transform:translateX(-1px)}
 75%,100%{transform:none}}
@keyframes glitch-text{0%{text-shadow:-.12em 0 rgb(var(--pink-rgb)/.9),.12em 0 rgb(var(--cyan-rgb)/.9);transform:translateX(.06em) skewX(-8deg)}
 25%{text-shadow:.1em 0 rgb(var(--pink-rgb)/.9),-.1em 0 rgb(var(--cyan-rgb)/.9);transform:translateX(-.05em)}
 50%{text-shadow:-.06em .04em rgb(var(--pink-rgb)/.9),.06em -.04em rgb(var(--cyan-rgb)/.9);transform:skewX(5deg)}
 75%,100%{text-shadow:var(--split);transform:none}}
/* translate and scale are properties of their own here, not transform. That lets these two animations share an
   element with a transform animation (the glitch jumps) and still run on the compositor, at no cost to the main
   thread. Animating transform twice on one element, or background-position, keeps the main thread busy every frame. */
@keyframes streak-drift{from{translate:-.3rem 0;scale:.96 1}to{translate:.35rem 0;scale:1.06 1}}
@keyframes rise{from{opacity:0;translate:0 1.25rem}}
@keyframes fade{from{opacity:0}}
@keyframes hint{50%{transform:translateY(.3em)}}
@keyframes ticker{to{transform:translateX(-100%)}}

/* ---- scroll-driven effects, no script: the browser ties these animations to the scroll position.
   Browsers without the feature skip both blocks and simply show the page. ---- */
/* reading progress along the bottom edge of the menu. It only mirrors the scrollbar, so it is on for everyone. */
@media screen{
 @supports (animation-timeline:scroll()){
  .nav::after{content:"";position:absolute;inset:auto 0 -1px;block-size:2px;background:linear-gradient(90deg,var(--pink),var(--cyan));transform-origin:0 50%;
   animation:progress linear both;animation-timeline:scroll(root)}}}
/* Sections appear as they scroll into view: an element fades in and rises while its top edge travels the first 7rem
   above the bottom of the window. Nothing can get stuck half-shown at the end of the page, because the footer under
   the last of these elements is taller than that distance. */
@media screen and (prefers-reduced-motion:no-preference){
 @supports (animation-timeline:view()) and (animation-range:entry){
  .section h2,.card,.tile,.step,.video,.about__text .prose,.more,.faq__item,.section__actions,.outro .wrap{animation:reveal linear both;animation-timeline:view();animation-range:entry 0% entry 7rem}
  :is(.card,.tile,.step):nth-child(even){animation-range:entry 2.5rem entry 9.5rem} /* neighbours arrive one after another */
  .section h2{animation-name:reveal-glitch;animation-timing-function:steps(2,jump-none)} /* headings snap in through a few glitch poses */
  /* keyboard focus must never land on something half-transparent */
  :is(.card,.tile,.step,.video,.about__text .prose,.more,.faq__item,.section__actions,.outro .wrap):focus-within{animation:none}}}
@keyframes progress{from{transform:scaleX(0)}}
@keyframes reveal{0%{opacity:0;transform:translateY(1.5rem)}
 60%{opacity:1}}
@keyframes reveal-glitch{0%{opacity:0;transform:translateX(-1.5rem) skewX(-14deg);clip-path:inset(-1rem 100% -1rem -1rem)}
 35%{opacity:1;transform:translateX(.6rem) skewX(8deg);clip-path:inset(-1rem 35% -1rem -1rem)}
 60%{opacity:1;transform:translateX(-.3rem) skewX(-4deg);clip-path:inset(-1rem)}
 80%{opacity:1;transform:translateX(.12rem);clip-path:inset(-1rem)}}
