/* ShawnTV — shawntv.co
   Home: a stack of full-screen "channels". Each screen is painted in that channel's own brand
   (ShawnTV blue, Super Fun Tech grey, ShawnXD magenta, Super Fun Animation grey/orange,
   the UN server's game world), scroll snaps one screen at a time, and a dot rail on the right
   shows where you are. Inner pages: a blue band with the page title, then plain content.
   The teal bar from the ShawnTV wordmark sits behind every big heading. */

@font-face {
  font-family: "Smiley Sans";
  src: url("/assets/fonts/smiley-sans-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  /* inner pages (follow the system light/dark setting) */
  --paper: #eef2f7;
  --panel: #ffffff;
  --ink: #0b1a33;
  --ink-soft: #4f5d77;
  --rule: #d2dae7;
  --bar: #00adb4;
  --link: #00757b;
  /* brand — identical in both themes */
  --teal: #00adb4;
  --blue-hi: #004ca7;
  --blue-lo: #002a4e;
  --night: #030f24;
  --on-blue: #ffffff;
  --on-blue-soft: rgb(255 255 255 / 0.8);
  --on-blue-line: rgb(255 255 255 / 0.22);
  --on-blue-fill: rgb(255 255 255 / 0.08);
  --chip: #ffffff;
  --chip-ink: #0b1a33;
  --qr-paper: #ffffff;
  --qr-ink: #0b1a33;
  /* type */
  --display: "Smiley Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  /* shape */
  --wrap: 1180px;
  /* how far page content sits in from the header/footer edge (0 on phones) */
  --inset: clamp(0px, calc(6vw - 24px), 72px);
  --r-btn: 10px;
  --ease: cubic-bezier(0.2, 0.75, 0.1, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #06101f;
    --panel: #0d1a33;
    --ink: #e6edf9;
    --ink-soft: #9fb0cc;
    --rule: #1f2e4f;
    --bar: #00868c;
    --link: #45d3d9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #06101f;
  --panel: #0d1a33;
  --ink: #e6edf9;
  --ink-soft: #9fb0cc;
  --rule: #1f2e4f;
  --bar: #00868c;
  --link: #45d3d9;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.75 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }
strong { font-weight: 650; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }

.page { overflow-x: hidden; overflow-x: clip; }
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(clamp(24px, 5vw, 64px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(24px, 5vw, 64px), env(safe-area-inset-right, 0px));
}

/* ---------- the teal bar (from the logo) ---------- */
.bar { position: relative; display: inline-block; isolation: isolate; }
.bar::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -100vw;
  right: -0.2em;
  top: 50%;
  top: calc(0.5lh - 0.02em); /* centre of the first line, so wrapped titles still read */
  height: 0.3em;
  background: var(--bar);
}

/* ---------- header ---------- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start; /* nav sits on the left, on the same edge as the page content */
  gap: 8px 28px;
  padding-block: clamp(22px, 4vh, 40px) 12px;
}
.brand { display: block; padding-block: 6px; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.topbar nav a {
  position: relative;
  color: var(--on-blue);
  text-decoration: none;
  padding-block: 8px;
  transition: color 0.2s;
}
/* only the current tab carries a line, so nothing competes with it while it slides */
.topbar nav a:not([aria-current]) { color: rgb(255 255 255 / 0.66); }
.topbar nav a:not([aria-current]):hover { color: var(--on-blue); }
/* the line under the current page; moving between pages, the browser slides it to the new tab */
.nav-ink {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--teal);
  view-transition-name: nav-ink;
}
@view-transition { navigation: auto; }
/* one bar that glides and stretches: ease in and out evenly, and draw only the new bar (no cross-fade of two copies) */
::view-transition-group(nav-ink) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
::view-transition-old(nav-ink) { display: none; }
::view-transition-new(nav-ink) { animation: none; width: 100%; height: 100%; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.25s; }

/* ---------- buttons ---------- */
.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  --brand: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px 10px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-btn);
  background: var(--panel);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}
.btn:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, var(--panel));
}
.ico { width: 20px; height: 20px; flex: none; fill: var(--brand); color: var(--brand); }
.ico--img { width: 22px; height: 22px; border-radius: 5px; }
.btn--bilibili { --brand: #00a1d6; }
.btn--youtube { --brand: #ff0033; }
.btn--spotify { --brand: #1db954; }
.btn--instagram { --brand: #e1306c; }
.btn--discord { --brand: #5865f2; }
.btn--x { --brand: var(--ink); }
.btn--web { --brand: var(--link); }

/* ---------- footer ---------- */
.footer { color: var(--on-blue); }
.footer .wrap { padding-block: clamp(44px, 7vw, 72px) clamp(32px, 5vh, 48px); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--on-blue-line);
}
.footer .brand img { height: 30px; width: auto; }
.social p { font-size: 15px; color: var(--on-blue-soft); }
.social .links { margin-top: 12px; }
.footer .btn {
  --brand: currentColor;
  background: var(--on-blue-fill);
  border-color: var(--on-blue-line);
  color: var(--on-blue);
}
.footer .btn:hover { background: rgb(255 255 255 / 0.16); border-color: var(--teal); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 18px;
}
.copyright { font-size: 13px; color: var(--on-blue-soft); }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--on-blue-line);
  border-radius: 999px;
  color: var(--on-blue);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.to-top:hover { border-color: var(--teal); background: var(--on-blue-fill); }
.to-top .ico { --brand: currentColor; width: 18px; height: 18px; transform: rotate(180deg); }

/* ================================================================
   Home — full-screen channels
   ================================================================ */
html:has(.slides) { scroll-snap-type: y mandatory; background: var(--night); }
@media (max-height: 560px) { html:has(.slides) { scroll-snap-type: y proximity; } }
.home { background: var(--night); color: var(--on-blue); }

.slide {
  --s-ink: #ffffff;
  --s-soft: rgb(255 255 255 / 0.86);
  --s-bar-ink: #ffffff;
  --btn-line: transparent;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  overflow: hidden;
  color: var(--s-ink);
}
/* channel screens keep a wide margin; the right one is wider so the content sits a little left of
   centre and stays clear of the dot rail (header and footer keep the site-wide margins) */
.slide .slide-inner {
  max-width: 1360px;
  padding-left: max(clamp(24px, 7vw, 120px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(56px, 10vw, 160px), env(safe-area-inset-right, 0px));
}
.slide--light { --s-ink: #0a0a0a; --s-soft: #4a4a4a; --btn-line: #d6d6d6; }

.slide--home {
  background:
    radial-gradient(70% 80% at 10% 0%, rgb(0 92 200 / 0.55), transparent 70%),
    radial-gradient(60% 60% at 100% 100%, rgb(0 173 180 / 0.12), transparent 70%),
    var(--night);
}
.slide--un { background: #0a1220; }
.slide--contact { background: linear-gradient(160deg, var(--blue-hi) -40%, var(--blue-lo) 45%, var(--night) 100%); }

.slide-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide--un::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(5 10 22 / 0.9) 0%, rgb(5 10 22 / 0.72) 45%, rgb(5 10 22 / 0.35) 100%);
}
@media (max-width: 859px) {
  .slide--un::before { background: linear-gradient(180deg, rgb(5 10 22 / 0.55), rgb(5 10 22 / 0.9) 55%); }
}

/* channel screens */
.slide-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 4vh, 44px);
  padding-block: clamp(28px, 7vh, 72px);
}
.kicker { font: 400 clamp(22px, 2.6vw, 30px)/1.2 var(--display); }
.kicker .bar::before { background: var(--teal); }
/* logo and copy sit side by side as one centred group */
.slide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4.5vh, 44px) clamp(48px, 6vw, 96px);
  align-items: center;
}
@media (min-width: 860px) {
  .slide-grid { grid-template-columns: auto minmax(0, 33em); justify-content: center; }
}
.slide-art { --base: min(400px, 78vw); min-width: 0; display: flex; justify-content: flex-start; }
@media (min-width: 860px) { .slide-art { --base: min(520px, 36vw); } }
.slide-art .logo { display: block; width: auto; aspect-ratio: auto; }
.slide-art .logo .lg { width: calc(var(--base) * var(--lwn) * 1.3); } /* same family scale as the tiles, larger */
.slide-copy .kicker { margin-bottom: 12px; font-size: clamp(19px, 2vw, 24px); }
.slide-copy .kicker .bar::before { left: -0.25em; right: -0.25em; }
.slide-copy { min-width: 0; }
.slide-name {
  margin: 0 0 14px;
  font: 400 clamp(40px, 5.2vw, 68px)/1.08 var(--display);
}
.slide-name strong { font-weight: inherit; }
.slide--un .slide-name { font-size: clamp(34px, 4.2vw, 56px); }
.slide-copy p { color: var(--s-soft); font-size: clamp(16px, 1.35vw, 18px); text-wrap: pretty; }
.slide-copy p + p { margin-top: 4px; }
.slide-copy .links { margin-top: clamp(18px, 3vh, 28px); }
.slide .btn { background: #ffffff; color: #0b1a33; border-color: var(--btn-line); }
.slide .btn:hover { border-color: var(--brand); background: #ffffff; transform: translateY(-2px); }
.slide--sfa .slide-name, .slide--sfa .kicker { color: #0a0a0a; }

/* home opener */
.slide--home .wrap { flex: 1; display: flex; flex-direction: column; }
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(16px, 4vh, 56px);
  padding-left: var(--inset);
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.hero-title {
  margin: 0;
  font: 400 clamp(80px, min(22vw, 19vh), 176px)/1 var(--display);
  letter-spacing: -0.01em;
}
.hero-title .bar::before { background: var(--teal); }
.hero-title .ch { display: inline-block; }
.hero-title .emoji {
  display: inline-block;
  font-size: 0.6em;
  margin-left: 0.08em;
  vertical-align: 0.12em;
  transform-origin: 60% 90%;
}
.hero-lede {
  margin-top: clamp(12px, 2.2vh, 22px);
  font-size: clamp(17px, 2vw, 21px);
  color: var(--on-blue-soft);
}
/* the lineup: every channel as a small screen, grouped: my channels · collab channels · the server */
.lineup {
  display: grid;
  grid-template-columns: 1fr 1fr 14px 1fr 1fr 14px 1fr;
  grid-template-areas:
    "l1 l1 . l2 l2 . l3"
    "a  b  . c  d  . e";
  gap: 10px clamp(10px, 1.4vw, 16px);
  margin-top: clamp(28px, 6vh, 60px);
}
.lineup-label { font: 400 17px/1.3 var(--display); color: var(--on-blue-soft); white-space: nowrap; }
@media (max-width: 599px) {
  .lineup {
    max-width: 460px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "l1 l1" "a b" "l2 l2" "c d" "l3 l3" "e e";
    row-gap: 8px;
  }
  .lineup-label:not(:first-child) { margin-top: 8px; }
  /* the server tile spans both columns at the same height as the others */
  .tile--un .face { aspect-ratio: 32 / 9; display: grid; place-items: center; }
  .tile--un .logo { width: 50%; }
}
@media (max-width: 640px) {
  .hero { padding-block: 8px 12px; }
  .hero-title { font-size: clamp(60px, 18vw, 96px); }
  .lineup { margin-top: 20px; }
  .scroll-track { height: 28px; }
}
.tile {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--on-blue-line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--teal), 0 14px 30px rgb(0 10 40 / 0.4); }
.face { display: block; }

/* channel faces — shared by the lineup tiles and the full-screen slides */
.face--shawntv, .slide--shawntv {
  background:
    radial-gradient(80% 90% at 15% 10%, rgb(40 130 240 / 0.35), transparent 60%),
    linear-gradient(135deg, var(--blue-hi), var(--blue-lo));
}
.face--shawnxd, .slide--shawnxd { background: linear-gradient(115deg, #46329b 0%, #8f2dac 45%, #d417b8 100%); }
.face--sft, .face--sfa, .slide--sft, .slide--sfa { background: #f2f2f2; }
.face--un {
  background:
    linear-gradient(rgb(6 12 26 / 0.6), rgb(6 12 26 / 0.6)),
    url("/assets/img/bg-un-960.webp") center / cover;
}

/* logos sit in a 16:9 box and are sized by eye so they read at the same weight */
.logo { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; }
.logo .lg { display: block; width: var(--lw); height: auto; overflow: visible; }

.scroll-cue {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 24px max(16px, 2.5vh);
  color: var(--on-blue);
}
.scroll-cue:hover { color: var(--teal); }
.scroll-track {
  position: relative;
  width: 2px;
  height: 48px;
  border-radius: 2px;
  background: var(--on-blue-line);
  overflow: hidden;
}
.scroll-track::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 45%;
  background: var(--teal);
  animation: drip 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.scroll-cue .ico { --brand: currentColor; width: 26px; height: 26px; }

/* contact + footer screen */
.contact-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-block: 48px; }
.contact-title { margin: 0; font: 400 clamp(44px, 6.5vw, 84px)/1.1 var(--display); }
.contact-title .bar::before { background: var(--teal); }
.contact-inner p { color: var(--on-blue-soft); font-size: clamp(16px, 1.6vw, 19px); }
.contact-inner .links { margin-top: 8px; }
.btn--primary { --brand: #0b1a33; }

/* dot rail */
.pager {
  --pg-dot: rgb(255 255 255 / 0.45);
  --pg-tag: #ffffff;
  --pg-tag-ink: #0b1a33;
  position: fixed;
  z-index: 30;
  top: 50%;
  right: max(clamp(10px, 2vw, 28px), env(safe-area-inset-right, 0px));
  transform: translateY(-50%);
}
[data-tone="light"] .pager { --pg-dot: rgb(0 0 0 / 0.3); --pg-tag: #0b1a33; --pg-tag-ink: #ffffff; }
.pager ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pager a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 40px;
  height: 26px;
  text-decoration: none;
}
.pager a::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 4px;
  background: var(--pg-dot);
  transition: width 0.35s var(--ease), background-color 0.35s;
}
.pager a[aria-current="true"]::after { width: 28px; background: var(--teal); }
.pager a:hover::after { background: var(--teal); }
.pager-tag {
  position: absolute;
  right: 44px;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--pg-tag);
  color: var(--pg-tag-ink);
  font: 400 15px/1.5 var(--display);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
  pointer-events: none;
}
.pager a:hover .pager-tag, .pager a:focus-visible .pager-tag { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .pager a { width: 26px; height: 22px; }
  .pager a::after { margin-right: 4px; width: 6px; height: 6px; }
  .pager a[aria-current="true"]::after { width: 18px; }
  .pager-tag { display: none; }
}

/* ================================================================
   Inner pages — one continuous night-blue screen, like the home page:
   header, content and footer share the same background, no bands.
   ================================================================ */
body:has(.inner) { background: var(--night); }
.inner {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(70% 60% at 8% 0%, rgb(0 92 200 / 0.5), transparent 70%),
    radial-gradient(60% 50% at 100% 100%, rgb(0 173 180 / 0.1), transparent 70%),
    var(--night);
  color: var(--on-blue);
}
.inner-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(32px, 7vh, 88px);
  /* content starts a little in from the header / footer edge; the right edge stays on the footer's */
  padding-left: calc(max(clamp(24px, 5vw, 64px), env(safe-area-inset-left, 0px)) + var(--inset));
}
.page-title {
  margin: 0 0 clamp(18px, 3vh, 30px);
  font: 400 clamp(34px, 5vw, 68px)/1.15 var(--display);
  text-wrap: balance;
}
.inner p { color: var(--on-blue-soft); }
.inner strong { color: var(--on-blue); }
.inner .lead { font-size: clamp(19px, 2.2vw, 23px); font-weight: 600; color: var(--on-blue); }
.inner-copy p + p { margin-top: 10px; }
.inner hr { border: 0; border-top: 1px solid var(--on-blue-line); margin: 26px 0; }
.inner .btn { background: #ffffff; color: #0b1a33; border-color: transparent; }
.inner .btn:hover { background: #ffffff; border-color: var(--brand); transform: translateY(-2px); }

/* copy on the left, picture on the right: the same two edges as the footer (wordmark / social buttons) */
.inner-grid { --pic-w: 280px; display: grid; gap: 40px 80px; align-items: center; }
.inner-grid:has(> .photo) { --pic-w: 460px; }
@media (min-width: 820px) {
  /* the picture column is capped at the picture's own width, so the copy column keeps its room */
  .inner-grid { grid-template-columns: minmax(0, 36em) minmax(0, var(--pic-w)); justify-content: space-between; }
  .inner-grid > .qr-card, .inner-grid > .photo { justify-self: end; }
}

/* QR codes always sit on a white card so phones can scan them */
.qr-card {
  justify-self: center;
  margin: 0;
  width: min(280px, 100%);
  padding: 16px 16px 12px;
  background: var(--qr-paper);
  color: var(--qr-ink);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
}
.qr-card img { width: 100%; }
.qr-card figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 600;
}
.qr-card .ico { --brand: #1677ff; }

/* fan groups: two side-by-side panels */
.fan-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: clamp(8px, 2vh, 20px); }
@media (min-width: 820px) {
  .fan-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
.fan-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 20px;
  background: var(--on-blue-fill);
  border: 1px solid var(--on-blue-line);
}
.fan-card--qq { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 28px; align-items: center; }
@media (max-width: 480px) {
  .fan-card--qq { grid-template-columns: minmax(0, 1fr); }
}
.fan-card .qr-card { width: 176px; padding: 10px; border-radius: 14px; box-shadow: none; }
.fan-card .links { margin-top: 6px; }
.sub-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font: 400 clamp(28px, 3.4vw, 38px)/1.15 var(--display);
}
.sub-title .ico { width: 30px; height: 30px; }
.sub-title--qq .ico { --brand: #1ebafc; }
.sub-title--discord .ico { --brand: #8c95ff; }
.num { color: var(--on-blue); font-weight: 600; font-variant-numeric: tabular-nums; user-select: all; }
.note { margin-top: 18px; font-size: 14px; }

.photo { margin: 0; justify-self: center; width: min(460px, 100%); }
.photo img { border-radius: 16px; width: 100%; }
.photo figcaption { margin-top: 10px; font-size: 13px; color: var(--on-blue-soft); }

/* ================================================================
   Motion — everything enters from left to right, like the teal bar in the logo.
   The one exception is ShawnXD's X and D, which are brushed on by hand.
   ================================================================ */
@keyframes sweep { from { transform: translateX(-101%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes from-left { from { opacity: 0; transform: translateX(-0.3em); } }
@keyframes from-left-px { from { opacity: 0; transform: translateX(-24px); } }
@keyframes drip { 0% { transform: translateY(-100%); } 70%, 100% { transform: translateY(230%); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes cue-out { to { opacity: 0; transform: translateY(16px); } }

/* page load */
.hero-title .bar::before,
.page-title .bar::before { animation: sweep 1s var(--ease) 0.15s both; }
.page-title { animation: from-left-px 0.7s var(--ease) 0.1s both; }
.hero-title .ch, .hero-title .emoji { animation: from-left 0.7s var(--ease) both; }
.hero-title .ch:nth-child(1) { animation-delay: 0.12s; }
.hero-title .ch:nth-child(2) { animation-delay: 0.2s; }
.hero-title .emoji { animation-delay: 0.3s; }
.hero-lede { animation: from-left-px 0.6s var(--ease) 0.4s both; }
.lineup-label { animation: from-left-px 0.6s var(--ease) 0.5s both; }
.scroll-cue > * { animation: fade 0.6s ease-out 1.3s both; }
.scroll-cue .ico { animation: fade 0.6s ease-out 1.3s both, nudge 1.9s ease-in-out 1.9s infinite; }
.pager { animation: fade 0.6s ease-out 1.1s both; }
@supports (animation-timeline: scroll()) {
  .scroll-cue { animation: cue-out linear both; animation-timeline: scroll(root); animation-range: 0 30vh; }
}

/* every channel screen plays its entrance each time it becomes the current one
   (the page script adds .motion and toggles .is-on; without it everything simply shows) */
.motion .slide:not(.is-on) .kicker { opacity: 0; }
.motion .slide:not(.is-on) .rv { opacity: 0; }
.motion .slide.is-on .kicker { animation: from-left-px 0.6s var(--ease) 0.15s both; }
.motion .slide.is-on .kicker .bar::before { animation: sweep 0.8s var(--ease) 0.2s both; }
.motion .slide.is-on .contact-title .bar::before { animation: sweep 0.95s var(--ease) 0.1s both; }
.motion .slide.is-on .rv { animation: from-left-px 0.6s var(--ease) both; animation-delay: calc(0.35s + var(--i, 0) * 0.08s); }
.rv:nth-child(2) { --i: 1; }
.rv:nth-child(3) { --i: 2; }
.rv:nth-child(4) { --i: 3; }
.rv:nth-child(5) { --i: 4; }
.rv:nth-child(6) { --i: 5; }

/* ---------- logo entrances (logos are inline SVG, split into parts) ----------
   ShawnTV / ShawnXD: the bar runs out to the right and the letters follow it one by one;
   X and D are then brushed on, top to bottom.
   Super Fun / United Nations: each line is wiped in from the left, and the full stop slides in last. */
@keyframes bar-in { from { transform: scaleX(0); } }
@keyframes letter-in { from { opacity: 0; transform: translateX(-60%); } }
@keyframes brush { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes line-in {
  from { clip-path: inset(0 100% 0 0); transform: translateX(-10%); }
  to { clip-path: inset(0 0 0 0); transform: none; }
}
@keyframes dot-in { from { opacity: 0; transform: translateX(-80%); } }

.lg-bar, .lg-ch, .lg-brush, .lg-line, .lg-dot { transform-box: fill-box; }
.lg-bar { transform-origin: 0 50%; }

.motion .slide:not(.is-on) .lg-bar { transform: scaleX(0); }
.motion .slide:not(.is-on) .lg-ch,
.motion .slide:not(.is-on) .lg-line,
.motion .slide:not(.is-on) .lg-dot { opacity: 0; }
.motion .slide:not(.is-on) .lg-brush { clip-path: inset(0 0 100% 0); }
.motion .slide.is-on .lg-bar { animation: bar-in 0.7s var(--ease) calc(var(--d, 0s) + 0.1s) both; }
.motion .slide.is-on .lg-ch { animation: letter-in 0.45s var(--ease) calc(var(--d, 0s) + 0.2s + var(--k) * 0.06s) both; }
.motion .slide.is-on .lg-brush { animation: brush 0.45s cubic-bezier(0.55, 0, 0.35, 1) calc(var(--d, 0s) + 0.62s + var(--k) * 0.32s) both; }
.motion .slide.is-on .lg-line { animation: line-in 0.7s var(--ease) calc(var(--d, 0s) + 0.1s + var(--k) * 0.14s) both; }
.motion .slide.is-on .lg-dot { animation: dot-in 0.35s ease-out calc(var(--d, 0s) + 0.8s) both; }

/* home lineup: the tiles stay put; only their logos play, one tile after another */
.tile { --d: 0.55s; }
.tile--shawnxd { --d: 0.65s; }
.tile--sft { --d: 0.75s; }
.tile--sfa { --d: 0.85s; }
.tile--un { --d: 0.95s; }

/* ---------- inner pages: text slides in, cards and QR codes unfold from the left ---------- */
@keyframes wipe-in {
  from { clip-path: inset(0 100% 0 0 round var(--wipe-r, 20px)); }
  to { clip-path: inset(0 0 0 0 round var(--wipe-r, 20px)); }
}
.inner-copy > :not(.page-title) { animation: from-left-px 0.6s var(--ease) both; }
.inner-copy > :nth-child(2) { animation-delay: 0.3s; }
.inner-copy > :nth-child(3) { animation-delay: 0.4s; }
.inner-copy > :nth-child(4) { animation-delay: 0.5s; }
.fan-card { animation: from-left-px 0.7s var(--ease) 0.3s both; }
.fan-card + .fan-card { animation-delay: 0.45s; }
.inner .qr-card { animation: wipe-in 0.8s var(--ease) 0.4s both; }
/* 404: only the photo is wiped in (with its own 16px corners); the credit line slides in under it */
.photo img { --wipe-r: 16px; animation: wipe-in 0.8s var(--ease) 0.4s both; }
.photo figcaption { animation: from-left-px 0.6s var(--ease) 0.8s both; }
.fan-card .qr-card { animation-delay: 0.7s; }
.fan-card { transition: border-color 0.2s; }
.fan-card:hover { border-color: rgb(0 173 180 / 0.6); }

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