/* Inter (SIL OFL 1.1), hosted on this site: latin + cyrillic */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-Regular.woff") format("woff"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-Medium.woff") format("woff"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-SemiBold.woff") format("woff"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-Bold.woff") format("woff"); }
/* ==========================================================
   MAWQY — shared styles (index, privacy, terms)
   ========================================================== */

/* ---------- Base ---------- */
:root {
  color-scheme: dark;
  --bg: #08080a;
  --text: #f5f5f7;
  --muted: #9a9aa3;
  --accent: #d4d4da;
  --glass: rgba(255, 255, 255, .055);
  --edge: rgba(255, 255, 255, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: transparent;   /* the colour lives on <html>; an opaque body would paint over the background layers (z-index < 0) */
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

/* Soft blue background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 15%, #ffffff12, transparent 34%),
    radial-gradient(ellipse at 82% 42%, #ffffff0d, transparent 32%),
    radial-gradient(ellipse at 50% 100%, #ffffff10, transparent 45%);
}

/* Shimmering monochrome gradient. Three huge soft radial blobs drift slowly and fade in and out.
   Only transform / opacity are animated, so it costs almost nothing, also on weak phones and in-app browsers. */
.bg-aurora { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; contain: strict; }
.bg-aurora i { position: absolute; left: 50%; top: 50%; width: 85vmax; height: 85vmax; margin: -42.5vmax 0 0 -42.5vmax; border-radius: 50%; will-change: transform, opacity; }
.bg-aurora i:nth-child(1) { background: radial-gradient(circle, rgba(255,255,255,.17) 0, rgba(255,255,255,.06) 38%, transparent 68%); animation: aur-a 26s ease-in-out infinite alternate; }
.bg-aurora i:nth-child(2) { background: radial-gradient(circle, rgba(205,205,215,.15) 0, rgba(205,205,215,.05) 40%, transparent 68%); animation: aur-b 34s ease-in-out infinite alternate; }
.bg-aurora i:nth-child(3) { background: radial-gradient(circle, rgba(255,255,255,.12) 0, rgba(255,255,255,.04) 42%, transparent 68%); animation: aur-c 42s ease-in-out infinite alternate; }
@keyframes aur-a { 0% { transform: translate3d(-34vw,-26vh,0) scale(.9);  opacity: .55; } 50% { transform: translate3d(-8vw,10vh,0) scale(1.08); opacity: 1; } 100% { transform: translate3d(14vw,-14vh,0) scale(.95); opacity: .7; } }
@keyframes aur-b { 0% { transform: translate3d(36vw,22vh,0) scale(1.05);  opacity: .9; } 50% { transform: translate3d(8vw,-8vh,0) scale(.88); opacity: .5; } 100% { transform: translate3d(-22vw,26vh,0) scale(1.1); opacity: .95; } }
@keyframes aur-c { 0% { transform: translate3d(2vw,34vh,0) scale(.85);  opacity: .4; } 50% { transform: translate3d(-26vw,4vh,0) scale(1.1); opacity: .9; } 100% { transform: translate3d(30vw,-30vh,0) scale(.95); opacity: .5; } }
html.lite .bg-aurora i:nth-child(3) { display: none; }          /* weak devices: two blobs are enough */
html.lite .bg-aurora i { animation-duration: 40s; }
@media (prefers-reduced-motion: reduce) { .bg-aurora i { animation: none; } }

/* Film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* touch devices: no full-screen film grain overlay (costs fill-rate, invisible on phones) */
@media (hover: none) { body::after { display: none; } }

a { color: inherit; text-decoration: none; }
.wrap { width: min(980px, calc(100% - 36px)); margin: auto; }

/* ---------- Top bar ---------- */
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 14px; font-weight: 700; letter-spacing: .16em; }
.brand-dot { color: var(--accent); }
.nav { display: flex; gap: 26px; color: var(--muted); font-size: 12px; }
.nav a { transition: color .2s; }
.nav a:hover, .nav a.active { color: #fff; }
.pill {
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 9px 13px;
  color: #cfcfd6;
  font-size: 11px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #ffffff06;
  backdrop-filter: blur(20px);
}
.dot { width: 6px; height: 6px; background: #ffffff; border-radius: 50%; box-shadow: 0 0 10px #ffffff88; }

/* ---------- Hero ---------- */
.hero { min-height: 570px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 60px 0 75px; }
.eyebrow { font-size: 11px; color: var(--accent); letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { font-size: clamp(70px, 12vw, 138px); letter-spacing: -.095em; line-height: .83; margin: 22px 0; font-weight: 700; }
.tagline { font-size: 12px; color: #aaaab2; letter-spacing: .13em; text-transform: uppercase; }
.intro { font-size: 15px; line-height: 1.8; color: #b0b0b8; max-width: 430px; margin: 24px 0 28px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  font-size: 12px;
  font-weight: 600;
  padding: 13px 17px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform .25s, background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.primary { color: #0a0a0c; background: linear-gradient(135deg, #ffffff, #b4b4bb); box-shadow: 0 5px 28px #ffffff22; }
.secondary { border: 1px solid var(--edge); background: #ffffff06; backdrop-filter: blur(18px); }
.secondary:hover { background: #ffffff0e; }

/* ---------- Hero emblem ---------- */
.visual { justify-self: end; width: min(100%, 360px); aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.glass-orb {
  width: 66%;
  aspect-ratio: 1;
  border-radius: 35% 65% 58% 42% / 42% 42% 58% 58%;
  background: #050506;
  border: 1px solid #ffffff1f;
  box-shadow: 0 0 55px #ffffff22, 0 0 0 6px #ffffff08;
  animation: morph 10s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Safari: clip video to rounded shape */
}
/* Looping black & white avatar video */
.orb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05);
  pointer-events: none;
}
/* Glass edge + highlight above the video */
.glass-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(160deg, #ffffff26 0%, transparent 32%);
  box-shadow: inset -15px -20px 45px #0a0a0c9c, inset 10px 10px 22px #ffffff2e;
}
.ring { position: absolute; inset: 5%; border: 1px solid #ffffff29; border-radius: 50%; transform: rotate(-25deg) scaleY(.42); }
.ring.two { inset: 12%; transform: rotate(55deg) scaleY(.52); border-color: #ffffff22; }
.float-label {
  position: absolute;
  padding: 10px 13px;
  border: 1px solid #ffffff1c;
  border-radius: 14px;
  background: #15151aa8;
  backdrop-filter: blur(22px);
  font-size: 10px;
  color: #e4e4e9;
  box-shadow: 0 10px 35px #0003;
}
.fl1 { top: 15%; right: 0; }
.fl2 { bottom: 15%; left: 0; }

/* ---------- Sections ---------- */
section { padding: 66px 0; }
.section-top { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; gap: 15px; }
.overline { font-size: 10px; color: var(--accent); letter-spacing: .16em; text-transform: uppercase; }
.section-title { font-size: clamp(28px, 5vw, 42px); letter-spacing: -.06em; margin: 8px 0 0; }
.section-note { font-size: 11px; color: var(--muted); }

/* ---------- About ---------- */
.glass-panel {
  border: 1px solid var(--edge);
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff0b, #ffffff03);
  box-shadow: inset 0 1px #ffffff0b, 0 18px 55px #0002;
  backdrop-filter: blur(24px);
  padding: 25px;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.panel-title { font-size: 14px; font-weight: 600; }
.panel-copy { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 12px 0 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin-top: 20px; }
.stat { border: 1px solid #ffffff0d; border-radius: 15px; padding: 13px 10px; background: #ffffff03; }
.stat strong { display: block; font-size: 21px; letter-spacing: -.05em; }
.stat span { display: block; color: var(--muted); font-size: 9px; margin-top: 6px; }

/* ---------- Socials ---------- */
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px;
  border: 1px solid var(--edge);
  border-radius: 19px;
  background: var(--glass);
  backdrop-filter: blur(24px);
  transition: .25s;
}
.social:hover { transform: translateY(-3px); background: #ffffff0b; border-color: #ffffff55; }
.social-left { display: flex; align-items: center; gap: 13px; }
.social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff18;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffffff12, #ffffff03);
  font-size: 11px;
  font-weight: 600;
  color: #e0e0e5;
}
.social strong { display: block; font-size: 13px; }
.social small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.arrow { font-size: 18px; color: #c9c9d0; }

/* ---------- Community ---------- */
.community-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.social.community { padding: 22px 20px; border-color: #ffffff20; background: linear-gradient(145deg, #ffffff0d, #ffffff04); }
.social.community .social-icon { width: 46px; height: 46px; }
.social.community strong { font-size: 14px; }
.social.minor { grid-column: 1 / -1; padding: 12px 16px; border-radius: 16px; background: transparent; border-style: dashed; border-color: #ffffff1c; opacity: .8; }
.social.minor:hover { opacity: 1; }
.social.minor .social-icon { width: 32px; height: 32px; border-radius: 11px; font-size: 9px; }
.social.minor strong { font-size: 12px; font-weight: 500; }
.social.minor small { margin-top: 3px; }
.minor-label { grid-column: 1 / -1; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 2px -2px; }

/* ---------- Made in motion: video cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }

.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 12px 16px;
  border: 1px solid var(--edge);
  border-radius: 24px;
  background: linear-gradient(150deg, #1e1e23, #0d0d10 70%);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.video-card:hover { transform: translateY(-4px); border-color: #ffffff55; }
.video-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Preview area (vertical, like a TikTok) */
.video-preview {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, #ffffff3d, transparent 42%),
    linear-gradient(135deg, #34343a, #0e0e11 75%);
}
.video-card:nth-child(2) .video-preview {
  background: radial-gradient(circle at 70% 30%, #ffffff30, transparent 38%), linear-gradient(135deg, #2c2c31, #0d0d10 75%);
}
.video-card:nth-child(3) .video-preview {
  background: radial-gradient(circle at 35% 40%, #ffffff2a, transparent 40%), linear-gradient(135deg, #313137, #0d0d10 75%);
}

.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease, transform .6s ease;
}
.video-card.has-thumb .video-thumb { opacity: 1; }
.video-card:hover .video-thumb { transform: scale(1.04); }

/* Shade so the play button and badge stay readable on any thumbnail */
.video-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0a0a0c66 0%, transparent 30%, transparent 55%, #08080a99 100%);
  pointer-events: none;
}

.video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid #ffffff22;
  border-radius: 999px;
  background: #111114a8;
  backdrop-filter: blur(14px);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e8e8ec;
}

.play {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff3a;
  background: #ffffff1f;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px #0005, inset 0 1px #ffffff40;
  transition: transform .25s, background .25s;
}
.play svg { width: 22px; height: 22px; margin-left: 3px; fill: #fff; }
.video-card:hover .play { transform: scale(1.1); background: #ffffff33; }

/* Invisible button that covers the preview (play / open) */
.video-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.video-start:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 16px; }

/* Real TikTok player inside the card */
.video-preview iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; background: #000; }
.video-card.is-playing .video-start,
.video-card.is-playing .video-badge,
.video-card.is-playing .video-thumb { display: none; }
.video-card.is-playing .video-preview::after { display: none; }

.video-info { padding: 0 6px; }
.work-meta { font-size: 9px; letter-spacing: .13em; color: var(--accent); text-transform: uppercase; }
.work-name { font-size: 15px; font-weight: 600; margin-top: 7px; }
.work-desc { font-size: 11px; line-height: 1.6; color: var(--muted); margin-top: 5px; }
a.work-link { display: inline-block; transition: color .2s; }
a.work-link:hover { color: #fff; }
.hint { font-size: 10px; color: var(--muted); line-height: 1.7; margin-top: 13px; }

/* ---------- Contact ---------- */
.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 30px;
  border: 1px solid #ffffff24;
  border-radius: 26px;
  background: radial-gradient(ellipse at 100% 0, #ffffff14, transparent 48%), linear-gradient(145deg, #ffffff0a, #ffffff03);
  backdrop-filter: blur(24px);
}
.contact h3 { font-size: clamp(25px, 4vw, 38px); letter-spacing: -.06em; margin: 9px 0; }
.contact p { max-width: 510px; color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; }

/* ---------- Footer ---------- */
footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 25px 0 35px; border-top: 1px solid #ffffff12; color: var(--muted); font-size: 10px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-mark { color: #c9c9d0; }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal { padding: 40px 0 70px; max-width: 760px; }
.legal .eyebrow { margin-bottom: 14px; }
.legal h1 { font-size: clamp(36px, 7vw, 58px); letter-spacing: -.07em; line-height: 1; margin: 0 0 12px; }
.legal .updated { font-size: 12px; color: var(--muted); margin: 0 0 34px; }
.legal h2 { font-size: 17px; letter-spacing: -.02em; margin: 34px 0 10px; color: #ececf0; }
.legal p, .legal li { font-size: 14px; line-height: 1.85; color: #b0b0b8; }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); border-bottom: 1px solid #ffffff44; transition: border-color .2s; }
.legal a:hover { border-color: var(--accent); }
.legal .back { display: inline-block; margin-bottom: 26px; font-size: 12px; color: var(--muted); border: 0; }
.legal .back:hover { color: #fff; }

/* ---------- Scroll zoom (scale 70% -> 100%, driven by js/main.js) ---------- */
.js .reveal {
  opacity: 0;
  transform: scale(.7);
  transform-origin: 50% 0;
  will-change: transform, opacity;
}

/* ---------- Intro animation (on page load) ---------- */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0); filter: blur(34px); }
  55%  { filter: blur(12px); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0); filter: blur(40px); }
  60%  { opacity: 1; transform: scale(1.06); filter: blur(10px); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-22px) scale(.92); filter: blur(20px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); filter: blur(18px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.topbar { animation: dropIn 1.1s var(--ease-out) backwards; }
.hero-copy > * { transform-origin: 0 50%; animation: zoomIn 1.3s var(--ease-out) backwards; }
.hero-copy > :nth-child(1) { animation-delay: .15s; }
.hero-copy > :nth-child(2) { animation-delay: .27s; }
.hero-copy > :nth-child(3) { animation-delay: .39s; }
.hero-copy > :nth-child(4) { animation-delay: .51s; }
.hero-copy > :nth-child(5) { animation-delay: .63s; }
.visual { animation: popIn 1.6s var(--ease-out) .2s backwards; }
.legal { animation: fadeUp 1.1s var(--ease-out) .1s backwards; }

/* ---------- Glitch title (black & white, smooth) ----------
   Two mono "ghost" layers slide out of a thin line, sweep across the word
   and fold back, with soft easing between every step (no hard jumps).
   Idle loop: 6.5s, quiet ~80% of the time, then one fluid burst.
   The "QY." part also has a slow light sheen. Hover = continuous glitch. */
:root { --glitch-ease: cubic-bezier(.45, 0, .2, 1); }

.glitch {
  position: relative;
  display: inline-block;
  animation:
    glitch-shake .95s var(--glitch-ease) 1.5s 2,
    glitch-shake-loop 6.5s var(--glitch-ease) 4.6s infinite;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  white-space: nowrap;
  pointer-events: none;
  clip-path: inset(48% 0 48% 0);
  opacity: 0;
  -webkit-text-fill-color: currentColor;
  will-change: clip-path, transform, opacity;
}
.glitch::before {
  color: #ffffff;
  text-shadow: 0 0 22px #ffffff55;
  animation:
    glitch-a .95s var(--glitch-ease) 1.5s 2,
    glitch-a-loop 6.5s var(--glitch-ease) 4.6s infinite;
}
.glitch::after {
  color: #868690;
  animation:
    glitch-b .95s var(--glitch-ease) 1.5s 2,
    glitch-b-loop 6.5s var(--glitch-ease) 4.6s infinite;
}
.glitch:hover { animation: glitch-shake .8s var(--glitch-ease) infinite; }
.glitch:hover::before { animation: glitch-a .8s var(--glitch-ease) infinite; }
.glitch:hover::after  { animation: glitch-b .8s var(--glitch-ease) infinite; }

/* slow light sheen travelling over "QY." */
.hero h1 .accent {
  background: linear-gradient(110deg, #6b6b73 0%, #c4c4ca 30%, #ffffff 46%, #c4c4ca 62%, #6b6b73 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s ease-in-out 1.6s infinite;
}
@keyframes sheen {
  0%, 100% { background-position: 100% 0; }
  50%      { background-position: 0% 0; }
}

@keyframes glitch-a {
  0% { clip-path: inset(48% 0 48% 0); transform: translateX(0); opacity: 0; }
  12% { clip-path: inset(12% 0 62% 0); transform: translateX(-9px); opacity: 1; }
  30% { clip-path: inset(54% 0 14% 0); transform: translateX(7px); opacity: 1; }
  48% { clip-path: inset(30% 0 44% 0); transform: translateX(-4px); opacity: 0.9; }
  66% { clip-path: inset(68% 0 6% 0); transform: translateX(5px); opacity: 0.8; }
  84% { clip-path: inset(40% 0 40% 0); transform: translateX(-1px); opacity: 0.4; }
  100% { clip-path: inset(48% 0 48% 0); transform: translateX(0); opacity: 0; }
}
@keyframes glitch-b {
  0% { clip-path: inset(48% 0 48% 0); transform: translateX(0); opacity: 0; }
  8% { clip-path: inset(62% 0 10% 0); transform: translateX(8px); opacity: 1; }
  26% { clip-path: inset(10% 0 70% 0); transform: translateX(-7px); opacity: 1; }
  46% { clip-path: inset(44% 0 30% 0); transform: translateX(5px); opacity: 0.9; }
  64% { clip-path: inset(6% 0 82% 0); transform: translateX(-6px); opacity: 0.8; }
  82% { clip-path: inset(76% 0 4% 0); transform: translateX(3px); opacity: 0.4; }
  100% { clip-path: inset(48% 0 48% 0); transform: translateX(0); opacity: 0; }
}
@keyframes glitch-shake {
  0% { transform: none; }
  14% { transform: translateX(2px) skewX(-3deg); }
  32% { transform: translateX(-3px) skewX(1deg); }
  50% { transform: translateX(2px) skewX(3deg); }
  70% { transform: translateX(-1px); }
  100% { transform: none; }
}
@keyframes glitch-a-loop {
  0%, 80%, 100% { clip-path: inset(48% 0 48% 0); transform: translateX(0); opacity: 0; }
  82.04% { clip-path: inset(12% 0 62% 0); transform: translateX(-9px); opacity: 1; }
  85.1% { clip-path: inset(54% 0 14% 0); transform: translateX(7px); opacity: 1; }
  88.16% { clip-path: inset(30% 0 44% 0); transform: translateX(-4px); opacity: 0.9; }
  91.22% { clip-path: inset(68% 0 6% 0); transform: translateX(5px); opacity: 0.8; }
  94.28% { clip-path: inset(40% 0 40% 0); transform: translateX(-1px); opacity: 0.4; }
  97% { clip-path: inset(48% 0 48% 0); transform: translateX(0); opacity: 0; }
}
@keyframes glitch-b-loop {
  0%, 80%, 100% { clip-path: inset(48% 0 48% 0); transform: translateX(0); opacity: 0; }
  81.36% { clip-path: inset(62% 0 10% 0); transform: translateX(8px); opacity: 1; }
  84.42% { clip-path: inset(10% 0 70% 0); transform: translateX(-7px); opacity: 1; }
  87.82% { clip-path: inset(44% 0 30% 0); transform: translateX(5px); opacity: 0.9; }
  90.88% { clip-path: inset(6% 0 82% 0); transform: translateX(-6px); opacity: 0.8; }
  93.94% { clip-path: inset(76% 0 4% 0); transform: translateX(3px); opacity: 0.4; }
}
@keyframes glitch-shake-loop {
  0%, 80%, 100% { transform: none; }
  82.38% { transform: translateX(2px) skewX(-3deg); }
  85.44% { transform: translateX(-3px) skewX(1deg); }
  88.5% { transform: translateX(2px) skewX(3deg); }
  91.9% { transform: translateX(-1px); }
}

/* ---------- Background particles ---------- */
.bg-particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- Animations ---------- */
@keyframes morph {
  0%, 100% { border-radius: 35% 65% 58% 42% / 42% 42% 58% 58%; }
  50%      { border-radius: 57% 43% 38% 62% / 53% 35% 65% 47%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ---------- Top-right: availability pill + language switch ---------- */
.top-right { display: flex; align-items: center; gap: 10px; }
.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: #ffffff06;
  backdrop-filter: blur(20px);
}
.lang-btn {
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .3s, background .3s, box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { color: #0a0a0c; background: linear-gradient(135deg, #ffffff, #b4b4bb); box-shadow: 0 2px 14px #ffffff2a; }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Legal pages: show only the active language block */
[data-l="ru"] { display: none; }
html[lang="ru"] [data-l="ru"] { display: block; }
html[lang="ru"] [data-l="en"] { display: none; }

/* ---------- Copy protection (see js/protect.js) ---------- */
html, body, body * {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
::selection { background: transparent; color: inherit; }
img, video, a { -webkit-user-drag: none; user-drag: none; }
@media print { body { display: none !important; } }

/* ---------- Music player: compact tab docked to the left edge ---------- */
.player {
  position: fixed;
  left: 0;
  bottom: 24px;
  z-index: 20;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--edge);
  border-left: 0;
  border-radius: 0 18px 18px 0;
  background: #101013d9;
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 14px 40px #000a, inset 0 1px #ffffff12;
  transition: transform .7s var(--ease-out);
  animation: tabIn 1.2s var(--ease-out) 1s backwards;
}
.player.is-collapsed { transform: translateX(calc(-100% + 42px)); }
@keyframes tabIn { from { opacity: 0; transform: translateX(-60%); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }
.player [hidden] { display: none !important; }
:where(.player) button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.player button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pl-handle { width: 42px; display: grid; place-items: center; border-radius: 0 18px 18px 0; transition: background .25s; }
.pl-handle:hover { background: #ffffff0f; }
.pl-body { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; border-right: 1px solid #ffffff12; order: -1; }
.pl-handle { order: 1; border-left: 1px solid #ffffff12; }
.pl-title { font-size: 12px; font-weight: 600; letter-spacing: -.01em; width: 108px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.eq { display: flex; align-items: flex-end; gap: 3px; height: 15px; }
.eq i { display: block; width: 3px; height: 26%; border-radius: 2px; background: #fff; transition: height .4s ease; }
.player.is-playing .eq i { animation: eq 1.05s ease-in-out infinite; }
.player.is-playing .eq i:nth-child(2) { animation-delay: -.35s; animation-duration: .9s; }
.player.is-playing .eq i:nth-child(3) { animation-delay: -.7s;  animation-duration: 1.2s; }
.player.is-playing .eq i:nth-child(4) { animation-delay: -.2s;  animation-duration: .8s; }
@keyframes eq { 0%, 100% { height: 24%; } 50% { height: 100%; } }

.pl-ctrl { display: flex; align-items: center; gap: 4px; }
.pl-prev, .pl-next { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #d6d6dc; transition: background .25s, color .25s; }
.pl-prev:hover, .pl-next:hover { background: #ffffff14; color: #fff; }
.pl-prev svg, .pl-next svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl-play { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #0a0a0c; background: linear-gradient(135deg, #ffffff, #b4b4bb); box-shadow: 0 4px 18px #ffffff22; transition: transform .3s var(--ease-out); }
.pl-play:hover { transform: scale(1.08); }
.pl-play:active { transform: scale(.94); }
.pl-play svg { width: 16px; height: 16px; fill: currentColor; }
.pl-play .i-play { margin-left: 2px; }
.pl-play .i-pause { display: none; }
.player.is-playing .pl-play .i-play { display: none; }
.player.is-playing .pl-play .i-pause { display: block; }


/* volume: icon button + small slider that pops up above the tab */
.pl-volbtn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #d6d6dc; transition: background .25s, color .25s; }
.pl-volbtn:hover, .player.vol-open .pl-volbtn { background: #ffffff14; color: #fff; }
.pl-volbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pl-volbtn .i-muted { display: none; }
.player.is-muted .pl-volbtn .i-vol { display: none; }
.player.is-muted .pl-volbtn .i-muted { display: block; }
.pl-volpop {
  position: absolute;
  right: 56px;
  bottom: calc(100% + 10px);
  padding: 8px 14px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: #101013ee;
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 14px 40px #000a, inset 0 1px #ffffff12;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(.94);
  transform-origin: 100% 100%;
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s linear .45s;
}
.player.vol-open .pl-volpop { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.pl-vol { -webkit-appearance: none; appearance: none; display: block; width: 130px; height: 20px; background: transparent; cursor: pointer; margin: 0; touch-action: none; }
.pl-vol::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--v, 60%), #ffffff26 var(--v, 60%)); }
.pl-vol::-moz-range-track { height: 4px; border-radius: 4px; background: #ffffff26; }
.pl-vol::-moz-range-progress { height: 4px; border-radius: 4px; background: #fff; }
.pl-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 10px #ffffff88; }
.pl-vol::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Hover effects only where a real pointer exists */
@media (hover: none) {
  .btn:hover, .social:hover, .social-wrap:hover, .video-card:hover { transform: none; }
  .video-card:hover .video-thumb { transform: none; }
}

.mobile-nav { display: none; }

/* ---------- Phone version ---------- */
@media (max-width: 700px) {
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .wrap { width: calc(100% - 30px); }
  .topbar { height: 62px; padding-top: env(safe-area-inset-top); }
  .brand { font-size: 13px; }
  .pill { font-size: 10px; padding: 8px 11px; }
  .top-right { gap: 7px; }
  .lang-btn { padding: 6px 10px; }
  .nav { display: none; }

  /* player sits just above the floating bottom menu */
  .player { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .pl-title { width: 70px; font-size: 11px; }
  .pl-body { gap: 6px; padding-left: 11px; padding-right: 6px; }
  .pl-ctrl { gap: 2px; }
  .pl-prev, .pl-next, .pl-volbtn { width: 30px; height: 30px; }
  .pl-play { width: 36px; height: 36px; }
  .pl-volpop { right: 50px; }

  /* hero: emblem on top, centered text */
  .hero { grid-template-columns: 1fr; gap: 10px; padding: 18px 0 46px; min-height: auto; text-align: center; }
  .visual { order: 0; justify-self: center; width: min(250px, 70vw); }
  .float-label { font-size: 9px; padding: 8px 10px; }
  .hero-copy { order: 1; display: flex; flex-direction: column; align-items: center; }
  .hero-copy > * { transform-origin: 50% 50%; }
  .hero h1 { font-size: clamp(72px, 22vw, 112px); margin: 16px 0 14px; }
  .tagline { font-size: 11px; }
  .intro { font-size: 14px; margin: 18px auto 24px; }
  .actions { width: 100%; justify-content: center; }
  .actions .btn { flex: 1 1 140px; justify-content: center; padding: 14px 16px; min-height: 46px; }

  section { padding: 44px 0; }
  .section-note { display: none; }
  .section-title { font-size: clamp(30px, 9vw, 40px); }

  .about-grid, .social-grid, .community-grid { grid-template-columns: 1fr; }
  .glass-panel { padding: 20px; border-radius: 22px; }
  .stats { gap: 6px; }
  .stat { padding: 11px 8px; }
  .stat strong { font-size: 19px; }
  .social { padding: 15px; min-height: 64px; }
  .social.community { padding: 18px 16px; }

  /* works: swipeable carousel */
  .work-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px;
    padding: 4px 15px 14px;
    scroll-padding: 0 15px;
    scrollbar-width: none;
  }
  .work-grid::-webkit-scrollbar { display: none; }
  .video-card { flex: 0 0 74%; max-width: 300px; scroll-snap-align: center; }

  .contact { align-items: stretch; flex-direction: column; padding: 22px; gap: 18px; }
  .contact .btn { justify-content: center; min-height: 48px; }

  footer { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 10px; }

  /* lighter blur = smoother scrolling on phones */
  .glass-panel, .social, .contact, .pill { backdrop-filter: blur(12px); }

  /* floating bottom menu */
  .mobile-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 20;
    width: min(calc(100% - 24px), 400px);
    justify-content: space-between;
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--edge);
    border-radius: 999px;
    background: #101013d9;
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    box-shadow: 0 14px 40px #000a, inset 0 1px #ffffff12;
    animation: dropIn 1.1s var(--ease-out) 1s backwards;
  }
  .mobile-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 2px 7px;
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: .03em;
    color: var(--muted);
    transition: color .25s, background .25s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav a.active { color: #0a0a0c; background: linear-gradient(135deg, #ffffff, #b4b4bb); }

  .legal { padding-top: 14px; }
  .legal h1 { font-size: clamp(34px, 11vw, 48px); }
}

/* very small phones */
@media (max-width: 400px) {
  .mobile-nav a span { font-size: 8px; }
  .pill { display: none; }
}

/* ---------- Entry screen (js/gate.js) ---------- */
.gate { display: none; }
html.gate-on .gate {
  position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #16161a 0%, #08080a 70%);
  cursor: pointer; outline: none;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out);
}
html.gate-on body { overflow: hidden; }
.gate.is-leaving { display: grid; position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; pointer-events: none; opacity: 0; transform: scale(1.12); filter: blur(14px); background: #08080a; }
.gate-inner { text-align: center; padding: 0 20px; }
.gate-logo { font-size: clamp(54px, 15vw, 132px); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.gate-logo .accent {
  background: linear-gradient(110deg, #6b6b73 0%, #c4c4ca 30%, #ffffff 46%, #c4c4ca 62%, #6b6b73 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gate-btn {
  font: inherit; margin-top: 38px; padding: 15px 30px;
  color: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  background: #ffffff0a; border: 1px solid var(--edge); border-radius: 999px;
  backdrop-filter: blur(18px); cursor: pointer;
  animation: gatePulse 2.4s ease-in-out infinite;
  transition: background .25s, border-color .25s;
}
.gate:hover .gate-btn, .gate-btn:focus-visible { background: #ffffff18; border-color: #ffffff66; }
.gate-sub { margin-top: 18px; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
@keyframes gatePulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gate-btn { animation: none; } }

/* ---------- Copy buttons on contact cards ---------- */
.social-wrap { position: relative; transition: transform .25s; }
.social-wrap:hover { transform: translateY(-3px); }
.social-wrap .social { padding-right: 96px; height: 100%; }
.social-wrap .social:hover { transform: none; }
.social-wrap .arrow { position: absolute; right: 17px; top: 50%; transform: translateY(-50%); }
.copy-btn {
  position: absolute; right: 46px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 10px; font-weight: 600; letter-spacing: .06em;
  color: var(--muted); background: #ffffff0a; border: 1px solid var(--edge);
  border-radius: 999px; padding: 7px 10px; cursor: pointer; z-index: 2;
  transition: color .2s, background .2s, border-color .2s;
}
.copy-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn:hover, .copy-btn:focus-visible { color: var(--text); background: #ffffff18; border-color: #ffffff55; }
.copy-btn.is-done { color: #fff; border-color: #ffffff88; }
.copy-btn.is-fail { color: #ff9a9a; }
@media (max-width: 700px) {
  .copy-btn .copy-label { display: none; }
  .copy-btn.is-done .copy-label { display: inline; }
  .copy-btn { right: 42px; padding: 8px; }
  .social-wrap .social { padding-right: 84px; }
  .social-wrap .arrow { right: 15px; }
  .copy-btn.is-done { padding: 8px 10px; }
}

/* ---------- Services (short list) ---------- */
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-item { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; border: 1px solid var(--edge); border-radius: 19px; background: var(--glass); }
.service-item span { font-size: 10px; letter-spacing: .16em; color: var(--accent); }
.service-item strong { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
@media (max-width: 700px) { .service-list { grid-template-columns: 1fr; } .service-item { padding: 16px 18px; } }

/* ---------- Work filters ---------- */
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.work-filters[hidden], .video-card[hidden] { display: none; }
.chip { font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); background: #ffffff08; border: 1px solid var(--edge); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: .2s; }
.chip:hover { color: var(--text); }
.chip.active { color: #08080a; background: var(--text); border-color: var(--text); }

/* ---------- Discord live count ---------- */
.live-count { color: var(--accent); }
.live-count[hidden] { display: none; }

/* ---------- Custom cursor + mouse glow (desktop) ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.bg-glow { position: fixed; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; z-index: 0; pointer-events: none; background: radial-gradient(circle, #ffffff12 0%, #ffffff00 62%); opacity: 0; transition: opacity .6s; will-change: transform; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 2000; pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
html.cur-on .cur-dot, html.cur-on .cur-ring, html.cur-on .bg-glow { opacity: 1; }
.cur-dot::before { content: ""; display: block; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
.cur-ring::before { content: ""; display: block; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid #ffffff80; transition: width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out), background .25s, border-color .25s; }
.cur-ring.is-hot::before { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: #ffffff14; border-color: #ffffffcc; }
.cur-ring.is-down::before { width: 22px; height: 22px; margin: -11px 0 0 -11px; }

/* ---------- Easter egg + beat pulse ---------- */
.glitch.is-max { animation: glitch-shake .22s var(--glitch-ease) infinite; }
.glitch.is-max::before { animation: glitch-a .22s var(--glitch-ease) infinite; }
.glitch.is-max::after { animation: glitch-b .22s var(--glitch-ease) infinite; }
.orb-video { filter: brightness(calc(1 + var(--beat, 0) * .28)); }

/* ---------- Legal window (Privacy / Terms on top of the home page) ---------- */
.modal { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 20px; background: #08080ad9; backdrop-filter: blur(14px); opacity: 0; transition: opacity .3s; }
.modal.is-open { opacity: 1; }
.modal-box { position: relative; width: min(780px, 100%); height: min(88vh, 900px); overflow: hidden; border: 1px solid var(--edge); border-radius: 24px; background: #0d0d10; transform: scale(.96); transition: transform .35s var(--ease-out); }
.modal.is-open .modal-box { transform: none; }
.modal-frame { display: block; width: 100%; height: 100%; border: 0; background: #0d0d10; }
.modal-x { position: absolute; top: 12px; right: 18px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--edge); background: #16161a; color: var(--text); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
html.modal-on body { overflow: hidden; }

/* ---------- Fade between pages ---------- */
body { transition: opacity .26s ease; }
html.page-out body { opacity: 0; }

/* ---------- Cyrillic headings: slightly looser spacing ---------- */
html[lang="ru"] .section-title, html[lang="ru"] .legal h1, html[lang="ru"] .contact h3 { letter-spacing: -.03em; }

/* ---------- Phones: bigger small print, availability pill stays ---------- */
@media (max-width: 700px) {
  .overline, .section-note, .stat span, .social small, .work-meta, .work-desc, .hint, .minor-label, footer, .eyebrow, .float-label { font-size: 11px; }
  .stat span { font-size: 10.5px; }
  .modal { padding: 10px; }
  .modal-box { border-radius: 20px; height: 92vh; }
}
@media (max-width: 400px) {
  .pill { display: inline-flex; font-size: 9.5px; padding: 7px 9px; gap: 6px; letter-spacing: 0; white-space: nowrap; }
  .topbar { gap: 8px; }
  .mobile-nav a span { font-size: 9px; }
}

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.nf-code { font-size: clamp(110px, 28vw, 260px); letter-spacing: -.07em; line-height: .9; margin: 10px 0; font-weight: 700; }
.nf-code .accent { color: #c4c4ca; }
.nf-lang { margin-top: 28px; }

/* ---------- Privacy / Terms shown inside the window (iframe) ---------- */
html.embed, html.embed body { background: #0d0d10; }
html.embed .topbar, html.embed footer, html.embed .mobile-nav, html.embed .back, html.embed .legal .eyebrow, html.embed .bg-particles, html.embed .bg-glow, html.embed .cur-dot, html.embed .cur-ring { display: none !important; }
html.embed body { padding-bottom: 0; }
html.embed .wrap { width: calc(100% - 64px); max-width: none; }
html.embed .legal { padding: 28px 0 40px; max-width: none; }
html.embed .legal h1 { padding-right: 52px; }

/* ---------- Background spectrum (appears only while music plays) ---------- */
.bg-spectrum { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- Social icons (images/icon-*.png, white) ---------- */
.social-icon img { width: 22px; height: 22px; object-fit: contain; opacity: .92; display: block; }
.social.community .social-icon img { width: 26px; height: 26px; }
.social.minor .social-icon img { width: 17px; height: 17px; }

/* ---------- Lite mode (Android / weak phones, see js/main.js) ---------- */
html.lite *, html.lite *::before, html.lite *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.lite .glass-panel, html.lite .social, html.lite .service-item, html.lite .pill, html.lite .lang, html.lite .contact, html.lite .video-card { background-color: #17171b; }
html.lite .player, html.lite .mobile-nav, html.lite .modal, html.lite .gate-btn { background-color: #101013; }
html.lite .modal { background-color: #08080aee; }
html.lite .glitch:not(.is-max), html.lite .glitch:not(.is-max)::before, html.lite .glitch:not(.is-max)::after { animation: none !important; }
html.lite .hero h1 .accent, html.lite .gate-logo .accent { animation: none !important; }
html.lite .ring, html.lite .ring.two { animation-duration: 40s; }
html.lite .orb-video { filter: none; }
html.lite .bg-glow, html.lite .cur-dot, html.lite .cur-ring { display: none; }
html.lite body::before { filter: none; }   /* big blurred layer is expensive */
html.lite body::after { display: none; }    /* film grain overlay */
html.lite .glass-orb { animation: none; }
html.lite .gate-btn { animation: none; opacity: .9; }
html.lite .topbar, html.lite .hero-copy > *, html.lite .visual { animation-duration: .5s; }


/* ---------- In-app browsers (TikTok / Telegram / Instagram ...) ---------- */
/* the avatar is a still image there: no <video>, so nothing can pop up full-screen */
html.inapp .glass-orb { animation: none; }
html.inapp .video-card, html.inapp .glass-panel { transition: none; }

.service-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.service-body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.service-body em { font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); opacity: .75; }
.service-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.service-hint { color: var(--muted); font-size: 12px; }

/* TikTok numbers: small separate plate above the social links */
.tt-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; width: fit-content; max-width: 100%; margin: 0 0 14px; padding: 9px 16px 9px 10px; border: 1px solid var(--edge); border-radius: 999px; background: var(--glass); }
.tt-stats[hidden], .tt-item[hidden] { display: none; }
.tt-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ffffff0f; }
.tt-handle { font-size: 12px; font-weight: 600; letter-spacing: -.01em; }
.tt-item { display: inline-flex; align-items: baseline; gap: 6px; }
.tt-item strong { font-size: 14px; font-weight: 700; letter-spacing: -.03em; }
.tt-item small { color: var(--muted); font-size: 11px; }
html.lite .tt-stats { background-color: #17171b; }
@media (max-width: 700px) {
  .tt-stats { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 20px; }
  .tt-handle { display: none; }
  .tt-item { flex-direction: column; align-items: center; gap: 1px; flex: 1; }
  .tt-item small { font-size: 10px; }
}

/* in-app hint */
.inapp-hint { display: none; }
html.inapp .inapp-hint { position: fixed; z-index: 60; left: 10px; right: 10px; top: calc(8px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; border: 1px solid var(--edge); border-radius: 14px; background: #101013; color: var(--muted); font-size: 12px; line-height: 1.4; }
html.inapp .inapp-hint span { flex: 1; }
.inapp-x { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #ffffff14; color: var(--text); font-size: 16px; line-height: 1; cursor: pointer; }
html.gate-on .inapp-hint { z-index: 1; }
/* FAQ: button under "How to order". Height is animated from JS (Web Animations), content fades with
   compositor-only properties (opacity / translate). On desktop the buttons open on hover and tilt
   toward the cursor (transform is driven from JS, so it has no CSS transition on purpose). */
.faq-wrap { margin-top: 14px; }
.faq-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 16px; border: 1px solid var(--edge); border-radius: 999px; background: var(--glass); color: var(--text); font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .06em; cursor: pointer; transition: background .3s ease, border-color .3s ease, scale .25s cubic-bezier(.22,1,.36,1); }
.faq-toggle:hover { background: #ffffff14; border-color: #ffffff40; }
.faq-toggle:active, .faq-q:active { scale: .98; }
.faq-toggle:focus-visible, .faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq-toggle svg, .faq-q svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.faq-toggle[aria-expanded="true"] svg, .faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }

.faq-panel { height: 0; overflow: hidden; max-width: 760px; }
.faq-panel.is-open { height: auto; }
.faq-panel.is-settled { overflow: visible; }
.faq-inner { display: grid; gap: 8px; padding-top: 12px; padding-bottom: 2px; perspective: 900px; }

.faq-item { position: relative; border: 1px solid var(--edge); border-radius: 16px; background: var(--glass); opacity: 0; translate: 0 10px; transition: opacity .45s ease, translate .6s cubic-bezier(.22,1,.36,1), border-color .35s ease, background-color .35s ease; backface-visibility: hidden; }
.faq-panel.is-open .faq-item { opacity: 1; translate: 0 0; }
.faq-panel.is-open .faq-item:nth-child(1) { transition-delay: .05s; }
.faq-panel.is-open .faq-item:nth-child(2) { transition-delay: .10s; }
.faq-panel.is-open .faq-item:nth-child(3) { transition-delay: .15s; }
.faq-panel.is-open .faq-item:nth-child(4) { transition-delay: .20s; }
.faq-panel.is-settled .faq-item { transition-delay: 0s; }
.faq-item.is-open { border-color: #ffffff26; background-color: #ffffff0a; }

.faq-q { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; border-radius: 16px; transition: scale .25s cubic-bezier(.22,1,.36,1); }
.faq-q::before { content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 1px; background: linear-gradient(90deg, #ffffff66, #ffffff22); transform: scaleX(0); transform-origin: left; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.faq-q.is-dwell::before { opacity: 1; animation: faq-dwell .75s linear forwards; }
@keyframes faq-dwell { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.faq-a { height: 0; overflow: hidden; }
.faq-item.is-open .faq-a { height: auto; }
.faq-a p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 13px; line-height: 1.6; opacity: 0; translate: 0 -6px; transition: opacity .35s ease, translate .5s cubic-bezier(.22,1,.36,1); }
.faq-item.is-open .faq-a p { opacity: 1; translate: 0 0; transition-delay: .1s; }

/* desktop only: light glare that follows the cursor + tilt layer hint */
@media (hover: hover) and (pointer: fine) {
  .faq-toggle, .faq-item { transform-style: preserve-3d; }
  .faq-toggle.is-tilting, .faq-item.is-tilting { will-change: transform; }
  .faq-item::after, .faq-toggle::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), #ffffff1c, transparent 55%); }
  .faq-toggle { position: relative; }
  .faq-item.is-tilting::after, .faq-toggle.is-tilting::after { opacity: 1; }
}
html.lite .faq-item, html.lite .faq-toggle { background-color: #17171b; }
html.lite .faq-item::after, html.lite .faq-toggle::after { display: none; }
@media (prefers-reduced-motion: reduce) { .faq-item, .faq-a p, .faq-toggle, .faq-q, .faq-toggle svg, .faq-q svg { transition: none !important; } }

/* Works: plain link cards */
.works-links { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Phones + in-app browsers: animated image instead of <video> (js/main.js sets .avatar-img) */
html.avatar-img .orb-video { display: none !important; }
html.avatar-img .glass-orb { background: url("../video/avatar-anim.webp") center / cover no-repeat, url("../video/avatar-poster.jpg") center / cover no-repeat, #050506; }

/* Phones + in-app browsers: light fade-in on scroll (js/main.js sets .rv) */
.rv .reveal { opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .8s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
.rv .reveal.is-in { opacity: 1; transform: none; }
