/* hetu'u: a calm dark base, color only where it means something.
   Tiles are flat, not blurred: blurring over the animated starfield made every frame expensive.
   Everything that moves animates transform and opacity only. */
:root {
  --bg: #05060b;
  --text: #f4f4f6;
  --muted: #9aa0b0;
  --faint: #626879;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --tile: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  --tile-solid: #0d0f17;
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* accents, from the avatar: bandana violet, glasses rose, radio amber */
  --violet: 167, 139, 250;
  --rose: 251, 113, 133;
  --amber: 251, 191, 36;
  --sky: 125, 211, 252;
  --mint: 110, 231, 183;
  --c: var(--violet);   /* each tile sets its own; icons and pills follow it */
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  /* two soft nebula glows, painted once (no animation, no cost) */
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(124, 58, 237, 0.16), transparent 60%),
    radial-gradient(800px 600px at 100% 110%, rgba(225, 29, 72, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
::selection { background: rgba(var(--violet), .5); color: #fff; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid rgba(var(--violet), .9); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1d2030; border-radius: 4px; }

#stars { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* Shared with the admin page */
.glass { background: var(--tile-solid); border: 1px solid var(--line); }
.icon { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 17px;
        color: rgb(var(--c)); background: rgba(var(--c), .12); box-shadow: inset 0 0 0 1px rgba(var(--c), .25); }
.crim { --c: var(--rose); }
.sub { margin: 0; color: var(--muted); }

/* ---- top corner key ---- */
.key { position: absolute; top: 16px; right: 16px; z-index: 20; width: 36px; height: 36px; border-radius: 50%;
       display: grid; place-items: center; color: var(--faint); font-size: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.key:hover { color: var(--text); }

/* ---- profile ---- */
main { width: 100%; max-width: 760px; margin: 0 auto; padding: 56px 16px 32px; display: flex; flex-direction: column; align-items: center; }
.profile { text-align: center; margin-bottom: 36px; display: flex; flex-direction: column; align-items: center; }
.avatar { position: relative; margin-bottom: 18px; }
.avatar .glow { position: absolute; inset: 8%; border-radius: 50%;
                background: radial-gradient(circle, rgba(var(--violet), .35), rgba(var(--rose), .12) 55%, transparent 72%); transform: scale(1.35); }
.avatar img { position: relative; width: 136px; height: 136px; object-fit: contain; display: block; filter: drop-shadow(0 14px 22px rgba(0,0,0,.5)); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.float { animation: float 6s ease-in-out infinite; will-change: transform; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 0; text-transform: lowercase; }
.bio { font-size: 15px; color: #c9ccd6; margin: 10px 0 0; max-width: 460px; line-height: 1.6; font-weight: 400; }
.badges { display: flex; gap: 10px; margin-top: 20px; }
.badge { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #cfd2db;
         background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .25s, color .25s; }
.badge:hover { color: #fff; border-color: var(--line-strong); transform: translateY(-2px); }

/* ---- the tiles: a bento grid ---- */
.bento { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wide { grid-column: span 2; }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .wide { grid-column: auto; } }

.tile {
  --c: var(--violet);
  position: relative; display: flex; flex-direction: column; gap: 14px; text-align: left; width: 100%;
  padding: 18px; border-radius: var(--radius); background: var(--tile), var(--tile-solid);
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
/* a soft glow in the tile's color, faded in on hover (opacity only: cheap) */
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px 200px at 0% 0%, rgba(var(--c), .16), transparent 70%);
  opacity: .55; transition: opacity .35s var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: rgba(var(--c), .35); box-shadow: 0 18px 40px -22px rgba(var(--c), .55); }
.tile:hover::before { opacity: 1; }
.tile:active { transform: translateY(-1px) scale(.995); }
@media (hover: none) { .tile:hover { transform: none; box-shadow: none; } }
.tile-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tile-head > div:not(.icon) { min-width: 0; flex: 1; }
.tile .h { display: block; margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; color: #fff; }
.tile .sub { font-size: 13px; margin-top: 3px; line-height: 1.45; }
.tile .arrow { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px;
               color: var(--muted); background: rgba(255,255,255,.04); transition: transform .35s var(--ease), color .35s, background .35s; }
.tile:hover .arrow { transform: translateX(3px); color: #fff; background: rgba(var(--c), .2); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
        color: rgb(var(--c)); background: rgba(var(--c), .12); white-space: nowrap; align-self: flex-start; }

.violet { --c: var(--violet); } .rose { --c: var(--rose); } .amber { --c: var(--amber); } .sky { --c: var(--sky); } .mint { --c: var(--mint); }

/* who the fuck am I? : the photo peeks in from the right */
.who-tile { min-height: 132px; padding-right: 150px; justify-content: center; }
.who-tile .peek { position: absolute; top: 0; right: 0; bottom: 0; width: 150px; height: 100%; object-fit: cover; object-position: 50% 30%;
                  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%);
                  opacity: .9; transition: transform .6s var(--ease); }
.who-tile:hover .peek { transform: scale(1.04); }
.who-tile .h { font-size: 20px; }
@media (max-width: 420px) { .who-tile { padding-right: 112px; } .who-tile .peek { width: 112px; } }

/* hire me: the main call to action */
.hire-tile { --c: var(--rose); }
.hire-tile .rate { margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12px; padding: 5px 10px; border-radius: 999px; color: #d6d8e0; background: rgba(255,255,255,.045); border: 1px solid var(--line); }
.cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #fff;
       background: linear-gradient(135deg, #8b5cf6, #e11d48); box-shadow: 0 10px 24px -12px rgba(225, 29, 72, .8); transition: transform .3s var(--ease), box-shadow .3s; }
.hire-tile:hover .cta { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(225, 29, 72, .9); }

/* radio: warm, with a dial strip and its own play button */
.radio-tile { --c: var(--amber); flex-direction: row; align-items: center; gap: 14px; cursor: pointer; }
.radio-tile .dial { position: relative; flex: 1; min-width: 0; height: 46px; border-radius: 12px; overflow: hidden;
                    background: linear-gradient(180deg, #2a1b0c, #1a1007); box-shadow: inset 0 0 0 1px rgba(var(--amber), .25); }
.radio-tile.playing .dial { background: radial-gradient(ellipse at 50% 70%, rgba(255, 200, 110, .9), rgba(240, 160, 50, .75) 60%, rgba(150, 90, 20, .8)); }
.radio-tile .dial::before { content: ""; position: absolute; left: 10px; right: 10px; bottom: 9px; height: 8px;
                            background: repeating-linear-gradient(90deg, rgba(var(--amber), .45) 0 1px, transparent 1px 8px); opacity: .7; }
.radio-tile.playing .dial::before { background: repeating-linear-gradient(90deg, rgba(70, 40, 5, .7) 0 1px, transparent 1px 8px); }
.radio-tile .needle { position: absolute; top: 5px; bottom: 5px; width: 2px; left: 12%; background: #e0412f; border-radius: 2px;
                      box-shadow: 0 0 6px rgba(224, 65, 47, .8); transition: left .6s var(--ease); }
.radio-tile .now { position: absolute; left: 12px; top: 6px; right: 12px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
                   color: rgba(var(--amber), .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-tile.playing .now { color: #3a2206; }
.play { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: #2a1606;
        background: radial-gradient(circle at 35% 30%, #fff1cc, #f2b544 60%, #b97514); box-shadow: 0 6px 16px -6px rgba(var(--amber), .8);
        transition: transform .2s var(--ease); }
.play:hover { transform: scale(1.06); }
.play:active { transform: scale(.96); }
.radio-tile.playing .pill { animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .45; } }

/* support / tip: three quick buttons, no expanding */
.tip-tile { --c: var(--mint); }
.tip-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 420px) { .tip-row { grid-template-columns: 1fr; } }
.tip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; text-align: left; min-width: 0;
       background: rgba(255,255,255,.035); border: 1px solid var(--line); transition: background .25s, border-color .25s, transform .25s var(--ease); }
.tip:hover { background: rgba(255,255,255,.06); border-color: rgba(var(--c), .35); transform: translateY(-1px); }
.tip .icon { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.tip b { display: block; font-size: 13px; font-weight: 600; color: #fff; }
.tip small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip > span:last-child { min-width: 0; }

/* ---- sheets: one smooth pop-up for the bio, projects, apps and shop ---- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; visibility: hidden; transition: visibility 0s linear .35s; }
.sheet-wrap.open { visibility: visible; transition: none; }
.sheet-dim { position: absolute; inset: 0; background: rgba(3, 4, 9, .72); opacity: 0; transition: opacity .3s var(--ease); }
.sheet-wrap.open .sheet-dim { opacity: 1; }
.sheet {
  position: relative; width: min(600px, 100%); max-height: min(86vh, 860px); display: flex; flex-direction: column;
  background: #0c0e16; border: 1px solid var(--line-strong); border-radius: 26px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.sheet-wrap.open .sheet { opacity: 1; transform: none; }
.sheet-top { display: flex; align-items: center; gap: 12px; padding: 18px 18px 12px; }
.sheet-top h2 { margin: 0; flex: 1; font-size: 18px; letter-spacing: -.01em; }
.sheet-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,.05); }
.sheet-x:hover { color: #fff; background: rgba(255,255,255,.1); }
.sheet-body { padding: 4px 18px 22px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .sheet-wrap { place-items: end stretch; padding: 0; }
  .sheet { width: 100%; max-height: 88vh; border-radius: 26px 26px 0 0; border-bottom: 0; transform: translateY(100%); }
  .sheet-wrap.open .sheet { transform: none; }
  .sheet-top { padding-top: 24px; }
  .sheet-top::before { content: ""; position: absolute; top: 9px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgba(255,255,255,.18); }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet-dim, .tile, .tile::before { transition: none; }
  .float, .radio-tile.playing .pill { animation: none; }
}

/* sheet contents */
.me { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.me img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; border: 1px solid var(--line-strong); }
.me .text p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: #dcdee6; }
.me .text p:last-child { margin: 0; }
@media (max-width: 560px) { .me { grid-template-columns: 1fr; } .me img { max-width: 240px; } }

.list { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line);
       transition: background .25s, border-color .25s, transform .25s var(--ease); }
.row:hover { background: rgba(255,255,255,.06); border-color: rgba(var(--c), .35); transform: translateY(-1px); }
.row b { display: block; font-size: 15px; color: #fff; }
.row small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.row > span:nth-child(2) { flex: 1; min-width: 0; }
.row .go { color: var(--muted); font-size: 12px; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.item { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.item .pic { aspect-ratio: 1; display: grid; place-items: center; font-size: 40px; color: rgb(var(--c));
             background: radial-gradient(circle at 30% 25%, rgba(var(--c), .2), rgba(255,255,255,.02) 70%); position: relative; }
.item .pic img { width: 100%; height: 100%; object-fit: cover; }
.item .tag { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
             padding: 3px 8px; border-radius: 999px; background: rgba(5, 6, 11, .8); color: #fff; }
.item .info { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.item h3 { margin: 0; font-size: 14px; color: #fff; }
.item .price { font-size: 14px; font-weight: 700; color: rgb(var(--c)); }
.item p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; flex: 1; }
.item .buy { margin-top: 8px; padding: 9px; border-radius: 11px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(var(--c), .2); transition: background .2s; }
.item .buy:hover { background: rgba(var(--c), .32); }
.item .buy:disabled { opacity: .45; cursor: default; }

footer { width: 100%; text-align: center; padding: 8px 16px 110px; font-size: 12px; color: var(--faint); text-transform: lowercase; }
footer p { margin: 0; }

/* ---- toast ---- */
.toast {
  position: fixed; top: 20px; left: 50%; z-index: 80; transform: translate(-50%, -80px); opacity: 0; transition: transform .35s var(--ease), opacity .35s;
  pointer-events: none; background: #161927; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.toast i { color: rgb(var(--mint)); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.pink { --c: 240, 171, 252; }
.bento-links { display: contents; }
.radio-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; text-align: left; }
.radio-main .sub { display: block; }
.radio-main .tile-head > span:last-child { min-width: 0; }
@media (max-width: 640px) { .radio-main { flex-wrap: wrap; } .radio-main .tile-head { flex: 1 1 100%; } .radio-tile { flex-wrap: nowrap; align-items: flex-end; } }

/* When Hetu's chat is open on a wide screen, the page glides left to make room for it. */
main { transition: transform .45s var(--ease); }
@media (min-width: 1200px) { body.chat-open main { transform: translateX(min(0px, calc((100vw - 1620px) / 2))); } }
@media (prefers-reduced-motion: reduce) { main { transition: none; } }
.radio-tile .now { right: auto; max-width: calc(100% - 24px); z-index: 1; padding: 1px 7px; border-radius: 6px; background: rgba(26, 16, 7, .85); top: 5px; left: 8px; }
.radio-tile.playing .now { background: rgba(255, 226, 170, .9); }

/* the globe tile: a tiny planet with three walkers, drawn in CSS */
.globe-tile { --c: 110, 231, 183; min-height: 128px; padding-right: 150px; justify-content: center; }
.globe-art { position: absolute; right: 18px; top: 50%; width: 112px; height: 112px; margin-top: -56px; border-radius: 50%; pointer-events: none;
             background: radial-gradient(circle at 35% 30%, #8fe39a, #4fa65e 45%, #2f6f45 75%);
             box-shadow: inset -14px -10px 0 rgba(0,0,0,.18), 0 0 40px rgba(139, 92, 246, .35); transition: transform .6s var(--ease); }
.globe-art i { position: absolute; left: 22%; top: 55%; width: 28px; height: 16px; border-radius: 50%; background: #3aa6d8; }
.globe-art b { position: absolute; width: 10px; height: 14px; border-radius: 5px 5px 3px 3px; background: #7c3aed; box-shadow: 0 -8px 0 -1px #eac0a2; animation: hop 1.6s ease-in-out infinite; }
.globe-art b:nth-of-type(1) { left: 46%; top: 12%; }
.globe-art b:nth-of-type(2) { left: 72%; top: 34%; background: #e11d48; animation-delay: .5s; }
.globe-art b:nth-of-type(3) { left: 30%; top: 26%; background: #f59e0b; animation-delay: 1s; }
@keyframes hop { 50% { transform: translateY(-3px); } }
.globe-tile:hover .globe-art { transform: rotate(-8deg) scale(1.04); }
@media (max-width: 420px) { .globe-tile { padding-right: 116px; } .globe-art { width: 86px; height: 86px; margin-top: -43px; right: 14px; } }
@media (prefers-reduced-motion: reduce) { .globe-art b { animation: none; } }

/* ---- more photos under "who the fuck am I?" + the full-screen view ---- */
.me img.zoomable { cursor: zoom-in; }
.me-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 20px; }
.me-photo { padding: 0; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.04);
  aspect-ratio: 3 / 4; cursor: zoom-in; transition: transform .2s, border-color .2s; }
.me-photo:hover, .me-photo:focus-visible { transform: translateY(-2px); border-color: rgba(255,255,255,.35); }
.me-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(3,4,8,.94); display: grid; place-items: center;
  padding: 56px 16px; animation: lb-in .18s ease-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-btn { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08); color: #fff; font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn.prev { left: 12px; top: 50%; translate: 0 -50%; } .lb-btn.next { right: 12px; top: 50%; translate: 0 -50%; }
.lb-btn.close { right: 12px; top: 12px; }
.lb-count { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; color: rgba(255,255,255,.7); font-size: 13px; font-variant-numeric: tabular-nums; }
@keyframes lb-in { from { opacity: 0; } }
@media (max-width: 560px) { .me-photos { grid-template-columns: repeat(3, 1fr); gap: 8px; } .lb-btn.prev, .lb-btn.next { display: none; } }
@media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } .me-photo { transition: none; } }
