/* ===========================================================
   РЕМОНТ-ХОЛЛ — премиум scroll concept · blue→violet
   =========================================================== */
:root {
  --bg: #06070e;
  --bg-2: #0a0c18;
  --panel: #0e1120;
  --blue: #4d7cff;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --violet-2: #a855f7;
  --grad: linear-gradient(120deg, #4d7cff 0%, #8b5cf6 55%, #a855f7 100%);
  --grad-soft: linear-gradient(120deg, #5b8cff, #9d6bff);
  --text: #eceefb;
  --muted: #9498b3;
  --line: rgba(255,255,255,.08);
  --r-lg: 26px;
  --r-md: 16px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.lenis.lenis-smooth { scroll-behavior: auto !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---- atmosphere: orbs + grain + grid ---- */
.atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.orb.b1 { width: 620px; height: 620px; left: -140px; top: -160px; background: radial-gradient(circle, #2f5bff, transparent 70%); }
.orb.b2 { width: 720px; height: 720px; right: -220px; top: 6%; background: radial-gradient(circle, #7c3aed, transparent 70%); opacity: .5; }
.orb.b3 { width: 560px; height: 560px; left: 30%; top: 60%; background: radial-gradient(circle, #4338ca, transparent 70%); opacity: .4; }
.atmos .mesh { position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 80% 0%, rgba(124,58,237,.18), transparent 60%),
  radial-gradient(50% 40% at 10% 20%, rgba(59,99,255,.18), transparent 60%); }
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---- intro / preloader — converging assembly ---- */
#intro { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
#intro .icore { display: flex; flex-direction: column; align-items: center; gap: 30px; }
#intro .iassemble { position: relative; width: 140px; height: 140px; }
#intro .iassemble .seg { position: absolute; left: 50%; top: 50%; width: 7px; height: 22px; margin: -11px 0 0 -3.5px; border-radius: 5px; background: var(--grad); box-shadow: 0 0 12px rgba(124,58,237,.55); transform: rotate(var(--a)) translateY(calc(-1 * var(--r, 56px))); }
#intro .iassemble .icore-mark { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 38% 32%, #7b8cff, #2a2f7a 75%); box-shadow: inset 0 0 0 1.5px rgba(190,200,255,.4), 0 8px 24px -6px rgba(124,58,237,.7); }
#intro .iassemble .icore-mark svg { width: 28px; height: 28px; }
#intro .ilogo { height: 46px; opacity: 0; }
#intro .ilogo img { height: 100%; width: auto; }
#intro .icap { font: 500 12px/1 'IBM Plex Mono', monospace; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }

/* ---- header ---- */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 20px 0; transition: background .4s, padding .4s, border-color .4s; border-bottom: 1px solid transparent; }
header.scrolled { background: rgba(8,9,18,.72); backdrop-filter: blur(16px); border-bottom-color: var(--line); padding: 13px 0; }
.bar { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
.brand { height: 30px; display: flex; align-items: center; }
.brand img { height: 100%; width: auto; }
nav.main { display: flex; gap: 34px; }
nav.main a { font: 600 14px/1 'Manrope'; color: var(--muted); transition: color .25s; }
nav.main a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 9px; font: 700 14px/1 'Manrope'; border-radius: 12px; padding: 13px 20px; transition: transform .25s var(--ease), box-shadow .25s; }
.btn.ghost { color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: rgba(255,255,255,.3); }
.btn.grad { color: #fff; background: var(--grad); box-shadow: 0 10px 30px -8px rgba(110,80,240,.7); }
.btn.grad:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(110,80,240,.85); }
.btn.lg { padding: 17px 28px; font-size: 16px; border-radius: 14px; }

/* ---- icon badge (mini gradient icon over text) ---- */
.ibadge { width: 44px; height: 44px; border-radius: 13px; display: inline-grid; place-items: center; position: relative; background: #0b0d1a; border: 1px solid var(--line); }
.ibadge::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .9; }
.ibadge svg { position: relative; }
.ibadge.sm { width: 34px; height: 34px; border-radius: 10px; }

/* gradient-stroke icon helper */
.gico { stroke: url(#rh-grad); }

/* eyebrow pill */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); font: 600 13px/1 'Manrope'; color: var(--muted); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px var(--violet); }
.eyebrow b { color: var(--text); font-weight: 700; }

/* ---- HERO ---- */
.hero { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; }
.hero .wrap { max-width: var(--maxw); margin: 0 auto; padding: 120px 40px 80px; width: 100%; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero .copy { max-width: 620px; }
.hero .badges { display: flex; gap: 12px; margin: 26px 0 24px; }
.hero h1 { font-family: 'Geologica', sans-serif; font-weight: 600; font-size: 72px; line-height: 1.02; letter-spacing: -.025em; }
.hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .word { display: inline-block; }
.hero .lede { margin-top: 26px; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 500px; }
.hero .actions { display: flex; gap: 14px; margin-top: 36px; align-items: center; }
.hero .mini-stats { display: flex; gap: 36px; margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero .mini-stats .ms .n { font-family: 'Geologica'; font-weight: 600; font-size: 32px; background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .mini-stats .ms .l { font-size: 13px; color: var(--muted); margin-top: 5px; }

/* scroll cue */
.scrollcue { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font: 600 11px/1 'IBM Plex Mono', monospace; letter-spacing: .2em; text-transform: uppercase; z-index: 2; }
.scrollcue .mouse { width: 24px; height: 38px; border: 1.5px solid rgba(255,255,255,.25); border-radius: 14px; position: relative; }
.scrollcue .mouse::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 3px; background: var(--grad); transform: translateX(-50%); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%,0); } 30% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,12px); } }

/* ---- DEVICE (CSS phone) ---- */
.stage { position: relative; display: grid; place-items: center; perspective: 1400px; }
.glowring { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: conic-gradient(from 0deg, #4d7cff, #8b5cf6, #a855f7, #4d7cff); filter: blur(60px); opacity: .35; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


/* floating chips around phone */
.fchip { position: absolute; display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 14px; background: rgba(16,19,34,.92); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(0,0,0,.7); font: 600 13px/1 'Manrope'; white-space: nowrap; z-index: 5; }
.fchip .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; }
.fchip small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; margin-top: 3px; }
.fchip.f1 { left: -78px; top: 130px; }
.fchip.f2 { right: -64px; top: 250px; }
.fchip.f3 { left: -52px; bottom: 96px; }

/* ---- section shell ---- */
.section { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 130px 40px; }
.shead { max-width: 720px; margin-bottom: 64px; }
.shead .eyebrow { margin-bottom: 22px; }
.shead h2 { font-family: 'Geologica'; font-weight: 600; font-size: 50px; line-height: 1.05; letter-spacing: -.02em; }
.shead h2 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shead p { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--muted); }

/* ---- pinned storyboard ---- */
.pin-wrap { position: relative; }
.pin { min-height: 100vh; display: flex; align-items: center; }
.pin .inner { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pin .stagecol { display: grid; place-items: center; }
.pin .steps { position: relative; }
.pstep { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; }
.pstep.live { opacity: 1; }
.pstep .num { font: 700 13px/1 'IBM Plex Mono', monospace; letter-spacing: .2em; color: var(--violet-2); margin-bottom: 18px; }
.pstep h3 { font-family: 'Geologica'; font-weight: 600; font-size: 40px; line-height: 1.08; letter-spacing: -.02em; }
.pstep p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 440px; }
.pstep .feat { margin-top: 26px; display: grid; gap: 14px; }
.pstep .feat .fi { display: flex; align-items: center; gap: 14px; font: 600 15px/1.3 'Manrope'; }
.prograil { display: flex; gap: 10px; margin-top: 40px; }
.prograil span { height: 4px; flex: 1; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.prograil span i { display: block; height: 100%; width: 0; background: var(--grad); }



/* reveal defaults — everything visible without JS (no-JS / crawler safe) */
.r-up, .r-fade, .r-sec { opacity: 1; }
/* When JS is active (.rv on <html>) sections hide, then reveal on .in-view
   added by the IntersectionObserver in site.js (with a 1s failsafe). */
.rv .r-sec {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.rv .r-sec.in-view {
  opacity: 1;
  transform: none;
}

/* hero promo + eyebrow stars */
.eyebrow .stars { display: inline-flex; }
.promo { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; font: 600 14px/1 'Manrope'; color: var(--muted); flex-wrap: wrap; }
.promo .tag { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px dashed rgba(139,92,246,.5); border-radius: 10px; color: var(--text); }
.promo .tag b { background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 1180px) { .btn.tel { display: none; } }

/* ---- footer cta ---- */
.fcta { position: relative; z-index: 1; max-width: var(--maxw); margin: 60px auto 0; padding: 0 40px 120px; }
.fcta .box { position: relative; overflow: hidden; border-radius: 32px; padding: 80px 60px; text-align: center; background: linear-gradient(120deg, #182142, #1b1530); border: 1px solid var(--line); }
.fcta .box .bg-orb { position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(80px); opacity: .5; }
.fcta .box .bg-orb.a { background: #3b6bff; left: -120px; top: -160px; }
.fcta .box .bg-orb.b { background: #8b5cf6; right: -120px; bottom: -180px; }
.fcta h2 { position: relative; font-family: 'Geologica'; font-weight: 600; font-size: 54px; line-height: 1.05; letter-spacing: -.02em; }
.fcta h2 .g { background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fcta p { position: relative; margin: 22px auto 36px; font-size: 19px; color: var(--muted); max-width: 520px; }
.fcta .actions { position: relative; display: flex; gap: 14px; justify-content: center; }

/* ---- SITE FOOTER ---- */
.site-foot { position: relative; z-index: 1; margin-top: 40px; }
.site-foot .foot-grad { height: 1px; max-width: var(--maxw); margin: 0 auto; background: linear-gradient(90deg, transparent, rgba(139,92,246,.6), rgba(77,124,255,.6), transparent); }
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 70px 40px 40px; }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.foot-top .fcol h4 { font: 700 13px/1 'Manrope'; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.foot-top .fcol a { display: block; color: #c3c7da; text-decoration: none; font: 500 15px/1 'Manrope'; padding: 9px 0; transition: color .2s, transform .2s; }
.foot-top .fcol a:hover { color: #fff; transform: translateX(3px); }
.foot-top .brandcol .brand { height: 30px; display: inline-flex; margin-bottom: 18px; }
.foot-top .brandcol .brand img { height: 100%; width: auto; }
.foot-top .brandcol p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 320px; margin-bottom: 20px; }
.foot-top .brandcol .foot-phone { display: inline-block; font-family: 'Geologica'; font-weight: 600; font-size: 24px; background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; text-decoration: none; }
.foot-top .brandcol .socials { display: flex; gap: 10px; margin-top: 22px; }
.foot-top .brandcol .soc { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 700 12px/1 'Manrope'; color: #c3c7da; text-decoration: none; background: #0e1120; border: 1px solid var(--line); position: relative; transition: color .2s; }
.foot-top .brandcol .soc::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .2s; }
.foot-top .brandcol .soc:hover { color: #fff; }
.foot-top .brandcol .soc:hover::before { opacity: 1; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); font: 500 13px/1.5 'Manrope'; color: var(--muted); }
.foot-bottom .promo-mini { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px dashed rgba(139,92,246,.5); border-radius: 999px; color: #c3c7da; }
.foot-bottom .promo-mini b { background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-bottom .legal { display: flex; gap: 20px; }
.foot-bottom .legal a { color: var(--muted); text-decoration: none; transition: color .2s; }
.foot-bottom .legal a:hover { color: #fff; }

@media (max-width: 1040px) {
  .hero .wrap, .pin .inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 56px; }
  nav.main { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- ASSEMBLED SHOWCASE ---- */
.showcase { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 120px 40px; }
.show-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.show-copy h2 { font-family: 'Geologica'; font-weight: 600; font-size: 48px; line-height: 1.05; letter-spacing: -.02em; margin: 22px 0 0; }
.show-copy h2 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.show-copy > p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 460px; }
.proc { margin-top: 32px; display: grid; gap: 16px; }
.proc .ps { display: flex; gap: 16px; align-items: flex-start; }
.proc .ps .pn { font: 600 13px/1 'IBM Plex Mono', monospace; color: var(--violet-2); padding-top: 3px; min-width: 22px; }
.proc .ps b { font: 700 16px/1.3 'Manrope'; display: block; }
.proc .ps small { color: var(--muted); font-size: 14px; }
.showcase .stage { position: relative; display: grid; place-items: center; perspective: 1400px; min-height: 580px; }
@media (max-width: 1040px) { .show-inner { grid-template-columns: 1fr; } }

/* ===========================================================
   3D PHONE — canvas stages, teardown steps, loader, credit
   =========================================================== */
.stage .hud { z-index: 1; }
.cv-stage { position: relative; z-index: 3; width: 460px; height: 600px; display: grid; place-items: center; }
.cv-stage > canvas { position: relative; z-index: 3; width: 100%; height: 100%; display: block; }
.cv-stage.asm { width: 420px; height: 560px; }

/* floating step caption over the teardown */
.cv-cap { position: absolute; z-index: 5; left: 50%; bottom: 3%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: rgba(14,17,32,.82); border: 1px solid var(--line); backdrop-filter: blur(10px); font: 600 13px/1 'Manrope'; white-space: nowrap; opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
.hero.in-teardown .cv-cap { opacity: 1; }
.cv-cap .cn { font: 700 12px/1 'IBM Plex Mono', monospace; color: var(--violet-2); letter-spacing: .06em; }

/* lazy-load indicator */
.cv-load { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; transition: opacity .5s; }
.cv-load.done { opacity: 0; pointer-events: none; }
.cv-load .cvl-bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.cv-load .cvl-bar i { display: block; height: 100%; width: 6%; background: var(--grad); transition: width .25s; }
.cv-load .cvl-t { font: 500 11px/1 'IBM Plex Mono', monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* hero teardown steps — revealed while the section is pinned */
.hero .copy { position: relative; }
.hero-steps { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.hero.in-teardown .copy > :not(.hero-steps) { opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.hero.in-teardown .hero-steps { opacity: 1; pointer-events: auto; }
.hs-kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 'Manrope'; color: var(--muted); }
.hs-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px var(--violet); }
.hs-list { display: grid; gap: 6px; }
.hs { display: flex; gap: 18px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 1px solid transparent; transition: background .35s var(--ease), border-color .35s, transform .35s; }
.hs .hn { font: 700 14px/1 'IBM Plex Mono', monospace; color: var(--muted); padding-top: 4px; transition: color .35s; }
.hs .ht b { font-family: 'Geologica'; font-weight: 600; font-size: 22px; line-height: 1.1; display: block; transition: color .35s; }
.hs .ht small { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 420px; opacity: .5; transition: opacity .35s; }
.hs.live { background: linear-gradient(120deg, rgba(77,124,255,.12), rgba(168,85,247,.1)); border-color: rgba(139,92,246,.32); }
.hs.live .hn { color: var(--violet-2); }
.hs.live .ht b { background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs.live .ht small { opacity: 1; color: #c3c7da; }
.hs-rail { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 6px; }
.hs-rail i { display: block; height: 100%; width: 0%; background: var(--grad); transition: width .12s linear; }

/* footer model credit (CC-BY-4.0) */
.foot-credit { max-width: var(--maxw); margin: 0 auto; padding: 16px 40px 0; font: 500 12px/1.6 'Manrope'; color: var(--muted); opacity: .85; }
.foot-credit a { color: #c3c7da; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.18); transition: color .2s; }
.foot-credit a:hover { color: #fff; }

@media (max-width: 1040px) {
  .cv-stage { width: 88vw; max-width: 440px; height: 68vh; }
  .cv-stage.asm { width: 86vw; max-width: 380px; height: 60vh; }
  .hero-steps { position: static; opacity: 1; pointer-events: auto; margin-top: 30px; }
  .hero.in-teardown .copy > :not(.hero-steps) { opacity: 1; pointer-events: auto; }
}

/* ===========================================================
   MOBILE NAVIGATION
   =========================================================== */

/* ---- burger button ---- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border, var(--line));
  background: rgba(255, 255, 255, .03);
  flex-shrink: 0;
  transition: border-color .25s, background .25s;
}
.burger:hover {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .25s, width .35s var(--ease);
  transform-origin: center;
}
/* X-state when nav is open */
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- mobile nav panel ---- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(300px, 85vw);
  height: 100vh;
  background: var(--panel);
  border-left: 1px solid var(--line);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 80px 28px 40px;
  gap: 4px;
  overflow-y: auto;
  transition: right .35s var(--ease);
}
.mobile-nav.open {
  right: 0;
}
/* links inside mobile nav */
.mobile-nav > a {
  display: block;
  padding: 13px 16px;
  border-radius: 12px;
  font: 600 16px/1.3 'Manrope', sans-serif;
  color: var(--muted);
  transition: color .22s, background .22s;
}
.mobile-nav > a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}
/* .nav-links wrapper — forward-compat if ever added */
.mobile-nav .nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}
.mobile-nav .nav-links a {
  display: block;
  padding: 13px 16px;
  border-radius: 12px;
  font: 600 16px/1.3 'Manrope', sans-serif;
  color: var(--muted);
  transition: color .22s, background .22s;
}
.mobile-nav .nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

/* ---- overlay (rendered via body pseudo-element — no extra HTML needed) ---- */
.nav-overlay,
body.nav-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
body.nav-open::before {
  opacity: 1;
  pointer-events: auto;
}
/* .nav-overlay standalone element (if JS adds it to DOM) */
.nav-overlay { opacity: 0; }
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ---- body scroll lock ---- */
body.nav-open { overflow: hidden; }

/* ---- responsive visibility ---- */
@media (max-width: 768px) {
  .burger { display: flex; }
}
@media (min-width: 769px) {
  .burger { display: none !important; }
  .mobile-nav { display: none !important; }
}
@media (max-width: 768px) {
  nav.main { display: none; }
  .bar { padding: 0 20px; }
}
