@font-face {
  font-family: "Sofia Poster";
  src: url("assets/sofia-condensed-lat.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Poster";
  src: url("assets/sofia-condensed-cyr.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Commissioner;
  src: url("assets/commissioner-lat.woff2") format("woff2");
  font-weight: 400 750;
  font-display: swap;
}
@font-face {
  font-family: Commissioner;
  src: url("assets/commissioner-cyr.woff2") format("woff2");
  font-weight: 400 750;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: dark;
  --ink: #f5eee7;
  --accent: #ff79b4;
  --background: #17121f;
  --surface: #241a2a;
  --line: #f5eee733;
  --display: "Sofia Poster", Commissioner, sans-serif;
  --gold: #ffd899;
  --shell-width: 1500px;
  --gutter: clamp(20px, 4.8vw, 82px);
  color: var(--ink);
  background: var(--background);
  font-family: Commissioner, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.shell { max-width: var(--shell-width); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; top: 10px; left: 10px; z-index: 12; padding: 10px; background: var(--background); transform: translateY(-175%); }
.skip:focus { transform: none; }
.filter-bank { position: absolute; width: 0; height: 0; pointer-events: none; }

.stage {
  isolation: isolate;
  position: relative;
  overflow: clip;
  background: var(--background);
}
.header-orbit {
  position: absolute;
  top: -164px;
  right: max(-96px, calc((100% - var(--shell-width)) / 2 + 32px));
  width: 650px;
  height: auto;
  color: #dfafe54f;
  pointer-events: none;
}
.header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 99px; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.brand span {
  font: 900 clamp(1.35rem, 2.05vw, 1.825rem)/1 var(--display);
  text-transform: uppercase;
  transform: translateY(.08em);
}
.nav {
  position: relative;
  border: 1px solid #e9c2ff32;
  border-radius: 100px;
  background: linear-gradient(161deg, #8b699d33, #48314e33 55%, #21182b96);
  box-shadow: inset 0 1px 1px #fff4ff20, 0 8px 19px #07061335;
  backdrop-filter: blur(9px) saturate(120%);
}
.glass[data-refracted] { backdrop-filter: var(--refraction) saturate(126%); }
.nav { display: flex; align-items: center; gap: clamp(13px, 2.5vw, 37px); padding: 12px clamp(16px, 2.2vw, 30px); }
.nav a { position: relative; text-decoration: none; font-size: .95rem; font-weight: 600; transition: color .2s, transform .2s; }
.nav a::after {
  content: ""; position: absolute; inset: auto 0 -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transition: transform .24s;
}
.nav a:is(:hover, :focus-visible) { color: var(--accent); transform: translateY(-1px); }
.nav a:is(:hover, :focus-visible)::after { transform: scaleX(1); }

.hero { position: relative; display: grid; grid-template-columns: .91fr 1.09fr; align-items: center; min-height: clamp(550px, 58vw, 760px); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0 var(--gutter);
  border-block: 1px solid var(--line);
  background: url("assets/hero-starlines.svg") left bottom / min(48vw, 660px) auto no-repeat;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; padding-bottom: clamp(35px, 6vw, 120px); }
.hero h1, main h2 { font-family: var(--display); font-weight: 900; }
.hero h1 {
  position: relative;
  width: max-content;
  color: var(--ink);
  font-size: clamp(4.25rem, 10vw, 9.65rem);
  line-height: .79;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.hero-copy p { margin-top: clamp(20px, 3.4vw, 36px); font: 900 clamp(1.35rem, 2.8vw, 2.7rem)/.98 var(--display); text-transform: uppercase; }
.hero-copy p strong { display: block; color: var(--accent); font-weight: inherit; }
.hero-action { position: relative; display: table; margin-top: clamp(18px, 2.7vw, 33px); }
.hero-guidelines, .principles-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: .24em;
}
.hero-guidelines { position: relative; margin-top: 17px; font-size: .95rem; }
.principles-link { margin-top: 15px; }
.hero-guidelines:hover, .principles-link:hover { color: var(--gold); }
.optical-field {
  position: absolute; top: 50%; left: -80px; transform: translateY(-50%);
  width: clamp(320px, 37vw, 448px); aspect-ratio: 448 / 172; pointer-events: none;
}
.optical-field img { width: 100%; height: 100%; }
.optical-orbits { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-link {
  position: relative; z-index: 1;
  isolation: isolate; overflow: hidden; display: grid; place-items: center;
  min-width: clamp(185px, 19vw, 258px); min-height: clamp(55px, 6vw, 76px); padding: 12px 24px;
  border: 1px solid #ad8bc83e; border-radius: 100px; background: #513a712e;
  color: #fff2fb; text-decoration: none; font-weight: 690; font-size: 1.14rem;
  text-shadow: 0 1px 2px #10091bb8;
  backdrop-filter: blur(3px);
}
.hero-link[data-optical] { backdrop-filter: none; }
.hero-link::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(
    from var(--rim-angle, -45deg),
    #fff0ffd9, #cdb1e850 42deg, #8968a024 95deg, #080612a8 164deg,
    #8c67bc54 242deg, #aa90c43b 297deg, #fff0ffd9
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.hero-link::after {
  content: ""; position: absolute; z-index: -1; inset: 1px; border-radius: inherit;
  background: linear-gradient(var(--surface-angle, 137deg), #e3c8ff24, #ac87d405 42%, #160d2c1a 78%, #a986da14);
  opacity: .8; transition: opacity .24s;
}
.hero-link:is(:hover, :focus-visible)::after { opacity: 1; }
.hero-link span {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  text-shadow: 0 0 7px #dfa6ff6b, 0 1px 2px #10091bd0;
  transition: text-shadow .24s;
}
.hero-link:is(:hover, :focus-visible) span { text-shadow: 0 0 8px #edbdff80, 0 1px 2px #10091bd0; }
.art-lens { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-art {
  position: absolute; z-index: 0; left: 38%; right: -1%; top: -74px; bottom: -9%;
  display: grid; justify-items: center; align-items: end; pointer-events: none; container-type: size;
}
.hero-art::before, .hero-art::after { content: ""; position: absolute; pointer-events: none; }
.hero-art::before {
  z-index: -2; width: 88%; aspect-ratio: 1 / 1.04; right: 3%; top: 8%;
  border-radius: 50% 48% 49% 44%;
  background: #342238;
  box-shadow: 0 0 0 1px #f5eee747, 14px 0 #c551873d;
  transform: rotate(-11deg);
  animation: sphere-turn 142s linear infinite;
}
.hero-art::after, .stage-long-orbit {
  z-index: -1; inset: 6% 1% 7% -3%;
}
.hero-art::after {
  background: url("assets/stage-lines.svg") center / contain no-repeat;
  transform-origin: 53.75% 50%;
  animation: orbit-turn 116s linear infinite;
}
.stage-long-orbit {
  position: absolute;
  width: 104%; height: 87%; overflow: visible; pointer-events: none; opacity: .65;
}
.stage-long-orbit ellipse {
  transform-box: fill-box; transform-origin: center;
  transform: rotate(var(--orbit-start, -64deg));
  animation: long-orbit-turn 82s linear infinite;
}
@keyframes long-orbit-turn {
  to { transform: rotate(calc(var(--orbit-start, -64deg) - 360deg)); }
}
.mascot-figure {
  position: relative; width: min(83%, 640px, 78cqh);
  align-self: end;
  transform: translateX(3%);
}
.mascot-motion { position: relative; filter: drop-shadow(0 12px 20px #100b16aa); }
.mascot-hero { width: 100%; height: auto; }
.mascot-sparks { position: absolute; left: 14%; top: 36.8%; pointer-events: none; }
.mascot-sparks i {
  position: absolute; width: clamp(8px, 1.6vw, 19px); aspect-ratio: 1; opacity: 0;
  background: #fff3b8; filter: drop-shadow(0 0 4px #f9ae79);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  animation: hand-spark 1.48s var(--spark-delay) ease-out both;
}
.mascot-sparks i:nth-child(1) { --spark-delay: .25s; --spark-x: -9vmin; --spark-y: -9vmin; }
.mascot-sparks i:nth-child(2) { --spark-delay: .65s; --spark-x: -13vmin; --spark-y: -4vmin; }
.mascot-sparks i:nth-child(3) { --spark-delay: 1.4s; --spark-x: -3vmin; --spark-y: -14vmin; }
.mascot-sparks i:nth-child(4) { --spark-delay: 2.1s; --spark-x: -17vmin; --spark-y: -3vmin; }
.mascot-sparks i:nth-child(5) { --spark-delay: 2.8s; --spark-x: -7vmin; --spark-y: -13vmin; }
@keyframes sphere-turn { from { transform: rotate(-11deg); } to { transform: rotate(349deg); } }
@keyframes orbit-turn { to { transform: rotate(-360deg); } }
@keyframes hand-spark {
  0%, 58% { opacity: 0; transform: translate(0, 0) scale(.15); }
  65% { opacity: 1; }
  92%, 100% { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)) rotate(100deg) scale(.7); }
}
.eye-mask {
  position: absolute; transform: translate(-50%, -50%) rotate(var(--eye-tilt));
  width: var(--eye-width); height: var(--eye-height); pointer-events: none;
}
.eye-mask::after {
  content: ""; position: absolute; inset: 10% 0; background: #110b15;
  transform: scaleX(0); transform-origin: left center; transition: transform .23s cubic-bezier(.2,.8,.25,1);
  pointer-events: none;
}
@media (any-hover: hover) {
  .eye-mask { pointer-events: auto; }
  .eye-mask:hover::after { transform: scaleX(1); }
}
.hero-eyes { left: 57.2%; top: 22.8%; --eye-width: 17%; --eye-height: 6%; --eye-tilt: -28deg; }
.guest-eyes { left: 51.8%; top: 34%; --eye-width: 34%; --eye-height: 9%; --eye-tilt: -16deg; }
.privacy-eyes { left: 52%; top: 29.4%; --eye-width: 29%; --eye-height: 7%; --eye-tilt: -23deg; }

.backstage {
  position: relative;
  z-index: 1;
  background: var(--background);
}
.team, .principles, .process, .privacy, .rules { position: relative; isolation: isolate; }
.team::before, .principles::before, .process::before, .privacy::before, .rules::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
}
.team::before {
  background: url("assets/backstage-curves.svg") left center / min(63vw, 920px) auto no-repeat;
}
.principles::before {
  background: url("assets/backstage-starchart.svg") left max(0px, calc((100vw - 1360px) / 2)) bottom / min(38vw, 510px) auto no-repeat;
}
.process::before {
  inset-inline: var(--gutter);
  width: auto;
  transform: none;
  border-top: 1px solid var(--line);
}
.privacy::before {
  background: url("assets/backstage-crescent.svg") right center / min(68vw, 990px) auto no-repeat;
}
.rules::before {
  background: url("assets/backstage-horizon.svg") left bottom / min(48vw, 690px) auto no-repeat;
}
.team { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(24px, 7vw, 110px); padding-block: clamp(44px, 7vw, 95px); }
.team-copy { max-width: 580px; }
main h2 { color: var(--ink); font-size: clamp(2.7rem, 5.8vw, 5.15rem); line-height: .87; letter-spacing: -.022em; text-transform: uppercase; text-wrap: balance; }
.team p, .team dd, .process p, .incident p, .incident li { font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; max-width: 51ch; }
.team p { margin-top: 22px; }
.team p + p { margin-top: 12px; }
.team h3 { margin-top: 27px; font-size: 1.1rem; font-weight: 690; }
.work-list { margin-top: 10px; }
.work-list > div { padding-block: 16px; border-top: 1px solid #a84c7647; }
.work-list dt { color: var(--accent); font-weight: 720; font-size: 1.12rem; margin-bottom: 5px; }
.guest-art { display: grid; place-items: center; min-height: clamp(240px, 32vw, 420px); isolation: isolate; }
.guest-art::before {
  content: ""; grid-area: 1 / 1; z-index: -1; width: min(90%, 360px); aspect-ratio: 1.12;
  border-radius: 49% 51% 47% 53%; transform: rotate(12deg);
  background: #382338;
  box-shadow: 0 0 0 1px #f5eee760, -14px 7px #c5518750;
}
.guest-figure { grid-area: 1 / 1; position: relative; width: min(96%, 405px); }
.guest-art img { width: 100%; height: auto; filter: drop-shadow(0 12px 23px #0d0919a8); }
[data-enter].waiting { opacity: 0; transform: translate(-30px, 25px) rotate(-7deg); }
[data-enter] { transition: transform .82s cubic-bezier(.18,.75,.24,1.04), opacity .45s ease-in; }

.principles {
  display: grid; grid-template-columns: .85fr 1.15fr; align-items: start;
  gap: clamp(24px, 7vw, 110px); padding-block: clamp(48px, 7.5vw, 100px);
}
.principles-intro, .process-intro {
  max-width: 52ch; margin-top: 20px; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6;
}
.principles .rules-list { padding-inline: clamp(13px, 2.1vw, 26px); background: var(--surface); border: 1px solid var(--line); }
.principles .rules-list details:last-child { border-bottom: 0; }
.process {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: 38px clamp(28px, 7vw, 110px);
  padding-block: clamp(45px, 6vw, 90px) clamp(55px, 8vw, 120px);
}
.process-constellation {
  width: 100%;
  max-width: 560px;
  height: auto;
  justify-self: end;
}
.process ol { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); padding-left: 1.55rem; margin: 0; }
.process li { padding-left: 4px; }
.process li::marker { color: var(--accent); font-weight: 650; }
.process h3 { color: var(--accent); font-size: 1.16rem; margin-bottom: 7px; }
.incident {
  color: var(--background);
  background: var(--accent);
}
.incident-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(24px, 6vw, 90px); padding-block: clamp(52px, 8vw, 110px); }
.incident h2 { color: inherit; }
.incident p { margin-top: 18px; }
.incident ul { margin: 0; padding-left: 1.28rem; }
.incident li { padding-left: 5px; }
.incident li + li { margin-top: 14px; }

.privacy {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 7vw, 100px);
  padding-block: clamp(52px, 8vw, 112px);
}
.privacy p { margin-top: 23px; max-width: 45ch; font-size: clamp(1rem, 1.7vw, 1.18rem); line-height: 1.62; }
.privacy-art { display: grid; place-items: center; isolation: isolate; }
.privacy-art::before {
  content: ""; grid-area: 1 / 1; z-index: -1; width: 92%; aspect-ratio: 1;
  border-radius: 50%; border: 1px solid #ff79b470;
  background: #382239;
}
.privacy-figure { grid-area: 1 / 1; position: relative; width: min(100%, 430px); }
.privacy-figure img { width: 100%; height: auto; }

.rules { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(22px, 7vw, 110px); padding-block: clamp(64px, 9vw, 120px); }
.rules h2 { font-size: clamp(1.7rem, 3.7vw, 3.65rem); }
.rules-list { border-top: 1px solid #a84c7663; }
details { border-bottom: 1px solid #a84c7663; }
summary { display: flex; list-style: none; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; min-height: 56px; padding-block: 10px; font-weight: 650; color: var(--accent); transition: color .2s; }
summary:is(:hover, :focus-visible) { color: var(--gold); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+" / ""; flex: none; font-size: 1.24rem; margin-right: 6px; transition: transform .23s; }
summary:is(:hover, :focus-visible)::after { transform: rotate(-12deg) scale(1.16); }
details[open] summary::after { content: "−" / ""; }
details p { padding: 0 26px 17px 0; max-width: 57ch; line-height: 1.62; }

@supports selector(details::details-content) {
  @supports (interpolate-size: allow-keywords) {
    details::details-content {
      interpolate-size: allow-keywords;
      overflow: clip;
      block-size: 0;
      opacity: 0;
      transition: block-size .32s cubic-bezier(.22,.72,.25,1), opacity .22s ease,
        content-visibility .32s allow-discrete;
    }
    details[open]::details-content { block-size: auto; opacity: 1; }
  }
}

.footer { background: #100d1c; border-top: 1px solid #d182ab58; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-block: 28px; }
.footer .principles-link { margin-top: 0; }
.footer h2 { font-size: 1rem; margin-bottom: 5px; color: var(--accent); }
.footer p { font-size: .95rem; }
.footer .footer-copyright { margin-top: 7px; color: #bdaec8; font-size: .875rem; }
.footer-channel { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); text-decoration: none; text-underline-offset: .22em; }
.footer-channel svg { flex: none; }
.footer-channel-handle { white-space: nowrap; }
.footer-channel:is(:hover, :focus-visible) { color: var(--gold); }
.footer-channel:is(:hover, :focus-visible) .footer-channel-handle { text-decoration: underline; }

@media (max-width: 760px) {
  .principles, .rules { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .header { min-height: 82px; }
  .hero { min-height: 520px; }
  .hero-art { left: 39%; right: -11%; top: -35px; bottom: -7%; }
  .mascot-figure { width: min(82%, 78cqh); }
}
@media (max-width: 600px) {
  .team::before, .privacy::before { background-size: 125vw auto, auto; }
  .principles::before, .rules::before { background-size: 77vw auto, auto; }
  .header { min-height: 71px; gap: 7px; }
  .brand { gap: 3px; }
  .brand img { width: 33px; height: auto; }
  .brand span { font-size: 1.215rem; }
  .nav { gap: 11px; padding: 10px 12px; }
  .nav a { font-size: .82rem; }
  .hero { display: grid; grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero-copy { padding-bottom: 11px; }
  .hero h1 { font-size: clamp(3.6rem, 16.5vw, 6rem); }
  .header-orbit { width: 430px; top: -102px; right: -114px; }
  .hero::before { background-size: 80vw auto; background-position: left -16vw top 201px; }
  .hero-copy p { margin-top: 25px; }
  .hero-link { min-width: 172px; min-height: 52px; padding: 8px 13px; font-size: 1.02rem; }
  .hero-art { position: relative; left: auto; right: auto; top: auto; bottom: auto; height: clamp(330px, 96vw, 510px); margin: -6px calc(var(--gutter) * -1) -24px; }
  .hero-art::before { top: 3%; right: 4%; width: 85%; }
  .hero-art::after, .stage-long-orbit { inset: 0; }
  .stage-long-orbit { width: 100%; height: 100%; }
  .mascot-figure { width: min(88%, 88.4cqh); }
  .team { grid-template-columns: 1fr; gap: 15px; }
  .team-copy { grid-row: 1; }
  .team p { margin-top: 19px; }
  .guest-figure { width: min(72%, 330px); }
  .guest-art::before { width: min(70%, 260px); }
  .rules, .incident-inner, .process, .process ol, .privacy, .principles { grid-template-columns: 1fr; }
  .process { gap: 22px; }
  .process-constellation { width: min(83%, 360px); }
  .privacy-figure { width: min(82%, 350px); }
}
@media (max-width: 355px) {
  .brand img { width: 27px; }
  .brand span { font-size: 1.12rem; }
  .nav { gap: 8px; padding-inline: 9px; }
  .nav a { font-size: .77rem; }
}
@media (prefers-reduced-motion: reduce) {
  details::details-content { transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
