/* ==========================================================================
   APIX GAMES — components for the 2026-10 site (worlds, projects, Num Num, media)
   Builds on style.css (tokens, buttons, cards, header, footer).
   ========================================================================== */

.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--lime); color: #0b0918; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted-p { color: var(--muted); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn { white-space: nowrap; }
.btn svg[fill="currentColor"] { width: 16px; height: 16px; }
.nav .btn.is-active { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5), 0 10px 40px -10px rgba(168, 85, 247, .8); }

/* ---------- home hero with video ---------- */
.hero-v2 { isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-video.ready { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 4, 12, .94) 0%, rgba(5, 4, 12, .78) 38%, rgba(5, 4, 12, .25) 75%, rgba(5, 4, 12, .45) 100%),
    linear-gradient(180deg, rgba(5, 4, 12, .35) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
.hero-v2 .hero-grid { opacity: .25; }
.hero-v2 .hero-title { font-size: clamp(48px, 9vw, 132px); max-width: 11ch; }
.hero-v2 .lead { color: #cfc9ea; }
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 40px 0 0; font-family: var(--font-ui); font-size: 14px; letter-spacing: .06em; color: var(--muted); }
.hero-proof li { display: flex; align-items: center; gap: 10px; }
.hero-proof li::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--grad); box-shadow: 0 0 10px var(--violet); }
.hero-proof b { color: var(--text); font-weight: 700; }

/* ---------- trust logos ---------- */
.trust { padding: 34px 0 10px; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.trust-label { text-align: center; margin: 0 0 22px; font-family: var(--font-ui); font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding: 0 16px; }
.logo-rail { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding-bottom: 26px; }
.logo-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 50s linear infinite; }
.logo-track img { height: 46px; width: auto; max-width: 190px; object-fit: contain; opacity: .62; transition: opacity .3s; }
.logo-track img:hover { opacity: 1; }
.logo-rail:hover .logo-track { animation-play-state: paused; }

/* ---------- statement + pillars ---------- */
.statement { max-width: 880px; margin-bottom: 56px; }
.statement.center { margin: 0 auto; text-align: center; }
.statement h2 { font-size: clamp(36px, 5.6vw, 76px); }
.pillar-icon { width: 76px; height: 76px; margin: -6px 0 18px -6px; filter: drop-shadow(0 6px 24px rgba(168, 85, 247, .35)); }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- worlds grid (home) ---------- */
.worlds-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 20px; }
.world-tile { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); isolation: isolate; display: flex; align-items: flex-end; padding: 22px; transition: transform .5s var(--ease), border-color .3s; }
.world-tile.big { grid-row: span 2; padding: 30px; }
.world-tile:nth-child(4) { grid-column: span 2; }
.world-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.world-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(5, 4, 12, .92)); }
.world-tile:hover { transform: translateY(-6px); border-color: var(--line-2); }
.world-tile:hover img { transform: scale(1.06); }
.world-tile h3 { margin: 4px 0 0; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 32px); }
.world-tile.big h3 { font-size: clamp(30px, 3.4vw, 48px); }
.world-tile p { margin: 10px 0 0; color: #d6d0f0; max-width: 420px; font-size: 15.5px; }
.world-tile .badge { position: absolute; top: 20px; left: 20px; padding: 7px 14px; border-radius: 999px; font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--lime); color: #0b0918; }
.genre { font-family: var(--font-ui); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }

/* ---------- project strip (home) ---------- */
.proj-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.proj-tile { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--line); isolation: isolate; display: flex; align-items: flex-end; }
.proj-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.proj-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(5, 4, 12, .9)); }
.proj-tile span { padding: 18px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.proj-tile b { display: block; color: var(--text); font-family: var(--font-display); font-weight: 400; font-size: 19px; text-transform: uppercase; margin-bottom: 4px; }
.proj-tile:hover img { transform: scale(1.06); }

/* ---------- Num Num band ---------- */
.nn-band { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; border-radius: 32px; overflow: hidden; border: 1px solid var(--line-2); background: linear-gradient(120deg, rgba(34, 227, 255, .08), rgba(168, 85, 247, .14), rgba(255, 46, 136, .1)); }
.nn-band-img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.nn-band-copy { padding: 48px; }
.nn-band-copy h2 { font-size: clamp(32px, 4vw, 52px); }
.nn-band-copy p { color: var(--muted); margin-bottom: 26px; }

/* ---------- CTA with image ---------- */
.cta-img { isolation: isolate; }
.cta-img .cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .38; }
.cta-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(13, 6, 32, .55), rgba(13, 6, 32, .9)); }
.cta-img::before { z-index: 0; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.svc-card { padding: 26px 22px 24px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012)); transition: transform .35s var(--ease), border-color .3s, background .3s; }
.svc-card:hover { transform: translateY(-6px); border-color: rgba(34, 227, 255, .45); background: rgba(255, 255, 255, .06); }
.svc-card img { width: 64px; height: 64px; margin: -4px 0 14px -4px; filter: drop-shadow(0 6px 18px rgba(168, 85, 247, .35)); }
.svc-card h3 { font-size: 17px; text-transform: uppercase; margin-bottom: 8px; line-height: 1.15; }
.svc-card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }

.feat-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; padding: 56px 0; }
.feat-row + .feat-row { border-top: 1px solid var(--line); }
.feat-row.flip .feat-media { order: 2; }
.feat-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 16 / 11; }
.feat-media img { width: 100%; height: 100%; object-fit: cover; }
.feat-media .float-chip { position: absolute; padding: 10px 16px; border-radius: 12px; background: rgba(5, 4, 12, .72); border: 1px solid var(--line-2); backdrop-filter: blur(10px); font-family: var(--font-ui); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.feat-media .float-chip.a { top: 18px; left: 18px; color: var(--lime); }
.feat-media .float-chip.b { bottom: 18px; right: 18px; color: var(--cyan); }
.feat-copy .kicker { font-family: var(--font-ui); font-weight: 700; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); margin-bottom: 14px; }
.feat-copy h2 { font-size: clamp(30px, 3.8vw, 50px); }
.feat-copy p { color: var(--muted); }
.feat-copy .tags + .tags { margin-top: 10px; }
.tag.t2 { border-color: rgba(34, 227, 255, .35); color: var(--cyan); }
.mini-cards .card { padding: 28px; }
.mini-cards h3 { font-size: 19px; text-transform: uppercase; }
.mini-cards p { font-size: 15px; margin: 0; }

.offer-band { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 36px 40px; border-radius: 28px; border: 1px solid rgba(255, 46, 136, .4); background: radial-gradient(80% 140% at 0% 0%, rgba(255, 46, 136, .18), transparent 60%), linear-gradient(135deg, #1a0b3a, #12082a); }
.offer-band .offer-icon { width: 104px; height: 104px; filter: drop-shadow(0 8px 26px rgba(255, 46, 136, .5)); }
.offer-band h2 { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 10px; }
.offer-band p { margin: 0; color: var(--muted); }
.offer-band p b { color: var(--text); }
.offer-band .eyebrow { margin-bottom: 8px; }

/* ---------- worlds page ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.jump a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--font-ui); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: all .2s; }
.jump a:hover { color: var(--text); border-color: var(--cyan); background: rgba(34, 227, 255, .08); }
.world { padding: 56px 0; scroll-margin-top: 80px; }
.world + .world { border-top: 1px solid var(--line); }
.world-row, .case { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.world-row.flip .world-media, .case.flip .case-media { order: 2; }
.world-main, .case-main { display: block; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 16 / 9; cursor: zoom-in; }
.case-main { aspect-ratio: 4 / 3; }
.world-main img, .case-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.world-main:hover img, .case-main:hover img { transform: scale(1.04); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.thumbs a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); cursor: zoom-in; opacity: .8; transition: opacity .2s, border-color .2s, transform .3s var(--ease); }
.thumbs a:hover { opacity: 1; border-color: var(--cyan); transform: translateY(-2px); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.world-tag { display: inline-block; font-family: var(--font-ui); font-weight: 700; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.world-copy h2, .case-copy h2 { font-size: clamp(34px, 4.4vw, 58px); }
.world-copy p, .case-copy p { color: var(--muted); }
.code-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 24px 0; padding: 14px 14px 14px 20px; border-radius: 16px; border: 1px dashed rgba(198, 255, 61, .45); background: rgba(198, 255, 61, .05); }
.code-box .k { font-family: var(--font-ui); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.code-box .v { font-family: var(--font-ui); font-weight: 700; font-size: 20px; letter-spacing: .1em; color: var(--lime); flex: 1; }
.code-box .btn { padding: 10px 18px; font-size: 12.5px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-tile, .showreel { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 16 / 9; isolation: isolate; text-align: left; }
.video-tile img, .showreel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease), opacity .3s; opacity: .85; }
.video-tile::after, .showreel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(5, 4, 12, .88)); }
.video-tile:hover img, .showreel:hover img { transform: scale(1.05); opacity: 1; }
.vt-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(8px); transition: transform .3s var(--ease), background .3s; }
.vt-play svg { width: 24px !important; height: 24px !important; margin-left: 3px; color: #fff; }
.vt-play.big { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--grad); border: 0; box-shadow: 0 14px 50px -10px rgba(255, 46, 136, .8); }
.vt-play.big svg { width: 34px !important; height: 34px !important; }
.video-tile:hover .vt-play, .showreel:hover .vt-play { transform: scale(1.1); background: var(--pink); }
.vt-meta { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-ui); font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.vt-meta b { color: var(--text); font-size: 16px; text-transform: uppercase; letter-spacing: .1em; }
.showreel { aspect-ratio: 21 / 9; border-radius: 30px; }
.sr-meta { position: absolute; left: 34px; bottom: 28px; display: grid; gap: 4px; }
.sr-meta .eyebrow { margin: 0; }
.sr-meta b { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 3vw, 38px); text-transform: uppercase; line-height: 1.05; color: #fff; }
.sr-meta small { color: var(--muted); font-size: 14px; }

/* ---------- projects ---------- */
.cases { display: grid; gap: 0; }
.case { padding: 56px 0; scroll-margin-top: 80px; }
.case + .case { border-top: 1px solid var(--line); }
.case .thumbs { grid-template-columns: repeat(3, 1fr); }
.case .thumbs a { aspect-ratio: 4 / 3; }
.client-wall { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.client-wall li { display: grid; place-items: center; height: 110px; padding: 18px 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); transition: border-color .3s, background .3s; }
.client-wall li:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .05); }
.client-wall img { max-height: 54px; max-width: 100%; width: auto; height: auto; object-fit: contain; opacity: .78; transition: opacity .3s; }
.client-wall li:hover img { opacity: 1; }

/* ---------- about ---------- */
.about-h1 { font-size: clamp(42px, 7.5vw, 104px) !important; }
.cert { margin: 0; position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); max-width: 460px; justify-self: end; }
.cert img { width: 100%; height: auto; }
.cert figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 26px 24px; background: linear-gradient(180deg, transparent, rgba(5, 4, 12, .94) 45%); color: var(--muted); font-size: 15px; }
.cert figcaption b { display: block; font-family: var(--font-display); font-weight: 400; color: var(--lime); font-size: 22px; text-transform: uppercase; margin-bottom: 6px; }
.gcc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding: 56px; border-radius: 32px; border: 1px solid var(--line-2);
  background: radial-gradient(70% 120% at 100% 0%, rgba(34, 227, 255, .14), transparent 60%), radial-gradient(70% 120% at 0% 100%, rgba(168, 85, 247, .2), transparent 60%), rgba(255, 255, 255, .02); }
.gcc h2 { font-size: clamp(30px, 4vw, 52px); }
.gcc p { color: var(--muted); margin: 0; }
.gcc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.gcc-list li { padding: 18px 22px; border-radius: 18px; background: rgba(5, 4, 12, .55); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.gcc-list b { display: block; color: var(--text); font-family: var(--font-ui); font-size: 17px; letter-spacing: .04em; }
.nn-about { display: grid; grid-template-columns: .8fr 1fr; gap: 64px; align-items: center; }
.nn-about-art { position: relative; border-radius: 32px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(255, 46, 136, .55); max-width: 440px; }
.nn-about-art img { width: 100%; height: auto; }
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 20px; }
.partner { text-align: center; padding: 34px 28px; border-radius: 24px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.partner img { height: 72px; width: auto; max-width: 100%; margin: 0 auto 18px; object-fit: contain; }
.partner p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- footer additions ---------- */
.footer-contact a[dir="ltr"] { unicode-bidi: embed; }
.footer-contact .muted { color: var(--muted); }

/* ---------- media modal (video + gallery) ---------- */
.media-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; }
.media-modal[hidden] { display: none; }
.mm-backdrop { position: absolute; inset: 0; background: rgba(3, 2, 8, .9); backdrop-filter: blur(6px); animation: fade .25s ease; }
.mm-box { position: relative; width: min(1200px, 100%); animation: pop .3s var(--ease); }
.mm-stage { border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 120px -20px rgba(168, 85, 247, .5); }
.mm-stage video, .mm-stage img { display: block; width: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: #000; }
.mm-caption { margin-top: 14px; text-align: center; color: var(--muted); font-family: var(--font-ui); letter-spacing: .08em; font-size: 14px; }
.mm-close, .mm-nav { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(11, 9, 24, .8); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.mm-close:hover, .mm-nav:hover { background: var(--violet); border-color: var(--violet); }
.mm-close svg, .mm-nav svg { width: 20px; height: 20px; }
.mm-close { top: -58px; right: 0; }
.mm-nav { top: 50%; margin-top: -40px; }
.mm-prev { left: -64px; } .mm-next { right: -64px; }
.media-modal:not(.is-gallery) .mm-nav { display: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }
body.modal-open { overflow: hidden; }

/* ---------- Num Num chat ---------- */
.nn { position: fixed; right: 22px; bottom: 22px; z-index: 250; font-family: var(--font-body); }
.nn-launch { position: relative; width: 64px; height: 64px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad); box-shadow: 0 12px 34px -8px rgba(255, 46, 136, .7); transition: transform .3s var(--ease); }
.nn-launch img { width: 58px; height: 58px; margin: 3px; border-radius: 50%; object-fit: cover; }
.nn-launch:hover { transform: translateY(-3px) scale(1.05); }
.nn-badge { position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); border: 2px solid var(--bg); }
.nn.open .nn-badge, .nn.seen .nn-badge { display: none; }
.nn-hint { position: absolute; right: 0; bottom: 78px; width: 250px; padding: 14px 34px 14px 16px; border-radius: 16px 16px 4px 16px; background: #f4f1ff; color: #17122b; font-size: 14.5px; line-height: 1.45; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); animation: pop .35s var(--ease); }
.nn-hint b { color: #7a1fd0; }
.nn-hint-x { position: absolute; right: 6px; top: 4px; border: 0; background: none; font-size: 20px; line-height: 1; color: #6b6585; cursor: pointer; padding: 4px; }
.nn-panel { position: absolute; right: 0; bottom: 78px; width: 380px; height: min(580px, calc(100vh - 120px)); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: #0d0a1c; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(168, 85, 247, .15); animation: pop .3s var(--ease); transform-origin: bottom right; }
.nn-panel[hidden] { display: none; }
.nn-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(120deg, rgba(34, 227, 255, .14), rgba(168, 85, 247, .2), rgba(255, 46, 136, .16)); border-bottom: 1px solid var(--line); }
.nn-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .25); }
.nn-head div { flex: 1; display: grid; line-height: 1.25; }
.nn-head b { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .04em; }
.nn-head small { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.nn-head small i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.nn-close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.nn-close svg { width: 16px; height: 16px; }
.nn-close:hover { background: rgba(255, 255, 255, .12); }
.nn-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.nn-msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; animation: msg .25s var(--ease); overflow-wrap: anywhere; }
.nn-msg p { margin: 0 0 6px; } .nn-msg p:last-child { margin: 0; }
.nn-msg a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.nn-msg.bot { align-self: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.nn-msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; border-bottom-right-radius: 4px; }
.nn-msg .nn-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nn-msg .nn-actions a { text-decoration: none; padding: 7px 12px; border-radius: 10px; background: rgba(34, 227, 255, .12); border: 1px solid rgba(34, 227, 255, .35); font-family: var(--font-ui); font-weight: 700; font-size: 12.5px; letter-spacing: .06em; color: var(--text); }
.nn-msg .nn-actions a:hover { background: rgba(34, 227, 255, .22); }
.nn-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.nn-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.nn-typing i:nth-child(2) { animation-delay: .15s; } .nn-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes msg { from { opacity: 0; transform: translateY(6px); } }
.nn-chips { display: flex; gap: 8px; padding: 8px 14px 4px; overflow-x: auto; scrollbar-width: none; }
.nn-chips::-webkit-scrollbar { display: none; }
.nn-chips button { flex: none; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); font-family: var(--font-ui); font-weight: 600; font-size: 13px; cursor: pointer; transition: all .2s; }
.nn-chips button:hover { border-color: var(--cyan); background: rgba(34, 227, 255, .1); }
.nn-form { display: flex; gap: 8px; padding: 10px 12px 12px; }
.nn-form input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 15px; outline: none; }
.nn-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 227, 255, .15); }
.nn-form button { width: 46px; flex: none; border-radius: 14px; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; }
.nn-form button svg { width: 20px; height: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .proj-strip { grid-template-columns: repeat(2, 1fr); }
  .mm-prev { left: 8px; } .mm-next { right: 8px; }
}
@media (max-width: 900px) {
  .hero-shade { background: linear-gradient(180deg, rgba(5, 4, 12, .55) 0%, rgba(5, 4, 12, .8) 55%, var(--bg) 100%); }
  .worlds-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 220px 220px; }
  .world-tile.big { grid-column: span 2; grid-row: span 1; }
  .world-tile:nth-child(4) { grid-column: span 2; }
  .nn-band, .feat-row, .world-row, .case, .about-intro, .gcc, .nn-about { grid-template-columns: 1fr; gap: 32px; }
  .feat-row.flip .feat-media, .world-row.flip .world-media, .case.flip .case-media { order: 0; }
  .nn-band-copy { padding: 30px 26px 34px; }
  .nn-band-img { min-height: 240px; max-height: 320px; }
  .offer-band { grid-template-columns: 1fr; text-align: left; padding: 30px 26px; gap: 18px; }
  .offer-band .offer-icon { width: 76px; height: 76px; }
  .video-grid { grid-template-columns: 1fr; }
  .gcc { padding: 34px 26px; }
  .cert { justify-self: start; }
  .showreel { aspect-ratio: 16 / 10; }
  .partners { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .svc-card { padding: 20px 16px; }
  .svc-card img { width: 52px; height: 52px; }
  .svc-card h3 { font-size: 15px; }
  .svc-card p { font-size: 13.5px; }
  .worlds-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: minmax(220px, auto); }
  .world-tile.big, .world-tile:nth-child(4) { grid-column: auto; grid-row: auto; }
  .world-tile.big { min-height: 360px; }
  .proj-strip { gap: 12px; }
  .proj-tile b { font-size: 16px; }
  .logo-track { gap: 44px; }
  .logo-track img { height: 36px; }
  .hero-proof { gap: 8px 18px; font-size: 13px; }
  .client-wall { grid-template-columns: repeat(2, 1fr); }
  .client-wall li { height: 90px; padding: 14px; }
  .thumbs { gap: 8px; }
  .sr-meta { left: 18px; bottom: 16px; }
  .sr-meta small { display: none; }
  .code-box .v { font-size: 17px; }
  .nn { right: 14px; bottom: 14px; }
  .nn-launch { width: 58px; height: 58px; } .nn-launch img { width: 52px; height: 52px; }
  .nn-panel { position: fixed; inset: auto 8px 8px 8px; width: auto; height: min(78vh, calc(100dvh - 24px)); border-radius: 20px; }
  .nn-hint { bottom: 70px; width: 230px; }
  .mm-close { top: -54px; }
  .media-modal { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}
