/* Layout: home = centred lockup + ability-key nav (Q / W / E).
   Open = the same lockup + nav slide into a left rail, content scrolls on the right.
   Palette: the synk brand. Pure black, white at set opacities, one lime accent
   (#9dfe0f) with dark ink on lime and a pale lime for soft text. Dark only. */
:root {
  color-scheme: dark;

  --ink:   #000000;
  --ink-2: #0a0a0a;
  --ink-3: #121212;
  --fg:    #ffffff;
  --fg-2:  rgba(255, 255, 255, .62);
  --fg-3:  rgba(255, 255, 255, .42);
  --line:   rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .2);

  --lime: #9dfe0f;
  --lime-rgb: 157, 254, 15;
  --pale: #e4ffb0;
  --on-lime: #050700;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --logo-w: clamp(240px, 46vw, 600px);
  --rail-w: 284px;

  /* intro timeline — site.js reads --dur to sync the background ring */
  --delay: .3s;
  --dur: 1.5s;
  --land: calc(var(--delay) + var(--dur) * .7);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

@property --cd  { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: var(--font);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* CSS fallback while WebGL boots (or when it is unavailable) */
body {
  background:
    radial-gradient(90vmax 55vmax at 50% 112%, rgba(var(--lime-rgb), .55) 0%, rgba(40, 70, 0, .35) 38%, #000 72%),
    var(--ink);
}

button { font: inherit; color: inherit; }
kbd { font-family: var(--mono); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.gl-ready #bg { opacity: 1; }

/* ---- shell ---------------------------------------------------------------- */
.app {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.hero {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vh, 30px);
  min-width: 0;
  min-height: 0;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.brand { position: relative; perspective: 1000px; }

.tagline {
  margin: calc(clamp(-14px, -1.4vh, -6px)) 0 0;
  font: 500 12px/1 var(--mono);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--fg-2);
  animation: fade-up .9s var(--ease-out) calc(var(--land) + .45s) both;
}

/* ---- logo lockup ------------------------------------------------------------ */
.lockup {
  transform:
    translate3d(var(--tx, 0px), var(--ty, 0px), 0)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  will-change: transform;
}

.float { animation: float 7s ease-in-out calc(var(--delay) + var(--dur) + .3s) infinite; }

.logo {
  position: relative;
  width: var(--logo-w);
  max-width: 100%;
  aspect-ratio: 435 / 140;
}

.halo {
  position: absolute;
  inset: -80% -30%;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 38% 48%, rgba(var(--lime-rgb), .22), transparent 72%),
    radial-gradient(closest-side at 60% 45%, rgba(255, 255, 255, .05), transparent 72%);
  opacity: 0;
  animation:
    halo-flash 1.6s ease-out var(--land) both,
    halo-breathe 5.5s ease-in-out calc(var(--land) + 1.6s) infinite;
}

/* the symbol: two halves that slide along the seam and lock */
.mark {
  position: absolute;
  inset: 0;
  transform-origin: 19.6% 50%;
  animation: impact .9s var(--ease-out) var(--land) both;
}

.p {
  position: absolute;
  left: var(--l);
  top: var(--t);
  width: var(--w);
  height: var(--h);
  opacity: 0;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, opacity, filter;
}

.p.top {
  --l: 11.494%; --t: 8%; --w: 25.103%; --h: 42.143%;
  animation:
    in-top var(--dur) var(--ease-out) var(--delay) both,
    drift-top 5.5s ease-in-out calc(var(--delay) + var(--dur) + .1s) infinite;
}
.p.bottom {
  --l: 2.621%; --t: 49.857%; --w: 25.149%; --h: 42.286%;
  animation:
    in-bottom var(--dur) var(--ease-out) var(--delay) both,
    drift-bottom 5.5s ease-in-out calc(var(--delay) + var(--dur) + .1s) infinite;
}

.p.ch {
  animation:
    rise 1s var(--ease-out) calc(var(--land) + var(--i) * .08s) both,
    wave 4.6s ease-in-out calc(var(--land) + 1.3s + var(--i) * .22s) infinite;
}
.p.s { --l: 41.839%; --t: 31.143%; --w: 10.437%; --h: 40.857%; }
.p.y { --l: 53.149%; --t: 32%;     --w: 13.103%; --h: 55.429%; }
.p.n { --l: 67.632%; --t: 31.286%; --w: 11.862%; --h: 39.857%; }
.p.k { --l: 82.115%; --t: 12.571%; --w: 12%;     --h: 58.571%; }
.p.c {
  --l: 94.023%; --t: 8.286%; --w: 3.31%; --h: 10.286%;
  animation: pop .7s var(--ease-out) calc(var(--land) + var(--i) * .08s) both;
}

/* duotone sweep, clipped to the logo's own alpha */
.shine {
  position: absolute;
  inset: 0;
  -webkit-mask: url(/assets/logo-full.png) center / 100% 100% no-repeat;
          mask: url(/assets/logo-full.png) center / 100% 100% no-repeat;
  background: linear-gradient(110deg,
    transparent 40%,
    rgba(var(--lime-rgb), 1) 47%,
    var(--pale) 50%,
    rgba(var(--lime-rgb), 1) 53%,
    transparent 60%);
  background-size: 300% 100%;
  background-position: 100% 0;
  opacity: 0;
  pointer-events: none;
  animation: shine 6s ease-in-out calc(var(--land) + 1.4s) infinite;
}

/* the halves arrive blurred and pick up their own signal colour as they lock */
@keyframes in-top {
  0%   { opacity: 0; transform: translate3d(95%, -45%, 0) rotate(8deg); filter: blur(14px) drop-shadow(0 0 0 rgba(var(--lime-rgb), 0)); }
  40%  { opacity: 1; }
  100% { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 12px rgba(var(--lime-rgb), .55)); }
}
@keyframes in-bottom {
  0%   { opacity: 0; transform: translate3d(-95%, 45%, 0) rotate(8deg); filter: blur(14px) drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
  40%  { opacity: 1; }
  100% { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 10px rgba(255, 255, 255, .28)); }
}
@keyframes drift-top    { 0%, 100% { translate: 0 0; } 50% { translate: 5% 0; } }
@keyframes drift-bottom { 0%, 100% { translate: 0 0; } 50% { translate: -5% 0; } }

@keyframes rise {
  0%   { opacity: 0; transform: translate3d(0, 55%, 0) scale(.9); filter: blur(10px); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes wave { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3.5%; } }
@keyframes pop  { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes impact { 0% { transform: scale(1); } 28% { transform: scale(1.06); } 100% { transform: scale(1); } }

@keyframes halo-flash {
  0%   { opacity: 0;   transform: scale(.55); }
  22%  { opacity: .8;  transform: scale(1.15); }
  100% { opacity: .6;  transform: scale(1); }
}
@keyframes halo-breathe {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.06); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(.35deg); }
}
@keyframes shine {
  0%, 36%   { opacity: 0; background-position: 100% 0; }
  40%       { opacity: 1; }
  70%       { opacity: 1; }
  74%, 100% { opacity: 0; background-position: 0% 0; }
}
@keyframes fade-up {
  0%   { opacity: 0; transform: translate3d(0, 10px, 0); filter: blur(6px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

/* ---- nav: ability keys ------------------------------------------------------ */
.nav {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 5px;
  align-items: center;
  min-width: 212px;
  padding: 11px 14px 11px 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 10, 10, .58);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .3s ease, background .3s ease, transform .4s var(--ease-out), box-shadow .4s ease;
  animation: fade-up .9s var(--ease-out) calc(var(--land) + .6s + var(--i) * .09s) both;
}
.nav-item:hover {
  border-color: rgba(var(--lime-rgb), .45);
  background: rgba(18, 18, 18, .75);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -18px rgba(var(--lime-rgb), .5);
}
.nav-item:active { transform: translateY(0); }
.nav-item:focus-visible { outline-offset: 2px; border-radius: 16px; }

.nav-ico {
  grid-row: 1 / 3;
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--ink-3);
  color: var(--fg);
  transition: background .3s ease, color .3s ease, border-color .3s ease, width .3s, height .3s;
}
.nav-ico svg,
.ico svg,
.incl-ico svg,
.rail-cta svg,
.copy svg,
.cta svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.nav-ico svg { width: 22px; height: 22px; }

/* ability cooldown: a conic shade unwinds over the icon after each press */
.nav-ico::after {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(rgba(0, 0, 0, .7) var(--cd), transparent 0);
  pointer-events: none;
}
.nav-item.cd .nav-ico::after { animation: cooldown .75s linear both; }
.nav-item.cd .nav-ico { box-shadow: 0 0 0 0 rgba(var(--lime-rgb), .6); animation: cast .75s ease-out; }
@keyframes cooldown { from { --cd: 360deg; } to { --cd: 0deg; } }
@keyframes cast {
  0%   { box-shadow: 0 0 0 0 rgba(var(--lime-rgb), .55); }
  100% { box-shadow: 0 0 0 10px rgba(var(--lime-rgb), 0); }
}

.nav-label {
  align-self: end;
  font: 600 15px/1.1 var(--font);
  letter-spacing: -.005em;
  white-space: nowrap;
}
.nav-meta {
  grid-column: 2;
  align-self: start;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-3);
  white-space: nowrap;
}

.key {
  grid-column: 3;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .03);
  font: 600 11.5px/1 var(--mono);
  color: var(--fg-2);
  transition: color .3s ease, border-color .3s ease;
}
.nav-item:hover .key { color: var(--fg); border-color: rgba(var(--lime-rgb), .5); }
.nav-item:hover .nav-ico { color: var(--lime); border-color: rgba(var(--lime-rgb), .45); }

.nav-item[aria-current="page"] .nav-ico {
  border-color: transparent;
  background: var(--lime);
  color: var(--on-lime);
}
.nav-item[aria-current="page"] .nav-ico .a { stroke: currentColor; }

/* shared accent strokes inside icons */
svg .a  { stroke: var(--lime); }
svg .e  { stroke: var(--pale); }
svg .f  { fill: var(--lime); stroke: none; }
svg .ef { fill: var(--pale); stroke: none; }
svg .solid { fill: var(--ink-3); }

.hint {
  position: absolute;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  transform: translateX(-50%);
  font: 500 11px/1 var(--mono);
  letter-spacing: .08em;
  color: var(--fg-3);
  white-space: nowrap;
  animation: fade-up 1s var(--ease-out) calc(var(--land) + 1.1s) both;
}
.hint kbd,
.rail-hint kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-size: 10px;
  color: var(--fg-2);
}
.hint kbd + kbd { margin-left: -2px; }
.hint i { width: 3px; height: 3px; margin: 0 6px; border-radius: 50%; background: var(--fg-3); }

.rail-foot { display: none; }

/* ---- open: lockup + nav become the rail --------------------------------------- */
.is-open { --logo-w: 156px; }
.is-open .app { grid-template-columns: var(--rail-w) minmax(0, 1fr); }

.is-open .hero {
  align-items: stretch;
  justify-content: flex-start;
  gap: 34px;
  padding: 34px 18px 24px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 10, 10, .78), rgba(0, 0, 0, .62));
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
}
.is-open .brand { align-self: flex-start; margin-left: 6px; }
.is-open .logo { cursor: pointer; }
.is-open .float { animation: none; }
.is-open .tagline,
.is-open .hint { display: none; }

.is-open .nav { flex-direction: column; gap: 4px; }
.is-open .nav-item {
  min-width: 0;
  width: 100%;
  padding: 8px 10px 8px 8px;
  border-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  border-radius: 13px;
  box-shadow: none;
  animation: none;
}
.is-open .nav-item:hover { transform: none; background: rgba(255, 255, 255, .035); }
.is-open .nav-item[aria-current="page"] {
  border-color: var(--line-2);
  background: rgba(18, 18, 18, .9);
}
.is-open .nav-ico { width: 38px; height: 38px; border-radius: 11px; }
.is-open .key { width: 22px; height: 22px; font-size: 10.5px; }

.is-open .rail-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  animation: fade-up .8s var(--ease-out) .5s both;
}
.rail-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  font: 600 14px/1 var(--font);
  color: var(--fg);
  text-decoration: none;
  transition: border-color .3s ease, background .3s ease;
}
.rail-cta svg { width: 20px; height: 20px; }
.rail-cta:hover { border-color: rgba(var(--lime-rgb), .55); background: rgba(var(--lime-rgb), .08); }
.rail-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px;
  font: 500 11px/1 var(--mono);
  letter-spacing: .06em;
  color: var(--fg-3);
}

/* ---- panel ------------------------------------------------------------------ */
.panel { display: none; }
.is-open .panel {
  grid-area: 1 / 2;
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: clamp(28px, 4.2vh, 52px) clamp(20px, 3.6vw, 60px) 0;
}

.view {
  display: none;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.view.active { display: flex; }

/* staggered entrance; animations restart every time a view is shown */
.rv { animation: rv-in .8s var(--ease-out) calc(.18s + var(--i, 0) * .035s) both; }
@keyframes rv-in {
  0%   { opacity: 0; transform: translate3d(0, 16px, 0); filter: blur(6px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

.head {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.head-main { min-width: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(var(--lime-rgb), .8);
}
.dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(var(--lime-rgb), .6);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0%   { transform: scale(.4); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* the headline syncs like the mark: top half slides in from the left,
   bottom half from the right, and they lock on the seam */
.title {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(38px, 4.6vw, 70px);
  line-height: .95;
  letter-spacing: -.012em;
  text-transform: uppercase;
  text-wrap: balance;
  color: transparent;
}
.title::before,
.title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--fg);
  animation: seam-top 1.1s var(--ease-out) .25s both;
}
.title::before { clip-path: inset(0 0 50% 0); }
.title::after {
  clip-path: inset(50% 0 0 0);
  animation-name: seam-bottom;
}
@keyframes seam-top {
  0%   { transform: translate3d(-.35em, 0, 0); color: var(--lime); }
  60%  { color: var(--fg); }
  100% { transform: none; color: var(--fg); }
}
@keyframes seam-bottom {
  0%   { transform: translate3d(.35em, 0, 0); color: var(--pale); }
  60%  { color: var(--fg); }
  100% { transform: none; color: var(--fg); }
}

.lede {
  max-width: 60ch;
  margin: 14px 0 0;
  font: 400 clamp(15px, 1.1vw, 17px)/1.5 var(--font);
  color: var(--fg-2);
}

.stats {
  display: flex;
  gap: clamp(22px, 2.8vw, 48px);
  margin: 0;
}
.stat { display: flex; flex-direction: column-reverse; gap: 8px; }
.stat dt {
  max-width: 14ch;
  font: 500 10.5px/1.35 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.stat dd { margin: 0; }
.stat b {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(34px, 3.2vw, 50px);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.scroll {
  flex: 1;
  min-height: 0;
  margin-right: -10px;
  padding: 22px 10px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  container-type: inline-size;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 48px), transparent 100%);
}
.scroll::after { content: ""; display: block; height: 48px; }

/* ---- features ----------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 10, .5);
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-2);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.filter em {
  font-style: normal;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
  transition: color .25s ease;
}
.filter:hover { border-color: var(--line-2); color: var(--fg); }
.filter[aria-pressed="true"] { border-color: var(--fg); background: var(--fg); color: var(--on-lime); }
.filter[aria-pressed="true"] em { color: rgba(0, 0, 0, .55); }

.feats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-flow: dense;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.feat.wide { grid-column: span 2; }
@container (min-width: 780px) { .feat.wide { grid-row: span 2; } }
@container (max-width: 519px) { .feat.wide { grid-column: auto; } }

.feat {
  --mx: 30%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 18, 18, .72), rgba(10, 10, 10, .6));
  overflow: hidden;
  transition: border-color .35s ease, transform .5s var(--ease-out);
}
/* cursor-tracked wash + a border that lights up under the pointer */
.feat::before,
.plan::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(var(--lime-rgb), .1), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
}
.feat::after,
.plan::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(var(--lime-rgb), .9), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.feat:hover::before,
.feat:hover::after,
.plan:hover::before,
.plan:hover::after { opacity: 1; }

.feat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: var(--ink-3);
  color: var(--fg);
  transition: border-color .35s ease, box-shadow .35s ease, transform .5s var(--ease-out);
}
.ico svg { width: 24px; height: 24px; }
.feat:hover .ico {
  border-color: rgba(var(--lime-rgb), .5);
  box-shadow: 0 0 26px -4px rgba(var(--lime-rgb), .35);
  transform: translateY(-2px);
}

.grp {
  font: 500 10px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-top: 4px;
}

.feat h4 {
  margin: 0;
  font: 600 16.5px/1.3 var(--font);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.feat p {
  max-width: 46ch;
  margin: 0;
  font: 400 14px/1.55 var(--font);
  color: var(--fg-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 7px 10px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: rgba(255, 255, 255, .05);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .78);
}

/* ---- icon micro-animations (run while the card is hovered or focused) ------- */
.ico svg * { transform-box: view-box; transform-origin: var(--o, 12px 12px); }
.k-draw  { stroke-dasharray: 1; stroke-dashoffset: 0; }
.k-flow  { stroke-dasharray: 2 2.4; }
.k-flash { opacity: 0; }
.k-ring  { --o: 9px 8px; }
.k-drain { --o: 5px 12px; }
.k-swap  { --o: 15px 11px; }
.trail   { stroke-dasharray: 1.5 2; opacity: .55; }

.feat:hover .k-draw,  .feat:focus-within .k-draw  { animation: k-draw 1s var(--ease-out); }
.feat:hover .k-flow,  .feat:focus-within .k-flow  { animation: k-flow .7s linear infinite; }
.feat:hover .k-pulse, .feat:focus-within .k-pulse { animation: k-pulse 1.1s ease-in-out infinite; }
.feat:hover .k-ring,  .feat:focus-within .k-ring  { animation: k-ring 1.1s ease-out infinite; }
.feat:hover .k-slide, .feat:focus-within .k-slide { animation: k-slide 1.4s var(--ease-io) infinite; }
.feat:hover .k-squeeze, .feat:focus-within .k-squeeze { animation: k-squeeze 1.2s var(--ease-io) infinite; }
.feat:hover .k-drain, .feat:focus-within .k-drain { animation: k-drain 1.6s var(--ease-io) infinite; }
.feat:hover .k-flash, .feat:focus-within .k-flash { animation: k-flash 1.2s ease-out infinite; }
.feat:hover .k-rise,  .feat:focus-within .k-rise  { animation: k-rise 1s var(--ease-out) infinite; }
.feat:hover .k-swap,  .feat:focus-within .k-swap  { animation: k-swap 1.6s var(--ease-io) infinite; }
.feat:hover .k-zoom,  .feat:focus-within .k-zoom  { animation: k-zoom 1.4s var(--ease-io) infinite; }
.feat:hover .k-sweep, .feat:focus-within .k-sweep { animation: k-sweep 1.8s linear infinite; }
.feat:hover .k-ping,  .feat:focus-within .k-ping  { animation: k-ping 1.8s ease-out infinite; --o: 16px 15.5px; }
.feat:hover .k-blink, .feat:focus-within .k-blink { animation: k-blink 1s steps(2, jump-none) infinite; }

@keyframes k-draw    { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes k-flow    { to { stroke-dashoffset: -8.8; } }
@keyframes k-pulse   { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes k-ring    { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes k-slide   { 0%, 100% { transform: translate(0, 0); } 45%, 60% { transform: translate(3px, 1.5px); } }
@keyframes k-squeeze { 0%, 100% { transform: scale(1); } 50% { transform: scale(.82); } }
@keyframes k-drain   { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.55); } }
@keyframes k-flash   { 0% { opacity: .95; } 100% { opacity: 0; } }
@keyframes k-rise    { 0% { transform: translateY(2.5px); opacity: .2; } 100% { transform: translateY(-1px); opacity: 1; } }
@keyframes k-swap    { 0%, 100% { transform: rotate(0) translate(0, 0); } 50% { transform: rotate(-8deg) translate(-1.5px, 1px); } }
@keyframes k-zoom    { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.7); } }
@keyframes k-sweep   { to { transform: rotate(360deg); } }
@keyframes k-ping    { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: .3; } 100% { transform: scale(1); opacity: 1; } }
@keyframes k-blink   { 0% { opacity: 1; } 100% { opacity: 0; } }

/* ---- evade preview ---------------------------------------------------------- */
.modes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.mode {
  padding: 8px 11px;
  border: 1px solid rgba(var(--lime-rgb), .38);
  border-radius: 8px;
  background: rgba(var(--lime-rgb), .07);
  font: 500 11px/1 var(--mono);
  letter-spacing: .12em;
  color: rgba(228, 255, 176, .96);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.mode:hover { border-color: rgba(var(--lime-rgb), .7); color: var(--fg); }
.mode[aria-pressed="true"] { border-color: var(--lime); background: var(--lime); color: var(--on-lime); }

.demo {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 170px;
  margin: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, .55);
  overflow: hidden;
}
.demo-cv {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 140px;
}
.demo-hud {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.demo-hud b { font-weight: 600; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.demo-stats { display: flex; align-items: center; gap: 6px; }
.demo-stats i { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-3); }

/* ---- champions ---------------------------------------------------------------
   wide: grid of portraits on the left, the picked champion's sheet on the right.
   narrow: the sheet slides up from the bottom when a portrait is tapped. */
.roster-wrap {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 27vw, 430px);
  gap: clamp(18px, 2vw, 32px);
  padding-top: 20px;
}
.roster-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.roster-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 300px;
  min-width: 200px;
}
.search svg {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--fg-3);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(10, 10, 10, .6);
  color: var(--fg);
  font: 400 14px/1.2 var(--font);
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.search input::placeholder { color: var(--fg-3); }
.search input:focus { border-color: rgba(var(--lime-rgb), .65); box-shadow: 0 0 0 3px rgba(var(--lime-rgb), .12); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }

.roster-scroll { padding-top: 16px; }

.champs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.champ {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  padding: 7px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 18, 18, .62);
  text-align: left;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, transform .4s var(--ease-out), box-shadow .3s ease;
}
.champ:hover { border-color: var(--line-2); background: rgba(24, 24, 24, .8); transform: translateY(-2px); }
.champ:focus-visible { border-radius: 14px; }
.champ[aria-pressed="true"] {
  border-color: var(--lime);
  background: rgba(var(--lime-rgb), .08);
  box-shadow: 0 0 0 1px rgba(var(--lime-rgb), .35), 0 14px 36px -18px rgba(var(--lime-rgb), .7);
}
.champ-img {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 9px;
  background: var(--ink-3);
}
.champ-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: saturate(.85);
  transition: transform .6s var(--ease-out), filter .3s ease;
}
.champ:hover .champ-img img,
.champ[aria-pressed="true"] .champ-img img { transform: scale(1.18); filter: saturate(1.05); }
/* if the portrait cannot load, show the initials instead */
.champ-img.noimg img { display: none; }
.champ-img.noimg::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--fg-3);
}
.champ-name {
  padding: 0 3px;
  overflow: hidden;
  font: 600 13.5px/1.2 var(--font);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.champ[aria-pressed="true"] .champ-name { color: var(--lime); }
.champ-tag {
  padding: 0 3px;
  overflow: hidden;
  font: 500 9.5px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--fg-3);
}
.champ-empty { margin: 18px 2px; font: 400 14px/1.5 var(--font); color: var(--fg-3); }

.champ-detail {
  position: relative;
  min-height: 0;
  margin-bottom: 24px;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 18, 18, .86), rgba(10, 10, 10, .74));
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
  animation: rv-in .8s var(--ease-out) .4s both;
}
.sheet-close { display: none; }

.cd-top { display: flex; align-items: center; gap: 16px; }
.cd-img {
  flex: none;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 1px solid rgba(var(--lime-rgb), .55);
  border-radius: 18px;
  background: var(--ink-3);
  box-shadow: 0 0 34px -8px rgba(var(--lime-rgb), .45);
}
.cd-img img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.cd-id { min-width: 0; }
.cd-title {
  margin: 0;
  font: 500 10.5px/1.3 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.cd-name {
  margin: 6px 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.cd-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.cd-sec {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
}
.cd-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.cd-label em { font-style: normal; letter-spacing: .12em; color: var(--lime); white-space: nowrap; }

.cd-abil { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cd-abil li { display: flex; align-items: center; gap: 12px; font: 500 14px/1.3 var(--font); }
.cd-abil kbd {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .03);
  font: 600 12px/1 var(--mono);
  color: var(--fg);
}
.cd-abil kbd.ult { border-color: var(--lime); background: var(--lime); color: var(--on-lime); }

/* skill order: one row per ability, one column per level */
.lvl {
  display: grid;
  grid-template-columns: 16px repeat(18, minmax(0, 1fr));
  gap: 3px;
}
.lvl span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, .045);
  font: 600 8.5px/1 var(--mono);
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.lvl .k { background: none; font-size: 10px; color: var(--fg-3); }
.lvl .on { background: var(--lime); color: var(--on-lime); }
.lvl .on.r { background: var(--pale); }

.cd-notes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cd-notes li {
  position: relative;
  padding-left: 18px;
  font: 400 13.5px/1.55 var(--font);
  color: var(--fg-2);
  overflow-wrap: anywhere;
}
.cd-notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--lime);
  transform: rotate(45deg);
}
.cd-sec .chips { margin: 0; }
.chips li.on {
  border-color: rgba(var(--lime-rgb), .45);
  background: rgba(var(--lime-rgb), .08);
  color: rgba(228, 255, 176, .96);
}

.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  animation: fade-in .3s ease both;
}
@keyframes fade-in { from { opacity: 0; } }

@media (max-width: 1099px) {
  .roster-wrap { grid-template-columns: minmax(0, 1fr); }
  .champ-detail {
    position: fixed;
    z-index: 20;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 84vh;
    margin: 0;
    padding: 22px 18px max(22px, env(safe-area-inset-bottom));
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: var(--ink-2);
    box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, .9);
    transform: translateY(105%);
    visibility: hidden;
    animation: none;
    transition: transform .5s var(--ease-out), visibility 0s linear .5s;
  }
  .champ-detail.open {
    transform: none;
    visibility: visible;
    transition: transform .5s var(--ease-out), visibility 0s;
  }
  .sheet-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--ink-3);
    cursor: pointer;
  }
  .sheet-close svg { width: 16px; height: 16px; fill: none; stroke: var(--fg); stroke-width: 1.8; stroke-linecap: round; }
  .champs { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
}

/* ---- buy -------------------------------------------------------------------- */
/* the only official reseller sits first, so buyers see it before any key */
.reseller {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  padding: 20px 22px;
  border: 1px solid rgba(var(--lime-rgb), .45);
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(var(--lime-rgb), .13), rgba(var(--lime-rgb), .02) 60%),
    rgba(0, 0, 0, .35);
  box-shadow: 0 26px 70px -36px rgba(var(--lime-rgb), .5);
}
.reseller-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--lime);
  color: var(--on-lime);
}
.reseller-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reseller-ico .a { stroke: currentColor; }
.reseller-main { flex: 1 1 260px; min-width: 0; }
.reseller-label {
  margin: 0 0 8px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
}
.reseller-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .4em;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.reseller-name > span[aria-hidden] { color: var(--lime); }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.reseller-text { margin: 8px 0 0; font: 400 14px/1.5 var(--font); color: var(--fg-2); }
.reseller-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.reseller-actions .cta { margin-top: 0; min-width: 230px; }

.keys-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 12px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.keys-label::before {
  content: "";
  width: 16px;
  height: 1px;
  margin-right: 12px;
  background: var(--lime);
}
.keys-label em { margin-left: auto; font-style: normal; color: var(--fg-3); }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 18, 18, .78), rgba(10, 10, 10, .62));
}

/* featured: a slow lime ring runs around the card */
.plan.featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(20, 26, 10, .92), rgba(6, 8, 3, .88)) padding-box,
    conic-gradient(from var(--ang), rgba(var(--lime-rgb), 1), rgba(228, 255, 176, .6), rgba(var(--lime-rgb), .12) 55%, rgba(var(--lime-rgb), 1)) border-box;
  box-shadow: 0 30px 80px -40px rgba(var(--lime-rgb), .55);
  animation: rv-in .8s var(--ease-out) calc(.18s + var(--i, 0) * .035s) both, spin-ang 7s linear infinite;
}
@keyframes spin-ang { to { --ang: 360deg; } }

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.avail .dot { width: 6px; height: 6px; }

/* the key length is the headline of each card */
.dur {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 6px 0 0;
  font: 600 14px/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.dur b {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(56px, 5.4vw, 84px);
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.plan.featured .dur b { color: var(--lime); }
.tag {
  flex: none;
  padding: 6px 9px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  font: 500 10px/1 var(--mono);
  letter-spacing: .14em;
  color: var(--fg-2);
}
.plan.featured .tag { border-color: transparent; background: var(--lime); color: var(--on-lime); font-weight: 600; }

.desc {
  min-height: 3.2em;
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  font: 400 14px/1.6 var(--font);
  color: var(--fg-2);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  font: 600 14px/1 var(--font);
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  transition: background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.cta svg { flex: none; width: 18px; height: 18px; stroke-width: 1.8; transition: transform .4s var(--ease-out); }
.cta:hover,
.cta:focus-visible {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--on-lime);
}
.cta:hover svg,
.cta:focus-visible svg { transform: translateX(4px); }
.plan.featured .cta,
.cta-lime { border-color: var(--lime); background: var(--lime); color: var(--on-lime); }
.plan.featured .cta:hover,
.plan.featured .cta:focus-visible,
.cta-lime:hover,
.cta-lime:focus-visible { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 36px rgba(var(--lime-rgb), .45); }

.incl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 10, 10, .55);
}
.incl-label {
  margin: 0;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.incl-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.incl-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .1em;
  white-space: nowrap;
}
.incl-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--ink-3);
}
.incl-ico svg { width: 18px; height: 18px; }

.buy-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 4px 0;
}
.buy-note p { margin: 0; font: 400 13.5px/1.5 var(--font); color: var(--fg-3); }
.invite {
  color: var(--fg-2);
  text-decoration: underline;
  text-decoration-color: rgba(var(--lime-rgb), .6);
  text-underline-offset: 3px;
  transition: color .25s ease;
}
.invite:hover { color: var(--lime); }
.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: none;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .06em;
  color: var(--fg-2);
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease;
}
.copy svg { width: 15px; height: 15px; }
.copy:hover { color: var(--fg); border-color: var(--fg-3); }
.copy.done { color: var(--lime); border-color: rgba(var(--lime-rgb), .6); }

/* ---- narrow screens ------------------------------------------------------------ */
@media (max-width: 859px) {
  :root { --logo-w: min(78vw, 420px); }
  .tagline { font-size: 10.5px; letter-spacing: .18em; text-align: center; text-wrap: balance; }

  .nav { flex-direction: column; width: min(100%, 340px); gap: 8px; }
  .nav-item { min-width: 0; }
  .hint { display: none; }

  .is-open { --logo-w: 92px; }
  .is-open .app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .is-open .hero {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: max(14px, env(safe-area-inset-top)) 16px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .is-open .brand { margin-left: 2px; }
  .is-open .nav { flex-direction: row; width: 100%; gap: 6px; }
  .is-open .nav-item {
    flex: 1;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: 8px;
    padding: 6px 8px 6px 6px;
  }
  .is-open .nav-meta,
  .is-open .key,
  .is-open .rail-foot { display: none; }
  .is-open .nav-ico { grid-row: auto; width: 32px; height: 32px; border-radius: 9px; }
  .is-open .nav-ico svg { width: 18px; height: 18px; }
  .is-open .nav-label { align-self: center; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }

  .is-open .panel { grid-area: 2 / 1; padding: 20px 16px 0; }
  .head { gap: 16px; padding-bottom: 18px; }
  .eyebrow { margin-bottom: 10px; }
  .lede { font-size: 14.5px; }
  .stats { gap: 22px; }
  .stat b { font-size: 28px; }
  .stat dt { font-size: 9.5px; letter-spacing: .1em; }
  .scroll { margin-right: -6px; padding-right: 6px; padding-top: 18px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -2px; padding: 2px; }
  .filter { flex: none; }
  .incl-list { gap: 10px 18px; }
}

@media (max-width: 420px) {
  .is-open .nav-ico { display: none; }
  .is-open .nav-item { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 10px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .p { opacity: 1; animation: none !important; }
  .p.top    { filter: drop-shadow(0 0 12px rgba(var(--lime-rgb), .55)); }
  .p.bottom { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .28)); }
  .mark, .float, .shine, .dot::after { animation: none; }
  .halo { opacity: .6; animation: none; }
  .nav-item, .tagline, .hint, .rv, .rail-foot, .title::before, .title::after, .champ-detail, .sheet-scrim { animation: none !important; }
  .champ-detail { transition: none !important; }
  .plan.featured { animation: none; }
  .feat *, .nav-ico::after { animation: none !important; }
  #bg { transition: none; }
}
