/* stuntyy.com — matte black + red, with a per-social color takeover on the Socials page */

/* The site accent is a registered color so it can fade between socials. */
@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #2f6df6;
}

:root {
  --black: #0d0d0e;
  --ink: #151517;
  --ink-2: #1b1b1e;
  --bezel: #08080a;
  --line: #2a2a2e;
  --gray: #2c2d30;
  --gray-line: #3b3c40;
  --bone: #efebe8;
  --muted: #9b9599;
  --muted-on-gray: #b9b4b7;
  --accent: #2f6df6;
  --on-accent: #ffffff;
  --bar-h: 3.95rem;
  --div-h: 5.5rem;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Site-wide accent while inside a social section (set by socials.js). */
body { transition: --accent 0.6s ease; }
body[data-accent="instagram"] { --accent: #d62976; }
body[data-accent="youtube"]   { --accent: #e01e2b; }
body[data-accent="twitch"]    { --accent: #9146ff; }
body[data-accent="tiktok"]    { --accent: #25f4ee; --on-accent: #0d0d0e; }
body[data-accent="x"]         { --accent: #e7e9ea; --on-accent: #0d0d0e; }
body[data-accent="discord"]   { --accent: #5865f2; }

/* Per-social palette used by sections, rails, dividers and chips. */
.c-instagram {
  --c: #e1306c;
  --stops: #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5;
  --badge: linear-gradient(45deg, #f9a03f, #dd2a7b 55%, #8134af);
  --on: #fff;
}
.c-youtube { --c: #e01e2b; --stops: #e01e2b, #ff4a55, #e01e2b; --on: #fff; }
.c-twitch  { --c: #9146ff; --stops: #9146ff, #b98cff, #9146ff; --on: #fff; }
.c-tiktok  { --c: #25f4ee; --stops: #25f4ee, #fe2c55; --on: #0d0d0e; }
.c-x       { --c: #e7e9ea; --stops: #e7e9ea, #8b8f94, #e7e9ea; --on: #0d0d0e; }
.c-discord { --c: #5865f2; --stops: #5865f2, #8ea1ff, #5865f2; --on: #fff; }
.c-soundcloud { --c: #ff5500; --stops: #ff5500, #ff8a3d, #ff5500; --on: #0d0d0e; }
.c-gray    { --c: #cfcfd2; --stops: #8d8e93, #8d8e93; --on: #0d0d0e; }
[class^="c-"],
[class*=" c-"] {
  --edge: linear-gradient(90deg, var(--stops));
  --edge-v: linear-gradient(180deg, var(--stops));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { color-scheme: dark; }
html.snap {
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--bar-h);
}
/* Hard snap on screens big enough to fit a whole social; softer on small ones so tall cards stay reachable. */
@media (min-width: 961px) and (min-height: 600px) {
  html.snap { scroll-snap-type: y mandatory; }
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Matte grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Slow ambience behind the page, follows the accent */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambient span {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent);
  animation: ambient 7s ease-in-out infinite;
}
.ambient span:nth-child(1) { top: -18vmax; left: -14vmax; }
.ambient span:nth-child(2) { bottom: -22vmax; right: -16vmax; animation-delay: -3.5s; }

svg.i { width: 1em; height: 1em; fill: currentColor; flex: none; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Sticky banner ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(13 13 14 / 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 14px 1px color-mix(in srgb, var(--accent) 90%, transparent);
  animation: line-pulse 3.4s ease-in-out infinite;
}
.bar-inner {
  max-width: 1120px;
  min-height: var(--bar-h);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.035em;
  text-decoration: none;
  line-height: 1;
}
.beacon {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--accent) 85%, transparent);
  animation: beacon 2.2s ease-in-out infinite;
}
.bar nav { display: flex; gap: 0.15rem; }
.bar nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.bar nav a:hover { color: var(--bone); }
.bar nav a[aria-current="page"] { color: var(--bone); }
.bar nav .ni { font-size: 1.15rem; transition: color 0.2s; }
.bar nav a[aria-current="page"] .ni { color: var(--accent); }
.bar nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--accent) 90%, transparent);
}

/* ---------- Page scaffolding ---------- */

main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem clamp(4rem, 8vw, 6.5rem);
  transition: opacity 0.16s ease;
}
main.is-leaving { opacity: 0; }
main.is-entering { animation: page-in 0.4s ease both; }

.page-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
h1 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.page-head p { margin: 0; color: var(--muted); max-width: 34rem; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn:hover {
  background: color-mix(in srgb, var(--accent), white 22%);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 60%, transparent);
}
button.btn { border: 0; font: inherit; font-weight: 700; line-height: inherit; cursor: pointer; }
.btn-lg { padding: 0.95rem 2rem; font-size: 1.15rem; }

/* ---------- Home ---------- */

main.home {
  max-width: none;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem clamp(3.5rem, 8vw, 6rem);
}
.hero {
  width: 100%;
  max-width: 62rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 8.5vw, 5.75rem);
  line-height: 1;
}
.lede {
  margin: 1rem 0 0;
  max-width: 30rem;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted);
}

.photos {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.25rem, 5vw, 3.25rem);
  padding: 1.75rem 0;
}
.photo {
  position: relative;
  flex: none;
  margin: 0;
  width: clamp(7.5rem, 24vw, 15.5rem);
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgb(255 255 255 / 0.16);
  opacity: 0.8;
  cursor: default;
  box-shadow:
    0 18px 50px rgb(0 0 0 / 0.5),
    0 0 34px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: scale 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease, box-shadow 0.35s ease;
  animation: fan 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.photo + .photo { margin-left: calc(-1 * clamp(1.5rem, 4.5vw, 3.5rem)); }
.photo.p1 { rotate: -7deg; translate: 0 1.6rem; z-index: 1; animation-delay: 0.05s; }
.photo.p2 { rotate: 2deg; translate: 0 -1.2rem; z-index: 2; width: clamp(8.25rem, 26vw, 17rem); animation-delay: 0.18s; }
.photo.p3 { rotate: 6deg; translate: 0 1.8rem; z-index: 1; animation-delay: 0.31s; }
.photo:hover {
  scale: 1.05;
  opacity: 0.97;
  z-index: 5;
  box-shadow:
    0 24px 60px rgb(0 0 0 / 0.55),
    0 0 46px color-mix(in srgb, var(--accent) 45%, transparent);
}

/* ---------- Socials: card stack ---------- */

main.socials {
  max-width: none;
  padding: 0;
}

/* Glowing side rails, one set per social; only the current one is visible */
.rails {
  position: fixed;
  top: var(--bar-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  pointer-events: none;
}
.rail-set {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.rail-set.is-on { opacity: 1; }
.rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--edge-v);
  overflow: hidden;
}
.rail.glow {
  width: 9px;
  overflow: visible;
  filter: blur(8px);
  opacity: 0.85;
}
.rail.l { left: 0; }
.rail.r { right: 0; }
.rail.glow.l { left: -2px; }
.rail.glow.r { right: -2px; }
.rail:not(.glow)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgb(255 255 255 / 0.95), transparent);
  animation: run 3.6s linear infinite;
}
.rail.r::after { animation-direction: reverse; }

/* Divider between socials: gradient line with the neighbouring socials as labels */
.divider {
  position: relative;
  height: var(--div-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.line {
  grid-area: 2 / 1;
  position: relative;
  width: 100%;
  height: 4px;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}
.line.glow {
  height: 8px;
  margin-top: -2px;
  filter: blur(7px);
  opacity: 0.2;
}
.divider.is-lit .line { opacity: 1; }
.divider.is-lit .line.glow { opacity: 0.9; animation: line-pulse 3.4s ease-in-out infinite; }
.half {
  position: absolute;
  top: 0;
  height: 100%;
  width: 60%;
  background: var(--edge);
}
.half.a {
  left: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 65%, transparent);
  mask-image: linear-gradient(90deg, #000 65%, transparent);
}
.half.b {
  right: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
  mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.half.solo { width: 100%; -webkit-mask-image: none; mask-image: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.2rem 0.7rem 0.2rem 0.25rem;
  border-radius: 999px;
  color: var(--c);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  text-decoration: none;
  transition: opacity 0.4s ease, background 0.15s;
}
.chip:hover { background: color-mix(in srgb, var(--c) 14%, transparent); }
.chip .mini {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 2px solid var(--c);
  border-radius: 8px;
  font-size: 1.05rem;
}
.chip .mini .i { display: block; }
.chip-up { grid-area: 1 / 1; align-self: end; margin-bottom: 0.3rem; }
.chip-down { grid-area: 3 / 1; align-self: start; margin-top: 0.3rem; }
.divider.hide-up .chip-up,
.divider.hide-down .chip-down { opacity: 0; visibility: hidden; pointer-events: none; }

/* One social */
.social {
  min-height: calc(100dvh - var(--bar-h) - 2 * var(--div-h));
  display: flex;
  align-items: center;
  padding: 1rem clamp(1.4rem, 4vw, 3rem);
}
/* The translucent card that lifts in and sinks away (its motion is driven by socials.js) */
.social-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.1rem, 2.6vw, 1.9rem);
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 4.5vw, 4rem);
  border-radius: 30px;
  background: rgb(255 255 255 / 0.035);
  border: 1px solid color-mix(in srgb, var(--c) 26%, rgb(255 255 255 / 0.06));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.05);
}
.social-inner.no-embed {
  max-width: 46rem;
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: center;
}

/* Tilted phone showing the profile (screenshot if present, wireframe if not) */
.phone {
  position: relative;
  isolation: isolate;
  display: block;
  height: clamp(19rem, 52dvh, 30rem);
  aspect-ratio: 9 / 17;
  padding: 8px;
  border-radius: 38px;
  background: var(--bezel);
  border: 1px solid #34343a;
  text-decoration: none;
  rotate: var(--tilt, -5deg);
  transition: rotate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phone::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: 48px;
  background: color-mix(in srgb, var(--c) 75%, transparent);
  filter: blur(26px);
  opacity: 0.22;
  animation: breathe 3.8s ease-in-out infinite;
}
.phone:hover,
.phone:focus-visible { rotate: 0deg; translate: 0 -8px; }
.phone:hover::before,
.phone:focus-visible::before { animation-play-state: paused; opacity: 0.5; }

.screen {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 30px;
  background: var(--ink-2);
  overflow: hidden;
  padding: 1.6rem 1rem 1rem;
}
.speaker {
  position: absolute;
  top: 0.65rem;
  left: 50%;
  width: 32%;
  height: 7px;
  translate: -50% 0;
  border-radius: 6px;
  background: var(--bezel);
  z-index: 2;
}
.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 1;
}
.sk { display: flex; flex-direction: column; gap: 0.8rem; height: 100%; }
.sk i { display: block; border-radius: 9px; background: #25252a; }
.sk-top { display: flex; align-items: center; gap: 0.75rem; }
.sk i.sk-avatar {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--badge, var(--c));
  display: grid;
  place-items: center;
  color: var(--on);
  font-size: 1.6rem;
  flex: none;
}
.sk-lines { flex: 1; display: grid; gap: 0.45rem; }
.sk-lines i { height: 0.65rem; }
.sk-lines i:first-child { width: 75%; background: color-mix(in srgb, var(--c) 45%, #25252a); }
.sk-lines i:last-child { width: 50%; }
.sk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.sk-stats i { height: 2.3rem; }
.sk-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 0.5rem;
  min-height: 0;
}
.sk-grid i { background: color-mix(in srgb, var(--c) 16%, #1f1f23); }

/* Icon + name + button */
.identity { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.who-row { display: flex; align-items: center; gap: 1.1rem; }
.badge {
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 1.2rem;
  background: var(--badge, var(--c));
  color: var(--on);
  font-size: 2.4rem;
  box-shadow: 0 0 26px color-mix(in srgb, var(--c) 45%, transparent);
  animation: glow-box 3.6s ease-in-out infinite;
}
.badge .i { display: block; }
.who {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1;
}
.net { margin: 0.3rem 0 0; color: var(--muted); }
.identity .btn { background: var(--c); color: var(--on); }
.identity .btn:hover {
  background: color-mix(in srgb, var(--c), white 22%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--c) 65%, transparent);
}

/* Embedded video / stream */
.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--c);
  border-radius: 14px;
  background: #000;
  overflow: hidden;
  animation: glow-box 3.6s ease-in-out infinite;
}
.embed iframe { display: none; width: 100%; height: 100%; border: 0; background: #000; }
.embed.has-src iframe { display: block; }
.embed-empty {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}
.embed-empty .i { font-size: 2.2rem; color: var(--c); }
.embed-empty p { margin: 0; font-weight: 600; }
.embed.has-src .embed-empty { display: none; }

/* ---------- Streams page ---------- */

.panel { margin-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.panel-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.panel-icon {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--c, var(--accent));
  color: var(--on, var(--on-accent));
  font-size: 1.8rem;
  animation: glow-box 3.6s ease-in-out infinite;
}
.panel-icon .i { display: block; }
.panel .btn { background: var(--c, var(--accent)); color: var(--on, var(--on-accent)); }
.panel .btn:hover {
  background: color-mix(in srgb, var(--c, var(--accent)), white 22%);
  box-shadow: 0 0 20px color-mix(in srgb, var(--c, var(--accent)) 60%, transparent);
}
.panel .slot .i { color: var(--c, var(--accent)); }
.panel .slot::before { box-shadow: 0 0 26px 2px color-mix(in srgb, var(--c, var(--accent)) 55%, transparent); }
.panel-title { flex: 1 1 12rem; }
.panel-title h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.panel-title p { margin: 0.15rem 0 0; color: var(--muted); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.frame,
.slot {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
}
.frame { background: #000; border: 1px solid var(--line); }
.frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.frame.wide { grid-column: 1 / -1; }

.slot {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  border: 1px dashed #45454b;
  background: var(--ink);
  color: var(--muted);
  text-align: center;
  overflow: visible;
}
.slot::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 16px;
  box-shadow: 0 0 26px 2px color-mix(in srgb, var(--accent) 55%, transparent);
  opacity: 0.12;
  animation: breathe 4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.1s);
}
.slot .i { font-size: 2.2rem; color: var(--accent); }
.slot p { margin: 0; font-weight: 600; }

/* ---------- Music page ---------- */

.music-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: -1.25rem 0 2rem; }
.btn-sc {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #ff5500;
  color: #0d0d0e;
}
.btn-sc:hover {
  background: #ff7a33;
  box-shadow: 0 0 22px rgb(255 85 0 / 0.55);
}
.btn-sc .i { font-size: 1.3em; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgb(255 255 255 / 0.06); box-shadow: none; }
.btn-ghost .i { font-size: 1.3em; color: #ff5500; }

.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; max-width: 52rem; }
.track {
  position: relative;
  display: grid;
  grid-template-columns: auto 3.4rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 1rem 0.65rem 0.65rem;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.035);
  border: 1px solid rgb(255 255 255 / 0.08);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.track:hover { background: rgb(255 255 255 / 0.055); border-color: rgb(255 85 0 / 0.4); }
.track.is-current {
  border-color: #ff5500;
  background: rgb(255 85 0 / 0.07);
  box-shadow: 0 0 28px rgb(255 85 0 / 0.28);
}
.t-play {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ff5500;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.t-play:hover { background: #ff7a33; }
.t-play:active { transform: scale(0.94); }
.t-play .i { display: block; }
.t-art {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #ff8a3d, #ff5500);
  color: #fff;
  font-size: 1.5rem;
}
.t-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.t-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.t-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-sub { font-size: 0.9rem; color: var(--muted); }
.track.is-current .t-sub::after { content: " (now playing)"; color: #ff5500; }
.t-time { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.t-sc {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.t-sc:hover { color: #ff5500; background: rgb(255 85 0 / 0.1); }
.t-sc .i { display: block; }
.t-bar {
  display: none;
  grid-column: 1 / -1;
  height: 6px;
  margin: 0.15rem 0.35rem 0.3rem;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.09);
  overflow: hidden;
  cursor: pointer;
}
.track.is-current .t-bar { display: block; }
.t-bar i { display: block; width: 0; height: 100%; background: #ff5500; }
.tracks-note { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.92rem; max-width: 52rem; }
.tracks-note a { color: #ff5500; }

/* ---------- Games page ---------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.game-grid .slot { aspect-ratio: 3 / 4; }

/* ---------- Matte gray contact footer ---------- */

.contact {
  margin-top: auto;
  background: var(--gray);
  border-top: 1px solid var(--gray-line);
  color: var(--bone);
  scroll-snap-align: end;
}
.contact-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.contact h2 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.contact p { margin: 0; color: var(--muted-on-gray); }
.contact .btn { font-size: 1.05rem; background: var(--accent); }
.contact .legal {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 1.75rem;
  font-size: 0.88rem;
  color: var(--muted-on-gray);
}

/* ---------- Floating music player ---------- */

.player {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.85rem 0.45rem 0.45rem;
  border-radius: 999px;
  background: rgb(21 21 23 / 0.84);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.45), 0 0 22px color-mix(in srgb, var(--accent) 24%, transparent);
  will-change: transform;
  transition: --accent 0.4s ease;
}
/* While a SoundCloud track is playing the whole player turns SoundCloud orange. */
.player.is-sc {
  --accent: #ff5500;
  --on-accent: #ffffff;
}
[hidden] { display: none !important; }
.sc-frame {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 2px;
  height: 2px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.pl-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.pl-btn:hover { background: color-mix(in srgb, var(--accent), white 22%); }
.pl-btn:active { transform: scale(0.94); }
.pl-btn .i { display: block; }
.pl-meta { display: flex; flex-direction: column; min-width: 0; max-width: 11rem; line-height: 1.15; }
.pl-title { font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-by { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 1rem; }
.eq i { display: block; width: 3px; height: 25%; border-radius: 2px; background: var(--accent); }
.player.is-playing .eq i { animation: eq 0.9s ease-in-out infinite; }
.player.is-playing .eq i:nth-child(2) { animation-delay: -0.3s; }
.player.is-playing .eq i:nth-child(3) { animation-delay: -0.6s; }
.pl-vol { width: 4.5rem; accent-color: var(--accent); cursor: pointer; }
.pl-sfx {
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.pl-sfx:hover { background: rgb(255 255 255 / 0.08); }
.pl-sfx[aria-pressed="true"] { color: var(--bone); }
.pl-back {
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.8rem;
  background: rgb(255 255 255 / 0.1);
  color: var(--bone);
}
.pl-back:hover { background: rgb(255 255 255 / 0.2); }

/* ---------- Motion ---------- */

@keyframes breathe {
  0%, 100% { opacity: 0.12; }
  50%      { opacity: 0.5; }
}
@keyframes ambient {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}
@keyframes beacon {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@keyframes line-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
@keyframes glow-box {
  0%, 100% { box-shadow: 0 0 12px color-mix(in srgb, var(--c, var(--accent)) 25%, transparent); }
  50%      { box-shadow: 0 0 32px color-mix(in srgb, var(--c, var(--accent)) 65%, transparent); }
}
@keyframes run {
  from { transform: translateY(-100%); }
  to   { transform: translateY(520%); }
}
@keyframes eq {
  0%, 100% { height: 25%; }
  50%      { height: 100%; }
}
@keyframes fan {
  from { opacity: 0; translate: 0 3.5rem; }
}
@keyframes page-in {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.snap { scroll-behavior: auto; }
  .phone::before { opacity: 0.25; }
  .slot::before { opacity: 0.2; }
  .divider.is-lit .line.glow { opacity: 0.9; }
}
@media (prefers-reduced-motion: no-preference) {
  html.snap { scroll-behavior: smooth; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .social-inner,
  .social-inner.no-embed {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: 1.75rem;
  }
  .identity { align-items: center; }
  .who-row { justify-content: center; text-align: left; }
  .embed { max-width: 34rem; }
  .phone { height: clamp(19rem, 50dvh, 26rem); }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .bar nav .nl {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .bar nav a { padding: 0.55rem 0.6rem; }
  .bar nav .ni { font-size: 1.3rem; }
  .bar nav a[aria-current="page"]::after { left: 0.6rem; right: 0.6rem; }
  .pl-vol { display: none; }
}

@media (max-width: 620px) {
  .track { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 0.7rem; }
  .t-art { display: none; }
  .t-time { display: none; }
  .music-actions { margin-top: -1.5rem; }
  :root { --div-h: 5rem; }
  .bar-inner { padding: 0 0.9rem; }
  .brand { font-size: 1.35rem; }

  .rail { width: 3px; }
  .rail.glow { width: 7px; }

  .media-grid { grid-template-columns: minmax(0, 1fr); }
  .game-grid { grid-template-columns: minmax(0, 1fr); }
  .game-grid .slot { aspect-ratio: 16 / 9; }
  .contact-inner { align-items: flex-start; }
  .contact .legal { padding-bottom: 4.75rem; }
  .player { left: 0.6rem; bottom: 0.6rem; }
  .pl-by { display: none; }
}
