:root {
  --bg: #0b0d12;
  --bg-alt: #0f1219;
  --surface: #141823;
  --surface-2: #1a1f2c;
  --border: #232a3a;
  --border-hover: #343d52;
  --text: #e8ebf2;
  --muted: #8f98ab;
  --accent: #f5a524;
  --accent-2: #ffcf70;
  --accent-ink: #1a1204;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 0 0 1px var(--border), 0 0 0 3px rgba(245, 165, 36, .25);
}
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: 8px;
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a[aria-current="true"] { color: var(--text); background: var(--surface); }

.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(235, 4, 0, .14); border: 1px solid rgba(235, 4, 0, .45);
  color: #ff6b6b; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s;
}
.live-pill[hidden] { display: none; }
.live-pill:hover { background: rgba(235, 4, 0, .24); }
.live-pill__dot, .live__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, .6); }
  100% { box-shadow: 0 0 0 10px rgba(255, 59, 59, 0); }
}

.nav__burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0 10px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.nav__burger span { height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .25s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lang {
  display: flex; padding: 3px; gap: 2px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.lang button {
  font: 600 12px/1 var(--font); letter-spacing: .04em;
  padding: 7px 10px; border: 0; border-radius: 7px; cursor: pointer;
  background: transparent; color: var(--muted);
  transition: background .2s, color .2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 104px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(245, 165, 36, .16), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .22;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; margin-bottom: 24px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: #3ddc84;
  box-shadow: 0 0 0 4px rgba(61, 220, 132, .15);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
.lead { color: var(--muted); font-size: 1.1rem; margin-top: 20px; max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 11px;
  font-weight: 600; font-size: 15px;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px rgba(245, 165, 36, .55);
}
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border: 1px solid var(--border); background: var(--surface); }
.btn--ghost:hover { border-color: var(--border-hover); }
.btn__icon { width: 18px; height: 18px; fill: currentColor; }
.btn--discord { background: #5865f2; color: #fff; box-shadow: 0 10px 30px -12px rgba(88, 101, 242, .6); }
.btn--discord:hover { background: #6b77f5; }

.socials { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  color: var(--muted); transition: color .2s, border-color .2s, transform .2s;
}
.socials a:hover { color: var(--text); border-color: var(--border-hover); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

.hero__inner > * { min-width: 0; }
.hero__visual { position: relative; padding-top: 64px; }
.badge {
  position: absolute; top: 0; right: -18px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px; border-radius: 16px;
  background: rgba(26, 31, 44, .88); border: 1px solid var(--border-hover);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.badge img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.badge strong { display: block; font-size: 15px; }
.badge small { color: var(--muted); font: 12px var(--mono); }
@keyframes float { 50% { transform: translateY(-6px); } }

.cursor {
  display: inline-block; width: 8px; height: 1.1em; margin-left: 4px;
  vertical-align: text-bottom; background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.editor {
  position: relative;
  background: #0e1118; border: 1px solid var(--border-hover); border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset, 0 0 120px -40px rgba(245, 165, 36, .35);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transition: transform .6s ease;
}
.editor:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.editor__bar {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 0 10px; height: 44px;
  background: #0a0c12; border-bottom: 1px solid var(--border);
}
.editor__dots { display: flex; gap: 7px; align-self: center; }
.editor__dots i { width: 11px; height: 11px; border-radius: 50%; }
.editor__dots i:nth-child(1) { background: #ff5f57; }
.editor__dots i:nth-child(2) { background: #febc2e; }
.editor__dots i:nth-child(3) { background: #28c840; }
.editor__tabs { display: flex; gap: 2px; min-width: 0; overflow: hidden; }
.editor__tab {
  position: relative; display: flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 11px; border: 0; border-radius: 8px 8px 0 0; cursor: pointer;
  background: transparent; color: var(--muted);
  font: 12px var(--mono); white-space: nowrap;
  transition: background .2s, color .2s;
}
.editor__tab::before {
  content: ""; width: 9px; height: 9px; border-radius: 2px; flex: none;
  background: linear-gradient(135deg, #f89820, #e76f00);
}
.editor__tab:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.editor__tab[aria-selected="true"] { background: #0e1118; color: var(--text); }
.editor__tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--accent); border-radius: 2px;
}

.editor__body { display: flex; padding: 16px 0 18px; overflow: hidden; }
.editor__gutter {
  flex: none; width: 44px; padding-right: 14px; text-align: right;
  font: 13px/1.7 var(--mono); color: #3b4358; user-select: none;
}
.editor__gutter span { display: block; }
.editor__gutter .is-current { color: var(--muted); }
.editor__code {
  flex: 1; min-width: 0; margin: 0; padding-right: 16px; overflow: hidden;
  font: 13px/1.7 var(--mono); color: #c9d1e0; white-space: pre;
}
.editor__code .k { color: #ff9e64; }
.editor__code .t { color: #7dcfff; }
.editor__code .f { color: #e0af68; }
.editor__code .a { color: #bb9af7; }
.editor__code .s { color: #9ece6a; }
.editor__code .n { color: #ff757f; }
.editor__code .c { color: #565f89; font-style: italic; }

.editor__status {
  display: flex; align-items: center; gap: 14px; padding: 0 12px; height: 28px;
  background: #0a0c12; border-top: 1px solid var(--border);
  font: 11px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden;
}
.editor__branch { display: inline-flex; align-items: center; gap: 5px; }
.editor__branch svg { width: 12px; height: 12px; fill: currentColor; }
.editor__spacer { flex: 1; }
.editor__lang { color: #f89820; }
.editor__build { transition: color .3s; }
.editor__build.is-running { color: var(--accent); }
.editor__build.is-ok { color: #3ddc84; }

/* ---------- Bande de logos ---------- */
.strip { border-block: 1px solid var(--border); background: var(--bg-alt); }
.strip__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px;
  flex-wrap: wrap; padding-block: 26px;
}
.strip__label {
  color: var(--muted); font: 500 12.5px var(--mono);
  text-transform: uppercase; letter-spacing: .12em;
}
.strip__logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.strip__logos a { display: block; border-radius: 12px; transition: transform .25s; }
.strip__logos img {
  width: 44px; height: 44px; border-radius: 12px; object-fit: cover;
  background: #0a0c10; border: 1px solid var(--border);
  filter: grayscale(1) brightness(.85); opacity: .7;
  transition: filter .3s, opacity .3s;
}
.strip__logos img.contain { object-fit: contain; padding: 3px; }
.strip__logos a:hover { transform: translateY(-3px); }
.strip__logos a:hover img { filter: none; opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { max-width: 640px; margin-bottom: 52px; }
.kicker {
  color: var(--accent); font: 500 13px var(--mono);
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px;
}
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
.section__sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skill {
  padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: border-color .25s, transform .25s;
}
.skill:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.skill__icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 12px; background: rgba(245, 165, 36, .1); font-size: 22px;
}
.skill h3 { font-size: 1.05rem; margin-bottom: 8px; }
.skill p { color: var(--muted); font-size: .95rem; }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.client {
  position: relative; display: flex; align-items: center; gap: 20px;
  padding: 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); cursor: pointer;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.client:hover {
  border-color: rgba(245, 165, 36, .5); transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(245, 165, 36, .45);
}
.client img {
  flex: none; width: 80px; height: 80px; border-radius: 18px; object-fit: cover;
  background: #0a0c10; border: 1px solid var(--border);
  transition: transform .3s;
}
.client img.contain { object-fit: contain; padding: 6px; }
.client:hover img { transform: scale(1.06) rotate(-2deg); }
.client__body { min-width: 0; padding-right: 28px; }
.client h3 { font-size: 1.1rem; }
.role {
  display: inline-block; margin: 6px 0 8px; padding: 2px 10px; border-radius: 999px;
  background: rgba(245, 165, 36, .12); color: var(--accent-2);
  font-size: 12px; font-weight: 600;
}
.client__desc { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.client__go {
  position: absolute; top: 18px; right: 18px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 8px;
  color: var(--muted); background: var(--surface-2);
  transition: color .25s, background .25s;
}
.client__go svg { width: 16px; height: 16px; }
.client:hover .client__go { color: var(--accent-ink); background: var(--accent); }

/* Feature (Eldoria) */
.feature {
  display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center;
  padding: 48px; border-radius: 24px; border: 1px solid var(--border);
  background:
    radial-gradient(circle at 15% 50%, rgba(245, 165, 36, .14), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.feature__media img {
  width: 100%; height: auto; border-radius: 20px;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8);
}
.feature h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.feature .lead { margin-top: 16px; }
.tags { list-style: none; padding: 0; margin: 24px 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.feature__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.tags li {
  padding: 5px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .03);
  font: 500 12.5px var(--mono); color: var(--muted);
}

/* Live & vidéos */
.media { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.live, .yt {
  border: 1px solid var(--border); border-radius: 20px; background: var(--surface); overflow: hidden;
}
.live { transition: border-color .3s, box-shadow .3s; }
.live[data-state="online"] { border-color: rgba(145, 70, 255, .6); box-shadow: 0 24px 60px -30px rgba(145, 70, 255, .7); }

.live__screen { position: relative; aspect-ratio: 16 / 9; background: #0a0c10; }
.live__embed { position: absolute; inset: 0; }
.live__embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.live__offline {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(145, 70, 255, .22), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .015) 0 2px, transparent 2px 12px),
    #0d0f16;
}
.live__offline img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; filter: grayscale(.6); opacity: .85; box-shadow: 0 0 0 4px rgba(145, 70, 255, .25); }
.live__status {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 600;
}
.live__status .live__dot { background: #6b7280; animation: none; }
.live[data-state="online"] .live__offline { display: none; }

.live__body { padding: 24px; }
.live__channel { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.live__channel svg { width: 18px; height: 18px; fill: #9146ff; }
.live__badge {
  display: none; margin-left: 4px; padding: 2px 8px; border-radius: 6px;
  background: #eb0400; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em;
}
.live[data-state="online"] .live__badge { display: inline-block; }
.live__label { margin-top: 18px; color: var(--muted); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.live[data-state="online"] .live__label { color: #ff6b6b; }
.live__title { margin-top: 6px; font-size: 1.15rem; line-height: 1.35; overflow-wrap: anywhere; }
.live__info { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 22px; color: var(--muted); font-size: 14px; }
.live__info span:empty { display: none; }
.live__viewers { color: #ff6b6b; font-weight: 600; }

.btn--twitch { background: #9146ff; color: #fff; box-shadow: 0 10px 30px -12px rgba(145, 70, 255, .7); }
.btn--twitch:hover { background: #a366ff; }
.btn--youtube { background: #ff0033; color: #fff; box-shadow: 0 10px 30px -12px rgba(255, 0, 51, .6); }
.btn--youtube:hover { background: #ff2a55; }

.yt { padding: 14px 14px 22px; }
.yt__main { display: block; border-radius: 14px; }
.yt__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0a0c10; }
.yt__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.yt__thumb img:not([src]) { visibility: hidden; }
.yt__main:hover .yt__thumb img { transform: scale(1.04); }
.yt__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .55));
  opacity: .9; transition: opacity .3s;
}
.yt__play svg { width: 64px; height: 64px; fill: #ff0033; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5)); transition: transform .3s; }
.yt__main:hover .yt__play svg { transform: scale(1.1); }
.yt__body { padding: 16px 8px 4px; }
.yt__label { color: var(--accent); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.yt__title { margin-top: 6px; font-size: 1.1rem; line-height: 1.35; overflow-wrap: anywhere; }
.yt__main:hover .yt__title { color: var(--accent-2); }
.yt__meta { margin-top: 6px; color: var(--muted); font-size: 14px; }

.yt__list { list-style: none; margin: 14px 0 20px; padding: 0 8px; display: grid; gap: 10px; }
.yt__list:empty { display: none; }
.yt__list a { display: flex; gap: 14px; align-items: center; padding: 6px; margin: -6px; border-radius: 10px; transition: background .2s; }
.yt__list a:hover { background: var(--surface-2); }
.yt__list img { flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; background: #0a0c10; }
.yt__list strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35; }
.yt__list small { color: var(--muted); font-size: 12.5px; }
.yt > .btn { margin-left: 8px; }

/* Skeleton pendant le chargement */
[data-state="loading"] .live__title, [data-state="loading"] .yt__title { color: transparent; border-radius: 6px; background: var(--surface-2); animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: .5; } }

/* Contact links */
.links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.link {
  --c: var(--accent);
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: border-color .25s, transform .25s;
}
.link svg { width: 30px; height: 30px; fill: var(--c); }
.link strong { display: block; font-size: 1rem; }
.link small { color: var(--muted); font-size: .85rem; word-break: break-word; }
.link:hover { border-color: var(--c); transform: translateY(-4px); }
.link--discord { --c: #5865f2; }
.link--github  { --c: #e8ebf2; }
.link--twitch  { --c: #9146ff; }
.link--youtube { --c: #ff3b3b; }

/* Lien non encore configuré */
.is-disabled { cursor: default; opacity: .55; }
.is-disabled:hover { transform: none; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__top:hover { color: var(--text); }

/* Musique de fond */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.music {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: rgba(20, 24, 35, .85); border: 1px solid var(--border-hover); border-radius: 14px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.music[hidden] { display: none; }
.music__toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  transition: background .2s, transform .2s;
}
.music__toggle:hover { background: var(--accent-2); transform: scale(1.05); }
.music__play { width: 20px; height: 20px; fill: currentColor; }
.music__eq { display: none; align-items: flex-end; gap: 2px; height: 16px; }
.music__eq i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; animation: eq 1s ease-in-out infinite; }
.music__eq i:nth-child(2) { animation-delay: -.3s; }
.music__eq i:nth-child(3) { animation-delay: -.6s; }
.music__eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.music__eq i { transform-origin: bottom; }
.music.is-playing .music__play { display: none; }
.music.is-playing .music__eq { display: flex; }

.music__vol { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 8px; color: var(--muted); cursor: pointer; }
.music__vol svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.music__vol input {
  -webkit-appearance: none; appearance: none; width: 90px; height: 4px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(to right, var(--accent) var(--fill, 15%), var(--border-hover) var(--fill, 15%));
}
.music__vol input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--text); border: 0; box-shadow: 0 0 0 3px rgba(245, 165, 36, .35);
}
.music__vol input::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--text); border: 0; box-shadow: 0 0 0 3px rgba(245, 165, 36, .35);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .skills { grid-template-columns: repeat(2, 1fr); }
  .links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 12px 16px 18px;
    background: rgba(11, 13, 18, .97); border-bottom: 1px solid var(--border);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 12px 14px; font-size: 16px; }
  .live-pill { margin-left: auto; }
  .lang { margin-left: auto; }
  .live-pill:not([hidden]) + .lang { margin-left: 0; }
  .media { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .editor, .editor:hover { transform: none; }
  .badge { right: 12px; }
  .feature { grid-template-columns: 1fr; padding: 28px; gap: 28px; text-align: center; }
  .feature__media { max-width: 240px; margin-inline: auto; }
  .feature .tags, .feature__cta { justify-content: center; }
  .strip__inner { justify-content: center; text-align: center; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .skills { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr 1fr; }
  .clients { grid-template-columns: 1fr; }
  .client { padding: 18px; gap: 16px; }
  .client img { width: 64px; height: 64px; border-radius: 14px; }
  .editor__code, .editor__gutter { font-size: 11px; }
  .editor__gutter { width: 34px; padding-right: 10px; }
  .editor__tab { padding: 0 10px; }
  .editor__status span:nth-last-child(2) { display: none; }
  .brand__name { display: none; }
  .music { right: 12px; bottom: 12px; }
  .music__vol input { width: 70px; }
}
.editor__code .cursor { width: 7px; margin-left: 1px; }
