/* FLORIDA MAX · personal link page
   Layout: one centered column inside a fixed camera-viewfinder HUD. The hero is a live
   lens with the "lose yourself in motion" art behind its aperture. One look only (dark),
   taken from Max's own banners: grayscale, chrome type, an icy blue glow. */

:root {
  color-scheme: dark;

  --bg: #050608;
  --bg-2: #0b0d11;
  --ink: #eef2f6;
  --ink-2: #b0b9c3;
  --ink-3: #828c97;
  --line: rgba(214, 228, 244, 0.1);
  --line-2: rgba(214, 228, 244, 0.22);
  --glass: rgba(205, 222, 240, 0.035);
  --glass-2: rgba(205, 222, 240, 0.075);
  --ice: #a9d8ff;
  --ice-2: #5aaeff;
  --rec: #ff4242;
  --ok: #46d483;
  --warn: #ffb547;

  --c-youtube: #ff2b40;
  --c-x: #ffffff;
  --c-discord: #7984ff;
  --c-spotify: #1ed760;
  --c-instagram: #ff5aa7;
  --c-tiktok: #25f4ee;
  --c-web: var(--ice);

  --font-display: "Syncopate", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --lens: clamp(188px, 56vw, 292px);
  --col: 560px;
  --hud: 10px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 720px) {
  :root { --hud: 18px; }
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 13px/1.6 var(--font-mono);
  font-stretch: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }

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

:focus-visible {
  outline: 1px solid var(--ice);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ atmosphere */

.trails {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.atmo {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 48% at 50% -4%, rgba(120, 175, 240, 0.16), transparent 70%),
    radial-gradient(ellipse 55% 40% at 50% 104%, rgba(110, 140, 190, 0.08), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.6) 100%);
}

/* film grain over everything, very light */
body::after {
  content: "";
  position: fixed; inset: -12%; z-index: 9; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.055;
  animation: grain 0.9s steps(5) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ------------------------------------------------------------------ HUD */

.hud {
  position: fixed; inset: 0; z-index: 6; pointer-events: none;
  font: 500 9.5px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* soft letterbox bands, so the HUD text never sits right on top of the links */
.hud::before, .hud::after {
  content: "";
  position: absolute; left: 0; right: 0; z-index: -1;
}
.hud::before {
  top: 0;
  height: calc(64px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.92), rgba(5, 6, 8, 0.6) 55%, transparent);
}
.hud::after {
  bottom: 0;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(5, 6, 8, 0.92), rgba(5, 6, 8, 0.6) 55%, transparent);
}

.hud__corner {
  position: absolute; width: 22px; height: 22px;
  border: 0 solid rgba(220, 232, 245, 0.42);
  animation: corner-in 0.9s var(--ease-out) backwards;
}
.hud__corner--tl { top: calc(var(--hud) + env(safe-area-inset-top, 0px)); left: calc(var(--hud) + env(safe-area-inset-left, 0px)); border-top-width: 1px; border-left-width: 1px; transform-origin: 0 0; }
.hud__corner--tr { top: calc(var(--hud) + env(safe-area-inset-top, 0px)); right: calc(var(--hud) + env(safe-area-inset-right, 0px)); border-top-width: 1px; border-right-width: 1px; transform-origin: 100% 0; }
.hud__corner--bl { bottom: calc(var(--hud) + env(safe-area-inset-bottom, 0px)); left: calc(var(--hud) + env(safe-area-inset-left, 0px)); border-bottom-width: 1px; border-left-width: 1px; transform-origin: 0 100%; }
.hud__corner--br { bottom: calc(var(--hud) + env(safe-area-inset-bottom, 0px)); right: calc(var(--hud) + env(safe-area-inset-right, 0px)); border-bottom-width: 1px; border-right-width: 1px; transform-origin: 100% 100%; }

@keyframes corner-in {
  from { transform: scale(2.4); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.hud__spec, .hud__bl, .hud__br, .hud__side { position: absolute; margin: 0; white-space: nowrap; }

.hud__spec {
  top: calc(var(--hud) + 6px + env(safe-area-inset-top, 0px));
  left: 50%; transform: translateX(-50%);
  display: none;
}
.hud__spec b { color: var(--line-2); font-weight: 400; padding: 0 0.3em; }

.hud__bl {
  bottom: calc(var(--hud) + 7px + env(safe-area-inset-bottom, 0px));
  left: calc(var(--hud) + 30px + env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: 0.6em;
}
.hud__bl .ic { font-size: 11px; color: var(--ice); }
.hud__bl span { color: var(--ink-2); font-variant-numeric: tabular-nums; }

.hud__br {
  bottom: calc(var(--hud) + 7px + env(safe-area-inset-bottom, 0px));
  right: calc(var(--hud) + 30px + env(safe-area-inset-right, 0px));
}
.hud__br span { color: var(--ink-2); }

.hud__side {
  top: 50%;
  writing-mode: vertical-rl;
  display: none;
  color: rgba(130, 140, 151, 0.7);
}
.hud__side--l { left: calc(var(--hud) + 4px + env(safe-area-inset-left, 0px)); transform: translateY(-50%) rotate(180deg); }
.hud__side--r { right: calc(var(--hud) + 4px + env(safe-area-inset-right, 0px)); transform: translateY(-50%); }

@media (min-width: 760px) {
  .hud__spec { display: block; }
}
@media (min-width: 980px) {
  .hud__side { display: block; }
}

/* the two control groups in the top corners */
.ctl-bar {
  position: fixed; z-index: 7;
  top: calc(var(--hud) + 2px + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 6px;
}
.ctl-bar--l { left: calc(var(--hud) + 18px + env(safe-area-inset-left, 0px)); }
.ctl-bar--r { right: calc(var(--hud) + 18px + env(safe-area-inset-right, 0px)); }

.ctl {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px;
  border: 1px solid transparent; border-radius: 8px;
  background: transparent;
  font: 600 9.5px/1 var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.ctl:hover { color: var(--ink); border-color: var(--line); background: rgba(5, 6, 8, 0.6); }
.ctl .ic { font-size: 13px; }
.ctl--sq { width: 30px; padding: 0; justify-content: center; font-size: 12px; }
.ctl[aria-pressed="true"] { color: var(--ice); }
.ctl[aria-pressed="false"] .wave { opacity: 0.25; }

.rec-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 10px rgba(255, 66, 66, 0.8);
  animation: rec 1.2s steps(1) infinite;
}
@keyframes rec { 50% { opacity: 0.15; } }

.ctl--rec { color: var(--ink); padding-left: 6px; }
.tc {
  font: 500 9.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 359px) { .tc { display: none; } }

/* ------------------------------------------------------------------ page column */

.page {
  position: relative; z-index: 2;
  width: 100%;
  max-width: calc(var(--col) + 48px);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: calc(58px + env(safe-area-inset-top, 0px)) calc(64px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 40px;
}

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
}

.lens {
  position: relative;
  width: var(--lens);
  aspect-ratio: 1;
  max-width: 100%;
  margin: 6px 0 10px;
  padding: 0; border: 0; border-radius: 50%;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lens:focus-visible { outline-offset: 10px; }

.lens__css {
  position: absolute; inset: 0;
  border-radius: 50%;
  /* same rings as the 3D lens, measured from the center: photo, iris, barrel,
     chrome bevel, engraved face, chrome edge */
  background:
    radial-gradient(circle closest-side,
      transparent 0 70.3%,
      #050608 70.3% 73.3%,
      #d5dce4 73.3%, #6f7884 75.3%, #e8edf2 77.3%,
      transparent 77.3% 94.4%,
      #8d97a2 94.7%, #f2f5f8 96.6%, #75808b 98.4%, #c9d0d8 100%),
    repeating-conic-gradient(#181b20 0 1.5deg, #0d0f12 1.5deg 3deg),
    #0c0e11;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: opacity 0.9s var(--ease), transform 0.5s var(--ease);
}
/* nine iris blades around the photo */
.lens__css::before {
  content: "";
  position: absolute; inset: 14.83%;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, transparent 78%, rgba(0, 0, 0, 0.65) 100%),
    repeating-conic-gradient(from 12deg, #232830 0deg, #0f1216 36deg, #3a424d 38.5deg, #232830 40deg);
}
/* the glow and the shadow stay put under both the flat lens and the 3D one */
.lens::before {
  content: "";
  position: absolute; inset: 1.5%;
  border-radius: 50%;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.7), 0 0 90px rgba(120, 180, 255, 0.16);
  transition: box-shadow 0.6s var(--ease);
  pointer-events: none;
}
.lens.is-hot::before { box-shadow: 0 26px 70px rgba(0, 0, 0, 0.7), 0 0 130px rgba(120, 180, 255, 0.42); }
.lens__css img {
  position: absolute; inset: 20.2%;
  width: 59.6%; height: 59.6%;
  border-radius: 50%;
  object-fit: cover;
  filter: contrast(1.05);
}
.lens__css::after {
  content: "";
  position: absolute; inset: 20.2%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 27%, rgba(255, 255, 255, 0.4), transparent 30%),
    conic-gradient(from 200deg, transparent, rgba(170, 130, 255, 0.22), rgba(110, 255, 210, 0.14), rgba(255, 205, 120, 0.12), transparent 60%);
  mix-blend-mode: screen;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.75);
}
.lens:hover .lens__css { transform: scale(1.02); }

.lens__gl {
  position: absolute; left: 50%; top: 50%;
  width: 150%; height: 150%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  pointer-events: none;
}
.lens.is-3d .lens__gl { opacity: 1; }
.lens.is-3d .lens__css { opacity: 0; }

.name {
  margin: 0;
  font: 700 clamp(23px, 6.9vw, 44px)/1.05 var(--font-display);
  letter-spacing: 0.035em;
  text-wrap: balance;
}
.name__text {
  position: relative;
  display: inline-block;
  padding: 0 0.04em;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8ee 28%, #8d97a2 47%, #f6f8fa 53%, #9ea8b2 74%, #eaeef2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(130, 190, 255, 0.3));
}
.name__text::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  padding: 0 0.04em;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, 0.95) 48%, rgba(169, 216, 255, 0.95) 52%, transparent 62%);
  background-size: 260% 100%;
  background-position: 160% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 6s var(--ease) 1.2s infinite;
}
@keyframes sheen {
  0% { background-position: 160% 0; }
  45%, 100% { background-position: -70% 0; }
}

.bio {
  max-width: 34em;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.02em;
}
.bio a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: color 0.2s, border-color 0.2s;
}
.bio a:hover { color: var(--ice); border-color: var(--ice); }
.glyph { color: var(--ice); }
.nb { white-space: nowrap; }

.motto {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.22em;
  color: var(--ice);
  text-shadow: 0 0 18px rgba(120, 190, 255, 0.55);
}

.readouts {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover { border-color: rgba(169, 216, 255, 0.5); color: var(--ink); }
.chip .ic { font-size: 14px; color: var(--ice); }

.odo {
  display: inline-flex;
  font: 600 15px/1 var(--font-mono);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-shadow: 0 0 14px rgba(169, 216, 255, 0.45);
}
.odo__d {
  position: relative;
  display: inline-block;
  width: 0.72em;
  height: 1.1em;
  overflow: hidden;
}
.odo__s {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; flex-direction: column;
  transition: transform 1.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.odo__s span { height: 1.1em; line-height: 1.1em; text-align: center; }
.odo__d.is-lead { color: var(--ink-3); text-shadow: none; }
.views__tag {
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(169, 216, 255, 0.14);
  color: var(--ice);
  font-size: 8.5px;
}

.presence { cursor: default; }
.presence__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.presence[data-status="online"] .presence__dot { background: var(--ok); box-shadow: 0 0 10px rgba(70, 212, 131, 0.8); }
.presence[data-status="idle"] .presence__dot { background: var(--warn); }
.presence[data-status="dnd"] .presence__dot { background: var(--rec); }

/* ------------------------------------------------------------------ blocks */

.block { display: grid; gap: 14px; }

.block__head {
  display: flex; align-items: center; gap: 12px;
  margin: 0;
  font-weight: 400;
}
.block__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}
.block__title {
  font: 700 12px/1 var(--font-display);
  letter-spacing: 0.24em;
  color: var(--ink);
}
.block__sub {
  font: 500 10px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.block__head::after { min-width: 24px; }
.block__mark { width: 34px; height: auto; }

/* rows: the personal links */
.rows { display: grid; gap: 10px; }

.row {
  --brand: var(--ice);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 66px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.25s, filter 0.35s, opacity 0.35s, box-shadow 0.35s;
  animation: focus-in 0.9s var(--ease-out) backwards;
  animation-delay: calc(0.35s + var(--n, 0) * 70ms);
}
.row::before {
  content: "";
  position: absolute; inset: -1px; z-index: -1;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.13) 46%, color-mix(in srgb, var(--brand) 22%, transparent) 51%, transparent 62%);
  transform: translateX(-115%);
  transition: transform 0.9s var(--ease);
}
.row:hover, .row:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 60%, transparent);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px color-mix(in srgb, var(--brand) 14%, transparent);
  transform: translateX(5px);
}
.row:hover::before, .row:focus-visible::before { transform: translateX(115%); }
.row:active { transform: translateX(5px) scale(0.985); }

/* rack focus: the one you point at stays sharp, the rest drift out of focus */
@media (hover: hover) {
  .rows:has(.row:hover) .row:not(:hover),
  .tiles:has(.tile:hover) .tile:not(:hover) {
    filter: blur(1.6px) saturate(0.5);
    opacity: 0.45;
  }
}

.row[data-brand="youtube"], .tile[data-brand="youtube"] { --brand: var(--c-youtube); }
.row[data-brand="x"], .tile[data-brand="x"] { --brand: var(--c-x); }
.row[data-brand="discord"], .tile[data-brand="discord"] { --brand: var(--c-discord); }
.row[data-brand="spotify"], .tile[data-brand="spotify"] { --brand: var(--c-spotify); }
.tile[data-brand="instagram"] { --brand: var(--c-instagram); }
.tile[data-brand="tiktok"] { --brand: var(--c-tiktok); }
.tile[data-brand="web"] { --brand: var(--c-web); }

.row__ic, .tile__ic {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 62%);
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.4);
  color: var(--ink);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.35s, transform 0.45s var(--ease);
}
.row__ic .ic, .tile__ic .ic { font-size: 18px; }
.row:hover .row__ic, .row:focus-visible .row__ic,
.tile:hover .tile__ic, .tile:focus-visible .tile__ic {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.4), 0 0 24px color-mix(in srgb, var(--brand) 50%, transparent);
  transform: rotate(-8deg) scale(1.06);
}

.row__txt { display: grid; gap: 5px; min-width: 0; }
.row__label {
  font: 700 12.5px/1.1 var(--font-display);
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.row__sub {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.row__act {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 9.5px/1 var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--ink-3);
  transition: color 0.25s, transform 0.4s var(--ease);
}
.row__act .ic { font-size: 13px; }
.row:hover .row__act, .row:focus-visible .row__act { color: var(--ink); transform: translateX(2px); }
.row.is-copied .row__act { color: var(--ok); }

@media (max-width: 380px) {
  .row { gap: 12px; padding-right: 12px; }
  .row__act { font-size: 0; gap: 0; }
  .row__act .ic { font-size: 15px; }
}

/* the latest upload, framed like a viewfinder */
.vid {
  display: grid; gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  animation: focus-in 0.9s var(--ease-out) 0.7s backwards;
}
.vid__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  color: var(--ink);
  text-decoration: none;
}
.vid__img, .vid__frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
}
.vid__img {
  filter: grayscale(0.35) contrast(1.08);
  transform: scale(1.02);
  transition: transform 0.8s var(--ease), filter 0.5s;
}
.vid__frame:hover .vid__img { transform: scale(1.06); filter: none; }
.vid__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 30%, transparent 62%, rgba(0, 0, 0, 0.55)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.vf { position: absolute; inset: 12px; pointer-events: none; }
.vf i { position: absolute; width: 16px; height: 16px; border: 0 solid rgba(255, 255, 255, 0.75); transition: transform 0.4s var(--ease); }
.vf i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.vid__frame:hover .vf i:nth-child(1) { transform: translate(6px, 6px); }
.vid__frame:hover .vf i:nth-child(2) { transform: translate(-6px, 6px); }
.vid__frame:hover .vf i:nth-child(3) { transform: translate(6px, -6px); }
.vid__frame:hover .vf i:nth-child(4) { transform: translate(-6px, -6px); }
.vid__tag, .vid__dur {
  position: absolute;
  font: 600 9.5px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.vid__tag { top: 22px; left: 24px; display: inline-flex; align-items: center; gap: 7px; }
.vid__dur { bottom: 22px; right: 24px; font-variant-numeric: tabular-nums; }
.vid__play {
  position: absolute; left: 50%; top: 50%;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(5, 6, 8, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.vid__play .ic { font-size: 22px; margin-left: 3px; }
.vid__frame:hover .vid__play { transform: translate(-50%, -50%) scale(1.1); background: rgba(255, 43, 64, 0.85); border-color: transparent; }
.vid__frame.is-playing .vid__shade, .vid__frame.is-playing .vf,
.vid__frame.is-playing .vid__tag, .vid__frame.is-playing .vid__dur,
.vid__frame.is-playing .vid__play, .vid__frame.is-playing .vid__img { display: none; }
.vid__meta { display: grid; gap: 4px; padding: 0 4px 2px; }
.vid__title {
  font: 700 14px/1.25 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}
.vid__sub { font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }

/* Spotify, as a spinning disc */
.cd {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  animation: focus-in 0.9s var(--ease-out) 0.8s backwards;
}
.cd__disc {
  position: relative;
  width: 104px; aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #050608 0 9%, rgba(255, 255, 255, 0.5) 9.6%, transparent 10.6% 30%, rgba(255, 255, 255, 0.1) 30.5%, transparent 31.5%),
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px),
    conic-gradient(from 30deg, #c9d2db, #8fd6ff, #d8c5ff, #ffe3b8, #b6ffe4, #c9d2db, #9ec8ff, #f3c6ff, #c9d2db);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(169, 216, 255, 0.12);
  filter: saturate(0.75) brightness(0.9);
  animation: spin 9s linear infinite;
}
.cd__disc::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.55), transparent 35%, transparent 65%, rgba(255, 255, 255, 0.25));
  mix-blend-mode: overlay;
}
.cd__label {
  position: absolute; inset: 31%;
  display: grid; place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 40% 35%, #1d232b, #07080a);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: var(--ice);
}
.cd__label .ic { font-size: 20px; }
.cd__label img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cd.is-live .cd__disc { animation-duration: 3.2s; filter: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.cd__meta { display: grid; gap: 6px; min-width: 0; }
.cd__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 9.5px/1 var(--font-mono);
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.cd.is-live .cd__eyebrow { color: var(--c-spotify); }
.cd.is-live .cd__eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-spotify);
  box-shadow: 0 0 10px var(--c-spotify);
  animation: rec 1.2s steps(1) infinite;
}
.cd__title {
  font: 700 14px/1.25 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.cd__sub { font-size: 11px; color: var(--ink-2); overflow-wrap: anywhere; }
.cd__bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cd__bar span { display: block; height: 100%; width: 0; background: var(--c-spotify); transition: width 1s linear; }
.cd__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cd__embed { grid-column: 1 / -1; }
.cd__embed iframe { display: block; width: 100%; height: 352px; border: 0; border-radius: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(238, 242, 246, 0.92);
  color: #07080a;
  font: 700 9.5px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.pill .ic { font-size: 12px; }
.pill:hover { transform: translateY(-1px); background: #ffffff; }
.pill--ghost { background: transparent; color: var(--ink); }
.pill--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(169, 216, 255, 0.5); }

/* tiles: FMX */
.block--fmx .block__title { letter-spacing: 0.16em; }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tile {
  --brand: var(--ice);
  --px: 0.5; --py: 0.5;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 18px;
  height: 100%;
  min-height: 128px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--glass-2), var(--glass) 70%);
  color: var(--ink);
  text-decoration: none;
  transform: perspective(700px) rotateX(calc((var(--py) - 0.5) * -11deg)) rotateY(calc((var(--px) - 0.5) * 13deg));
  transition: transform 0.25s ease-out, border-color 0.25s, filter 0.35s, opacity 0.35s, box-shadow 0.35s;
  animation: focus-in 0.9s var(--ease-out) backwards;
  animation-delay: calc(0.9s + var(--n, 0) * 60ms);
}
.tile::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at calc(var(--px) * 100%) calc(var(--py) * 100%), rgba(255, 255, 255, 0.16), transparent 46%),
    conic-gradient(from calc(var(--px) * 300deg) at calc(var(--px) * 100%) calc(var(--py) * 100%), #ff8ad8, #8af5ff, #fff6a8, #a8ffcf, #c3a8ff, #ff8ad8);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.35s;
}
a.tile:hover, a.tile:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
}
a.tile:hover::after, a.tile:focus-visible::after { opacity: 0.55; }
.tile__txt { display: grid; gap: 5px; min-width: 0; }
.tile__label {
  font: 700 11px/1.1 var(--font-display);
  letter-spacing: 0.14em;
}
.tile__sub {
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.tile__arrow {
  position: absolute; top: 16px; right: 14px;
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.25s, transform 0.35s var(--ease);
}
a.tile:hover .tile__arrow { color: var(--ink); transform: translate(2px, -2px); }
.tile.is-soon { cursor: default; border-style: dashed; }
.tile.is-soon .tile__ic { color: var(--ink-3); }
.tile__chip {
  position: absolute; top: 14px; right: 12px;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(169, 216, 255, 0.12);
  color: var(--ice);
  font: 700 8.5px/1 var(--font-mono);
  letter-spacing: 0.16em;
}

/* ------------------------------------------------------------------ footer */

.foot { display: grid; gap: 14px; padding-top: 10px; }

.marquee {
  overflow: hidden;
  /* full bleed, edge to edge of the screen */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  font: 700 clamp(26px, 7vw, 40px)/1.2 var(--font-display);
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(214, 228, 244, 0.34);
  animation: marquee 26s linear infinite;
}
.marquee__track .ic { font-size: 0.6em; color: rgba(169, 216, 255, 0.5); }
@keyframes marquee { to { transform: translateX(-50%); } }

.foot__note, .foot__meta {
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-align: center;
}
.foot__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.linkish {
  padding: 0; border: 0; background: none;
  font: inherit; color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkish:hover { color: var(--ice); }

/* ------------------------------------------------------------------ overlays */

.keys {
  position: fixed; z-index: 12;
  right: calc(var(--hud) + 16px + env(safe-area-inset-right, 0px));
  top: calc(var(--hud) + 44px + env(safe-area-inset-top, 0px));
  width: min(300px, calc(100vw - 52px));
  display: grid; gap: 14px;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(8, 10, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  animation: pop 0.35s var(--ease-out);
}
.keys__h { font: 700 11px/1 var(--font-display); letter-spacing: 0.24em; }
.keys__list { display: grid; gap: 8px; margin: 0; }
.keys__list div { display: flex; align-items: center; gap: 12px; }
.keys__list dt {
  display: grid; place-items: center;
  min-width: 28px; height: 26px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  font: 600 11px/1 var(--font-mono);
  color: var(--ink);
}
.keys__list dd { margin: 0; color: var(--ink-2); font-size: 11.5px; }
.keys__secret { font-size: 11px; color: var(--ice); line-height: 1.55; }
.keys .pill { justify-self: start; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

.toast {
  position: fixed; z-index: 13;
  left: 0; right: 0;
  bottom: calc(var(--hud) + 44px + env(safe-area-inset-bottom, 0px));
  width: max-content;
  max-width: calc(100vw - 40px);
  margin: 0 auto;
  padding: 11px 16px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(8, 10, 13, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font: 600 10.5px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--ink);
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: none; }
.toast:empty { display: none; }

.flash {
  position: fixed; inset: 0; z-index: 11; pointer-events: none;
  background: #fff;
  opacity: 0;
}
.flash.is-on { animation: flash 0.55s ease-out; }
@keyframes flash { from { opacity: 0.85; } to { opacity: 0; } }

.negative {
  position: fixed; inset: 0; z-index: 10; pointer-events: none;
  background: #fff;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.25s;
}
html.is-negative .negative { opacity: 1; }

/* the reticle: an autofocus box that locks onto whatever you point at */
.reticle { display: none; }
html.has-reticle, html.has-reticle a, html.has-reticle button, html.has-reticle .tile { cursor: none; }
html.has-reticle .reticle { display: block; }

.reticle__box {
  position: fixed; left: 0; top: 0; z-index: 14;
  width: var(--w, 30px); height: var(--h, 30px);
  transform: translate3d(var(--x, -100px), var(--y, -100px), 0);
  pointer-events: none;
  transition: width 0.28s var(--ease-out), height 0.28s var(--ease-out), transform 0.28s var(--ease-out), opacity 0.2s;
}
.reticle.is-free .reticle__box { transition: width 0.28s var(--ease-out), height 0.28s var(--ease-out), opacity 0.2s; }
.reticle__box i {
  position: absolute; width: 9px; height: 9px;
  border: 0 solid rgba(238, 242, 246, 0.9);
  transition: border-color 0.2s;
}
.reticle__box i:nth-child(1) { left: 0; top: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.reticle__box i:nth-child(2) { right: 0; top: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.reticle__box i:nth-child(3) { left: 0; bottom: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.reticle__box i:nth-child(4) { right: 0; bottom: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.reticle__tag {
  position: absolute; left: 0; top: -15px;
  font: 700 8px/1 var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--ice);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.reticle.is-locked .reticle__box i { border-color: var(--ice); }
.reticle.is-locked .reticle__tag { opacity: 1; }
.reticle__dot {
  position: fixed; left: -2px; top: -2px; z-index: 15;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(169, 216, 255, 0.9);
  transform: translate3d(var(--dx, -100px), var(--dy, -100px), 0);
  pointer-events: none;
}
.reticle.is-out .reticle__box, .reticle.is-out .reticle__dot { opacity: 0; }

/* ------------------------------------------------------------------ 404 */

.lost {
  position: relative; z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid; place-content: center; justify-items: center;
  gap: 18px;
  padding: 40px max(20px, env(safe-area-inset-right, 0px)) 40px max(20px, env(safe-area-inset-left, 0px));
  text-align: center;
}
.lost__code {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.2em;
  color: var(--ink-2);
}
/* test-card color bars */
.lost__bars {
  width: min(240px, 70vw); height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, #c0c0c0 0 14.28%, #c0c000 0 28.57%, #00c0c0 0 42.85%, #00c000 0 57.14%, #c000c0 0 71.42%, #c00000 0 85.71%, #0000c0 0);
  opacity: 0.85;
}

/* ------------------------------------------------------------------ boot + states */

@keyframes focus-in {
  from { filter: blur(10px); opacity: 0.35; transform: translateY(8px); }
  to { filter: blur(0); opacity: 1; transform: none; }
}
.hero > * { animation: focus-in 1s var(--ease-out) backwards; }
.hero > :nth-child(1) { animation-delay: 0s; }
.hero > :nth-child(2) { animation-delay: 0.1s; }
.hero > :nth-child(3) { animation-delay: 0.18s; }
.hero > :nth-child(4) { animation-delay: 0.24s; }
.hero > :nth-child(5) { animation-delay: 0.3s; }
.block__head, .foot { animation: focus-in 1s var(--ease-out) 0.3s backwards; }

html.is-clipping .ctl--rec .rec-dot { animation: none; opacity: 1; transform: scale(1.5); }

html.is-paused .rec-dot { animation: none; background: var(--ink-3); box-shadow: none; }
html.is-paused .marquee__track, html.is-paused .cd__disc, html.is-paused body::after { animation-play-state: paused; }

html.is-overdrive .name__text { animation: rgb-split 0.5s ease-in-out infinite alternate; }
html.is-overdrive .marquee__track { animation-duration: 3s; -webkit-text-stroke-color: rgba(169, 216, 255, 0.8); }
html.is-overdrive .cd__disc { animation-duration: 0.6s; }
html.is-overdrive .hud { color: var(--ice); }
html.is-overdrive body::after { opacity: 0.12; }
@keyframes rgb-split {
  0% { filter: drop-shadow(3px 0 0 rgba(255, 50, 80, 0.8)) drop-shadow(-3px 0 0 rgba(80, 200, 255, 0.8)); }
  100% { filter: drop-shadow(-4px 1px 0 rgba(255, 50, 80, 0.8)) drop-shadow(4px -1px 0 rgba(80, 200, 255, 0.8)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  body::after { animation: none; }
  .tile { transform: none; }
}
