/* ============================================================================
   munna.dev — portfolio design system
   One stylesheet. No framework, no build step. Content comes from /data.json.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --bg:            #0b0d12;
  --bg-2:          #0f1117;
  --surface:       #14161d;
  --surface-2:     #191c24;
  --surface-3:     #212430;
  --border:        #262a36;
  --border-strong: #363b4b;

  --text:       #f4f6fb;
  --text-muted: #a4abbd;
  --text-dim:   #6b7185;

  --brand-a:    #1f4e8c;
  --brand-b:    #6d3bd1;
  --brand-c:    #a855f7;
  --brand-grad: linear-gradient(115deg, #1f4e8c 0%, #6d3bd1 52%, #a855f7 100%);
  --accent:     #b79bff;
  --sky:        #8ec2ff;
  --violet:     #c084fc;
  --green:      #34d399;
  --amber:      #e0a03d;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --maxw: 1160px;
  --pad: clamp(1.15rem, 4vw, 2.25rem);

  --font-display: "Space Grotesk", "SF Pro Display", -apple-system, BlinkMacSystemFont,
                  "Segoe UI", Roboto, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
               system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow: 0 20px 60px -28px rgba(0, 0, 0, .85);
  --ring: 0 0 0 3px rgba(168, 85, 247, .45);
}

/* ---- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* animated page backdrop */
body::before {
  content: "";
  position: fixed;
  inset: -30vmax;
  z-index: -1;
  background:
    radial-gradient(38vmax 38vmax at 10% -6%,  rgba(31, 78, 140, .42), transparent 60%),
    radial-gradient(34vmax 34vmax at 94% 6%,   rgba(168, 85, 247, .30), transparent 62%),
    radial-gradient(40vmax 40vmax at 82% 98%,  rgba(109, 59, 209, .20), transparent 60%),
    radial-gradient(30vmax 30vmax at 2% 92%,   rgba(52, 211, 153, .10), transparent 60%);
  filter: blur(12px);
  animation: drift 36s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #d7c6ff; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.12rem, 1rem + 0.6vw, 1.35rem); }

/* ---- Layout --------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.hero-grid > *, .split > *, .grid > *, .footer-grid > *, .btn-row > *,
.tl-item > *, .games-grid > * { min-width: 0; }
p, li, h1, h2, h3, summary { overflow-wrap: break-word; }

.section { padding-block: clamp(3.5rem, 2rem + 7vw, 7rem); position: relative; }
.section + .section { padding-top: 0; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.lede { color: var(--text-muted); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); max-width: 52ch; }
.muted { color: var(--text-muted); }

.section-head { margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.25rem); max-width: 60ch; }
.section-head h2 { margin-bottom: 0; }
.section-head .lede { margin-top: 1rem; }

/* ---- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.98rem;
  padding: 0.82rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-3);
  color: var(--text);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  border: 0;
  background: var(--brand-grad);
  background-size: 170% 170%;
  color: #fff;
  box-shadow: 0 14px 34px -12px rgba(124, 59, 209, .8);
  animation: sheen 9s ease infinite;
}
@keyframes sheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn-primary:hover { box-shadow: 0 20px 44px -12px rgba(124, 59, 209, .95); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* ---- Header / nav ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--text); }
.brand svg, .brand img { width: 34px; height: 34px; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.wordmark b { font-weight: 700; color: var(--text); }
.wordmark span {
  background: linear-gradient(90deg, #7db9ff, #a855f7, #7db9ff);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { background-position: 220% center; } }

.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav a {
  color: var(--text-muted); text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: 0.93rem;
  padding: 0.5rem 0.8rem; border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.nav .btn { margin-left: 0.6rem; padding: 0.6rem 1.1rem; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--text); cursor: pointer; padding: 0;
}
.nav-toggle svg { width: 20px; height: 20px; margin-inline: auto; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0.2rem; padding: 0.9rem var(--pad) 1.35rem;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .site-header.nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 0.8rem 0.7rem; font-size: 1rem; }
  .nav .btn { margin-left: 0; margin-top: 0.5rem; justify-content: center; }
}

/* ---- Hero ---------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 1.5rem + 6vw, 5.5rem) clamp(2.5rem, 2rem + 4vw, 5rem); }
.hero-grid {
  display: grid; gap: clamp(2rem, 1rem + 5vw, 4.5rem);
  grid-template-columns: 1.1fr 0.9fr; align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-portrait { order: -1; } }

.hero h1 { margin: 0.4rem 0 1.1rem; }
.hero h1 .rot {
  background: linear-gradient(100deg, #8ec2ff, #c084fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.hero h1 .rot::after { content: "_"; -webkit-text-fill-color: var(--violet); color: var(--violet); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.hero .role {
  font-family: var(--font-mono); font-size: 0.95rem; color: var(--sky);
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem;
}
.hero .role::before { content: "> "; color: var(--text-dim); }
.hero .lede { max-width: 50ch; margin-bottom: 1.9rem; }
.hero .btn-row { margin-bottom: 1.8rem; }

.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; list-style: none; padding: 0; }
.facts li {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted);
  padding: 0.42rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.facts li b { color: var(--text); font-weight: 700; }

/* portrait with orbit rings */
.hero-portrait { display: grid; place-items: center; }
.portrait {
  position: relative; width: min(340px, 78vw); aspect-ratio: 1;
  display: grid; place-items: center;
}
.portrait .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--border-strong);
  animation: spin 26s linear infinite;
}
.portrait .ring::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px;
  border-radius: 50%; background: var(--sky); transform: translateX(-50%);
  box-shadow: 0 0 14px 2px rgba(142, 194, 255, .7);
}
.portrait .ring.r2 { inset: 26px; animation-duration: 18s; animation-direction: reverse; border-style: dashed; }
.portrait .ring.r2::before { background: var(--violet); box-shadow: 0 0 14px 2px rgba(192, 132, 252, .7); }
@keyframes spin { to { transform: rotate(360deg); } }

.portrait .photo {
  position: relative; width: 74%; aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border-strong);
  box-shadow: 0 30px 70px -24px rgba(124, 59, 209, .55);
}
.portrait .badge {
  position: absolute; bottom: 6%; right: 2%;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.76rem;
  padding: 0.4rem 0.8rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.portrait .badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ---- Generic card / grid --------------------------------- */
.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.6vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.3rem, 1rem + 1.5vw, 1.9rem);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card.hover:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }

/* icon chip */
.ic {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: #d7c6ff;
}
.ic svg { width: 23px; height: 23px; }

/* ---- About ---------------------------------------------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.75rem, 1rem + 4vw, 3.5rem); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.about-photo {
  border-radius: var(--r-lg); border: 1px solid var(--border-strong);
  width: 100%; aspect-ratio: 1; object-fit: cover;
  box-shadow: var(--shadow);
}
.about-body p + p { margin-top: 1rem; color: var(--text-muted); }
.about-body p:first-child { color: var(--text-muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.8rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  border: 1px solid var(--border); border-radius: var(--r); padding: 1rem 1.1rem;
  background: var(--surface-2);
}
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); color: #fff; line-height: 1; }
.stat .n .suf { color: var(--accent); }
.stat .l { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.35rem; }

.chk { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; gap: 0.6rem; }
.chk li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-muted); font-size: 0.97rem; }
.chk svg { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 3px; }

/* ---- Skills ------------------------------------------- */
.skill-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 0.6rem + 1.6vw, 1.6rem); }
@media (max-width: 760px) { .skill-cats { grid-template-columns: 1fr; } }
.skill-cat h3 {
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 1rem; font-family: var(--font-display);
}
.skill { margin-bottom: 0.95rem; }
.skill .top { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.4rem; }
.skill .top b { font-weight: 600; }
.skill .top span { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.8rem; }
.bar { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--brand-grad); background-size: 200% 100%;
  transition: width 1.1s cubic-bezier(.2,.7,.2,1);
}

/* ---- Services --------------------------------------- */
.svc { display: flex; flex-direction: column; gap: 0.9rem; height: 100%; }
.svc .ic { margin-bottom: 0.2rem; }
.svc h3 { margin: 0; }
.svc p { color: var(--text-muted); font-size: 0.97rem; }
.svc .tag {
  align-self: flex-start; margin-top: auto;
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); padding: 0.25rem 0.6rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ---- Work / projects ------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 0.5rem + 2vw, 1.75rem); }
@media (max-width: 820px) { .work-grid { grid-template-columns: 1fr; } }
.project {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(109, 59, 209, .18), transparent 55%),
    var(--surface-2);
  padding: clamp(1.4rem, 1rem + 2vw, 2rem);
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.project:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 28px 64px -32px rgba(109, 59, 209, .7); }
.project .p-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.project .p-cat {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim);
}
.project .p-star { color: var(--amber); width: 16px; height: 16px; }
.project h3 { margin: 0; }
.project .p-sum { color: var(--text-muted); font-size: 0.97rem; }
.project ul.p-hl { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
.project ul.p-hl li { position: relative; padding-left: 1.1rem; color: var(--text-muted); font-size: 0.92rem; }
.project ul.p-hl li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin-top: auto; }
.chips li {
  font-family: var(--font-mono); font-size: 0.74rem;
  padding: 0.3rem 0.62rem; border-radius: 7px;
  border: 1px solid var(--border); color: var(--text-muted);
  background: rgba(255,255,255,.02);
}
.project .p-link { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; align-self: flex-start; }

/* ---- Business (Bee Hook) --------------------------- */
.biz {
  border-radius: var(--r-xl);
  border: 1px solid color-mix(in srgb, var(--brand-c) 28%, var(--border));
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(168,85,247,.16), transparent 60%),
    var(--surface-2);
  padding: clamp(1.6rem, 1.2rem + 3vw, 3rem);
}
.biz .biz-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; margin-bottom: 0.5rem; }
.biz .biz-head h3 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2rem); }
.biz .biz-head .t { color: var(--accent); font-family: var(--font-display); font-weight: 600; }
.biz > p { color: var(--text-muted); max-width: 68ch; }
.biz .feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.6rem 0; }
@media (max-width: 860px) { .biz .feat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .biz .feat { grid-template-columns: 1fr; } }
.biz .feat div { border: 1px solid var(--border); border-radius: var(--r); padding: 1rem 1.1rem; background: rgba(255,255,255,.02); }
.biz .feat b { display: block; font-family: var(--font-display); margin-bottom: 0.25rem; font-size: 0.98rem; }
.biz .feat p { color: var(--text-muted); font-size: 0.88rem; }

/* ---- Timeline (experience + education) ------------- */
.timeline { position: relative; display: grid; gap: 1.2rem; }
.timeline::before {
  content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--border-strong), transparent);
}
.tl-item {
  position: relative; padding-left: 3.2rem;
}
.tl-item::before {
  content: ""; position: absolute; left: 8px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--surface-3); border: 2px solid var(--border-strong);
}
.tl-item.now::before { background: var(--brand-grad); border-color: transparent; box-shadow: 0 0 0 4px rgba(168,85,247,.18); }
.tl-item .tl-when { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); }
.tl-item h3 { margin: 0.15rem 0 0.1rem; }
.tl-item .tl-co { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-size: 0.95rem; }
.tl-item .tl-desc { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.5rem; }
.tl-item ul { list-style: none; padding: 0; margin-top: 0.6rem; display: grid; gap: 0.4rem; }
.tl-item ul li { position: relative; padding-left: 1.1rem; color: var(--text-muted); font-size: 0.9rem; }
.tl-item ul li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }

/* ---- Testimonials -------------------------------- */
.quote {
  height: 100%; display: flex; flex-direction: column; gap: 0.9rem;
}
.quote .stars { display: flex; gap: 2px; color: var(--amber); }
.quote .stars svg { width: 16px; height: 16px; }
.quote blockquote { color: var(--text-muted); font-size: 0.97rem; }
.quote .who { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.quote .who .av {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--brand-grad); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: #fff;
}
.quote .who b { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.quote .who span { display: block; color: var(--text-dim); font-size: 0.8rem; }

/* ---- Games ----------------------------------------- */
.games-wrap {
  border-radius: var(--r-xl); border: 1px solid var(--border);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(52, 211, 153, .10), transparent 55%),
    var(--surface-2);
  padding: clamp(1.6rem, 1.2rem + 3vw, 3rem);
}
.games-wrap > p { color: var(--text-muted); max-width: 64ch; }
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 0.5rem + 2vw, 1.75rem); margin-top: 1.6rem; }
@media (max-width: 760px) { .games-grid { grid-template-columns: 1fr; } }
.game-card {
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: rgba(255,255,255,.02); padding: clamp(1.3rem, 1rem + 1.5vw, 1.7rem);
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: transform .22s ease, border-color .22s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.game-card h3 { margin: 0; }
.game-card .gc-tag { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; color: var(--green); }
.game-card p { color: var(--text-muted); font-size: 0.93rem; }
.game-card .gc-status {
  align-self: flex-start;
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
  padding: 0.28rem 0.66rem; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.game-card .gc-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.game-card .gc-facts { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; }
.game-card .gc-facts li {
  font-family: var(--font-display); font-size: 0.74rem;
  padding: 0.28rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-muted); background: rgba(255,255,255,.02);
}
.game-card .gc-cta { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; margin-top: auto; }
.game-card.soon { display: grid; place-content: center; text-align: center; border-style: dashed; color: var(--text-dim); }

/* ---- Contact ------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 1rem + 3vw, 3rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-methods { display: grid; gap: 1rem; }
.cm { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem 1.2rem; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); }
.cm .ic { flex: none; }
.cm .l { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-display); }
.cm a, .cm p { font-family: var(--font-display); font-weight: 600; }
.cm p { color: var(--text); }
.contact-card {
  border-radius: var(--r-xl);
  border: 1px solid color-mix(in srgb, var(--brand-c) 30%, var(--border));
  background: radial-gradient(80% 140% at 50% 0%, rgba(168,85,247,.18), transparent 70%), var(--surface-2);
  padding: clamp(1.6rem, 1.2rem + 3vw, 2.4rem);
}
.contact-card .avail {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  padding: 0.35rem 0.8rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--green) 40%, transparent);
  color: var(--green); margin-bottom: 1rem;
}
.contact-card .avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.contact-card h3 { margin-bottom: 0.5rem; }
.contact-card p { color: var(--text-muted); margin-bottom: 1.2rem; }
.social-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social-row a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.social-row a:hover { color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.social-row svg { width: 19px; height: 19px; }

/* ---- Footer ------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); margin-top: clamp(3rem, 2rem + 5vw, 6rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.9rem; font-family: var(--font-display); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .f-brand p { color: var(--text-muted); max-width: 38ch; margin-top: 0.8rem; font-size: 0.93rem; }
.footer-base {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between;
  color: var(--text-dim); font-size: 0.86rem;
}
.footer-base a { color: var(--text-dim); }

/* ---- Scroll reveal ----------------------------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .06s; }
.js .reveal.d2 { transition-delay: .12s; }
.js .reveal.d3 { transition-delay: .18s; }
.js .reveal.d4 { transition-delay: .24s; }

/* ---- Loading / error ------------------------- */
.boot { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem; }
.boot .spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--surface-3); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite; margin: 0 auto 1rem;
}

/* ---- Helpers -------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--surface-3); color: #fff; padding: 0.7rem 1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
[hidden] { display: none !important; }

/* ---- Reduced motion ------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  body::before { animation: none !important; }
  .hero h1 .rot::after { animation: none !important; }
}
