/* =========================================================
   PranVeda — Portfolio styles
   ========================================================= */
:root {
  --bg: #07090d;
  --bg-2: #0c1017;
  --panel: #10151e;
  --panel-2: #151b26;
  --line: #1f2733;
  --line-2: #2a3442;
  --text: #e8edf3;
  --muted: #8b97a8;
  --dim: #5c6878;

  --lime: #c6ff3d;
  --cyan: #3de0ff;
  --amber: #ffb547;
  --violet: #8f7bff;
  --red: #ff5c6c;

  --c-game: var(--lime);
  --c-app: var(--cyan);
  --c-web: #b18cff;
  --c-plugin: var(--cyan);
  --c-asset: var(--amber);

  --radius: 14px;
  --radius-sm: 8px;
  --max: 1200px;
  --font-display: 'Chakra Petch', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--lime); color: #000; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* Background grid */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 700px; height: 700px; border-radius: 50%;
  filter: blur(120px); opacity: .14;
}
.bg-glow.a { background: var(--lime); top: -300px; right: -200px; }
.bg-glow.b { background: var(--violet); top: 400px; left: -350px; opacity: .1; }

/* Utility */
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--lime);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.section { padding: 110px 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 14px 0 0; letter-spacing: -.01em;
}
.section-sub { color: var(--muted); max-width: 520px; margin: 0; }
@media (max-width: 700px) { .section { padding: 72px 0; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--text);
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  transition: transform .15s ease, background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--lime); color: #0a0d05; border-color: var(--lime); }
.btn-primary:hover { box-shadow: 0 10px 30px -8px rgba(198,255,61,.55); border-color: var(--lime); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-play { background: #fff; color: #000; border-color: #fff; }
.btn-play:hover { box-shadow: 0 10px 30px -10px rgba(255,255,255,.5); border-color: #fff; }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7,9,13,.78); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--lime); color: #000; font-size: 17px; font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links .btn { margin-left: 10px; color: #0a0d05; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); width: 42px; height: 42px; align-items: center; justify-content: center; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(7,9,13,.97); backdrop-filter: blur(14px); padding: 16px; gap: 4px;
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px; font-size: 16px; }
  .nav-links .btn { margin: 8px 0 0; }
}

/* Hero */
.hero { padding: 150px 0 90px; min-height: 92vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 7.4vw, 92px); line-height: .95; letter-spacing: -.02em; margin: 22px 0 22px;
}
.hero h1 .accent { color: var(--lime); display: block; }
.hero-role { font-family: var(--font-mono); color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.hero-role .cursor { display: inline-block; width: 9px; height: 18px; background: var(--lime); vertical-align: -3px; margin-left: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-tagline { color: var(--muted); font-size: 18px; max-width: 540px; margin: 0 0 34px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-2); border-radius: 99px; font-size: 13px; color: var(--muted); background: var(--panel);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(198,255,61,.15); animation: pulse 2s infinite; }
.status-pill.off .dot { background: var(--dim); box-shadow: none; animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(198,255,61,0); } }

/* Viewport card */
.viewport {
  position: relative; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); box-shadow: var(--shadow);
  overflow: hidden;
}
.viewport-bar {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
  border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--dim);
}
.viewport-bar .dots { display: flex; gap: 6px; }
.viewport-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.viewport-bar .dots i:first-child { background: var(--red); }
.viewport-bar .dots i:nth-child(2) { background: var(--amber); }
.viewport-bar .dots i:nth-child(3) { background: var(--lime); }
.viewport-stage { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.viewport-stage::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(61,224,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,224,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: perspective(500px) rotateX(55deg) translateY(30%) scale(2);
  transform-origin: bottom;
}
.viewport-stage img { position: relative; width: 72%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; border: 1px solid var(--line-2); }
.avatar-fallback {
  position: relative; width: 62%; aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: clamp(60px, 10vw, 110px); font-weight: 700; color: #000;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
}
.corner { position: absolute; width: 22px; height: 22px; border-color: var(--lime); border-style: solid; border-width: 0; }
.corner.tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }
.gizmo { position: absolute; bottom: 22px; left: 22px; font-family: var(--font-mono); font-size: 11px; color: var(--dim); line-height: 1.5; }
.gizmo b { font-weight: 500; }
.gizmo .x { color: var(--red); } .gizmo .y { color: var(--lime); } .gizmo .z { color: var(--cyan); }

.hud { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.hud div { padding: 14px 10px; text-align: center; border-right: 1px solid var(--line); }
.hud div:last-child { border-right: 0; }
.hud b { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.hud span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.hud .g b { color: var(--c-game); } .hud .p b { color: var(--c-app); } .hud .w b { color: var(--c-web); } .hud .a b { color: var(--c-asset); }

@media (max-width: 920px) {
  .hero { min-height: auto; padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .viewport { max-width: 460px; }
}

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--dim); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: '◆'; font-size: 10px; color: var(--lime); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Featured */
.featured {
  display: grid; grid-template-columns: 1.3fr 1fr; border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; background: var(--panel); margin-bottom: 56px; transition: border-color .25s;
}
.featured:hover { border-color: var(--muted); }
.featured-media { position: relative; aspect-ratio: 16/10; background: var(--bg-2); overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.featured:hover .featured-media img { transform: scale(1.04); }
.featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.featured-body h3 { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px); margin: 0; line-height: 1.05; }
.featured-body p { color: var(--muted); margin: 0; }
.featured-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--lime); text-transform: uppercase; }
@media (max-width: 820px) { .featured { grid-template-columns: 1fr; } .featured-body { padding: 26px; } }

/* Filters */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 8px;
  border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: background .2s, color .2s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tab .count { font-family: var(--font-mono); font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--bg); color: var(--dim); }
.tab[data-type=game].active .count { background: var(--c-game); color: #000; }
.tab[data-type=app].active .count { background: var(--c-app); color: #000; }
.tab[data-type=website].active .count { background: var(--c-web); color: #000; }
.tab[data-type=asset].active .count { background: var(--c-asset); color: #000; }
.tab[data-type=all].active .count { background: var(--text); color: #000; }
.search { position: relative; flex: 0 1 280px; }
.search input {
  width: 100%; padding: 12px 14px 12px 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; font-size: 14px; outline: none;
}
.search input:focus { border-color: var(--lime); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--dim); }
@media (max-width: 700px) { .search { flex: 1 1 100%; } }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }
.card {
  --c: var(--c-game);
  position: relative; display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
  animation: rise .5s ease both;
}
.card[data-type=app] { --c: var(--c-app); }
.card[data-type=website] { --c: var(--c-web); }
.card[data-type=asset] { --c: var(--c-asset); }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c) 40%, transparent); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card-media { position: relative; aspect-ratio: 16/9; background: var(--bg-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-size: 48px; color: color-mix(in srgb, var(--c) 60%, transparent); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%), var(--bg-2); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px;
  background: rgba(7,9,13,.82); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); backdrop-filter: blur(6px);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--c); }
.card-media .badges { position: absolute; top: 12px; left: 12px; right: 52px; display: flex; flex-wrap: wrap; gap: 6px; }
.card-media .badge.genre { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(7,9,13,.78); }
.card-media .badge.genre::before { display: none; }
.card-media .has-video { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(7,9,13,.82); color: #fff; }
.card-media .has-video svg { width: 14px; }
.card-body { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { display: flex; align-items: center; gap: 12px; }
.card-icon { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-2); flex: none; }
.card h3 { font-family: var(--font-display); font-size: 21px; margin: 0; line-height: 1.15; }
.card .meta { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border-radius: 5px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.card-actions .btn { flex: 1; padding: 10px 12px; font-size: 13px; position: relative; z-index: 2; }
.card-actions .btn-dl { background: color-mix(in srgb, var(--c) 14%, var(--panel)); border-color: color-mix(in srgb, var(--c) 40%, transparent); color: var(--c); }
.card-actions .btn-dl:hover { background: var(--c); color: #000; }
.card-link { position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: 2px solid var(--c); outline-offset: -2px; border-radius: var(--radius); }

.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--text); margin-bottom: 6px; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); min-height: 340px; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* About */
.about-grid > *, .hero-grid > * { min-width: 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.about-text { color: var(--muted); font-size: 17px; }
.about-text p { margin: 0 0 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.fact { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.fact b { display: block; font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--text); }
.fact span { font-size: 13px; color: var(--dim); }
.skills { display: flex; flex-wrap: wrap; gap: 10px; }
.skill {
  padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel);
  font-weight: 600; font-size: 14px; transition: border-color .2s, color .2s, transform .2s;
}
.skill:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.service { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.service .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px; }
.service .ico svg { width: 22px; }
.service h4 { font-family: var(--font-display); font-size: 20px; margin: 0 0 8px; }
.service p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } .services { grid-template-columns: 1fr; } }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; padding: 48px; border: 1px solid var(--line-2); border-radius: 22px; background: linear-gradient(135deg, var(--panel), var(--bg-2)); position: relative; overflow: hidden; }
.contact-wrap::after { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: var(--lime); filter: blur(140px); opacity: .08; right: -100px; bottom: -150px; pointer-events: none; }
.contact-info h2 { font-family: var(--font-display); font-size: clamp(32px, 4.5vw, 48px); line-height: 1.05; margin: 14px 0 16px; }
.contact-info p { color: var(--muted); margin: 0 0 28px; }
.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; transition: color .2s; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--lime); }
.contact-list svg { width: 18px; flex: none; color: var(--lime); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.socials a { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: all .2s; }
.socials a:hover { color: #000; background: var(--lime); border-color: var(--lime); }
.socials svg { width: 18px; height: 18px; }
.form { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 12px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font: inherit; font-size: 15px; outline: none; resize: vertical;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--lime); }
.form-note { font-size: 14px; min-height: 20px; margin: 0; }
.form-note.ok { color: var(--lime); } .form-note.err { color: var(--red); }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; padding: 28px 20px; } .form .row { grid-template-columns: 1fr; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 14px; }
.footer a:hover { color: var(--lime); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Project detail page
   ========================================================= */
.p-hero { position: relative; padding: 120px 0 50px; overflow: hidden; }
.p-hero-bg { position: absolute; inset: 0; z-index: -1; }
.p-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(50px) saturate(1.3); opacity: .28; transform: scale(1.2); }
.p-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,13,.4), var(--bg)); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 30px; }
.back:hover { color: var(--text); }
.back svg { width: 16px; }
.p-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.p-icon { width: 96px; height: 96px; border-radius: 22px; object-fit: cover; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.p-head h1 { font-family: var(--font-display); font-size: clamp(36px, 6vw, 68px); line-height: 1; margin: 10px 0 8px; letter-spacing: -.01em; }
.p-head .lead { color: var(--muted); font-size: 18px; margin: 0; max-width: 720px; }
.p-layout > * { min-width: 0; }
.p-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; padding-bottom: 60px; }
@media (max-width: 960px) { .p-layout { grid-template-columns: 1fr; } }
.media-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #000; aspect-ratio: 16/9; position: relative; }
.media-main iframe, .media-main video, .media-main img { width: 100%; height: 100%; border: 0; object-fit: contain; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: thin; }
.thumb { flex: none; width: 130px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: var(--panel); padding: 0; position: relative; opacity: .65; transition: opacity .2s, border-color .2s; }
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--lime); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; }
.thumb .play svg { width: 26px; }
.prose { color: #c4ccd8; font-size: 16.5px; margin-top: 36px; }
.prose h2, .prose h3 { font-family: var(--font-display); color: var(--text); margin: 32px 0 12px; line-height: 1.2; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 21px; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 18px; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.prose li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); transform: rotate(45deg); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--panel-2); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); }
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.side-card { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); padding: 22px; }
.side-card .btn { width: 100%; }
.side-card .btn + .btn { margin-top: 10px; }
.dl-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--dim); margin-top: 10px; }
.specs { list-style: none; margin: 0; padding: 0; }
.specs li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs li:last-child { border-bottom: 0; }
.specs span { color: var(--dim); }
.specs b { font-weight: 600; text-align: right; }
.side-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; }
.play-badge { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 10px; background: #000; border: 1px solid #3a3f47; color: #fff; transition: border-color .2s; }
.play-badge:hover { border-color: #fff; }
.play-badge svg { width: 26px; height: 26px; }
.play-badge small { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; line-height: 1.2; }
.play-badge b { display: block; font-size: 17px; line-height: 1.2; }
.side-card .play-badge + .btn, .side-card .btn + .play-badge { margin-top: 10px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 10px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #333; background: rgba(20,20,20,.8); color: #fff; display: grid; place-items: center; }
.lb-btn:hover { border-color: #fff; }
.lb-btn svg { width: 22px; }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); } .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.zoomable { cursor: zoom-in; }

.notfound { text-align: center; padding: 200px 20px 120px; }
.notfound h1 { font-family: var(--font-display); font-size: 64px; margin: 0; }

/* Resume link in nav */
[data-resume][hidden] { display: none !important; }
.nav-links .resume-link { color: var(--lime); }

/* Experience timeline */
.facts { grid-template-columns: repeat(2, 1fr); }
.exp-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.exp-grid > * { min-width: 0; }
@media (max-width: 900px) { .exp-grid { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--lime), var(--line-2) 30%, var(--line)); }
.tl-item { position: relative; padding: 0 0 22px 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.tl-item.current .tl-dot { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 0 5px rgba(198,255,61,.15); }
.tl-card { padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color .2s, transform .2s; }
.tl-card:hover { border-color: var(--line-2); transform: translateX(3px); }
.tl-item.current .tl-card { border-color: rgba(198,255,61,.35); background: linear-gradient(135deg, rgba(198,255,61,.06), var(--panel) 60%); }
.tl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tl-card h4 { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.25; }
.tl-dur { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.tl-item.current .tl-dur { color: var(--lime); }
.tl-co { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.tl-co b { color: var(--text); font-weight: 600; }
.tl-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.now { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; padding: 2px 7px; border-radius: 5px; background: var(--lime); color: #000; margin-left: 8px; vertical-align: 2px; }

.edu { position: sticky; top: 92px; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); }
.edu-title { font-family: var(--font-display); font-size: 22px; margin: 0 0 14px; }
.edu-item { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.edu-item:last-of-type { border-bottom: 0; }
.edu-item b { font-size: 15px; line-height: 1.35; }
.edu-item .yr { font-family: var(--font-mono); font-size: 12px; color: var(--lime); padding-top: 2px; }
.edu-item span { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; }
@media (max-width: 900px) { .edu { position: static; } }

/* Two-letter logo mark */
.logo-mark.two { font-size: 13px; letter-spacing: -.02em; }
.nav-links a.active { color: var(--text); background: var(--panel); }
.avatar-fallback { letter-spacing: -.03em; }

/* =========================================================
   Profile page
   ========================================================= */
.pf { padding-top: 120px; padding-bottom: 40px; }
.pf-head { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 32px; border: 1px solid var(--line-2); border-radius: 22px; background: linear-gradient(135deg, var(--panel), var(--bg-2)); position: relative; overflow: hidden; }
.pf-head::after { content: ''; position: absolute; right: -120px; top: -160px; width: 380px; height: 380px; border-radius: 50%; background: var(--lime); opacity: .08; filter: blur(100px); pointer-events: none; }
.pf-avatar { width: 150px; height: 150px; border-radius: 26px; overflow: hidden; position: relative; display: grid; place-items: center; background: linear-gradient(135deg, var(--lime), var(--cyan)); box-shadow: 0 0 0 1px var(--line-2), 0 20px 50px -20px rgba(198,255,61,.4); }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-avatar span { font-family: var(--font-display); font-size: 56px; font-weight: 700; color: #000; }
.pf-id h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 56px); line-height: 1; margin: 10px 0 6px; letter-spacing: -.01em; }
.pf-role { font-family: var(--font-mono); color: var(--lime); font-size: 15px; margin-bottom: 16px; }
.pf-contact { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pf-contact a, .pf-contact div { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pf-contact a:hover { color: var(--lime); }
.pf-contact svg { width: 16px; height: 16px; flex: none; color: var(--lime); }
.pf-actions { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
@media (max-width: 960px) { .pf-head { grid-template-columns: auto 1fr; } .pf-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } }
@media (max-width: 600px) { .pf-head { grid-template-columns: 1fr; padding: 22px; gap: 20px; } .pf-avatar { width: 110px; height: 110px; } .pf-actions .btn { flex: 1 1 100%; } }

.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 40px; }
.pf-stats div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.pf-stats b { display: block; font-family: var(--font-display); font-size: 32px; line-height: 1; }
.pf-stats span { font-size: 13px; color: var(--dim); }
.pf-stats div:first-child b { color: var(--lime); }
@media (max-width: 700px) { .pf-stats { grid-template-columns: 1fr 1fr; } }

.pf-grid { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.pf-grid > * { min-width: 0; }
@media (max-width: 960px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-block { margin-bottom: 40px; }
.pf-block.card { padding: 22px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); margin-bottom: 16px; }
.pf-h { font-family: var(--font-display); font-size: 22px; margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
.pf-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pf-h span { position: relative; padding-left: 14px; }
.pf-h span::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 18px; transform: translateY(-50%); background: var(--lime); border-radius: 2px; }
.pf-block.card .pf-h { font-size: 17px; }
.pf-text { color: #c4ccd8; font-size: 16.5px; }
.pf-text p { margin: 0 0 14px; }
.pf-quote { margin: 0; padding: 18px 22px; border-left: 3px solid var(--lime); background: var(--panel); border-radius: 0 12px 12px 0; color: #c4ccd8; font-style: italic; }
.pf-edu { display: flex; flex-direction: column; gap: 10px; }
.pf-edu-item { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.pf-edu-yr { font-family: var(--font-display); font-size: 22px; color: var(--lime); line-height: 1.2; }
.pf-edu-item b { display: block; font-size: 16px; }
.pf-edu-item span { color: var(--muted); font-size: 14px; }
.pf-side .specs li { flex-direction: column; gap: 2px; }
.pf-side .specs b { text-align: left; }
.skills.sm { gap: 8px; }
.skills.sm .skill { padding: 7px 12px; font-size: 13px; }
.pf-links { display: flex; flex-direction: column; gap: 8px; }
.pf-links a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; transition: all .2s; }
.pf-links a:hover { border-color: var(--lime); color: var(--lime); }
.pf-links svg { width: 18px; height: 18px; }

/* Print: clean black-on-white resume */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; color: #111 !important; font-size: 12px; }
  .bg-grid, .bg-glow, .nav, .footer, .no-print, .pf-actions { display: none !important; }
  .pf { padding: 0; max-width: none; }
  .pf-head, .pf-stats div, .pf-block.card, .tl-card, .pf-edu-item, .pf-quote { background: #fff !important; border-color: #ddd !important; box-shadow: none !important; }
  .pf-head::after { display: none; }
  .pf-grid { grid-template-columns: 1fr 260px; gap: 20px; }
  .pf-text, .pf-quote, .tl-co, .pf-edu-item span, .pf-contact a, .pf-contact div, .specs span, .pf-stats span { color: #444 !important; }
  .pf-role, .pf-edu-yr, .pf-stats div:first-child b, .tl-dur { color: #333 !important; }
  .eyebrow { color: #555 !important; }
  .pf-h span::before, .tl-item.current .tl-dot { background: #333 !important; border-color: #333 !important; }
  .timeline::before { background: #ccc !important; }
  .skill { border-color: #ccc !important; background: #fff !important; color: #222 !important; }
  .now { background: #333 !important; color: #fff !important; }
  .pf-block, .tl-item, .pf-edu-item { break-inside: avoid; }
}

/* Mobile: tidy hero buttons into a grid */
.hero-cta { flex-wrap: wrap; }
@media (max-width: 600px) {
  .hero-cta .btn { flex: 1 1 calc(50% - 6px); padding-left: 14px; padding-right: 14px; }
  .hero-cta .btn-primary { flex-basis: 100%; }
}

/* Respect "reduce motion" */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Keyboard focus */
.btn:focus-visible, .tab:focus-visible, .nav-links a:focus-visible, .socials a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---------- Playable badge on cards ---------- */
.card-media .playable { position: absolute; left: 12px; bottom: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; padding: 5px 9px; border-radius: 6px; background: #fff; color: #000; font-weight: 500; }

/* ---------- WebGL player ---------- */
.media-main.is-game { aspect-ratio: 16/9; display: flex; flex-direction: column; }
.media-main.is-game iframe { flex: 1; width: 100%; height: auto; min-height: 0; background: #000; }
.game-poster { position: relative; width: 100%; height: 100%; border: 0; padding: 0; background: #000; display: grid; place-items: center; cursor: pointer; color: #fff; overflow: hidden; }
.game-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: blur(2px) saturate(1.2); transform: scale(1.05); transition: opacity .3s, transform .4s; }
.game-poster:hover img { opacity: .6; transform: scale(1.08); }
.gp-play { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #000; box-shadow: 0 0 0 10px rgba(198,255,61,.18), 0 0 60px rgba(198,255,61,.5); transition: transform .2s; }
.gp-play svg { width: 36px; height: 36px; margin-left: 5px; }
.game-poster:hover .gp-play { transform: scale(1.08); }
.gp-label { position: absolute; left: 50%; top: calc(50% + 70px); transform: translateX(-50%); font-family: var(--font-display); font-size: 22px; font-weight: 700; white-space: nowrap; text-shadow: 0 2px 12px #000; }
.gp-note { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; color: #c9d1db; white-space: nowrap; }
.game-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; background: var(--panel); border-top: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.game-bar > span { display: inline-flex; align-items: center; gap: 8px; }
.game-bar svg { width: 15px; height: 15px; }
.gb-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.gb-btn:hover { border-color: var(--lime); color: var(--lime); }
.btn-block { width: 100%; }
@media (max-width: 600px) { .gp-play { width: 70px; height: 70px; } .gp-label { top: calc(50% + 54px); font-size: 18px; } .gp-note { display: none; } }

/* ---------- Project tabs ---------- */
.p-tabs { display: flex; gap: 4px; margin-top: 30px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.p-tab { padding: 12px 16px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.p-tab:hover { color: var(--text); }
.p-tab.active { color: var(--text); border-bottom-color: var(--lime); }
.p-tab .count { font-family: var(--font-mono); font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--panel-2); color: var(--muted); }
.p-tabs + .prose { margin-top: 24px; }
.prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose ol li { margin-bottom: 8px; padding-left: 4px; }
.prose ol li::before { display: none; }
.prose pre { background: #05070a; border: 1px solid var(--line-2); border-radius: 10px; padding: 16px 18px; overflow-x: auto; margin: 0 0 18px; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 13.5px; line-height: 1.6; color: #d7e2ee; }
.prose.sm { font-size: 15px; margin-top: 8px; }
.changelog { display: flex; flex-direction: column; gap: 12px; }
.cl-item { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.cl-item.latest { border-color: rgba(198,255,61,.35); }
.cl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-head b { font-family: var(--font-display); font-size: 18px; }
.cl-date { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.cl-item .prose { margin-top: 8px; }
.cl-item .prose > :last-child { margin-bottom: 0; }

/* ---------- QR card ---------- */
.qr-card { display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: center; }
.qr { background: #fff; border-radius: 10px; padding: 6px; line-height: 0; }
.qr svg { width: 100%; height: auto; }
.qr-card b { display: block; font-size: 15px; margin-bottom: 4px; }
.qr-card small { color: var(--muted); font-size: 13px; line-height: 1.45; display: block; }
@media (max-width: 960px) { .qr-card { display: none; } } /* on a phone you just tap Download */

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.testi { margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: flex; flex-direction: column; gap: 18px; position: relative; }
.testi-q { color: var(--lime); opacity: .8; }
.testi-q svg { width: 30px; height: 30px; }
.testi blockquote { margin: 0; color: #c9d1dc; font-size: 16px; line-height: 1.65; flex: 1; }
.testi figcaption { display: flex; align-items: center; gap: 12px; }
.testi-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--lime), var(--cyan)); color: #000; font-weight: 700; font-size: 14px; flex: none; }
.testi figcaption b { display: block; font-size: 15px; }
.testi figcaption small { color: var(--dim); font-size: 13px; }

/* ---------- GitHub repos ---------- */
.repo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .repo-grid, .testi-grid { grid-template-columns: 1fr; } }
.repo { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .2s, transform .2s; }
.repo:hover { border-color: var(--line-2); transform: translateY(-3px); }
.repo-top { display: flex; align-items: center; gap: 10px; }
.repo-top svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.repo-top b { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--cyan); overflow-wrap: anywhere; }
.repo p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.repo-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); }
.repo-meta span { display: inline-flex; align-items: center; gap: 5px; }
.repo-meta svg { width: 13px; height: 13px; }
.repo-meta i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
#ghProfile svg { width: 18px; height: 18px; }

/* Honeypot (spam trap) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Mobile: show Play / Download buttons first, like a store page */
@media (max-width: 960px) { .p-layout .side { order: -1; position: static; } }

/* HUD now has 5 cells */
.hud { grid-template-columns: repeat(5, 1fr); }
.hud div { padding: 14px 6px; }
@media (max-width: 480px) { .hud b { font-size: 22px; } .hud span { font-size: 9px; letter-spacing: .06em; } }

/* Services: 4 cards */
.services { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* =========================================================
   Contact page
   ========================================================= */
.ct { padding-top: 120px; padding-bottom: 40px; }
.ct-hero { max-width: 820px; margin-bottom: 44px; }
.ct-hero h1 { font-family: var(--font-display); font-size: clamp(38px, 6.5vw, 72px); line-height: 1; letter-spacing: -.02em; margin: 22px 0 18px; }
.ct-hero h1 span { color: var(--lime); }
.ct-hero p { color: var(--muted); font-size: 18px; margin: 0 0 22px; max-width: 640px; }
.ct-meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.ct-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.ct-meta svg { width: 17px; height: 17px; color: var(--lime); }
.ct-meta b { color: var(--text); font-family: var(--font-mono); font-weight: 500; }
.ct-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; align-items: start; }
.ct-grid > * { min-width: 0; }
@media (max-width: 900px) { .ct-grid { grid-template-columns: 1fr; } }
.ct-form { position: relative; padding: 30px; border: 1px solid var(--line-2); border-radius: 20px; background: linear-gradient(160deg, var(--panel), var(--bg-2)); display: flex; flex-direction: column; gap: 14px; }
.ct-form h2 { font-family: var(--font-display); font-size: 26px; margin: 0 0 4px; }
.ct-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-form .row[hidden] { display: none; }
.ct-form select { width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; outline: none; }
.ct-form select:focus { border-color: var(--lime); }
.flabel { display: block; font-size: 12px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 9px; }
.pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: block; padding: 11px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); text-align: center; font-weight: 600; font-size: 14px; transition: all .15s; }
.pick span:hover { border-color: var(--muted); }
.pick input:checked + span { border-color: var(--lime); background: rgba(198,255,61,.08); color: var(--lime); }
.pick input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.ct-form .btn-block svg { width: 18px; }
.ct-privacy { margin: 0; font-size: 12.5px; color: var(--dim); text-align: center; }
@media (max-width: 600px) { .ct-form { padding: 22px 16px; } .ct-form .row { grid-template-columns: 1fr; } .pick { grid-template-columns: repeat(2, 1fr); } }
.ct-done { text-align: center; padding: 40px 10px; }
.ct-done-ic { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--lime); color: #000; font-size: 34px; font-weight: 700; box-shadow: 0 0 0 10px rgba(198,255,61,.15); }
.ct-done p { color: var(--muted); }
.ct-side { display: flex; flex-direction: column; gap: 16px; }
.ct-card { padding: 22px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); }
.ct-card[hidden] { display: none; }
.ct-h { display: block; font-family: var(--font-display); font-size: 17px; margin-bottom: 4px; }
.ct-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ct-item:first-child { padding-top: 0; } .ct-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ct-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(198,255,61,.1); color: var(--lime); flex: none; }
.ct-ic svg { width: 19px; height: 19px; }
.ct-item > div { flex: 1; min-width: 0; }
.ct-item small { display: block; font-size: 12px; color: var(--dim); font-family: var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.ct-item a, .ct-item span { font-weight: 600; overflow-wrap: anywhere; }
.ct-item a:hover { color: var(--lime); }
.ct-copy { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); color: var(--muted); display: grid; place-items: center; flex: none; }
.ct-copy:hover, .ct-copy.done { border-color: var(--lime); color: var(--lime); }
.ct-copy svg { width: 16px; height: 16px; }
.ct-resume { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: linear-gradient(135deg, rgba(198,255,61,.08), var(--panel) 60%); }
.ct-resume b { display: block; } .ct-resume small { color: var(--muted); font-size: 13px; }
.ct-resume svg { width: 17px; }
.ct-side .socials { margin-top: 12px; }
.ct-steps { margin-top: 90px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.step3 { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); position: relative; overflow: hidden; }
.step3 span { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--lime); line-height: 1; display: block; margin-bottom: 14px; opacity: .8; }
.step3 b { display: block; font-family: var(--font-display); font-size: 19px; margin-bottom: 6px; }
.step3 p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 800px) { .steps3 { grid-template-columns: 1fr; } }
.ct-faq { margin-top: 80px; max-width: 860px; }
#faqList { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.faq { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--lime); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq > div { padding: 0 22px 16px; color: var(--muted); }
.faq > div p:last-child { margin-bottom: 0; }
.pick label { position: relative; }
.pick input { width: 1px !important; height: 1px; padding: 0 !important; left: 0; top: 0; }
.pick label { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 14px; color: var(--text); margin: 0; }

/* Game type sub-tabs (AR, VR, Multiplayer…) */
.subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin: -14px 0 26px; }
.subtabs[hidden] { display: none; }
.subtab { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 13px var(--font-body); cursor: pointer; transition: all .15s; }
.subtab span { font-family: var(--font-mono); font-size: 10.5px; color: var(--dim); }
.subtab:hover { color: var(--text); border-color: var(--line-2); }
.subtab.active { color: #0a0d12; background: var(--c-game, var(--lime)); border-color: transparent; }
.subtab.active span { color: rgba(10,13,18,.7); }
.tag.genre { color: var(--c-game, var(--lime)); border-color: color-mix(in srgb, var(--c-game, var(--lime)) 40%, transparent); }
