/*
 * hyLite studios — site design system.
 * One dark theme by choice (the studio brand is neon on violet; there is no
 * light variant to design for). Tokens are shared with /arcade/arcade.css so
 * a game page and a site page read as one place. Hex/rgba rather than oklch
 * so older phones render the same colours.
 */
:root {
  color-scheme: dark;
  --bg: #1a1730;
  --bg-alt: #120f22;
  --panel: rgba(45, 38, 78, 0.62);
  --panel-2: rgba(52, 44, 90, 0.55);
  --border: rgba(140, 120, 210, 0.28);
  --border-strong: rgba(160, 140, 230, 0.5);
  --text: #f2f0f7;
  --text-muted: #b3adc9;
  --text-faint: #8f88a8;
  --cyan: #67d7f5;
  --purple: #a057f0;
  --pink: #f472b6;
  --gold: #ffd166;
  --ok: #7ee2a8;
  --bad: #ff7b9c;
  --font-display: "Chakra Petch", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Space Grotesk", ui-sans-serif, system-i, sans-serif;
  --radius: 16px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #9be6fb; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
::selection { background: rgba(160, 87, 240, 0.5); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 760px; }

/* type */
.eyebrow { font-size: 12px; letter-spacing: 0.16em; color: var(--pink); font-weight: 600; text-transform: uppercase; }
.grad-text {
  background: linear-gradient(95deg, var(--cyan), var(--purple) 55%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 18px; line-height: 1.6; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font-size: 13px; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.section-head.row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-head.center { align-items: center; text-align: center; }

/* buttons */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer; text-decoration: none; transition: filter .15s ease, transform .15s ease, border-color .15s ease, color .15s ease;
  font-family: var(--font-body);
}
.btn-primary {
  background: linear-gradient(95deg, #3fb7e0, #8b46e6);
  color: #fff; border: 0;
  box-shadow: 0 0 0 1px rgba(103,215,245,.25), 0 8px 24px -8px rgba(160,87,240,.6);
}
.btn-primary:hover { filter: brightness(1.08); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(160,150,210,.5); }
.btn-ghost:hover { border-color: rgba(103,215,245,.8); color: var(--cyan); }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.link-arrow { font-weight: 600; font-size: 14px; }
.link-arrow::after { content: " →"; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(160,130,230,.4); background: rgba(52,44,90,.6); color: #e0dcef;
  font-size: 12px; letter-spacing: 0.04em; font-weight: 500; padding: 6px 12px; border-radius: 999px;
}
.badge.gold { border-color: rgba(255,209,102,.5); color: var(--gold); background: rgba(255,209,102,.1); }
.badge.soft { border-radius: 7px; }

/* surfaces */
.panel {
  background: linear-gradient(180deg, var(--panel-2), rgba(40,34,72,.55));
  border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  color: inherit;
}
a.card:hover, .card.hover:hover {
  transform: translateY(-4px); border-color: rgba(140,160,240,.55);
  box-shadow: 0 18px 40px -20px rgba(120,80,220,.6); color: inherit;
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(20,17,36,.78); border-bottom: 1px solid rgba(140,120,210,.22);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { height: 40px; width: 40px; display: block; }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1; text-transform: uppercase; }
.brand b small { display: block; font-size: 9px; letter-spacing: .22em; color: var(--text-faint); font-weight: 500; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #d9d5e8; font-size: 14px; letter-spacing: .03em; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cyan); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 900px) {
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: rgba(20,17,36,.96); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 8px; font-size: 16px; border-bottom: 1px solid rgba(140,120,210,.15); }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-primary { display: none; }
}

/* hero */
.hero { position: relative; overflow: hidden; padding: 96px 24px 230px; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 35% 45%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 60% 10%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 92% 55%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 22% 70%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 70% 65%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 48% 25%, rgba(255,255,255,.8), transparent),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(90,60,150,.5), transparent 70%),
    var(--bg-alt);
}
.grid-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 220px; pointer-events: none;
  background-image: linear-gradient(rgba(190,120,255,.45) 1px, transparent 1px), linear-gradient(90deg, rgba(190,120,255,.45) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(300px) rotateX(62deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, black 30%, transparent 95%); mask-image: linear-gradient(to top, black 30%, transparent 95%);
  animation: floor 6s linear infinite;
}
@keyframes floor { from { background-position: 0 0, 0 0; } to { background-position: 0 64px, 0 0; } }
.horizon-glow {
  position: absolute; left: 10%; right: 10%; bottom: 210px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(244,114,182,.9), rgba(103,215,245,.9), transparent);
  filter: blur(1px); box-shadow: 0 0 40px 6px rgba(160,87,240,.5);
}
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 66px); font-weight: 700; line-height: 1.04; }
.hero .lead { max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.hero-mark { width: 92px; height: 92px; filter: drop-shadow(0 0 28px rgba(160,87,240,.55)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid rgba(140,120,210,.18); border-bottom: 1px solid rgba(140,120,210,.18); }
.section-tight { padding: 56px 0; }
.page-head { padding: 72px 0 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); }
.page-head .lead { max-width: 640px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-2col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2col { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 20px 200px; }
  .container { padding-left: 18px; padding-right: 18px; }
}

/* team mini-cards (about) */
.person { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: #1a1730; font-size: 16px; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.a { background: linear-gradient(140deg, var(--pink), var(--purple)); }
.avatar.b { background: linear-gradient(140deg, var(--cyan), var(--pink)); }
.avatar.c { background: linear-gradient(140deg, var(--purple), var(--cyan)); }
.person b { display: block; font-size: 15px; font-weight: 600; }
.person span { font-size: 12.5px; color: var(--text-faint); }
.awards { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.awards img { height: 84px; width: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,.4)); }

/* game cards */
.game-card { display: flex; flex-direction: column; overflow: hidden; }
.game-art { position: relative; height: 160px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.game-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.game-art svg { position: relative; width: 84px; height: 84px; filter: drop-shadow(0 0 14px rgba(255,255,255,.35)); transition: transform .25s ease; }
.game-card:hover .game-art svg { transform: scale(1.08) rotate(-3deg); }
.game-art .badge { position: absolute; top: 12px; left: 12px; }
.game-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-body h3 { font-size: 19px; }
.game-body p { font-size: 13.5px; color: var(--text-muted); flex: 1; }
.game-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.game-meta .badge { padding: 4px 9px; font-size: 11px; }
.game-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.art-astrokitty { background: linear-gradient(120deg, #2f4f9c, #5a2d9c); }
.art-flappywren { background: linear-gradient(120deg, #7a2d7a, #4a2d9c); }
.art-hypersnake { background: linear-gradient(120deg, #23256b, #1e6f8c); }
.art-ducksplat { background: linear-gradient(120deg, #2b6f8c, #8c2d6b); }
.art-countingsheep { background: linear-gradient(120deg, #3a2d7a, #2a3d8c); }
.art-neontilt { background: linear-gradient(120deg, #1e2f6b, #6b1e5e); }
.art-soon { background: linear-gradient(120deg, #26213c, #3a2d5c); }

/* creators */
.creator { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.creator-head { display: flex; align-items: center; gap: 16px; }
.creator-head .avatar { width: 64px; height: 64px; }
.creator-head b { display: block; font-size: 18px; font-weight: 600; }
.creator-head .socials { display: flex; gap: 8px; margin-top: 6px; }
.socials a { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); color: var(--text-muted); }
.socials a:hover { color: var(--cyan); border-color: rgba(103,215,245,.6); }
.socials svg { width: 15px; height: 15px; fill: currentColor; }
.creator-bio { font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.creator-bio p { margin: 0 0 10px; }
.creator-bio.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.creator-works { display: flex; flex-direction: column; gap: 8px; }
.creator-works small { font-size: 11.5px; letter-spacing: .08em; color: var(--text-faint); font-weight: 600; text-transform: uppercase; }
.creator-works .row { gap: 8px; }

/* portfolio: one creator pane at a time, a compact strip up top, works as an image grid */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.tabs a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); font-weight: 600; font-size: 13px; }
.tabs a:hover, .tabs a.active { color: var(--text); border-color: rgba(103,215,245,.7); background: rgba(103,215,245,.08); }
.creator-pane { display: none; }
.creator-pane.active { display: block; }
.creator-strip { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; margin-bottom: 22px; }
.creator-strip-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.social-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.social-pill { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--border); color: var(--text-muted); }
.social-pill:hover { color: var(--cyan); border-color: rgba(103,215,245,.6); }
.bio-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bio-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--cyan); font-size: 13px; font-weight: 600; cursor: pointer; }
.bio-more[hidden] { display: none; }
.works-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.work { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--panel); aspect-ratio: 4 / 3; color: var(--text); }
.work img, .work-fallback { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.work-fallback { background: linear-gradient(140deg, var(--purple), var(--cyan)); opacity: .5; }
a.work:hover img { transform: scale(1.05); }
.work-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-family: var(--font-display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; background: linear-gradient(to top, rgba(18,15,34,.92), rgba(18,15,34,0)); }
.work-title i { font-style: normal; color: var(--cyan); }
@media (max-width: 900px) { .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .creator-strip { flex-direction: column; } }

/* blog */
.post-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.post-card .meta { font-size: 12px; color: var(--text-faint); }
.post-card h3 { font-size: 17px; line-height: 1.3; }
.post-card p { font-size: 13.5px; color: var(--text-muted); }
.post-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-list { display: flex; flex-direction: column; gap: 18px; }
.post-row { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 22px; align-items: start; }
.post-row img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.post-row .thumb-fallback { width: 96px; height: 96px; border-radius: 10px; background: linear-gradient(140deg, var(--purple), var(--cyan)); opacity: .6; }
@media (max-width: 560px) { .post-row { grid-template-columns: 1fr; } .post-row img, .post-row .thumb-fallback { width: 100%; height: 140px; } }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filters select, .filters input { flex: 1; min-width: 160px; }
.prose { font-size: 17px; line-height: 1.75; color: #e6e2f2; }
.prose p { margin: 0 0 1.2em; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; text-transform: none; letter-spacing: 0; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 21px; }
.prose img { border-radius: 12px; margin: 1em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--purple); color: var(--text-muted); }
.prose pre { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 14px; }
.prose code { font-size: .92em; }
.prose iframe, .prose video { max-width: 100%; border-radius: 12px; }
.author { display: flex; align-items: center; gap: 12px; }
.author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.pagination a:hover { color: var(--cyan); border-color: rgba(103,215,245,.6); }
.pagination .current { color: var(--text); background: rgba(103,215,245,.1); border-color: rgba(103,215,245,.5); }
.pagination .disabled { opacity: .4; }

/* forms */
label { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.field { display: flex; flex-direction: column; gap: 6px; }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%; background: #1f1a38; border: 1px solid rgba(140,120,210,.4); color: var(--text);
  font-family: inherit; font-size: 14px; padding: 12px 14px; border-radius: 8px;
}
input::placeholder, textarea::placeholder { color: #7b7494; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(103,215,245,.15); }
textarea { resize: vertical; min-height: 120px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; border: 1px solid; }
.alert.ok { background: rgba(126,226,168,.1); border-color: rgba(126,226,168,.4); color: var(--ok); }
.alert.bad { background: rgba(255,123,156,.1); border-color: rgba(255,123,156,.4); color: var(--bad); }
.alert ul { margin: 0; padding-left: 18px; }
.recaptcha-wrap { display: flex; justify-content: center; }

/* footer */
.footer { padding: 44px 0; border-top: 1px solid rgba(140,120,210,.18); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .brand img { height: 28px; width: 28px; }
.footer .copy { font-size: 13px; color: var(--text-faint); }
.footer-links { display: flex; gap: 18px; align-items: center; }
.footer-links a { color: var(--text-faint); display: inline-flex; }
.footer-links a:hover { color: var(--cyan); }
.footer-links svg { width: 18px; height: 18px; fill: currentColor; }

/* misc */
.notice { padding: 28px; text-align: center; color: var(--text-muted); }
.login-box { max-width: 420px; margin: 0 auto; padding: 32px; }
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity .6s ease, transform .6s ease; }
  .reveal.pending { opacity: 0; transform: translateY(14px); }
}
@media (prefers-reduced-motion: reduce) {
  .grid-floor, .hero-mark { animation: none; }
  .card, .btn-primary, .btn-ghost, .game-art svg { transition: none; }
}
