:root {
  color-scheme:dark;
  --ink:#fcf6ff; --muted:#e0d8f3; --mint:#dcffc0; --edge:#c8aff466;
  font:16px/1.5 system-ui,sans-serif; background:#211543; color:var(--ink);
}
* {box-sizing:border-box}
body {
  position:relative;isolation:isolate;margin:0;min-height:100dvh;
  background:#211543;
}
body::before,body::after {
  content:"";position:fixed;inset:0;pointer-events:none;
}
body::before {
  z-index:-2;
  background:
    radial-gradient(ellipse at 52% 20%,#c2b1ff49,transparent 38%),
    radial-gradient(ellipse at 55% 75%,#6355d6 0%,transparent 48%),
    radial-gradient(ellipse at 72% 100%,#464dbfa0,transparent 53%),
    linear-gradient(145deg,#231441 0%,#35317a 57%,#231640 100%);
}
body::after {
  z-index:-1;
  background:
    radial-gradient(circle at 13px 19px,#fff9 0 .65px,transparent 1.15px) 0 0 / 127px 79px,
    radial-gradient(circle at 32px 47px,#c5d5ff85 0 .9px,transparent 1.6px) 11px 5px / 173px 109px,
    radial-gradient(circle at 17px 11px,#f0d3ff70 0 .45px,transparent 1px) 0 0 / 71px 137px,
    conic-gradient(from 140deg at 36% -12%,transparent 0deg,#cfddff48 13deg,#c0c9ff1a 18deg,transparent 27deg),
    conic-gradient(from 178deg at 67% -17%,transparent 0deg,#ffddff32 12deg,#d1b5ff1e 17deg,transparent 29deg),
    radial-gradient(ellipse 74% 42% at 49% 98%,transparent 64%,#abd6fb29 64.6%,transparent 65.4%),
    radial-gradient(ellipse 80% 49% at 49% 100%,transparent 62%,#afa3ff2b 62.5%,transparent 63.2%);
  mask-image:radial-gradient(ellipse at 52% 50%,#000 17%,#000a 54%,#0004 86%);
}
a {color:inherit}
button {font:inherit}
:focus-visible {outline:3px solid var(--mint);outline-offset:3px}
.shell {width:min(1440px,calc(100% - clamp(1.5rem,6vw,6rem)));margin-inline:auto}
.bar {
  display:flex;justify-content:space-between;align-items:center;gap:1rem;
  padding-block:.8rem;border-bottom:1px solid var(--edge)
}
.brand img {display:block;width:3.75rem;height:auto}
.back {
  display:inline-flex;align-items:center;justify-content:center;min-height:2.75rem;
  padding:.45rem .75rem;border:1px solid #375945;border-radius:.4rem;
  background:linear-gradient(#e0f3c3,#a6cc8e 63%,#81ac76);
  box-shadow:inset 0 1px #f2ffdf,0 2px 4px #14192665;
  color:#163d28;text-decoration:none;text-align:center;line-height:1.08;font-size:.875rem;font-weight:850;
}
.back:is(:hover,:focus-visible) {background:linear-gradient(#ebffd5,#b8de9b);}
.gallery-layout {
  display:grid;grid-template-columns:minmax(13rem,.8fr) minmax(14rem,1.16fr) minmax(16rem,1fr);
  gap:clamp(1rem,3vw,3.5rem);align-items:center;min-height:calc(100dvh - 5rem);padding-block:1.4rem 2rem
}
.gallery-layout[data-view="gallery"] {grid-template-columns:minmax(13rem,.73fr) minmax(0,2.1fr);align-items:start}
.hero h1 {margin:0;letter-spacing:-.075em;font-size:clamp(2.6rem,5.5vw,5.15rem);line-height:1}
.hero h1 span {color:var(--mint)}
.hero p {max-width:28ch;color:var(--muted);margin:.65rem 0 1.2rem}
.filters {display:grid;gap:.3rem;width:min(100%,17.5rem)}
.filters[hidden],.project[hidden],.gallery-layout[data-view="featured"] .project:not([data-featured]) {display:none}
.filters button {
  min-height:2.65rem;text-align:left;padding:.45rem .68rem;
  border:1px solid transparent;border-radius:.45rem;background:transparent;color:var(--ink);
  font-size:clamp(1rem,1.55vw,1.25rem);font-weight:760;cursor:pointer
}
.filters button:hover {background:#7d67b97c}
.filters button[aria-pressed=true] {
  background:var(--mint);color:#26254a;border-color:#f3ffdd;
  box-shadow:0 3px 0 #271c61
}
.filters button:last-child {margin-top:.4rem;border-color:#bfa8ef8a;font-size:.96rem}
.hero-character {
  position:relative;display:grid;place-items:end center;min-width:0;isolation:isolate;
  min-height:min(23rem,56vh);
  background:radial-gradient(ellipse 70% 13% at 50% 95%,#9ce5da43 0%,transparent 88%);
}
.hero-character::before {
  content:"";position:absolute;z-index:-2;inset:5% -4% 2%;
  border-radius:50%;background:radial-gradient(ellipse,#a6b6ff76,transparent 69%)
}
.hero-character::after {
  content:"";position:absolute;z-index:-1;bottom:-.45rem;left:50%;width:100%;height:19%;
  transform:translateX(-50%);border-radius:50%;
  background:repeating-radial-gradient(ellipse at center,#9ce7d026 0 12%,#c4ffe479 13%,#8bd9ce25 15% 24%);
  border:1px solid #c4efdc9c;box-shadow:0 0 0 10px #c4efdc26,0 0 0 19px #a8ecf01e,0 0 39px #a3edec58
}
.hero-character .story-animation {
  width:min(100%,23.2rem,49.6vh);
  mask-image:linear-gradient(#000 90%,transparent 100%);
  filter:drop-shadow(0 8px 23px #20104748);
}
.gallery-layout[data-view="gallery"] .hero-character {display:none}
.gallery {min-width:0}
.gallery h2 {font-size:clamp(1.45rem,2.75vw,2rem);line-height:1.15;letter-spacing:-.035em;margin:0 0 .65rem}
.result {color:var(--muted);margin:0 0 .7rem;font-size:.875rem}
.result:empty {margin:0}
.project-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.project a {
  display:block;height:100%;overflow:hidden;text-decoration:none;border:1px solid var(--edge);
  border-radius:.7rem;background:#261d44;transition:transform .16s,border-color .16s
}
.project a:hover {border-color:#f0e3ff;transform:translateY(-2px)}
.project img {display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:#170f2b}
.project-text {padding:.38rem .65rem .52rem}
.project-text p,.platform {color:#ded3f0;font-size:.875rem;margin:0}
.project-text h3 {font-size:1.03rem;line-height:1.13;margin:.1rem 0}
.gallery-layout[data-view="featured"] .project-grid {grid-template-columns:1fr;gap:.7rem}
.gallery-layout[data-view="featured"] .project a {
  display:grid;grid-template-columns:45% 1fr;min-height:6rem;
  background:#f5efff;color:#241939;border:1px solid #fdfaff
}
.gallery-layout[data-view="featured"] .project img {height:100%;aspect-ratio:1.6;object-fit:cover}
.gallery-layout[data-view="featured"] .project-text {align-self:center;padding:.45rem .65rem}
.gallery-layout[data-view="featured"] .project-text :is(p,.platform) {color:#594576}
@media(max-width:900px) {
  .gallery-layout {grid-template-columns:minmax(0,1fr) minmax(13rem,1fr);align-items:start;gap:1.1rem}
  .gallery-layout[data-view="gallery"] {grid-template-columns:1fr}
  .hero-character {min-height:0;align-self:end}
  .hero-character .story-animation {width:min(100%,16.8rem,38.4vh)}
  .gallery {grid-column:1/-1}
  .gallery-layout[data-view="featured"] .project-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
  .gallery-layout[data-view="featured"] .project a {display:block}
  .gallery-layout[data-view="featured"] .project img {height:auto;aspect-ratio:4/3}
}
@media(max-width:560px) {
  .gallery-layout {position:relative;grid-template-columns:minmax(0,1fr);align-content:start;gap:1.1rem;}
  .hero h1 {font-size:clamp(2rem,9vw,3.1rem);}
  .hero p {font-size:.875rem;}
  [data-view="featured"] .hero h1,
  [data-view="featured"] .hero p {max-width:calc(100% - 6.2rem);}
  [data-view="featured"] .hero {padding-top:.2rem;}
  .hero-character {
    position:absolute;top:.65rem;right:.2rem;width:5.9rem;
    pointer-events:none;
  }
  .hero-character .story-animation {width:min(100%,4.92rem);}
  .hero-character::after {bottom:0;box-shadow:0 0 0 5px #c4efdc26,0 0 19px #a3edec48;}
  .filters {grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:.36rem;}
  .filters button {
    min-height:2.75rem;padding:.35rem .18rem;border-color:#bfa8ef64;
    background:#2f235c96;text-align:center;font-size:.8125rem;line-height:1.16;
  }
  .filters button:last-child {grid-column:span 2;margin-top:0;font-size:.8125rem;}
  .gallery-layout[data-view="featured"] .project-grid,.project-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(prefers-reduced-motion:reduce) {
  .project a {transition:none}
  .project a:hover {transform:none}
}

.story-animation {aspect-ratio:4/5;overflow:hidden;}
.story-animation img {
  display:block;width:calc(100% * var(--frames));height:100%;
  max-width:none;max-height:none;object-fit:fill;
  animation:story-frames var(--duration) steps(var(--frames),end) infinite;
}
.turn-animation {--frames:8;--duration:1.95s;}
@keyframes story-frames {to {transform:translateX(-100%);}}
@media (prefers-reduced-motion:reduce) {
  .story-animation img {animation:none;}
}
