/* zachxbt.boo — profile card, laid out after the isnt.rip profile style. Monotone. */

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --card: rgba(8, 8, 12, .5);
  --tile: rgba(255, 255, 255, .07);
  --tile-hover: rgba(255, 255, 255, .11);
  --line: rgba(255, 255, 255, .12);
  --line-hi: rgba(255, 255, 255, .28);
  --soft: rgba(255, 255, 255, .62);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #000;
  color: #fff;
  font: 400 16px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.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;
}

.noscript { position: relative; z-index: 3; padding: 24px; color: var(--soft); }

.icon {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon .f { fill: currentColor; stroke: none; }

.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -.14em;
  background: currentColor;
  animation: blink 1s steps(1) infinite;
}

/* ---------- background ---------- */

.bg, .bg-dim {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg { z-index: 0; overflow: hidden; }
.bg-dim { z-index: 1; }

.bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- card ---------- */

.page {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 24px;
}

.content {
  width: 100%;
  max-width: 640px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2, 1.25, .35, 1);
}

body:not(.entered) .content { opacity: 0; transform: translateY(28px) scale(.97); }

/* entrance cascade: blocks rise out of a blur one after another (delays set in app.js) */
body:not(.entered) .rv { opacity: 0; }
.entered .rv { animation: rise .75s var(--ease) var(--d, 0s) backwards; }

.banner {
  height: 168px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 0, 0, .333), #000);
}

/* slow drift; 1.06 at 640px stays under the art's 750px */
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  animation: drift 24s ease-in-out infinite alternate;
}

.bbody { padding: 0 26px 24px; }

.head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: -46px;
}

.ava {
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

/* thin ring that orbits the avatar */
.ava::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, .3) 50%, rgba(255, 255, 255, 0) 76%, rgba(255, 255, 255, .95));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  animation: spin 6s linear infinite;
}

.avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(8, 8, 12, .92);
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .45);
}

.who { min-width: 0; padding-top: 27px; }

.name {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: 31.25px;
  font-weight: 550;
  line-height: 28.75px;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, .78)) drop-shadow(0 0 18px rgba(255, 255, 255, .32));
}

.name:focus { outline: none; }

/* every few seconds the name splits into offset grey slices for a beat */
.name::before, .name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.name.glitch::before { opacity: .8; color: rgba(255, 255, 255, .75); animation: glitch-a .5s steps(2) both; }
.name.glitch::after { opacity: .7; color: rgba(150, 150, 150, .9); animation: glitch-b .5s steps(2) both; }

.m {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: .065px;
  color: var(--soft);
}

.m b { color: #fff; font-weight: 600; }

.bio {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 550;
  line-height: 23.25px;
  white-space: pre-line;
}

.bio-vis { display: grid; }
.bio-ghost, .bio-line { grid-area: 1 / 1; }
.bio-ghost { visibility: hidden; }

.stats {
  display: grid;
  gap: 2px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 550;
  color: var(--soft);
}

.stats b { display: inline-block; min-width: 56px; color: #fff; font-weight: 650; }

/* ---------- tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tile);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease, transform .3s var(--ease);
}

a.tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

/* a light sheen sweeps across a tile on hover */
a.tile::after, .case-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .12) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .75s ease;
  pointer-events: none;
}

a.tile:hover, .case:hover { border-color: var(--line-hi); background: var(--tile-hover); }
a.tile:hover { transform: translateY(-2px); }
a.tile:active { transform: scale(.98); }
a.tile:hover::after, .case-head:hover::after { transform: translateX(120%); }
.tile.alert { border-color: rgba(255, 255, 255, .22); }

/* ---------- sections ---------- */

.sect { margin-top: 26px; }

.sect h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--soft);
}

.note { margin: 4px 0 10px; font-size: 12px; font-weight: 500; color: var(--soft); }

.cases {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-head {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto 17px;
  align-items: center;
  gap: 4px 12px;
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.case-amt { font-size: 15px; font-weight: 700; white-space: nowrap; }
.case-amt .approx { font-family: var(--mono); }
.case-title { font-size: 14px; font-weight: 550; }
.case-meta { font-size: 12px; font-weight: 500; color: var(--soft); white-space: nowrap; }
.case-head .icon { color: var(--soft); transition: rotate .25s var(--ease); }
.case.open .case-head .icon { rotate: 180deg; }

.case-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}

.case-body > p {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
  visibility: hidden;
  transition: visibility 0s .3s;
}

.case.open .case-body { grid-template-rows: 1fr; }
.case.open .case-body > p { padding-bottom: 13px; visibility: visible; transition: none; }

.rules {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 0;
  list-style: none;
}

.rules li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
}

.rules li::before { content: "\2715"; font-weight: 700; color: var(--soft); }

a.tile.sos { justify-content: space-between; font-weight: 500; line-height: 1.45; }
.sos b { font-weight: 700; }

/* ---------- click-to-enter splash ---------- */

.splash {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  cursor: pointer;
  transition: opacity .9s ease, backdrop-filter .9s ease, -webkit-backdrop-filter .9s ease;
  -webkit-tap-highlight-color: transparent;
}

.splash p { margin: 0; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.splash-text { animation: flicker 5s infinite; }
.splash:focus-visible { outline: none; }
.splash:focus-visible p { outline: 2px solid #fff; outline-offset: 6px; border-radius: 4px; }
.entered .splash { opacity: 0; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); pointer-events: none; }

/* ---------- keyframes ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(-1.2%, -1%); } }
@keyframes flicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .4; } }
@keyframes glitch-a {
  0% { clip-path: inset(12% 0 60% 0); transform: translate(-3px, -1px); }
  25% { clip-path: inset(58% 0 18% 0); transform: translate(3px, 1px); }
  50% { clip-path: inset(30% 0 46% 0); transform: translate(-2px, 0); }
  75% { clip-path: inset(78% 0 4% 0); transform: translate(3px, -1px); }
  100% { clip-path: inset(0 0 100% 0); transform: none; }
}
@keyframes glitch-b {
  0% { clip-path: inset(64% 0 10% 0); transform: translate(3px, 1px); }
  25% { clip-path: inset(8% 0 70% 0); transform: translate(-3px, -1px); }
  50% { clip-path: inset(44% 0 30% 0); transform: translate(2px, 1px); }
  75% { clip-path: inset(20% 0 62% 0); transform: translate(-3px, 0); }
  100% { clip-path: inset(0 0 100% 0); transform: none; }
}

/* ---------- phones ---------- */

@media (max-width: 560px) {
  .page { padding: 16px; place-items: start center; }
  .banner { height: 120px; }
  .bbody { padding: 0 18px 20px; }
  .head { gap: 14px; margin-top: -40px; }
  .ava { width: 84px; height: 84px; }
  .who { padding-top: 46px; }
  .name { font-size: 26px; line-height: 26px; }
  .m { margin-top: 8px; }
  .tiles { grid-template-columns: 1fr; }
  .case-head { grid-template-columns: auto minmax(0, 1fr) 17px; }
  .case-meta { grid-column: 2; justify-self: end; }
  .case-head .icon { grid-column: 3; grid-row: 1; }
  .case-title { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}
