/*
Theme Name: Fahad Ashraf Portfolio
Theme URI: https://fahadashraf.com
Author: Fahad Ashraf
Author URI: https://fahadashraf.com
Description: Custom portfolio theme for a game developer & designer (2D, 3D, hyper-casual) showcasing published titles across Google Play, App Store, and Amazon Appstore, plus game design documents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fahad-ashraf
*/

  :root{
    --bg: #F6F6FB;
    --surface: #FFFFFF;
    --ink: #14162B;
    --muted: #6B6F8C;
    --line: #E6E6F0;
    --accent: #4F46E5;
    --accent-soft: #EEEDFD;
    --amber: #F59E0B;
    --mint: #10B981;
    --mint-soft: #E6F8F1;
    --radius: 18px;
  }
  @property --mr-border-angle{
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
  }
  *{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; overflow-x:hidden; max-width:100%; }
  body{
    margin:0;
    background: var(--bg);
    color: var(--ink);
    font-family:'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x:hidden;
    max-width:100%;
    padding-top: var(--header-h, 70px);
  }
  img, video, canvas, svg{ max-width:100%; }
  h1,h2,h3,.display{ font-family:'Sora', sans-serif; font-weight:700; line-height:1.1; margin:0; letter-spacing:-0.01em; }
  a{ color:inherit; }
  .wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }
  img{ max-width:100%; display:block; }
  .eyebrow{ display:inline-flex; align-items:center; gap:8px; background:var(--accent-soft); color:var(--accent); border-radius:999px; padding:7px 16px; font-weight:600; font-size:0.82rem; margin-bottom:24px; }
  .eyebrow .dot{ position:relative; width:7px; height:7px; border-radius:50%; background:var(--mint); flex-shrink:0; }
  .eyebrow .dot::before{
    content:"";
    position:absolute; inset:0;
    border-radius:50%;
    background:var(--mint);
  }
  @media (prefers-reduced-motion: no-preference){
    .eyebrow .dot::before{ animation: pulseRing 1.8s ease-out infinite; }
  }
  @keyframes pulseRing{
    0%   { transform:scale(1); opacity:0.7; }
    100% { transform:scale(3.2); opacity:0; }
  }

  /* reveal-on-scroll */
  .reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in{ opacity:1; transform:none; }
  @media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } }

  /* ---------- Header ---------- */
  header{
    position:fixed; top:0; left:0; right:0; z-index:50;
    background: rgba(246,246,251,0.85);
    backdrop-filter: blur(10px);
    border-bottom:1px solid var(--line);
  }
  nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 32px; max-width:1180px; margin:0 auto; }
  .logo{ font-family:'Sora',sans-serif; font-weight:700; font-size:1.15rem; display:flex; align-items:center; gap:10px; text-decoration:none; }
  .logo .mark{ width:30px; height:30px; border-radius:9px; background:var(--accent); display:flex; align-items:center; justify-content:center; color:#fff; font-size:0.85rem; font-weight:800; flex-shrink:0; }
  .logo .mark-image{ object-fit:cover; background:transparent; }

  .logo-name-animated{
    background-image: linear-gradient(90deg, #973BED, #007CFF, #00E0ED, #00DA72, #FFC800, #F0F, #973BED);
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  @media (prefers-reduced-motion: no-preference){
    .logo-name-animated{ animation: faNameGradient 6s linear infinite; }
  }
  @keyframes faNameGradient{
    0%{ background-position: 0% 50%; }
    100%{ background-position: 300% 50%; }
  }
  .nav-links{ list-style:none; display:flex; gap:32px; margin:0; padding:0; font-weight:500; font-size:0.92rem; color:var(--muted); }
  .nav-links a{ text-decoration:none; }
  .nav-links a:hover{ color:var(--ink); }
  .nav-right{ display:flex; align-items:center; gap:14px; }
  .nav-cta{ background:var(--ink); color:#fff; padding:10px 20px; border-radius:10px; font-weight:600; font-size:0.9rem; text-decoration:none; transition:background .15s ease; white-space:nowrap; }
  .nav-cta:hover{ background:var(--accent); }

  /* "Let's talk" — pulsing glow + a light shimmer sweep to draw the eye to the primary CTA. */
  .nav-cta-pop{
    position:relative; overflow:hidden; isolation:isolate;
    box-shadow:0 0 0 0 rgba(79,70,229,0.55);
  }
  .nav-cta-pop:hover{ transform:translateY(-2px); }
  .nav-cta-pop:active{ transform:translateY(0) scale(0.96); }
  .nav-cta-pop .nav-cta-label{ position:relative; z-index:1; }
  .nav-cta-pop::after{
    content:""; position:absolute; top:0; left:-60%; width:40%; height:100%;
    background:linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
    transform:skewX(-20deg);
  }
  @media (prefers-reduced-motion: no-preference){
    .nav-cta-pop{ animation:navCtaPulse 2.6s ease-in-out infinite; }
    .nav-cta-pop::after{ animation:navCtaShine 3.2s ease-in-out infinite; }
  }
  @keyframes navCtaPulse{
    0%, 100%{ box-shadow:0 0 0 0 rgba(79,70,229,0.55); }
    50%{ box-shadow:0 0 0 8px rgba(79,70,229,0); }
  }
  @keyframes navCtaShine{
    0%{ left:-60%; }
    35%{ left:130%; }
    100%{ left:130%; }
  }

  /* hamburger */
  .menu-btn{
    display:none;
    width:38px; height:38px;
    border-radius:10px;
    border:1px solid var(--line);
    background:#fff;
    align-items:center; justify-content:center;
    flex-direction:column; gap:4px;
    cursor:pointer;
    padding:0;
  }
  .menu-btn span{ display:block; width:16px; height:2px; background:var(--ink); border-radius:2px; transition: transform .25s ease, opacity .25s ease; }
  .menu-btn.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .menu-btn.open span:nth-child(2){ opacity:0; }
  .menu-btn.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

  /* mobile dropdown panel */
  .mobile-menu{
    display:none;
    flex-direction:column;
    gap:4px;
    padding:8px 32px 20px;
    border-top:1px solid var(--line);
    background:var(--bg);
  }
  .mobile-menu a{
    text-decoration:none; color:var(--ink); font-weight:600; font-size:0.98rem;
    padding:12px 4px; border-bottom:1px solid var(--line);
  }
  .mobile-menu a.nav-cta{ border-bottom:none; margin-top:10px; }
  .mobile-menu.open{ display:flex; }

  /* ---------- Hero ---------- */
  .hero{ padding:88px 0 64px; overflow:hidden; }
  .hero-grid{ display:grid; grid-template-columns: 1.05fr 0.95fr; gap:48px; align-items:center; }
  .hero h1{ font-size:clamp(2.2rem, 4.4vw, 3.6rem); }
  .hero h1 .accent{ color:var(--accent); }
  .hero p.lede{ font-size:1.1rem; color:var(--muted); max-width:520px; margin-top:22px; line-height:1.6; }
  .hero-ctas{ display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }

  /* phone mockup visual */
  .hero-visual{ position:relative; display:flex; align-items:center; justify-content:center; height:100%; min-height:460px; }
  .hero-visual .glow{ position:absolute; width:420px; height:420px; background:radial-gradient(circle, rgba(79,70,229,0.22), transparent 68%); z-index:0; }

  /* rotating screen slider — the main hero visual */
  .bg-slider{ position:relative; z-index:1; width:250px; height:500px; }
  .bg-slide{
    position:absolute; inset:0;
    border-radius:38px;
    padding:12px;
    background:var(--ink);
    opacity:0;
    box-shadow: 0 30px 70px rgba(20,22,43,0.28);
  }
  .bg-slide .bg-slide-inner{
    width:100%; height:100%;
    border-radius:26px;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:10px;
    position:relative;
    overflow:hidden;
  }
  .bg-slide .bg-slide-inner::before{
    content:""; position:absolute; inset:0;
    background-image: radial-gradient(rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    opacity:0.5;
  }
  .slide-icon{ position:relative; font-size:2.6rem; }
  .slide-name{ position:relative; font-family:'Sora'; font-weight:700; color:#fff; font-size:1.15rem; }
  .slide-genre{ position:relative; font-family:'Sora'; font-weight:600; color:rgba(255,255,255,0.75); font-size:0.78rem; text-transform:uppercase; letter-spacing:0.06em; }

  .bg-slide.slide-a .bg-slide-inner{ background:linear-gradient(160deg,#6C63F2 0%,#4F46E5 45%,#3730A3 100%); }
  .bg-slide.slide-b .bg-slide-inner{ background:linear-gradient(160deg,#2CB1BC 0%,#1B7B8C 55%,#0F1C3F 100%); }
  .bg-slide.slide-c .bg-slide-inner{ background:linear-gradient(160deg,#F2578C 0%,#C23B72 55%,#3B1240 100%); }

  @media (prefers-reduced-motion: no-preference){
    .bg-slide.slide-a{ animation: bgSlide 9s ease-in-out infinite; }
    .bg-slide.slide-b{ animation: bgSlide 9s ease-in-out infinite -3s; }
    .bg-slide.slide-c{ animation: bgSlide 9s ease-in-out infinite -6s; }
  }
  @media (prefers-reduced-motion: reduce){
    .bg-slide.slide-a{ opacity:1; }
  }
  @keyframes bgSlide{
    0%   { opacity:0; transform: scale(0.96); }
    6%   { opacity:1; transform: scale(1); }
    28%  { opacity:1; transform: scale(1); }
    36%  { opacity:0; transform: scale(0.96); }
    100% { opacity:0; transform: scale(0.96); }
  }

  .float-card{
    position:absolute; z-index:2;
    background:#fff; border:1px solid var(--line);
    border-radius:14px; padding:10px 14px;
    box-shadow:0 14px 30px rgba(20,22,43,0.12);
    font-family:'Sora'; font-weight:700; font-size:0.85rem;
    display:flex; align-items:center; gap:8px;
  }
  .float-card.card-1{ top:10%; left:-6%; }
  .float-card.card-2{ bottom:14%; right:-8%; }
  .float-card .fc-icon{ width:26px; height:26px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:0.9rem; }
  @media (prefers-reduced-motion: no-preference){
    .float-card.card-1{ animation: bob 5s ease-in-out infinite; }
    .float-card.card-2{ animation: bob 5s ease-in-out infinite 1.4s; }
  }
  @keyframes bob{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-10px);} }
  .btn{ font-family:'Sora',sans-serif; font-weight:600; font-size:0.98rem; padding:14px 26px; border-radius:12px; text-decoration:none; display:inline-flex; align-items:center; gap:8px; border:1px solid transparent; transition: all .15s ease; cursor:pointer; }
  .btn-primary{ background:var(--ink); color:#fff; }
  .btn-primary:hover{ background:var(--accent); transform:translateY(-2px); }
  .btn-secondary{ background:#fff; color:var(--ink); border:1px solid var(--line); }
  .btn-secondary:hover{ border-color:var(--ink); transform:translateY(-2px); }

  /* platform strip */
  .platform-strip{ margin-top:56px; }
  .platform-strip .label{ font-size:0.8rem; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:0.08em; display:block; margin-bottom:12px; }
  .platform-badges{ display:flex; gap:10px; flex-wrap:nowrap; overflow-x:auto; -ms-overflow-style:none; scrollbar-width:none; padding-bottom:2px; }
  .platform-badges::-webkit-scrollbar{ display:none; }
  .platform-badge{ display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:9px 14px; font-weight:600; font-size:0.84rem; white-space:nowrap; flex-shrink:0; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
  .platform-badge:hover{ transform:translateY(-3px); box-shadow:0 12px 26px rgba(20,22,43,0.1); border-color:var(--ink); }
  .platform-badge .swatch{
    width:22px; height:22px; border-radius:6px; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    color:#fff; font-size:0.72rem; line-height:1;
    transition: transform .18s ease;
  }
  .platform-badge:hover .swatch{ transform:scale(1.12) rotate(-4deg); }
  .sw-play{ background:linear-gradient(135deg,#00d4a0,#4285F4); }
  .sw-apple{ background:#111; }
  .sw-amazon{ background:#FF9900; }
  @media (prefers-reduced-motion: no-preference){
    .platform-badge{ opacity:0; transform:translateY(10px); animation: fadeUpBadge .6s ease forwards; }
    .platform-badge:nth-child(1){ animation-delay:.15s; }
    .platform-badge:nth-child(2){ animation-delay:.3s; }
    .platform-badge:nth-child(3){ animation-delay:.45s; }
  }
  @keyframes fadeUpBadge{ to{ opacity:1; transform:translateY(0); } }
  @media (max-width:480px){
    .platform-badge{ padding:8px 11px; font-size:0.78rem; gap:6px; }
    .platform-badge .swatch{ width:20px; height:20px; }
  }

  /* stat bar */
  .stat-bar{ margin-top:52px; display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:16px; overflow:hidden; }
  .stat-cell{ background:#fff; padding:24px 22px; position:relative; transition: transform .2s ease, box-shadow .2s ease; }
  .stat-cell:hover{ transform:translateY(-4px); box-shadow:0 16px 34px rgba(20,22,43,0.1); z-index:1; }
  .stat-cell .num{ font-family:'Sora',sans-serif; font-weight:800; font-size:1.9rem; color:var(--ink); }
  .stat-cell .num .unit{ font-size:1rem; color:var(--muted); font-weight:600; }
  .stat-cell .label{ font-size:0.82rem; color:var(--muted); font-weight:500; margin-top:4px; }

  /* ---------- Hero: split-panel slider (alternate layout) ---------- */
  .hero-slider-pro{ position:relative; display:flex; min-height:640px; overflow:hidden; }

  .hero-slider-pro-text{
    position:relative; z-index:2; flex:0 0 46%; max-width:46%; min-width:0;
    background:var(--ink); color:#fff;
    display:flex; flex-direction:column; justify-content:center;
    padding:72px 5vw;
  }
  .hero-slider-pro-text > *{ min-width:0; max-width:100%; }
  .hero-slider-pro-text .eyebrow{ background:rgba(255,255,255,0.12); color:#fff; }
  .hero-slider-pro-text .eyebrow .dot{ background:var(--mint); }
  .hero-slider-pro-text h1{ color:#fff; font-size:clamp(2rem, 3vw, 3rem); }
  .hero-slider-pro-text h1 .accent{ color:#B9B7F5; }
  .hero-slider-pro-text .lede{ color:rgba(255,255,255,0.78); margin-top:20px; font-size:1.05rem; line-height:1.65; max-width:480px; }
  .hero-slider-pro-text .hero-ctas{ margin-top:32px; }
  .hero-slider-pro-text .btn-secondary{ background:transparent; color:#fff; border-color:rgba(255,255,255,0.3); }
  .hero-slider-pro-text .btn-secondary:hover{ border-color:#fff; }
  .hero-slider-pro-text .platform-strip{ margin-top:44px; }
  .hero-slider-pro-text .platform-strip .label{ color:rgba(255,255,255,0.55); }
  .hero-slider-pro-text .platform-badge{ background:rgba(255,255,255,0.07); border-color:rgba(255,255,255,0.14); color:#fff; }

  .hero-slider-pro-visual{ position:relative; flex:1; overflow:hidden; background:var(--ink); }
  .hero-slider-pro-slides{ position:absolute; inset:0; }
  .hero-pro-slide{ position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity 1.2s ease; }
  .hero-pro-slide.active{ opacity:1; }
  .hero-pro-slide-fallback-1{ background:linear-gradient(160deg,#6C63F2 0%,#4F46E5 45%,#3730A3 100%); }
  .hero-pro-slide-fallback-2{ background:linear-gradient(160deg,#2CB1BC 0%,#1B7B8C 55%,#0F1C3F 100%); }
  .hero-pro-slide-fallback-3{ background:linear-gradient(160deg,#F2578C 0%,#C23B72 55%,#3B1240 100%); }
  .hero-slider-pro-fade{
    position:absolute; inset:0; z-index:1; pointer-events:none;
    background:linear-gradient(90deg, var(--ink) 0%, rgba(20,22,43,0) 10%);
  }

  .hero-slider-pro-badge{
    position:absolute; z-index:2; top:28px; right:28px;
    background:#fff; border:1px solid var(--line); border-radius:14px;
    padding:10px 16px; box-shadow:0 14px 30px rgba(0,0,0,0.25);
    font-family:'Sora',sans-serif; font-weight:700; font-size:0.85rem; color:var(--ink);
    display:flex; align-items:center; gap:8px;
  }
  .hero-slider-pro-badge .fc-icon{ width:22px; height:22px; border-radius:7px; display:flex; align-items:center; justify-content:center; font-size:0.85rem; }
  @media (prefers-reduced-motion: no-preference){
    .hero-slider-pro-badge{ animation: bob 5s ease-in-out infinite; }
  }

  .hero-slider-dots{ position:absolute; z-index:2; bottom:24px; left:50%; transform:translateX(-50%); display:flex; gap:9px; }
  .hero-slider-dot{ width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,0.45); border:none; padding:0; cursor:pointer; transition:background .2s ease, transform .2s ease; }
  .hero-slider-dot:hover{ background:rgba(255,255,255,0.75); }
  .hero-slider-dot.active{ background:#fff; transform:scale(1.3); }

  .hero-slider-nav{
    position:absolute; z-index:2; top:50%; transform:translateY(-50%);
    width:44px; height:44px; border-radius:50%;
    background:rgba(255,255,255,0.14); border:1px solid rgba(255,255,255,0.3);
    color:#fff; font-size:1.5rem; line-height:1; display:flex; align-items:center; justify-content:center;
    cursor:pointer; transition: background .2s ease, transform .2s ease;
  }
  .hero-slider-nav:hover{ background:rgba(255,255,255,0.28); transform:translateY(-50%) scale(1.06); }
  .hero-slider-nav.prev{ left:20px; }
  .hero-slider-nav.next{ right:20px; }

  .hero-slider-stats .stat-bar{ margin-top:0; }

  /* ---------- Hero: Magic Rings (animated WebGL ring background) ---------- */
  .hero-magicrings{
    position:relative; overflow:hidden; isolation:isolate;
    min-height:88vh; display:flex; align-items:center;
    background:var(--ink);
  }
  .mr-canvas{ position:absolute; inset:0; z-index:0; width:100%; height:100%; display:block; }

  .mr-mascot{
    position:absolute; z-index:1; left:6%; bottom:14%;
    width:64px; height:96px; pointer-events:none;
  }
  .mr-mascot-figure{ position:relative; z-index:1; filter:drop-shadow(0 12px 18px rgba(0,0,0,0.35)); }
  @media (prefers-reduced-motion: no-preference){
    .mr-mascot{ animation: mrMascotFloat 5s ease-in-out infinite; }
  }
  @keyframes mrMascotFloat{
    0%, 100%{ transform:translateY(0) rotate(-3deg); }
    50%{ transform:translateY(-16px) rotate(3deg); }
  }
  .mr-mascot-trail{ position:absolute; z-index:0; left:50%; bottom:2px; }
  .mr-mascot-spark{
    position:absolute; left:50%; bottom:0;
    width:5px; height:5px; border-radius:50%;
    background:var(--mint); box-shadow:0 0 8px var(--mint);
    opacity:0; transform:translateX(-50%);
  }
  @media (prefers-reduced-motion: no-preference){
    .mr-mascot-spark{ animation: mrMascotSpark 1.6s ease-out infinite; }
  }
  @keyframes mrMascotSpark{
    0%{ opacity:0.8; transform:translate(-50%,0) scale(1); }
    100%{ opacity:0; transform:translate(-50%,30px) scale(0.4); }
  }
  @media (prefers-reduced-motion: reduce){
    .mr-mascot{ transform:none; }
  }
  @media (max-width:900px){
    .mr-mascot{ display:none; }
  }

  .mr-content{
    position:relative; z-index:2; text-align:center; margin:0 auto; max-width:760px; padding:64px 48px;
  }
  .mr-badge{
    display:inline-flex; align-items:center; gap:8px; background:rgba(10,10,26,0.55); color:#fff;
    border-radius:999px; padding:7px 16px; font-weight:600; font-size:0.8rem; margin-bottom:22px;
    text-transform:uppercase; letter-spacing:0.05em; border:1px solid rgba(255,255,255,0.14);
    backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
    transition: background .25s ease, box-shadow .25s ease;
  }
  .mr-badge:hover{ background:rgba(20,20,46,0.7); box-shadow:0 0 0 1px rgba(255,255,255,0.14), 0 6px 20px rgba(0,0,0,0.35); }
  .mr-badge .dot{ position:relative; width:7px; height:7px; border-radius:50%; background:var(--mint); flex-shrink:0; }
  .mr-badge .dot::before{
    content:""; position:absolute; inset:0; border-radius:50%; background:var(--mint);
  }
  @media (prefers-reduced-motion: no-preference){
    .mr-badge .dot::before{ animation: pulseRing 1.8s ease-out infinite; }
  }
  .mr-heading{ color:#fff; font-size:clamp(2.1rem,4vw,3.2rem); text-shadow:0 4px 24px rgba(0,0,0,0.55); }
  .mr-heading .accent{ color:var(--mint); }
  .mr-lede{ color:rgba(255,255,255,0.85); margin:20px auto 0; font-size:1.05rem; line-height:1.65; max-width:520px; text-shadow:0 2px 12px rgba(0,0,0,0.55); }

  .mr-proof{ display:flex; align-items:baseline; justify-content:center; gap:10px; flex-wrap:wrap; margin-top:28px; }
  .mr-proof-value{ font-family:'Sora',sans-serif; font-weight:700; font-size:1.4rem; color:#fff; text-shadow:0 2px 12px rgba(0,0,0,0.55); }
  .mr-proof-label{ color:rgba(255,255,255,0.7); font-size:0.88rem; text-shadow:0 2px 12px rgba(0,0,0,0.55); }
  .mr-proof-link{ color:var(--mint); font-weight:600; font-size:0.88rem; text-decoration:none; margin-left:4px; text-shadow:0 2px 12px rgba(0,0,0,0.55); }
  .mr-proof-link:hover{ text-decoration:underline; }

  .hero-magicrings .hero-ctas{ justify-content:center; margin-top:30px; }
  .hero-magicrings .btn-secondary{ background:transparent; color:#fff; border-color:rgba(255,255,255,0.3); }

  .hero-magicrings .hero-ctas .btn-primary{
    --mr-border-angle: 0deg;
    border:2px solid transparent;
    background:
      linear-gradient(var(--ink), var(--ink)) padding-box,
      conic-gradient(from var(--mr-border-angle), var(--mint), var(--accent), var(--mint)) border-box;
  }
  .hero-magicrings .hero-ctas .btn-primary:hover{
    background:
      linear-gradient(var(--accent), var(--accent)) padding-box,
      conic-gradient(from var(--mr-border-angle), var(--mint), var(--accent), var(--mint)) border-box;
  }
  @media (prefers-reduced-motion: no-preference){
    .hero-magicrings .hero-ctas .btn-primary{ animation: mrBorderSpin 3s linear infinite; }
  }
  @keyframes mrBorderSpin{ to{ --mr-border-angle: 360deg; } }
  .hero-magicrings .btn-secondary:hover{ border-color:#fff; }

  @media (max-width:700px){
    .hero-magicrings{ min-height:82vh; }
    .mr-content{ padding:44px 24px; margin:0 20px; }
    .mr-proof{ flex-direction:column; gap:4px; }
  }

  /* ---------- Hero: Dome Gallery (draggable 3D screenshot dome) ---------- */
  .hero-dome{ background:var(--ink); padding:0; overflow:hidden; min-height:88vh; display:flex; align-items:center; width:100%; }
  .hero-dome-row{ display:flex; align-items:center; gap:48px; width:100%; padding-left:clamp(24px, 5vw, 80px); }
  .dome-intro{ flex:0 0 480px; max-width:480px; text-align:left; }
  .dome-badge{
    display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,0.1); color:#fff;
    border-radius:999px; padding:7px 16px; font-weight:600; font-size:0.8rem; margin-bottom:22px;
    text-transform:uppercase; letter-spacing:0.05em; max-width:100%;
  }
  .dome-badge{ transition: background .25s ease, box-shadow .25s ease; }
  .dome-badge:hover{ background:rgba(255,255,255,0.16); box-shadow:0 0 0 1px rgba(255,255,255,0.14), 0 6px 20px rgba(0,0,0,0.25); }
  .dome-badge .dot{ position:relative; width:7px; height:7px; border-radius:50%; background:var(--mint); flex-shrink:0; }
  .dome-badge .dot::before{
    content:""; position:absolute; inset:0; border-radius:50%; background:var(--mint);
  }
  @media (prefers-reduced-motion: no-preference){
    .dome-badge .dot::before{ animation: pulseRing 1.8s ease-out infinite; }
  }
  .dome-badge-text{ min-width:0; white-space:normal; }
  .dome-heading{ color:#fff; font-size:clamp(2.1rem,4vw,3.2rem); }
  .dome-heading .accent{ color:var(--mint); }
  .dome-lede{ color:rgba(255,255,255,0.78); margin:20px 0 0; font-size:1.05rem; line-height:1.65; max-width:420px; }
  .hero-dome .hero-ctas{ justify-content:flex-start; margin-top:30px; flex-wrap:nowrap; }
  .hero-dome .btn-primary{ background:#fff; color:var(--ink); }
  .hero-dome .btn-primary:hover{ background:var(--mint); color:#fff; }
  .hero-dome .btn-secondary{ background:transparent; color:#fff; border-color:rgba(255,255,255,0.3); }
  .hero-dome .btn-secondary:hover{ border-color:#fff; }

  .dome-gallery-wrap{ position:relative; flex:1; min-width:0; height:78vh; min-height:460px; max-height:820px; }

  @media (max-width:900px){
    .hero-dome{ min-height:auto; padding-top:56px; }
    .hero-dome-row{ flex-direction:column; padding-left:0; }
    .dome-intro{ flex:none; max-width:100%; text-align:center; padding:0 20px; }
    .dome-lede{ margin-left:auto; margin-right:auto; }
    .hero-dome .hero-ctas{ justify-content:center; flex-wrap:wrap; }
    .dome-gallery-wrap{ width:100%; height:56vh; min-height:360px; margin-top:32px; }
  }

  /* DomeGallery component (ported from React Bits, github.com/reactbits) */
  .sphere-root{
    position:absolute; inset:0;
    --radius:520px; --viewer-pad:72px;
    --circ:calc(var(--radius) * 3.14);
    --rot-y:calc((360deg / var(--segments-x)) / 2);
    --rot-x:calc((360deg / var(--segments-y)) / 2);
    --item-width:calc(var(--circ) / var(--segments-x));
    --item-height:calc(var(--circ) / var(--segments-y));
  }
  .sphere-root *{ box-sizing:border-box; }
  .sphere, .item, .item__image{ transform-style:preserve-3d; }
  .sphere-main{
    position:absolute; inset:0; display:grid; place-items:center; overflow:hidden;
    touch-action:none; user-select:none; -webkit-user-select:none; background:transparent;
  }
  .stage{
    width:100%; height:100%; display:grid; place-items:center;
    perspective:calc(var(--radius) * 2); perspective-origin:50% 50%; contain:layout paint size;
  }
  .sphere{ transform:translateZ(calc(var(--radius) * -1)); will-change:transform; }
  .sphere-root .overlay, .sphere-root .overlay--blur{ position:absolute; inset:0; margin:auto; z-index:3; pointer-events:none; }
  .sphere-root .overlay{ background-image:radial-gradient(rgba(235,235,235,0) 58%, var(--overlay-blur-color, #120F17) 100%); }
  .sphere-root .overlay--blur{
    -webkit-mask-image:radial-gradient(rgba(235,235,235,0) 62%, var(--overlay-blur-color, #120F17) 88%);
    mask-image:radial-gradient(rgba(235,235,235,0) 62%, var(--overlay-blur-color, #120F17) 88%);
    backdrop-filter:blur(4px);
  }
  .sphere-root .item{
    width:calc(var(--item-width) * var(--item-size-x)); height:calc(var(--item-height) * var(--item-size-y));
    position:absolute; top:-999px; bottom:-999px; left:-999px; right:-999px; margin:auto;
    transform-origin:50% 50%; backface-visibility:hidden; transition:transform 300ms;
    transform:
      rotateY(calc(var(--rot-y) * (var(--offset-x) + ((var(--item-size-x) - 1) / 2)) + var(--rot-y-delta, 0deg)))
      rotateX(calc(var(--rot-x) * (var(--offset-y) - ((var(--item-size-y) - 1) / 2)) + var(--rot-x-delta, 0deg)))
      translateZ(var(--radius));
  }
  .sphere-root .item__image{
    position:absolute; display:block; inset:10px; border-radius:var(--tile-radius, 12px);
    background:transparent; overflow:hidden; backface-visibility:hidden; transition:transform 300ms;
    cursor:pointer; -webkit-tap-highlight-color:transparent; touch-action:manipulation; pointer-events:auto;
    -webkit-transform:translateZ(0); transform:translateZ(0);
  }
  .sphere-root .item__image:focus{ outline:none; }
  .sphere-root .item__image img{
    width:100%; height:100%; object-fit:cover; pointer-events:none; backface-visibility:hidden;
    filter:var(--image-filter, none);
  }
  .sphere-root .viewer{
    position:absolute; inset:0; z-index:20; pointer-events:none;
    display:flex; align-items:center; justify-content:center; padding:var(--viewer-pad);
  }
  .sphere-root .viewer .frame{ height:100%; aspect-ratio:1; border-radius:var(--enlarge-radius, 32px); display:flex; }
  @media (max-aspect-ratio: 1/1){
    .sphere-root .viewer .frame{ height:auto; width:100%; }
  }
  .sphere-root .viewer .scrim{
    position:absolute; inset:0; z-index:10; background:rgba(0,0,0,0.4); pointer-events:none;
    opacity:0; transition:opacity 500ms ease; backdrop-filter:blur(3px);
  }
  .sphere-root[data-enlarging='true'] .viewer .scrim{ opacity:1; pointer-events:all; }
  .sphere-root .viewer .enlarge{
    position:absolute; z-index:30; border-radius:var(--enlarge-radius, 32px); overflow:hidden;
    transition:transform 500ms ease, opacity 500ms ease; transform-origin:top left;
    box-shadow:0 10px 30px rgba(0,0,0,0.35);
  }
  .sphere-root .viewer .enlarge img{ width:100%; height:100%; object-fit:cover; filter:var(--image-filter, none); }
  .sphere-root .enlarge-closing img{ filter:var(--image-filter, none); }
  .sphere-root .edge-fade{
    position:absolute; left:0; right:0; height:140px; z-index:5; pointer-events:none;
    background:linear-gradient(to bottom, transparent, var(--overlay-blur-color, #120F17));
  }
  .sphere-root .edge-fade--top{ top:0; transform:rotate(180deg); }
  .sphere-root .edge-fade--bottom{ bottom:0; }
  .sphere-root .edge-fade--left, .sphere-root .edge-fade--right{
    left:auto; right:auto; top:0; bottom:0; height:auto; width:16%; min-width:90px; max-width:180px;
  }
  .sphere-root .edge-fade--left{ left:0; background:linear-gradient(to right, var(--overlay-blur-color, #120F17), transparent); }
  .sphere-root .edge-fade--right{ right:0; background:linear-gradient(to left, var(--overlay-blur-color, #120F17), transparent); }

  @media (max-width:900px){
    .sphere-root .edge-fade--left, .sphere-root .edge-fade--right{ width:12%; min-width:44px; }
  }

  body.dg-scroll-lock{ overflow:hidden; }

  @media (max-width:900px){
    .hero-slider-pro{ flex-direction:column; }
    .hero-slider-pro-text{ flex:none; max-width:100%; width:100%; padding:64px 24px 48px; }
    .hero-slider-pro-visual{ min-height:320px; }
    .hero-slider-pro-fade{ background:linear-gradient(180deg, var(--ink) 0%, rgba(20,22,43,0) 12%); }
    .hero-slider-pro-badge{ top:16px; right:16px; }
    .hero-slider-nav{ display:none; }
  }

  @media (max-width:860px){
    .hero-slider{ min-height:560px; }
    .hero-slider-content{ padding:100px 24px 70px; }
    .hero-slider-nav{ display:none; }
  }

  section{ padding:88px 0; }
  .section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:46px; flex-wrap:wrap; }
  .section-head h2{ font-size:clamp(1.8rem,3.4vw,2.5rem); }
  .section-head p{ color:var(--muted); max-width:400px; margin-top:8px; font-size:0.98rem; }
  .kicker{ font-weight:700; text-transform:uppercase; letter-spacing:0.1em; font-size:0.78rem; color:var(--accent); margin-bottom:12px; display:block; }

  /* ---------- About ---------- */
  .about-grid{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap:56px; align-items:center; }
  .about-visual-wrap{ position:relative; aspect-ratio:1; }
  .about-visual-wrap .glow{ position:absolute; inset:-40px; z-index:0; background:radial-gradient(circle, rgba(79,70,229,0.24), transparent 68%); }
  .about-visual-wrap::before{
    content:""; position:absolute; inset:0; z-index:0; border-radius:50%;
    background:conic-gradient(from 180deg, var(--accent), var(--mint), var(--amber), var(--accent));
    opacity:.55;
  }
  @media (prefers-reduced-motion: no-preference){
    .about-visual-wrap::before{ animation: ringSpin 10s linear infinite; }
  }
  @keyframes ringSpin{ to{ transform:rotate(360deg); } }
  .about-visual{
    position:absolute; inset:10px; z-index:1;
    background:linear-gradient(160deg,#EEEDFD,#F6F6FB); border:1px solid var(--line); border-radius:50%;
    display:flex; align-items:center; justify-content:center; overflow:hidden;
    box-shadow:0 24px 60px rgba(20,22,43,0.18);
    transition: transform .3s ease, box-shadow .3s ease;
  }
  .about-visual-wrap:hover .about-visual{ transform:scale(1.03); box-shadow:0 30px 70px rgba(20,22,43,0.24); }
  .about-visual .core{ width:130px; height:130px; border-radius:32px; background:var(--ink); display:flex; align-items:center; justify-content:center; color:#fff; font-family:'Sora'; font-weight:800; font-size:2rem; box-shadow:0 20px 60px rgba(20,22,43,0.25); }
  .about-visual img{ width:100%; height:100%; object-fit:cover; }
  .about-badge{
    position:absolute; z-index:2; bottom:6%; right:-4%;
    background:#fff; border:1px solid var(--line); border-radius:14px;
    padding:10px 16px; box-shadow:0 14px 30px rgba(20,22,43,0.14);
    font-family:'Sora',sans-serif; font-weight:700; font-size:0.85rem;
    display:flex; align-items:center; gap:8px; white-space:nowrap;
  }
  .about-badge-icon{ font-size:1.1rem; }
  @media (prefers-reduced-motion: no-preference){
    .about-badge{ animation: bob 5s ease-in-out infinite; }
  }
  .about-heading{ position:relative; display:inline-block; margin-bottom:26px; }
  .about-heading::after{
    content:""; position:absolute; left:0; bottom:-10px; height:4px; width:64px; border-radius:2px;
    background:linear-gradient(90deg, var(--accent), var(--mint));
    transform:scaleX(0); transform-origin:left;
    transition:transform .6s ease .2s;
  }
  .about-grid.in .about-heading::after{ transform:scaleX(1); }
  .about-copy p{ font-size:1.05rem; line-height:1.75; color:#3A3D5C; margin:0 0 16px; }
  .about-signature{ display:flex; align-items:center; gap:12px; margin-top:26px; font-family:'Sora',sans-serif; font-weight:700; font-size:0.95rem; color:var(--ink); }
  .about-signature .sig-line{ width:36px; height:2px; border-radius:2px; background:var(--accent); }
  @media (max-width:860px){
    .about-badge{ right:2%; bottom:2%; }
  }
  .about-copy p:last-child{ margin-bottom:0; }

  /* ---------- Skills ---------- */
  .skills-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
  .skill-card{
    background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:28px;
    position:relative; overflow:hidden;
    transition: opacity .6s ease, transform .3s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .skill-card::before{
    content:""; position:absolute; top:0; left:0; right:0; height:3px;
    background:linear-gradient(90deg, var(--accent), var(--mint));
    transform:scaleX(0); transform-origin:left; transition:transform .35s ease;
  }
  .skill-card:hover::before{ transform:scaleX(1); }
  .skill-card:hover{ box-shadow:0 20px 44px rgba(79,70,229,0.16); transform:translateY(-5px); border-color:var(--accent-soft); }
  .skill-card .icon{
    width:44px; height:44px; border-radius:12px; background:var(--accent-soft); color:var(--accent);
    display:flex; align-items:center; justify-content:center; font-size:1.25rem; margin-bottom:18px;
    transition: background .25s ease, color .25s ease, transform .25s ease;
  }
  .skill-card:hover .icon{ background:var(--accent); color:#fff; transform:scale(1.12) rotate(-6deg); }
  .skill-card h3{ font-size:1.1rem; margin-bottom:8px; }
  .skill-card p{ font-size:0.9rem; color:var(--muted); line-height:1.55; margin:0; }
  .service-link{ display:inline-block; margin-top:16px; font-family:'Sora',sans-serif; font-weight:700; font-size:0.88rem; color:var(--ink); text-decoration:none; }
  .service-link:hover{ color:var(--accent); }
  @media (prefers-reduced-motion: no-preference){
    .skills-grid .skill-card:nth-child(3n+1){ transition-delay:.05s; }
    .skills-grid .skill-card:nth-child(3n+2){ transition-delay:.15s; }
    .skills-grid .skill-card:nth-child(3n+3){ transition-delay:.25s; }
  }

  /* ---------- Services (dark) ---------- */
  #services{ background:var(--ink); position:relative; overflow:hidden; }
  .services-dots-canvas{ position:absolute; inset:0; z-index:0; width:100%; height:100%; pointer-events:none; }
  .services-hero-wrap{ position:relative; }
  .hero-shooter{ position:absolute; z-index:1; bottom:24px; right:2%; width:60px; height:220px; pointer-events:none; }
  .shooter-ship{ position:absolute; bottom:0; left:50%; transform:translateX(-50%); color:#fff; filter:drop-shadow(0 6px 14px rgba(0,0,0,0.4)); }
  @media (prefers-reduced-motion: no-preference){
    .shooter-ship{ animation: shipBob 2.4s ease-in-out infinite; }
  }
  @keyframes shipBob{
    0%, 100%{ transform:translateX(-50%) translateY(0); }
    50%{ transform:translateX(-50%) translateY(-8px); }
  }
  .shooter-bolts{ position:absolute; inset:0; }
  .shooter-bolt{
    position:absolute; bottom:44px; left:50%;
    width:4px; height:16px; border-radius:2px;
    background:var(--mint); box-shadow:0 0 10px var(--mint), 0 0 2px #fff;
    opacity:0; transform:translateX(-50%);
  }
  @media (prefers-reduced-motion: no-preference){
    .shooter-bolt{ animation: boltFire 1.8s linear infinite; }
  }
  @media (prefers-reduced-motion: reduce){
    .hero-shooter{ display:none; }
  }
  @keyframes boltFire{
    0%{ opacity:0; transform:translate(-50%, 0); }
    6%{ opacity:1; }
    75%{ opacity:1; transform:translate(-50%, -170px); }
    100%{ opacity:0; transform:translate(-50%, -180px); }
  }
  @media (max-width:900px){
    .hero-shooter{ display:none; }
  }

  #services .wrap{ position:relative; z-index:1; }
  .services-intro{ text-align:center; max-width:620px; margin:0 auto 52px; }
  .services-intro .kicker{ color:#B9B7F5; }
  .services-heading{ color:#fff; font-size:clamp(2rem, 4vw, 3rem); }
  .services-heading .accent{ color:var(--mint); }
  .services-lede{ color:rgba(255,255,255,0.68); margin-top:18px; font-size:1.05rem; line-height:1.65; }
  .services-quote{ color:rgba(255,255,255,0.45); margin-top:22px; font-size:0.92rem; font-style:italic; }
  .services-hero-ctas{ justify-content:center; margin-top:30px; }
  #services .btn-secondary{ background:transparent; color:#fff; border-color:rgba(255,255,255,0.3); }
  #services .btn-secondary:hover{ border-color:#fff; }

  .services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
  .service-box{
    background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.1); border-radius:var(--radius);
    padding:28px; transition: opacity .6s ease, background .25s ease, border-color .25s ease, transform .3s ease, box-shadow .25s ease;
  }
  .service-box:hover{ background:rgba(255,255,255,0.07); border-color:rgba(255,255,255,0.25); transform:translateY(-4px); box-shadow:0 20px 44px rgba(0,0,0,0.35); }
  .service-icon{
    width:44px; height:44px; border-radius:12px;
    background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14); color:#fff;
    display:flex; align-items:center; justify-content:center; margin-bottom:18px;
    transition: background .25s ease, color .25s ease, transform .25s ease;
  }
  .service-box:hover .service-icon{ background:var(--accent); border-color:var(--accent); transform:scale(1.1) rotate(-6deg); }
  .service-box h3{ color:#fff; font-size:1.1rem; margin-bottom:8px; }
  .service-box p{ color:rgba(255,255,255,0.6); font-size:0.9rem; line-height:1.6; margin:0; }
  #services .service-link{ color:#fff; }
  #services .service-link:hover{ color:var(--mint); }
  @media (prefers-reduced-motion: no-preference){
    .services-grid .service-box:nth-child(3n+1){ transition-delay:.05s; }
    .services-grid .service-box:nth-child(3n+2){ transition-delay:.15s; }
    .services-grid .service-box:nth-child(3n+3){ transition-delay:.25s; }
  }
  @media (max-width:860px){
    .services-grid{ grid-template-columns:1fr; }
  }

  .standards-intro{ margin-top:88px; margin-bottom:36px; }
  .standards-heading{ font-size:clamp(1.7rem, 3vw, 2.4rem); }
  .standards-list{ max-width:680px; margin:0 auto; display:flex; flex-direction:column; gap:14px; }
  .standards-item{
    display:flex; align-items:center; gap:14px;
    background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.1); border-radius:12px;
    padding:18px 22px;
    color:#fff; font-weight:700; font-size:0.88rem; text-transform:uppercase; letter-spacing:0.04em;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
  }
  .standards-item:hover{ background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.22); transform:translateX(4px); }
  .standards-check{ flex-shrink:0; color:var(--mint); }
  @media (max-width:600px){
    .standards-item{ font-size:0.78rem; padding:14px 16px; gap:10px; }
  }

  /* ---------- Projects ---------- */
  .projects-viewport{ position:relative; }
  .projects-grid{
    display:grid;
    grid-auto-flow:column;
    grid-template-rows:repeat(2,1fr);
    grid-auto-columns:calc(50% - 13px);
    gap:26px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -ms-overflow-style:none;
    scrollbar-width:none;
    padding-bottom:4px;
    scroll-behavior:smooth;
  }
  .projects-grid::-webkit-scrollbar{ display:none; }
  .projects-grid .game-card{ scroll-snap-align:start; }
  .carousel-nav{
    position:absolute; top:50%; z-index:2;
    width:44px; height:44px; border-radius:50%;
    background:#fff; border:1px solid var(--line);
    box-shadow:0 10px 24px rgba(20,22,43,0.14);
    display:flex; align-items:center; justify-content:center;
    font-size:1.4rem; line-height:1; color:var(--ink); cursor:pointer;
    transform:translateY(-50%);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  }
  .carousel-nav:hover{ transform:translateY(-50%) scale(1.08); box-shadow:0 14px 30px rgba(20,22,43,0.2); }
  .carousel-nav.prev{ left:-22px; }
  .carousel-nav.next{ right:-22px; }
  .carousel-nav[hidden]{ display:none; }
  @media (max-width:1240px){
    .carousel-nav{ display:none; }
  }
  .game-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; text-decoration:none; display:block; color:inherit; transition:box-shadow .2s ease, transform .2s ease; }
  .game-card:hover{ box-shadow:0 20px 50px rgba(20,22,43,0.1); transform:translateY(-4px); }
  .game-thumb-link{ display:block; }
  .game-title-link{ text-decoration:none; }
  .game-title-link:hover h3{ color:var(--accent); }
  .game-thumb{ height:190px; display:flex; align-items:center; justify-content:center; font-size:3rem; position:relative; border-bottom:1px solid var(--line); overflow:hidden; }
  .game-thumb .slide-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity 1.4s ease; }
  .game-thumb .slide-img.active{ opacity:1; }
  .thumb-1{ background:linear-gradient(135deg,#FDE2E4,#FAD2E1); }
  .thumb-2{ background:linear-gradient(135deg,#D7E3FC,#C8D9F9); }
  .thumb-3{ background:linear-gradient(135deg,#DDF3E4,#C7EED2); }
  .thumb-4{ background:linear-gradient(135deg,#FFF1C9,#FEE6A8); }
  .game-info{ padding:22px 24px 24px; }
  .game-top-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
  .genre-tag{ font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.07em; color:var(--accent); }
  .game-stats{ display:flex; align-items:center; gap:10px; }
  .rating{ display:flex; align-items:center; gap:4px; font-size:0.82rem; font-weight:600; color:var(--ink); }
  .rating .star{ color:var(--amber); }
  .downloads{ display:flex; align-items:center; gap:4px; font-size:0.82rem; font-weight:600; color:var(--muted); }
  .downloads .dl-icon{ color:var(--accent); font-size:0.76rem; }
  .game-info h3{ font-size:1.25rem; margin-bottom:8px; }
  .game-info p{ font-size:0.9rem; color:var(--muted); line-height:1.55; margin:0 0 16px; }
  .store-row{ display:flex; gap:8px; flex-wrap:wrap; }
  .store-chip{ display:flex; align-items:center; gap:6px; font-size:0.74rem; font-weight:600; background:var(--bg); border:1px solid var(--line); border-radius:999px; padding:5px 10px; color:var(--muted); text-decoration:none; cursor:pointer; transition: border-color .15s ease, color .15s ease, transform .15s ease; }
  .store-chip:hover{ border-color:var(--ink); color:var(--ink); transform:translateY(-1px); }
  .store-chip .dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }

  .store-badge{
    display:inline-flex; align-items:center; gap:8px;
    background:#000; border:1px solid rgba(255,255,255,0.18); border-radius:8px;
    padding:6px 12px; text-decoration:none; cursor:pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  }
  .store-badge:hover{ background:#1a1a1a; transform:translateY(-2px); box-shadow:0 10px 22px rgba(0,0,0,0.22); }
  .store-badge .badge-icon{ display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .store-badge .badge-text{ display:flex; flex-direction:column; line-height:1.15; }
  .store-badge .badge-caption{ font-size:0.55rem; font-weight:500; text-transform:uppercase; letter-spacing:0.03em; color:rgba(255,255,255,0.75); }
  .store-badge .badge-store{ font-size:0.84rem; font-weight:700; font-family:'Sora',sans-serif; color:#fff; }

  /* ---------- Process ---------- */
  .process-list{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
  .process-item{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:26px 22px 24px;
    position:relative;
    transition: box-shadow .2s ease, transform .2s ease;
  }
  .process-item:hover{ box-shadow:0 16px 40px rgba(20,22,43,0.08); transform:translateY(-3px); }
  /* connector line running through the row, behind the nodes */
  .process-list::before{ display:none; }
  .process-node{
    width:40px; height:40px;
    border-radius:11px;
    background:var(--accent-soft);
    color:var(--accent);
    display:flex; align-items:center; justify-content:center;
    font-size:1.2rem;
    margin-bottom:18px;
  }
  .process-item .idx{ font-family:'Sora'; font-weight:800; font-size:0.78rem; color:var(--accent); letter-spacing:0.08em; margin-bottom:8px; display:block; }
  .process-item h3{ font-size:1.05rem; margin-bottom:8px; }
  .process-item p{ font-size:0.88rem; color:var(--muted); line-height:1.6; margin:0 0 16px; }
  .process-meta{ display:flex; flex-direction:column; gap:6px; padding-top:14px; border-top:1px solid var(--line); }
  .process-meta .meta-row{ display:flex; align-items:center; gap:6px; font-size:0.78rem; color:var(--muted); font-weight:500; }
  .process-meta .meta-row b{ color:var(--ink); font-weight:600; }
  .process-item .connector{
    display:none;
  }
  @media (min-width:861px){
    .process-item:not(:last-child) .connector{
      display:block;
      position:absolute;
      top:44px; right:-20px;
      width:20px; height:2px;
      background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px);
      z-index:1;
    }
  }

  /* ---------- Client Reviews (skewed carousel) ---------- */
  #reviews{ overflow:hidden; }
  #reviews.has-bg-image{ position:relative; background-size:cover; background-position:center; background-repeat:no-repeat; }
  #reviews.has-bg-image::before{ content:""; position:absolute; inset:0; background:rgba(246,246,251,0.88); z-index:0; }
  #reviews.has-bg-image > *{ position:relative; z-index:1; }
  .review-carousel{ position:relative; margin-top:12px; outline:none; }
  .review-stage{ position:relative; height:420px; perspective:800px; }
  .review-track{ position:absolute; inset:0; }
  .review-card{
    position:absolute; top:50%; left:50%; width:300px; min-height:260px;
    background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
    padding:28px 26px; box-shadow:0 20px 50px rgba(20,22,43,0.12);
    transform-style:preserve-3d; backface-visibility:hidden; will-change:transform, opacity, filter;
    transition:transform .5s cubic-bezier(.22,.68,.36,1), opacity .5s ease, filter .5s ease;
    cursor:grab;
  }
  .review-card:active{ cursor:grabbing; }
  .review-stars{ color:var(--mint); letter-spacing:2px; font-size:0.9rem; margin-bottom:14px; }
  .review-quote{ font-size:0.98rem; line-height:1.65; color:var(--ink); margin:0 0 22px; }
  .review-person{ display:flex; align-items:center; gap:12px; }
  .review-avatar{
    width:42px; height:42px; border-radius:50%; flex-shrink:0;
    background:linear-gradient(135deg, var(--accent), var(--mint));
    color:#fff; font-family:'Sora',sans-serif; font-weight:700; font-size:0.82rem;
    display:flex; align-items:center; justify-content:center;
  }
  .review-avatar-img{ object-fit:cover; background:none; }
  .review-who{ display:flex; flex-direction:column; min-width:0; transition:filter .4s ease, opacity .4s ease; }
  .review-name{ font-weight:700; font-size:0.92rem; color:var(--ink); }
  .review-role{ font-size:0.8rem; color:var(--muted); }

  .review-controls{ display:flex; align-items:center; justify-content:center; gap:18px; margin-top:28px; }
  .review-nav{
    width:40px; height:40px; border-radius:50%; border:1px solid var(--line); background:var(--surface);
    color:var(--ink); font-size:1.3rem; line-height:1; display:flex; align-items:center; justify-content:center;
    cursor:pointer; transition:background .2s ease, border-color .2s ease, transform .2s ease;
  }
  .review-nav:hover{ background:var(--accent-soft); border-color:var(--accent); transform:translateY(-2px); }
  .review-nav:disabled{ opacity:0.35; cursor:default; pointer-events:none; }
  .review-dots{ display:flex; align-items:center; gap:8px; }
  .review-dot{ width:8px; height:8px; border-radius:50%; border:none; background:var(--line); cursor:pointer; padding:0; transition:background .2s ease, transform .2s ease; }
  .review-dot.active{ background:var(--accent); transform:scale(1.3); }

  @media (max-width:700px){
    .review-stage{ height:380px; }
    .review-card{ width:78vw; max-width:320px; }
  }

  /* ---------- Game Design Documents ---------- */
  .gdd-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
  .gdd-card{
    background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
    padding:26px; text-decoration:none; color:inherit; display:flex; flex-direction:column;
    transition: box-shadow .2s ease, transform .2s ease;
  }
  .gdd-card:hover{ box-shadow:0 18px 44px rgba(20,22,43,0.1); transform:translateY(-4px); }
  .gdd-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
  .gdd-icon{ width:44px; height:44px; border-radius:12px; background:var(--accent-soft); display:flex; align-items:center; justify-content:center; font-size:1.3rem; }
  .gdd-pages{ font-size:0.76rem; font-weight:700; color:var(--muted); background:var(--bg); border:1px solid var(--line); padding:4px 10px; border-radius:999px; }
  .gdd-card h3{ font-size:1.12rem; margin-bottom:10px; }
  .gdd-card p{ font-size:0.9rem; color:var(--muted); line-height:1.6; margin:0 0 18px; flex-grow:1; }
  .gdd-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
  .gdd-tag{ font-size:0.74rem; font-weight:600; color:var(--accent); background:var(--accent-soft); padding:5px 10px; border-radius:999px; }
  .gdd-link{ font-family:'Sora'; font-weight:700; font-size:0.9rem; color:var(--ink); }
  .gdd-card:hover .gdd-link{ color:var(--accent); }

  .contact-card{ background:var(--ink); border-radius:28px; padding:64px; text-align:center; position:relative; overflow:hidden; }
  .contact-card .bg-glow{
    position:absolute; inset:0; z-index:0; pointer-events:none;
  }
  .contact-card .bg-glow::before,
  .contact-card .bg-glow::after{
    content:""; position:absolute; border-radius:50%;
  }
  .contact-card .bg-glow::before{
    width:460px; height:460px;
    background:radial-gradient(circle, rgba(79,70,229,0.4), transparent 70%);
    top:-180px; right:-140px;
  }
  .contact-card .bg-glow::after{
    width:340px; height:340px;
    background:radial-gradient(circle, rgba(0,210,211,0.28), transparent 70%);
    bottom:-160px; left:-100px;
  }
  @media (prefers-reduced-motion: no-preference){
    .contact-card .bg-glow::before{ animation: driftA 14s ease-in-out infinite; }
    .contact-card .bg-glow::after{ animation: driftB 16s ease-in-out infinite; }
  }
  @keyframes driftA{
    0%, 100%{ transform: translate(0,0) scale(1); }
    50%{ transform: translate(-40px, 30px) scale(1.12); }
  }
  @keyframes driftB{
    0%, 100%{ transform: translate(0,0) scale(1); }
    50%{ transform: translate(30px, -24px) scale(1.08); }
  }
  .contact-card .bg-particles{ position:absolute; inset:0; z-index:0; pointer-events:none; }
  .contact-card .bg-particles span{
    position:absolute;
    width:4px; height:4px;
    border-radius:50%;
    background:rgba(255,255,255,0.5);
  }
  @media (prefers-reduced-motion: no-preference){
    .contact-card .bg-particles span{ animation: twinkle 3.6s ease-in-out infinite; }
  }
  @keyframes twinkle{
    0%, 100%{ opacity:0.15; transform:translateY(0) scale(1); }
    50%{ opacity:0.9; transform:translateY(-8px) scale(1.3); }
  }
  .contact-card *{ position:relative; z-index:1; }
  .contact-card .kicker{ color:#B9B7F5; }
  .contact-card h2{ color:#fff; font-size:clamp(1.8rem,4vw,2.6rem); }
  .contact-heading{ position:relative; display:inline-block; }
  .contact-heading::after{
    content:""; position:absolute; left:50%; bottom:-12px; height:4px; width:70px; border-radius:2px;
    background:linear-gradient(90deg, var(--accent), var(--mint));
    transform:translateX(-50%) scaleX(0); transform-origin:center;
    transition:transform .6s ease .25s;
  }
  .contact-card.in .contact-heading::after{ transform:translateX(-50%) scaleX(1); }
  .contact-card p{ color:#B4B6D6; font-weight:500; margin-top:14px; font-size:1.05rem; max-width:460px; margin-left:auto; margin-right:auto; }
  .contact-ctas{ display:flex; gap:14px; justify-content:center; margin-top:34px; flex-wrap:wrap; }
  .contact-card .btn-primary{ background:#fff; color:var(--ink); }
  .contact-card .btn-primary:hover{ background:var(--accent); color:#fff; }
  .contact-card .btn-secondary{ background:transparent; color:#fff; border-color:rgba(255,255,255,0.25); }
  .contact-card .btn-secondary:hover{ border-color:#fff; }

  .form-notice{ max-width:460px; margin:24px auto 0; padding:12px 18px; border-radius:12px; font-size:0.9rem; font-weight:600; }
  .form-notice-error{ background:rgba(239,68,68,0.14); color:#FCA5A5; border:1px solid rgba(239,68,68,0.35); }
  @media (prefers-reduced-motion: no-preference){
    .form-notice{ animation: noticeIn .45s ease; }
  }
  @keyframes noticeIn{ from{ opacity:0; transform:translateY(-10px); } to{ opacity:1; transform:translateY(0); } }

  .contact-card .wpcf7-form{ max-width:460px; margin:28px auto 0; display:flex; flex-direction:column; gap:12px; }
  .contact-card .wpcf7-form p{ margin:0; }
  .contact-card .wpcf7-form .form-row{ display:flex; gap:12px; flex-wrap:wrap; }
  .contact-card .wpcf7-form .form-row p{ flex:1; min-width:180px; margin:0; }
  .contact-card .wpcf7-form .form-row .wpcf7-form-control-wrap{ display:block; }
  .contact-card .wpcf7-form input[type="text"],
  .contact-card .wpcf7-form input[type="email"],
  .contact-card .wpcf7-form textarea{
    width:100%;
    background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.22); border-radius:12px;
    padding:13px 16px; color:#fff; font-family:inherit; font-size:0.95rem;
    resize:vertical; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease, opacity .5s ease;
  }
  .contact-card .wpcf7-form input::placeholder,
  .contact-card .wpcf7-form textarea::placeholder{ color:rgba(255,255,255,0.5); }
  .contact-card .wpcf7-form input:focus,
  .contact-card .wpcf7-form textarea:focus{ outline:none; border-color:var(--accent); background:rgba(255,255,255,0.12); box-shadow:0 0 0 4px rgba(79,70,229,0.3); transform:translateY(-1px); }
  .contact-card .wpcf7-form .wpcf7-not-valid-tip{ color:#FCA5A5; font-size:0.8rem; font-weight:500; margin-top:2px; }
  .contact-card .wpcf7-form .wpcf7-submit{
    font-family:'Sora',sans-serif; font-weight:600; font-size:0.98rem; padding:14px 26px; border-radius:12px;
    border:none; background:var(--accent); color:#fff; align-self:center; cursor:pointer; transition:all .15s ease;
    box-shadow:0 0 0 0 rgba(79,70,229,0.55);
  }
  .contact-card .wpcf7-form .wpcf7-submit:hover{ background:#fff; color:var(--ink); transform:translateY(-2px); box-shadow:0 14px 32px rgba(79,70,229,0.45); }
  @media (prefers-reduced-motion: no-preference){
    .contact-card .wpcf7-form .wpcf7-submit{ animation: mrSubmitPulse 2.4s ease-in-out infinite; }
    .contact-card .wpcf7-form .wpcf7-submit:hover{ animation:none; }
  }
  @keyframes mrSubmitPulse{
    0%, 100%{ box-shadow:0 0 0 0 rgba(79,70,229,0.55); }
    50%{ box-shadow:0 0 0 10px rgba(79,70,229,0); }
  }
  .contact-card .wpcf7-form .wpcf7-spinner{ margin:0 0 0 8px; }
  .contact-card .wpcf7-response-output{ max-width:460px; margin:16px auto 0; padding:12px 18px; border-radius:12px; font-size:0.9rem; font-weight:600; text-align:center; }
  .contact-card form.sent .wpcf7-response-output{ background:rgba(16,185,129,0.16); color:#8FF0C9; border:1px solid rgba(16,185,129,0.35); }
  .contact-card form.failed .wpcf7-response-output,
  .contact-card form.aborted .wpcf7-response-output,
  .contact-card form.spam .wpcf7-response-output,
  .contact-card form.invalid .wpcf7-response-output{ background:rgba(239,68,68,0.14); color:#FCA5A5; border:1px solid rgba(239,68,68,0.35); }
  @media (prefers-reduced-motion: no-preference){
    .contact-card .wpcf7-form .form-row{ opacity:0; transform:translateY(16px); transition: opacity .5s ease, transform .5s ease; }
    .contact-card .wpcf7-form textarea{ opacity:0; transform:translateY(16px); }
    .contact-card .wpcf7-form .wpcf7-submit{
      opacity:0; transform:translateY(16px);
      transition: opacity .5s ease, transform .5s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
    }
    .contact-card.in .wpcf7-form .form-row{ opacity:1; transform:none; transition-delay:.15s; }
    .contact-card.in .wpcf7-form textarea{ opacity:1; transform:none; transition-delay:.3s; }
    .contact-card.in .wpcf7-form .wpcf7-submit{ opacity:1; transform:none; transition-delay:.45s; }
  }

  footer{ padding:40px 0 56px; text-align:center; font-size:0.86rem; color:var(--muted); }
  footer .social-row{ display:flex; gap:20px; justify-content:center; margin-bottom:16px; }
  footer a{ text-decoration:none; font-weight:600; color:var(--ink); }
  footer a:hover{ color:var(--accent); }
  footer .footer-bottom{ max-width:1180px; margin:0 auto; padding:0 32px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; text-align:left; }
  footer .footer-copy{ margin:0; }
  footer .footer-email{ color:var(--muted); font-weight:600; }
  footer .footer-email:hover{ color:var(--accent); }
  @media (max-width:600px){
    footer .footer-bottom{ justify-content:center; text-align:center; }
  }

  @media (max-width:860px){
    .nav-links{ display:none; }
    .nav-cta{ display:none; }
    .menu-btn{ display:flex; }
    .mobile-menu .nav-cta{ display:inline-block; }
    .hero-grid{ grid-template-columns:1fr; }
    .hero-visual{ min-height:380px; order:-1; margin-bottom:8px; }
    .bg-slider{ width:210px; height:420px; }
    .float-card{ display:none; }
    .about-grid, .skills-grid, .gdd-grid{ grid-template-columns:1fr; }
    .projects-grid{ grid-template-rows:none; grid-auto-flow:row; grid-auto-columns:unset; grid-auto-rows:auto; display:flex; flex-direction:column; overflow-x:visible; scroll-snap-type:none; }
    .stat-bar{ grid-template-columns:repeat(2,1fr); }
    .process-list{ grid-template-columns:1fr; gap:14px; }
    .contact-card{ padding:40px 24px; }
    .doc-body{ grid-template-columns:1fr; }
    .toc{ position:static; border-left:none; border-top:1px solid var(--line); padding-left:0; padding-top:16px; }
  }
  a:focus-visible, .btn:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

  /* ---------- Game Design Document page template ---------- */
  .doc-hero{ padding:56px 0 32px; border-bottom:1px solid var(--line); }
  .doc-hero h1{ font-size:clamp(1.9rem,4.4vw,2.7rem); }
  .doc-meta{ display:flex; gap:10px; flex-wrap:wrap; margin-top:22px; }
  .meta-chip{ background:#fff; border:1px solid var(--line); border-radius:999px; padding:8px 16px; font-size:0.85rem; font-weight:700; color:var(--muted); display:flex; align-items:center; gap:6px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
  .meta-chip:hover{ transform:translateY(-2px); box-shadow:0 10px 22px rgba(20,22,43,0.1); }
  .meta-chip-genre{ color:var(--accent); background:var(--accent-soft); border-color:transparent; text-transform:uppercase; letter-spacing:0.04em; font-size:0.78rem; }
  .meta-chip-rating{ color:var(--ink); }
  .meta-chip-rating .star{ color:var(--amber); font-size:0.95rem; }
  .meta-chip-downloads{ color:var(--ink); }
  .meta-chip-downloads .dl-icon{ color:var(--accent); font-weight:800; }
  .doc-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
  .doc-tag{ font-size:0.76rem; font-weight:600; color:var(--accent); background:var(--accent-soft); padding:5px 11px; border-radius:999px; }

  .doc-body{ padding:48px 0 96px; display:grid; grid-template-columns:200px 1fr; gap:48px; align-items:start; }
  .toc{ position:sticky; top:90px; border-left:2px solid var(--line); padding-left:16px; }
  .toc .toc-label{ font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:var(--muted); margin-bottom:12px; display:block; }
  .toc a{ display:block; text-decoration:none; color:var(--muted); font-size:0.86rem; font-weight:500; padding:6px 0; }
  .toc a:hover{ color:var(--accent); }

  .doc-content h2{ font-size:1.35rem; margin:0 0 14px; padding-top:8px; }
  .doc-content h3{ font-size:1.05rem; margin:20px 0 8px; }
  .doc-content p{ font-size:1rem; color:#3A3D5C; line-height:1.75; margin:0 0 14px; }
  .doc-content ul{ margin:0 0 14px; padding-left:20px; color:#3A3D5C; line-height:1.75; }
  .doc-content li{ margin-bottom:6px; }

  .doc-footer-cta{ border-top:1px solid var(--line); padding:36px 0; text-align:center; }

  /* ---------- Single Game page (gallery) ---------- */
  .game-gallery-section{ padding-top:40px; }
  .game-gallery-main{ position:relative; width:100%; height:clamp(320px, 52vw, 560px); border-radius:var(--radius); overflow:hidden; background:var(--bg); border:1px solid var(--line); }
  .gallery-main-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; transition:opacity .7s ease; }
  .gallery-main-img.active{ opacity:1; }
  .gallery-main-nav{
    position:absolute; top:50%; z-index:2; transform:translateY(-50%);
    width:44px; height:44px; border-radius:50%;
    background:rgba(255,255,255,0.92); border:1px solid var(--line);
    box-shadow:0 10px 24px rgba(20,22,43,0.14);
    display:flex; align-items:center; justify-content:center;
    font-size:1.4rem; line-height:1; color:var(--ink); cursor:pointer;
    opacity:0; transition:opacity .2s ease, transform .15s ease, box-shadow .15s ease;
  }
  .game-gallery-main:hover .gallery-main-nav{ opacity:1; }
  .gallery-main-nav:hover{ transform:translateY(-50%) scale(1.08); box-shadow:0 14px 30px rgba(20,22,43,0.2); }
  .gallery-main-nav.prev{ left:16px; }
  .gallery-main-nav.next{ right:16px; }
  @media (max-width:768px){
    .gallery-main-nav{ opacity:1; }
  }
  .game-gallery-thumbs{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; justify-content:center; }
  .gallery-thumb-btn{ padding:0; border:2px solid transparent; border-radius:10px; overflow:hidden; width:72px; height:72px; flex-shrink:0; cursor:pointer; background:var(--bg); transition:border-color .15s ease; }
  .gallery-thumb-btn img{ width:100%; height:100%; object-fit:contain; display:block; }
  .gallery-thumb-btn:hover{ border-color:var(--line); }
  .gallery-thumb-btn.active{ border-color:var(--accent); }
  .game-gallery-empty{ width:100%; height:clamp(320px, 52vw, 560px); border-radius:var(--radius); background:var(--accent-soft); display:flex; align-items:center; justify-content:center; font-size:4rem; }
  @media (max-width:600px){
    .gallery-thumb-btn{ width:56px; height:56px; }
  }
