/* =========================================================
   MEA-Studios — styles
   Dark theme · emerald neon (MEA logo) · cyan accent (BLB diamonds)
   ========================================================= */

:root {
  --bg: #05080a;
  --bg-2: #0a1114;
  --text: #e8f3ee;
  --muted: #8fa59c;
  --neon: #2bffa0;
  --neon-2: #3de0ff;
  --neon-soft: rgba(43, 255, 160, .14);
  --glass: rgba(255, 255, 255, .045);
  --glass-strong: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .1);
  --line-neon: rgba(43, 255, 160, .35);
  --radius: 22px;
  --pad: clamp(16px, 5vw, 64px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 80% -10%, rgba(43,255,160,.09), transparent 60%),
              radial-gradient(900px 600px at -10% 40%, rgba(61,224,255,.06), transparent 60%),
              var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
.mono { font-family: var(--f-mono); letter-spacing: .08em; font-size: .78rem; text-transform: uppercase; }
.neon {
  color: var(--neon);
  text-shadow: 0 0 18px rgba(43,255,160,.55), 0 0 42px rgba(43,255,160,.25);
}
::selection { background: var(--neon); color: #001a0d; }

/* ---------- background layers ---------- */
#field { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; }
.cursor-glow {
  position: fixed; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
  left: 0; top: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(43,255,160,.10), transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity .4s;
}
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 100; }
.progress span {
  display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--neon), var(--neon-2));
  box-shadow: 0 0 12px var(--neon);
}

/* ---------- glass ---------- */
.glass {
  background: linear-gradient(160deg, var(--glass-strong), var(--glass));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ---------- buttons ---------- */
.btn {
  --c: var(--neon);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.6em; border-radius: 999px; border: 1px solid var(--c);
  background: var(--c); color: #001a0d; font: 600 .95rem var(--f-body);
  cursor: pointer; position: relative; overflow: hidden;
  box-shadow: 0 0 0 0 rgba(43,255,160,.0), 0 0 24px rgba(43,255,160,.35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px var(--neon-soft), 0 0 40px rgba(43,255,160,.55); }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--neon-2); outline-offset: 3px;
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn-sm { padding: .6em 1.2em; font-size: .85rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(var(--max), calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: rgba(5,8,10,.55); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(5,8,10,.82); border-color: var(--line-neon); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 1rem var(--f-display); }
.brand img { filter: drop-shadow(0 0 6px rgba(43,255,160,.6)); }
.brand em { font-style: normal; color: var(--muted); font-weight: 400; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text small { font: 400 .58rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--neon); opacity: .8; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { padding: .5em 1em; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover, .nav-links a.current { color: var(--text); background: var(--glass-strong); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 130px var(--pad) 80px;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
  position: relative;
}
.tag {
  display: inline-flex; align-items: center; gap: 10px; padding: .55em 1em; margin: 0 0 28px;
  border: 1px solid var(--line-neon); border-radius: 999px; color: var(--neon); background: var(--neon-soft);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 800; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 560px; margin: 26px 0 34px; }
.lead strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; display: grid; place-items: center; }
.orbit { position: relative; width: min(420px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.r1 { border-color: var(--line-neon); box-shadow: 0 0 60px -10px rgba(43,255,160,.35) inset; animation: spin 40s linear infinite; border-style: dashed; }
.r2 { inset: 12%; animation: spin 26s linear infinite reverse; border-top-color: var(--neon-2); }
.r3 { inset: 24%; animation: spin 14s linear infinite; }
.r3 i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: var(--neon-2); box-shadow: 0 0 14px var(--neon-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* plane circling the orbit, with a fading contrail behind it */
.flight { position: absolute; inset: 6%; border-radius: 50%; animation: spin 16s linear infinite; pointer-events: none; z-index: 2; }
.flight::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from -70deg, transparent 0deg, rgba(43,255,160,.55) 68deg, transparent 70deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
}
.plane {
  position: absolute; top: 0; left: 50%; width: 30px; height: 30px;
  transform: translate(-50%, -50%) rotate(90deg);
  fill: var(--text);
  filter: drop-shadow(0 0 6px var(--neon)) drop-shadow(0 0 14px rgba(43,255,160,.6));
}
@media (max-width: 720px) { .plane { width: 24px; height: 24px; } }
@media (prefers-reduced-motion: reduce) { .flight { animation: none; transform: rotate(35deg); } }

.logo-core {
  width: 62%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; gap: 14px; text-align: center;
  border-color: var(--line-neon);
}
.logo-core img { width: 80%; margin: 0 auto; filter: drop-shadow(0 0 14px rgba(43,255,160,.55)); animation: float 6s ease-in-out infinite; }
.logo-core.has-badge { padding: 0; overflow: hidden; display: block; box-shadow: 0 0 0 1px var(--line-neon), 0 0 60px -10px rgba(43,255,160,.45), inset 0 0 30px rgba(0,0,0,.6); }
.logo-core .badge-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; filter: none; animation: none; }
.logo-core span { font-size: .58rem; color: var(--muted); }
@keyframes float { 50% { transform: translateY(-8px); } }
.hud {
  position: absolute; right: -10px; bottom: 0; list-style: none; margin: 0; padding: 14px 18px;
  display: grid; gap: 6px; font-size: .7rem; border-radius: 14px;
}
.hud li { display: flex; justify-content: space-between; gap: 22px; }
.hud b { color: var(--muted); font-weight: 400; }
.hud .ok { color: var(--neon); }

.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); color: var(--muted); display: grid; justify-items: center; gap: 10px; font-size: .65rem; }
.scroll-cue span { width: 1px; height: 40px; background: linear-gradient(var(--neon), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: rgba(43,255,160,.025); }
.track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; }
.track span { font: 600 clamp(1.1rem, 2.4vw, 1.7rem) var(--f-display); color: transparent; -webkit-text-stroke: 1px rgba(232,243,238,.35); white-space: nowrap; }
.track span:nth-child(3n+1) { color: var(--neon); -webkit-text-stroke: 0; text-shadow: 0 0 16px rgba(43,255,160,.4); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 140px) var(--pad); }
.section-head { margin-bottom: clamp(36px, 6vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; }
.eyebrow { color: var(--neon); margin: 0 0 16px; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.about-card { padding: clamp(24px, 4vw, 44px); }
.about-card p { margin: 0 0 18px; color: var(--muted); }
.about-card strong { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips span { padding: .4em .9em; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; background: var(--glass); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat { padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 160px; transition: border-color .3s, transform .3s var(--ease); }
.stat:hover { border-color: var(--line-neon); transform: translateY(-4px); }
.stat b { font: 800 clamp(2rem, 4vw, 2.8rem) var(--f-display); color: var(--neon); text-shadow: 0 0 20px rgba(43,255,160,.4); }
.stat span { color: var(--muted); font-size: .9rem; }
.stat:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* BLB: interactive mini-site (styled like the real site: white + #790505) */
.demo-badge { margin-left: auto; padding: 3px 10px; border-radius: 999px; color: var(--neon); border: 1px solid var(--line-neon); font-size: .6rem; animation: pulse 2.4s infinite; }
.featured .device-screen { aspect-ratio: 4 / 3.3; color: #2a1a1c; font-family: var(--f-body); }
.mini-nav button { font: 600 .7rem var(--f-body); color: #790505; background: none; border: 0; padding: 4px 2px; cursor: pointer; border-bottom: 2px solid transparent; }
.mini-nav button.on { border-bottom-color: #790505; }
.langs { margin-left: auto; display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: #f1e7e8; }
.langs button { color: #6b5557; padding: 3px 8px; border-radius: 999px; font-size: .62rem; border: 0; }
.langs button.active { background: #790505; color: #fff; }
.panel { position: absolute; inset: 42px 0 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s; background: #fbf8f8; }
.panel.active { opacity: 1; visibility: visible; transform: none; }
.panel.scroll { overflow-y: auto; padding: 16px 18px 70px; scrollbar-width: thin; }
.panel .shot { inset: 0; }
.home-overlay { position: absolute; inset: auto 0 0; padding: 40px 20px 20px; background: linear-gradient(transparent, rgba(30,5,8,.85)); color: #fff; z-index: 2; }
.home-overlay h4 { margin: 0 0 4px; font: 800 clamp(1rem, 2vw, 1.3rem) var(--f-display); }
.home-overlay p { margin: 0 0 12px; font-size: .8rem; opacity: .9; max-width: 380px; }
.blb-btn { font: 700 .75rem var(--f-body); color: #fff; background: #790505; border: 2px solid #790505; padding: .6em 1.2em; border-radius: 999px; cursor: pointer; transition: background .2s, transform .2s; }
.blb-btn:hover { background: #5c0404; transform: translateY(-1px); }
.blb-btn.ghost { background: transparent; color: #790505; }
.blb-btn.ghost:hover { background: #f4e9ea; }
.blb-btn:focus-visible, .mini-nav button:focus-visible { outline: 3px solid #E2AD45; outline-offset: 2px; }
.blb-fab { position: absolute; z-index: 4; left: 12px; bottom: 12px; padding: 7px 14px; border-radius: 999px; background: #790505; color: #fff; font: 700 .7rem var(--f-body); box-shadow: 0 6px 18px rgba(90,3,3,.35), 0 0 0 2px #fff; transition: transform .2s; }
.blb-fab:hover { transform: scale(1.06); }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.panel h4 { margin: 0; font: 800 1rem var(--f-display); color: #790505; }
.ev-filters { display: flex; gap: 4px; }
.ev-filters button { font: 600 .65rem var(--f-body); padding: 4px 10px; border-radius: 999px; border: 1px solid #e3d3d5; background: #fff; color: #6b5557; cursor: pointer; }
.ev-filters button.active { background: #790505; border-color: #790505; color: #fff; }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ev-month { font: 600 .6rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #a08385; margin: 6px 0 0; }
.ev { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid #efe4e5; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ev:hover { border-color: #d6b7ba; transform: translateX(2px); }
.ev.open { border-color: #790505; box-shadow: 0 6px 18px -8px rgba(121,5,5,.35); }
.ev-date { display: grid; place-items: center; align-content: center; border-radius: 10px; background: #790505; color: #fff; line-height: 1; height: 48px; }
.ev-date b { font: 800 1.05rem var(--f-display); }
.ev-date small { font-size: .55rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.ev h5 { margin: 0; font: 600 .8rem/1.3 var(--f-body); color: #2a1a1c; }
.ev-meta { font-size: .66rem; color: #8b7072; margin-top: 2px; }
.ev-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.ev.open .ev-more { grid-template-rows: 1fr; }
.ev-more > div { overflow: hidden; }
.ev-more p { margin: 8px 0; font-size: .7rem; color: #5b4547; }
.ev-more .blb-btn { font-size: .62rem; padding: .45em 1em; }
.ev.hide, .ev-month.hide { display: none; }

.join { display: grid; gap: 12px; }
.steps { display: flex; gap: 6px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: #ecdfe0; transition: background .3s; }
.steps span.on { background: #790505; }
.step { display: none; border: 0; padding: 0; margin: 0; animation: pop .35s var(--ease); }
.step.active { display: block; }
.step legend { font: 800 .95rem var(--f-display); color: #790505; margin-bottom: 10px; padding: 0; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pick[hidden] { display: none; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px solid #e3d3d5; background: #fff; font-size: .7rem; color: #5b4547; transition: all .2s; }
.pick input:checked + span { background: #790505; border-color: #790505; color: #fff; }
.pick input:focus-visible + span { outline: 3px solid #E2AD45; outline-offset: 1px; }
.j-label { width: 100%; margin: 4px 0 6px; font-size: .68rem; font-weight: 600; color: #6b5557; }
.j-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.j-grid label { display: grid; gap: 4px; font-size: .66rem; font-weight: 600; color: #6b5557; }
.j-grid input { font: 400 .8rem var(--f-body); padding: 8px 10px; border-radius: 8px; border: 1px solid #dcc9cb; background: #fff; color: #2a1a1c; }
.j-grid input:focus { outline: none; border-color: #790505; box-shadow: 0 0 0 3px rgba(121,5,5,.12); }
.j-grid input.bad { border-color: #d0021b; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .72rem; color: #5b4547; margin-bottom: 10px; cursor: pointer; }
.check input { accent-color: #790505; margin-top: 2px; }
.done { text-align: center; padding: 18px 0; }
.done.active { display: block; }
.done b { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #790505; color: #fff; font-size: 1.3rem; margin-bottom: 10px; animation: pop .5s var(--ease); }
.done h4 { margin-bottom: 6px; }
.done p { color: #8b7072; font-size: .6rem; margin: 0 0 14px; }
.j-nav { display: flex; justify-content: space-between; }
.j-nav [hidden] { display: none; }
.j-nav #joinNext { margin-left: auto; }
.j-err { margin: 0; min-height: 1em; font-size: .66rem; color: #d0021b; }
.featured-info .hint { display: block; margin-top: 10px; color: var(--neon); font-size: .9rem; }

/* BLB: under the hood */
.hood { padding: clamp(22px, 4vw, 40px); margin-bottom: 20px; display: grid; gap: 28px; }
.hood.hide { display: none; }
.hood-head h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.hood-head .eyebrow { margin-bottom: 10px; }
.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack span { display: grid; padding: .7em 1.1em; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.25); font-size: .75rem; color: var(--muted); transition: border-color .25s, transform .25s var(--ease); }
.stack span:hover { border-color: var(--line-neon); transform: translateY(-2px); }
.stack b { color: var(--text); font-size: .95rem; font-weight: 600; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(43,255,160,.06), transparent); }
.metric b { display: block; font: 800 clamp(1.6rem, 3vw, 2.2rem) var(--f-display); color: var(--neon); text-shadow: 0 0 18px rgba(43,255,160,.35); }
.metric span { color: var(--muted); font-size: .85rem; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 28px; }
.features li { display: flex; gap: 12px; }
.features i { color: var(--neon-2); font-style: normal; font-size: .7rem; line-height: 1.9; text-shadow: 0 0 10px var(--neon-2); }
.features h4 { margin: 0 0 4px; font: 600 1rem var(--f-body); }
.features p { margin: 0; color: var(--muted); font-size: .9rem; }
.features code { font: .8em var(--f-mono); color: var(--neon); background: rgba(43,255,160,.08); padding: .1em .35em; border-radius: 4px; }

/* profile / cv */
.profile-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 20px; margin-bottom: 20px; }
.pass { padding: 0; overflow: hidden; display: flex; flex-direction: column; border-color: var(--line-neon); }
.pass-top { display: flex; justify-content: space-between; padding: 14px 24px; background: linear-gradient(90deg, rgba(43,255,160,.16), rgba(61,224,255,.08)); border-bottom: 1px solid var(--line); font-size: .65rem; }
.pass-top .ok { color: var(--neon); }
.pass-id { display: flex; gap: 18px; align-items: center; padding: 26px 24px 18px; }
.avatar { flex: none; width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(43,255,160,.25), #071009 70%); border: 1px solid var(--line-neon); box-shadow: 0 0 30px -8px rgba(43,255,160,.5); }
.avatar { position: relative; width: 110px; height: 110px; border-radius: 28px; padding: 3px; background: linear-gradient(140deg, var(--neon), var(--neon-2) 60%, transparent); }
.avatar img { width: 70%; filter: drop-shadow(0 0 8px rgba(43,255,160,.6)); }
.avatar .photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 25px; filter: none; }
.avatar .badge { position: absolute; right: -10px; bottom: -8px; width: 46px; padding: 6px 7px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-neon); filter: drop-shadow(0 0 6px rgba(43,255,160,.5)); }

.about-card { display: grid; grid-template-columns: 190px 1fr; column-gap: 28px; align-content: start; }
.about-card > :not(.portrait) { grid-column: 2; }
.portrait { grid-row: 1 / span 3; margin: 0; align-self: start; position: relative; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 18px; border: 1px solid var(--line-neon); box-shadow: 0 0 40px -12px rgba(43,255,160,.55); }
.portrait::after { content: ""; position: absolute; inset: 0 0 auto; aspect-ratio: 4 / 5; border-radius: 18px; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(5,8,10,.6)); }
.portrait figcaption { margin-top: 10px; color: var(--muted); font-size: .58rem; }
.pass-label { margin: 0 0 4px; color: var(--muted); font-size: .6rem; }
.pass-id h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.pass-role { margin: 6px 0 0; color: var(--neon); font-size: .9rem; }
.route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 8px 24px 20px; }
.route b { display: block; font: 800 2rem var(--f-display); letter-spacing: .02em; }
.route span { color: var(--muted); font-size: .58rem; }
.route > div:last-child { text-align: right; }
.route-line { position: relative; height: 1px; background: repeating-linear-gradient(90deg, var(--line-neon) 0 6px, transparent 6px 12px); }
.route-line i { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); color: var(--neon); font-style: normal; text-shadow: 0 0 10px var(--neon); animation: fly 6s var(--ease) infinite; }
@keyframes fly { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.pass-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0; padding: 18px 24px; border-top: 1px dashed var(--line); }
.pass-rows dt { color: var(--muted); font-size: .58rem; }
.pass-rows dd { margin: 3px 0 0; font-size: .92rem; }
.pass-stub { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-top: 1px dashed var(--line); position: relative; }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-neon); }
.pass-stub::before { left: -12px; } .pass-stub::after { right: -12px; }
.pass-contact { display: grid; gap: 4px; font-size: .9rem; }
.pass-contact a:hover { color: var(--neon); }
.barcode { width: 120px; height: 42px; flex: none; opacity: .75;
  background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 5px, transparent 5px 8px, var(--text) 8px 11px, transparent 11px 12px); }

.cv-side { display: grid; gap: 20px; }
.cv-block { padding: 24px 26px; }
.log { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--line-neon); display: grid; gap: 18px; }
.log li { position: relative; }
.log li::before { content: ""; position: absolute; left: -23px; top: 6px; width: 9px; height: 9px; transform: rotate(45deg); background: var(--bg); border: 1px solid var(--neon); box-shadow: 0 0 10px rgba(43,255,160,.5); }
.log li:first-child::before { background: var(--neon); }
.log span { color: var(--neon); font-size: .62rem; }
.log h4, .skill-groups h4, .strength h4 { margin: 4px 0 4px; font: 600 1.02rem var(--f-body); }
.log p, .strength p { margin: 0; color: var(--muted); font-size: .9rem; }
.skill-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill-groups h4 { margin-top: 0; color: var(--text); }
.skill-groups .chips { margin: 8px 0 0; gap: 6px; }
.skill-groups .chips span { font-size: .78rem; }

.strengths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.strength { padding: 24px; transition: transform .3s var(--ease), border-color .3s; }
.strength:hover { transform: translateY(-5px); border-color: var(--line-neon); }
.strength b { font: 800 .8rem var(--f-mono); color: var(--neon-2); }
.profile-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); }
.profile-foot p { margin: 0; }

/* print: "Save profile as PDF" prints only the profile */
@media print {
  body { background: #fff; color: #111; }
  body.print-cv > *:not(main), body.print-cv main > *:not(#profile), #field, .cursor-glow, .progress, .profile-foot .btn { display: none !important; }
  body.print-cv #profile { padding: 0; }
  body.print-cv .glass { background: #fff; border-color: #ccc; box-shadow: none; backdrop-filter: none; }
  body.print-cv .neon, body.print-cv .eyebrow, body.print-cv .pass-role, body.print-cv .log span { color: #0a7a4c; text-shadow: none; }
  body.print-cv .log p, body.print-cv .strength p, body.print-cv .pass-rows dt { color: #444; }
  body.print-cv .barcode { background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 5px); }
}

/* work */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button, .screen-tabs button {
  font: 500 .9rem var(--f-body); color: var(--muted); background: var(--glass); border: 1px solid var(--line);
  padding: .55em 1.2em; border-radius: 999px; cursor: pointer; transition: all .25s var(--ease);
}
.filters button:hover, .screen-tabs button:hover { color: var(--text); border-color: var(--line-neon); }
.filters button.active, .screen-tabs button.active { color: #001a0d; background: var(--neon); border-color: var(--neon); box-shadow: 0 0 20px rgba(43,255,160,.35); }

.featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 48px); padding: clamp(18px, 3vw, 32px); margin-bottom: 20px; align-items: center; }
.device { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0b1013; box-shadow: 0 30px 80px -30px rgba(43,255,160,.25); transform-style: preserve-3d; }
.device-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #0f171b; }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3a40; }
.device-bar i:first-child { background: #ff5f57; } .device-bar i:nth-child(2) { background: #febc2e; } .device-bar i:nth-child(3) { background: #28c840; }
.url { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--muted); text-transform: none; font-size: .7rem; }
.device-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.mini-nav {
  position: absolute; z-index: 3; inset: 0 0 auto; display: flex; align-items: center; gap: 14px; padding: 8px 14px;
  background: rgba(255,255,255,.94); color: #9d2235; font: 600 .68rem var(--f-body);
}
.mini-nav img { width: 26px; height: 26px; border-radius: 50%; }
.mini-nav em { margin-left: auto; font-style: normal; color: #555; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.shot.active { opacity: 1; transform: scale(1); }
.shot-caption { position: absolute; z-index: 3; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(5,8,10,.75); color: var(--neon); backdrop-filter: blur(8px); font-size: .68rem; }
.featured-info h3 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: 16px; }
.featured-info > p { color: var(--muted); margin: 0 0 22px; }
.screen-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 28px; font-size: .7rem; }
.specs div { border-left: 2px solid var(--line-neon); padding-left: 12px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 4px 0 0; color: var(--text); text-transform: none; letter-spacing: .02em; font-size: .8rem; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.video-media { background: radial-gradient(circle at 70% 30%, rgba(255,122,144,.18), transparent 55%), #0d0a10; }
.timeline-ui { width: 78%; position: relative; display: grid; gap: 10px; justify-items: start; }
.timeline-ui .play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; color: #001a0d; background: var(--neon); box-shadow: 0 0 16px rgba(43,255,160,.5); }
.timeline-ui .tracks { width: 100%; display: grid; gap: 5px; }
.timeline-ui .tracks i { height: 9px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(61,224,255,.55) 0 22%, transparent 22% 24%); }
.timeline-ui .tracks i:nth-child(2) { background: repeating-linear-gradient(90deg, rgba(43,255,160,.55) 0 30%, transparent 30% 33%); }
.timeline-ui .tracks i:nth-child(3) { height: 6px; background: repeating-linear-gradient(90deg, rgba(255,122,144,.5) 0 12%, transparent 12% 14%); }
.timeline-ui .playhead { position: absolute; top: 40px; bottom: 18px; left: 20%; width: 2px; background: #fff; box-shadow: 0 0 8px #fff; animation: scrub 4s linear infinite; }
.timeline-ui em { font-style: normal; font-size: .6rem; color: var(--muted); }
@keyframes scrub { to { left: 98%; } }
.card { overflow: hidden; cursor: pointer; transition: border-color .3s, opacity .4s, transform .4s var(--ease); transform-style: preserve-3d; }
.card:hover { border-color: var(--line-neon); }
.card.hide, .featured.hide { display: none; }
.card-media { aspect-ratio: 16 / 10; display: grid; place-items: center; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.mea-media { background: radial-gradient(circle at 50% 60%, rgba(43,255,160,.18), transparent 60%), #071009; }
.mea-media img { width: 62%; filter: drop-shadow(0 0 16px rgba(43,255,160,.6)); transition: transform .6s var(--ease); }
.card:hover .mea-media img { transform: scale(1.08); }
.frodo-media { background: radial-gradient(circle at 30% 30%, rgba(61,224,255,.25), transparent 55%), #061016; }
.frodo-ui { width: 70%; padding: 16px; border-radius: 14px; border: 1px solid rgba(61,224,255,.35); background: rgba(255,255,255,.04); display: grid; gap: 8px; font-size: .62rem; }
.frodo-ui span { color: var(--neon-2); }
.frodo-ui b { font-weight: 400; color: var(--text); }
.frodo-ui i { height: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--neon-2), transparent); }
.frodo-ui i:nth-of-type(2) { width: 70%; } .frodo-ui i:nth-of-type(3) { width: 45%; }
.next-media { background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(43,255,160,.05) 14px 15px); }
.next-media span { width: 70px; height: 70px; border-radius: 50%; border: 1px dashed var(--neon); display: grid; place-items: center; font-size: 1.8rem; color: var(--neon); transition: transform .5s var(--ease); }
.card:hover .next-media span { transform: rotate(90deg); }
.card-body { padding: 22px 24px 26px; }
.card-body .eyebrow { margin-bottom: 8px; font-size: .68rem; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card-body p:last-child { margin: 0; color: var(--muted); font-size: .95rem; }

/* process */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--neon), var(--neon-2), transparent); }
.timeline li { padding: 28px 24px; position: relative; transition: transform .3s var(--ease), border-color .3s; }
.timeline li:hover { transform: translateY(-6px); border-color: var(--line-neon); }
.timeline li span { color: var(--neon); font-size: .65rem; }
.timeline h3 { font-size: 1.25rem; margin: 14px 0 10px; }
.timeline p { color: var(--muted); margin: 0; font-size: .95rem; }

/* contact */
.contact .section-head { text-align: center; }
.contact .lead { margin: 20px auto 0; }
.form { max-width: 760px; margin: 0 auto; padding: clamp(22px, 4vw, 44px); display: grid; gap: 22px; position: relative; overflow: hidden; }
.form::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--neon) 80%, var(--neon-2) 90%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: border-spin 6s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes border-spin { to { --a: 360deg; } }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; padding: 22px 16px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.3);
  color: var(--text); font: 400 1rem var(--f-body); resize: vertical; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 4px var(--neon-soft), 0 0 24px rgba(43,255,160,.2); }
.field span { position: absolute; left: 17px; top: 16px; color: var(--muted); pointer-events: none; transition: all .2s var(--ease); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: 6px; font-size: .7rem; color: var(--neon); letter-spacing: .06em; }
.field.invalid input, .field.invalid textarea { border-color: #ff5f7a; }
.types { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.types legend { color: var(--muted); margin-bottom: 10px; font-size: .68rem; }
.types label { cursor: pointer; }
.types input { position: absolute; opacity: 0; }
.types span { display: inline-block; padding: .55em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); transition: all .25s; }
.types input:checked + span { border-color: var(--neon); color: var(--neon); background: var(--neon-soft); box-shadow: 0 0 18px rgba(43,255,160,.2); }
.types input:focus-visible + span { outline: 2px solid var(--neon-2); outline-offset: 2px; }
.range { display: grid; gap: 12px; }
.range > span { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; }
.range output { color: var(--neon); }
.range input { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--neon) var(--p, 13%), var(--line) var(--p, 13%)); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--neon); box-shadow: 0 0 14px var(--neon); cursor: pointer; }
.range input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--neon); box-shadow: 0 0 14px var(--neon); cursor: pointer; }
.btn-send { justify-self: start; padding-inline: 2.2em; }
.btn-send.sending span::after { content: " ···"; animation: pulse 1s infinite; }
.form-status { margin: 0; min-height: 1.2em; color: var(--neon); font-size: .7rem; }
.form-status.err { color: #ff7a90; }
.compose { display: grid; gap: 12px; padding: 18px; border-radius: 16px; border: 1px solid var(--line-neon); background: rgba(43,255,160,.05); }
.compose p { margin: 0; color: var(--muted); }
.compose .addr { color: var(--neon); user-select: all; }
.compose textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: var(--text); font: 400 .9rem/1.5 var(--f-body); resize: vertical; }
.compose-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.compose-actions .btn { padding: .7em 1.2em; font-size: .85rem; }
.socials { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.socials a { padding: .8em 1.4em; border-radius: 999px; transition: border-color .25s, color .25s; }
.socials a:hover { border-color: var(--neon); color: var(--neon); }

/* footer */
.footer { max-width: var(--max); margin: 0 auto; padding: 40px var(--pad) 50px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); }
.footer p { margin: 0; font-size: .68rem; }
.footer a { font-size: .68rem; } .footer a:hover { color: var(--neon); }

/* modal */
.modal { max-width: min(560px, calc(100% - 32px)); width: 100%; padding: 36px; color: var(--text); background: rgba(10,17,20,.92); }
.modal::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal h3 { font-size: 1.6rem; margin: 6px 0 14px; }
.modal p { color: var(--muted); }
.modal ul { color: var(--muted); padding-left: 1.2em; }
.modal .btn { margin-top: 10px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 1.4rem; cursor: pointer; }
.modal-close:hover { border-color: var(--neon); color: var(--neon); }

/* ---------- scroll reveal ---------- */
/* Content is visible at rest; where supported it rises in as it scrolls into view */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 120px; }
  .hero-visual { order: -1; }
  .orbit { width: min(320px, 74vw); }
  .hud { right: 0; bottom: -10px; }
  .about-grid, .featured { grid-template-columns: 1fr; }
  .timeline, .grid, .strengths { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; border-radius: 20px; background: rgba(5,8,10,.95); border: 1px solid var(--line);
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: all .3s var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a:not(.btn) { padding: .9em 1em; }
  .nav-links .btn { margin-top: 6px; }
  .hero { min-height: auto; padding-bottom: 100px; }
  .hud { display: none; }
  .tag { font-size: .6rem; letter-spacing: .04em; }
  .grid, .timeline, .row, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 130px; padding: 20px; }
  .specs { grid-template-columns: 1fr; }
  .mini-nav span:nth-of-type(n+3) { display: none; }
  .features, .strengths, .skill-groups { grid-template-columns: 1fr; }
  .pass-rows { grid-template-columns: 1fr; }
  .about-card { grid-template-columns: 1fr; }
  .about-card > :not(.portrait) { grid-column: 1; }
  .portrait { grid-row: auto; width: 100%; max-width: 260px; margin-bottom: 20px; }
  .pass-id { flex-direction: column; align-items: flex-start; }
  .route b { font-size: 1.5rem; }
  .barcode { width: 80px; }
  .brand-text small { display: none; }
  .url { display: none; }
  .featured .device-screen { aspect-ratio: 3 / 4.2; }
  .j-grid { grid-template-columns: 1fr; }
  .mini-nav { gap: 8px; padding: 8px 10px; }
  .mini-nav [data-go="0"] { display: none; }
  .btn-send { justify-self: stretch; }
  .footer { justify-content: center; text-align: center; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}


/* =========================================================
   Added: services · TikTok · FAQ · Netlify form
   ========================================================= */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; transition: transform .3s var(--ease), border-color .3s; }
.plan:hover { transform: translateY(-6px); border-color: var(--line-neon); }
.plan.plan--hot { border-color: var(--line-neon); background: linear-gradient(160deg, rgba(43,255,160,.10), var(--glass)); box-shadow: 0 30px 80px -40px rgba(43,255,160,.45), inset 0 1px 0 rgba(255,255,255,.06); }
.plan-badge { position: absolute; top: -13px; left: 28px; border-radius: 999px !important; padding: 6px 12px !important; font: 600 .65rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--neon); color: #001a0d; padding: 5px 10px; border-radius: 6px; box-shadow: 0 0 20px rgba(43,255,160,.5); }
.plan .eyebrow { margin-bottom: 10px; }
.plan h3 { font-size: 1.3rem; margin-bottom: 10px; }
.plan-for { color: var(--muted); margin: 0 0 8px; }
.plan ul { list-style: none; padding: 0; margin: 10px 0 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { position: relative; padding-left: 24px; font-size: .98rem; }
.plan li::before { content: "◆"; position: absolute; left: 0; top: 0; color: var(--neon); font-size: .62rem; line-height: 2.2; text-shadow: 0 0 10px rgba(43,255,160,.6); }
.plan-time { color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); margin: 0 0 18px; }
.plan .btn { width: 100%; justify-content: center; }

.tt-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(40px, 7vw, 100px); align-items: center; }
.tt-points { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.tt-points li { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.tt-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); flex: none; }
.tt-icon { width: 18px; height: 18px; fill: currentColor; }
.phone {
  position: relative; width: 340px; max-width: 100%; height: 640px;
  border-radius: 48px; padding: 12px; background: #030405;
  border: 1px solid var(--line-neon);
  box-shadow: 0 0 0 2px #0b1012, 0 60px 100px -40px rgba(0,0,0,.9), 0 0 80px -20px rgba(43,255,160,.35);
}
.phone-notch { position: absolute; z-index: 3; top: 22px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; }
.phone-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden auto; background: #000; overscroll-behavior: contain; scrollbar-width: none; }
.phone-screen::-webkit-scrollbar { display: none; }
.phone-screen.embedded { background: #000; display: flex; flex-direction: column; }
.phone-screen.embedded .tt-embed, .phone-screen.embedded .tt-embed blockquote { flex: 1; display: flex; flex-direction: column; }
.phone-screen.embedded .tt-embed { justify-content: center; }
.phone-screen.embedded .tt-embed iframe { flex: none; min-height: 0 !important; }
.tt-fallback { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px; text-align: center; background: radial-gradient(400px 300px at 50% 30%, rgba(43,255,160,.12), transparent 70%), #05080a; color: #fff; }
.tt-avatar { width: 96px; height: 96px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--neon), var(--neon-2)); box-shadow: 0 0 30px rgba(43,255,160,.35); margin-bottom: 12px; }
.tt-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #000; }
.tt-fallback strong { font: 700 1.2rem var(--f-display); }
.tt-fallback > span { color: var(--muted); }
.tt-btn { margin-top: 18px; background: var(--neon); color: #001a0d; font-weight: 600; padding: 12px 28px; border-radius: 999px; box-shadow: 0 0 24px rgba(43,255,160,.35); }
.tt-btn:hover { box-shadow: 0 0 0 6px var(--neon-soft), 0 0 40px rgba(43,255,160,.55); }
.tt-load { margin-top: 18px; color: var(--muted); font-size: .65rem; }
.tt-embed { padding-top: 46px; min-height: 100%; }
.tt-embed blockquote { margin: 0 !important; min-width: 0 !important; max-width: 100% !important; }
.tt-embed iframe { max-width: 100% !important; }

.faq { max-width: 880px; padding: 6px 30px; margin-inline: auto; }
.faq details[open] summary { color: var(--neon); text-shadow: 0 0 14px rgba(43,255,160,.35); }
.faq-sec .section-head { text-align: center; }
.faq-cta { text-align: center; margin: 32px 0 0; color: var(--muted); display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--f-mono); color: var(--neon); text-shadow: 0 0 12px rgba(43,255,160,.6); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 22px; padding-right: 40px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.ok { color: var(--neon); }

@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .tt-grid { grid-template-columns: 1fr; }
  .tt-grid .phone { margin-inline: auto; }
}
@media (max-width: 720px) {
  .phone { width: 320px; height: 600px; }
  .faq { padding: 4px 18px; }
  .faq details p { padding-right: 0; }
}
@media (max-width: 380px) {
  .phone { width: 100%; height: 560px; border-radius: 40px; }
  .phone-screen { border-radius: 30px; }
}


/* ---------- language switch ---------- */
.lang-switch { display: flex; gap: 2px; padding: 3px; margin-left: 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); flex: none; }
.lang-switch a { padding: 6px 10px; border-radius: 999px; font-size: .68rem; color: var(--muted); transition: color .2s, background .2s; min-width: 36px; text-align: center; }
.lang-switch a:hover { color: var(--text); background: var(--glass-strong); }
.lang-switch a.active { background: var(--neon); color: #001a0d; box-shadow: 0 0 14px rgba(43,255,160,.45); }
@media (max-width: 980px) {
  .lang-switch { margin-left: auto; margin-right: 10px; }
  .lang-switch a { padding: 8px 9px; min-width: 34px; }
}

/* ---------- mobile performance + tap targets ---------- */
@media (max-width: 720px) {
  .glass { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.06)); }
  .nav { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .shot-caption { backdrop-filter: none; background: rgba(5,8,10,.85); }
  .glass, .track, .ring { contain: paint; }
  .btn-sm, .filters button, .screen-tabs button, .compose-actions .btn, .btn-send { min-height: 44px; }
  .footer a { display: inline-block; padding: 12px 6px; }
  .range input::-webkit-slider-thumb { width: 28px; height: 28px; }
  .langs button { min-width: 36px; min-height: 32px; }
  .tag, .pass-label, .portrait figcaption, .pass-rows dt, .route span, .log span, .timeline li span, .card-body .eyebrow,
  .footer p, .footer a, .types legend, .form-status, .scroll-cue, .demo-badge, .tt-load { font-size: .75rem; }
  .ev-date small, .ev-meta, .ev-more .blb-btn { font-size: .7rem; }
}

/* keep rotating orbit rings from causing sideways scroll */
html { overflow-x: clip; }
.hero { overflow-x: clip; }

/* =========================================================
   One category = one screen: nav jumps land right under the
   header and each section fits the viewport on desktop
   ========================================================= */
@media (min-width: 981px) and (min-height: 700px) {
  html { scroll-padding-top: 86px; }
  .section {
    padding: 40px var(--pad);
    min-height: calc(100svh - 86px);
    display: flex; flex-direction: column; justify-content: center;
  }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: clamp(2rem, 3.3vw, 2.8rem); }
  .section-head .lead { margin: 12px 0 0; }

  /* about */
  .about-card { padding: 30px; }
  .about-card p { margin-bottom: 12px; }
  .stat { min-height: 118px; padding: 20px 22px; }
  .about-grid .chips { margin-top: 14px; }

  /* services */
  .plan { padding: 26px 24px 22px; }
  .plan ul { gap: 7px; margin: 6px 0 16px; }
  .plan-time { padding-top: 12px; margin-bottom: 14px; }

  /* tiktok */
  .phone { height: min(640px, calc(100svh - 150px)); }

  /* process */
  .timeline li { padding: 24px 22px; }

  /* faq */
  .faq summary { padding: 15px 0; }
  .faq details p { margin-bottom: 16px; }
  .faq-cta { margin-top: 20px; }

  /* contact: intro + links on the left, form on the right */
  .section.contact {
    display: grid; grid-template-columns: .8fr 1.2fr; column-gap: 48px;
    align-content: center; align-items: start;
  }
  .contact .section-head { grid-column: 1; grid-row: 1; text-align: left; margin: 0; }
  .contact .lead { margin: 16px 0 0; }
  .contact .socials { grid-column: 1; grid-row: 2; justify-content: flex-start; margin-top: 28px; }
  .contact .form { grid-column: 2; grid-row: 1 / span 2; max-width: none; margin: 0; gap: 16px; padding: 30px; }
}
/* phones/tablets: jumps land right under the header, less empty space above headings */
@media (max-width: 980px) {
  html { scroll-padding-top: 80px; }
  .section { padding-top: 48px; padding-bottom: 64px; }
}

/* the email fallback box must stay hidden until a send fails */
.compose[hidden] { display: none !important; }
@media (min-width: 981px) and (min-height: 700px) {
  .about-grid { grid-template-columns: 1.75fr 1fr; }
  .about-card { grid-template-columns: 170px 1fr; column-gap: 26px; }
  .about-card p { font-size: .97rem; line-height: 1.6; }
}
@media (min-width: 981px) and (min-height: 700px) {
  /* Work: heading + filters + the whole featured case fit the first screen */
  #work .filters { margin-bottom: 18px; }
  .featured { padding: 22px 26px; align-items: center; }
  .featured .device-screen { aspect-ratio: 4 / 3; }
  .featured-info h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 10px; }
  .featured-info > p { font-size: .95rem; line-height: 1.6; margin-bottom: 14px; }
  .featured-info .hint { margin-top: 6px; }
  .featured-info .screen-tabs { margin-bottom: 14px; }
  .featured-info .specs { margin: 0 0 16px; gap: 10px 24px; }
}
/* compact tier for short laptop screens (e.g. 1366x768) */
@media (min-width: 981px) and (min-height: 700px) and (max-height: 860px) {
  html { scroll-padding-top: 80px; }
  .section { padding: 22px var(--pad); min-height: calc(100svh - 80px); }
  .section-head { margin-bottom: 18px; }
  .section-head h2 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); }
  .section-head .lead { font-size: .98rem; }
  .plan { padding: 20px 22px 18px; }
  .plan .eyebrow { margin-bottom: 6px; }
  .plan h3 { font-size: 1.15rem; margin-bottom: 6px; }
  .plan-for { font-size: .92rem; margin-bottom: 4px; }
  .plan ul { gap: 4px; margin: 4px 0 12px; }
  .plan li { font-size: .9rem; }
  .plan-time { padding-top: 10px; margin-bottom: 10px; }
  .tt-points { margin-bottom: 20px; gap: 6px; }
  .phone { height: min(600px, calc(100svh - 120px)); }
  .stat { min-height: 100px; }
  .about-card { padding: 24px; }
  .about-card p { font-size: .93rem; margin-bottom: 8px; }
  .faq summary { padding: 12px 0; }
  .featured .device-screen { aspect-ratio: 4 / 2.8; }
  .featured-info > p { font-size: .9rem; }
}
/* services: a little tighter so longer DE/LV text still fits one screen */
@media (min-width: 981px) and (min-height: 700px) {
  .plan ul { gap: 5px; }
  .plan li { font-size: .93rem; }
  .plan-for { font-size: .95rem; }
}
@media (min-width: 981px) and (min-height: 700px) and (max-height: 860px) {
  .plan li { font-size: .86rem; }
  .plan-for { font-size: .88rem; }
}
/* language switch: bigger tap targets, breathing room next to the brand */
.nav { gap: 8px; }
@media (max-width: 980px) {
  .lang-switch a { min-height: 40px; display: inline-grid; place-items: center; }
}
@media (min-width: 981px) and (min-height: 860px) { .plan { padding: 22px 24px 18px; } .plan ul { margin: 4px 0 14px; } }

/* ---------- flat sections (fewer glass boxes) ---------- */
.stat, .strength, .timeline li { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding-inline: 0; }
.stat:hover, .strength:hover, .timeline li:hover { transform: none; }
.timeline::before { display: none; }
.faq { padding-inline: 0; }
.stat b { text-shadow: none; }

/* ---------- nav: keep labels on one line on tablets ---------- */
.nav-links a { white-space: nowrap; }
@media (min-width: 721px) and (max-width: 1100px) {
  .nav-links { gap: 2px; }
  .nav-links a:not(.btn) { padding: .5em .7em; font-size: .92rem; }
  .brand-text small { display: none; }
}
@media (min-width: 721px) and (max-width: 880px) {
  .brand-text { display: none; }
}

/* ---------- lead generation: mid CTA, next steps, form note ---------- */
.mid-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
  margin: 0 0 28px; padding: 22px clamp(18px, 3vw, 32px); border: 1px solid var(--line-neon); border-radius: var(--radius);
  background: linear-gradient(100deg, var(--neon-soft), transparent 70%); }
.mid-cta p { margin: 0; font: 600 clamp(1.05rem, 2vw, 1.3rem)/1.3 var(--f-display); }
.mid-cta.hide { display: none; }
.next-steps { list-style: none; padding: 0; margin: 0 auto 22px; max-width: 760px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.next-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); padding-top: 12px; }
.next-steps b { color: var(--neon); font-size: .7rem; }
.form-note { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
@media (max-width: 720px) { .next-steps { grid-template-columns: 1fr; gap: 6px; } }
@media (min-width: 981px) and (min-height: 700px) {
  /* contact: next steps under the intro, tighter form so it still fits one screen */
  .contact .next-steps { grid-column: 1; grid-row: 2; grid-template-columns: 1fr; gap: 8px; margin: 26px 0 0; max-width: none; }
  .contact .socials { grid-row: 3; }
  .contact .form { grid-row: 1 / span 3; padding: 24px 28px; gap: 12px; }
  .contact .types legend { margin-bottom: 6px; }
  .contact .types span { padding: .42em .95em; font-size: .9rem; }
  .contact .form textarea { height: 96px; }
}

/* ---------- client testimonial (BLB) ---------- */
.quote { margin: 0 0 20px; padding: clamp(22px, 4vw, 40px); position: relative; }
.quote::before { content: "\201E"; position: absolute; top: -.18em; right: .25em; font: 800 clamp(6rem, 12vw, 9rem)/1 var(--f-display); color: var(--neon); opacity: .12; pointer-events: none; }
.quote .eyebrow { margin: 0 0 14px; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; color: var(--muted); max-width: 78ch; }
.quote .quote-head { font: 700 clamp(1.25rem, 2.6vw, 1.8rem)/1.25 var(--f-display); color: var(--text); margin-bottom: 14px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-neon); }
.quote figcaption b { display: block; color: var(--text); }
.quote figcaption span { color: var(--muted); font-size: .92rem; line-height: 1.35; }
.quote figcaption em { display: block; margin-top: 3px; font-style: normal; font-size: .62rem; }
