/* =========================================================
   Darna Sounds — Main stylesheet
   ========================================================= */
:root {
  --bg: #0b0b12;
  --bg-2: #11111b;
  --surface: #161623;
  --surface-2: #1d1d2d;
  --line: rgba(255, 255, 255, .08);
  --text: #f3f0ea;
  --muted: #a3a1b3;
  --orange: #ff7a3d;
  --violet: #7c5cff;
  --teal: #2de2c6;
  --pink: #ff4f8b;
  --grad: linear-gradient(110deg, var(--orange), var(--violet) 55%, var(--teal));
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-latin: "Space Grotesk", var(--font);
  --container: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-latin); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
::selection { background: var(--violet); color: #fff; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad--2 { background-image: linear-gradient(110deg, var(--violet), var(--pink)); }
.grad--3 { background-image: linear-gradient(110deg, var(--teal), #6ee7ff); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 500; letter-spacing: .02em;
  color: var(--teal); margin-bottom: 14px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 var(--teal); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(45, 226, 198, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(45, 226, 198, 0); } }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--grad);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 0;
  background: var(--b); background-size: 160% 100%; background-position: 0 0;
  color: #fff; font-weight: 700; font-size: 1rem;
  transition: background-position .5s var(--ease), transform .2s var(--ease), box-shadow .3s;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .7);
}
.btn:hover { background-position: 100% 0; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; color: var(--text); }
.btn--ghost:hover { background: var(--surface); border-color: rgba(255, 255, 255, .2); }
.btn--small { padding: 9px 18px; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(11, 11, 18, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo { display: inline-flex; align-items: center; gap: 12px; direction: ltr; color: var(--text); }
.logo__mark { width: 49px; height: 40px; flex: none; transition: transform .4s var(--ease); }
.logo:hover .logo__mark { transform: translateY(-2px); }
.logo__text { display: flex; flex-direction: column; align-items: center; line-height: 1; text-transform: uppercase; }
.logo__name { font-family: "Anton", "Impact", "Arial Narrow", sans-serif; font-weight: 400; font-size: 1.35rem; letter-spacing: .34em; margin-inline-end: -.34em; }
.logo__sub { font-family: "Montserrat", var(--font); font-weight: 600; font-size: .6rem; letter-spacing: .14em; margin-inline-end: -.14em; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--muted); font-size: .97rem; transition: color .2s; position: relative; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--text); }
.nav a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; background: var(--grad); transform: scaleX(0); transition: transform .3s var(--ease); border-radius: 2px; }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; inset-inline: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 70px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(124, 92, 255, .28), transparent 70%),
    radial-gradient(500px 380px at 10% 70%, rgba(255, 122, 61, .2), transparent 70%),
    radial-gradient(500px 300px at 50% 100%, rgba(45, 226, 198, .14), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  opacity: .5;
}
.hero__wave { position: absolute; inset: auto 0 0 0; width: 100%; height: 55%; z-index: -1; opacity: .9; }
.hero__title { font-size: clamp(2.5rem, 7.5vw, 5.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 24px; }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 640px; }
.hero__lead strong { color: var(--text); font-family: var(--font-latin); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 56px; }

.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 860px; }
.stats li { background: rgba(17, 17, 27, .75); backdrop-filter: blur(6px); padding: 20px 22px; }
.stats b { display: block; font-family: var(--font-latin); font-size: 1.2rem; line-height: 1.2; margin-bottom: 6px; }
.stats span { color: var(--muted); font-size: .9rem; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 18px 0; direction: ltr; }
.marquee__track { display: flex; gap: 32px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee span { font-size: 1.35rem; font-weight: 500; white-space: nowrap; color: var(--muted); }
.marquee i { font-style: normal; color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section__head--row h2 { margin: 0; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  --c: var(--orange);
  position: relative; padding: 32px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s, background .3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: var(--c); filter: blur(90px); opacity: 0; top: -100px; inset-inline-end: -80px;
  transition: opacity .4s;
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.card:hover::before { opacity: .35; }
.card > * { position: relative; }
.card--art { --c: var(--orange); }
.card--music { --c: var(--violet); }
.card--apps { --c: var(--teal); }
.card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); font-size: .97rem; }
.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .78rem; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* Arabic words: letter-spacing breaks the joining of Arabic letters */
[lang="ar"] { letter-spacing: 0; text-transform: none; font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; }

/* ---------- Vision manifesto ---------- */
.manifesto {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center;
  padding: clamp(28px, 4vw, 48px); margin-bottom: 24px; border-radius: 28px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
}
.manifesto::before {
  content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%;
  inset-inline-end: -120px; top: -200px; background: var(--violet); filter: blur(120px); opacity: .22;
}
.manifesto__mark { width: 148px; height: 120px; color: var(--text); }
.manifesto blockquote { margin: 0; font-family: var(--font-latin); font-size: clamp(1.25rem, 2.4vw, 1.85rem); line-height: 1.4; letter-spacing: -.01em; }
.manifesto em { font-style: normal; color: var(--muted); }

/* ---------- Projects ---------- */
.section__aside { max-width: 420px; margin: 0; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s;
}
.project:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .18); }
.project__media { aspect-ratio: 16 / 11; position: relative; display: flex; align-items: center; justify-content: center; gap: 26px; overflow: hidden; }
.project__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22, 22, 35, .55), transparent 50%); pointer-events: none; }
.project__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.project__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.project__body h3 { font-size: 1.55rem; margin: 6px 0 0; }
.project__body p { flex: 1; margin: 0; color: var(--muted); font-size: .96rem; }
.project__link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: .95rem; transition: color .2s; }
.project__link svg { transition: transform .3s var(--ease); }
.project__link:hover { color: var(--teal); }
.project__link:hover svg { transform: translateX(4px); }

.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: none; white-space: nowrap;
  color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 2s infinite; }
.badge--dev { color: #b9a8ff; background: color-mix(in srgb, var(--violet) 14%, transparent); border-color: color-mix(in srgb, var(--violet) 35%, transparent); }

/* Generated artwork for project thumbnails */
.media--imuzar { background: radial-gradient(circle at 75% 20%, rgba(45, 226, 198, .35), transparent 45%), linear-gradient(135deg, #22165c, #7c5cff); }
.media--banana { background: radial-gradient(circle at 20% 80%, rgba(255, 79, 139, .3), transparent 45%), linear-gradient(135deg, #3a2306, #ff9f1c 60%, #ffd166); }
.media--piano { background: radial-gradient(circle at 30% 0%, rgba(124, 92, 255, .4), transparent 55%), radial-gradient(circle at 80% 100%, rgba(45, 226, 198, .25), transparent 55%), #12121c; }
.phone { width: 24%; min-width: 74px; aspect-ratio: 9 / 18; border-radius: 18px; background: #0b0b12; border: 3px solid rgba(255, 255, 255, .85); position: relative; z-index: 1; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); transform: rotate(-8deg); transition: transform .5s var(--ease); }
.phone::before { content: ""; position: absolute; inset: 14% 12% auto; height: 34%; border-radius: 10px; background: var(--grad); }
.phone::after { content: ""; position: absolute; inset: auto 12% 12%; height: 30%; border-radius: 8px; background: repeating-linear-gradient(#ffffff22 0 6px, transparent 6px 14px); }
.media--banana .phone { width: 19%; transform: rotate(-6deg) translateY(10px); }
.media--banana .phone::before { background: linear-gradient(110deg, #ffd166, var(--orange)); }
.media--banana .phone--b { transform: rotate(6deg) translateY(-10px); }
.project:hover .phone { transform: rotate(0); }
.keys { width: 82%; position: relative; z-index: 1; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.keys__white rect { fill: var(--text); }
.keys__black rect { fill: #0b0b12; }
.keys__white .hit { animation: keyhit 3.2s ease-in-out infinite; }
.keys__white .hit:nth-child(5) { animation-delay: .4s; }
.keys__white .hit:nth-child(8) { animation-delay: .8s; }
.keys__white .hit:nth-child(11) { animation-delay: 1.2s; }
@keyframes keyhit { 0%, 30%, 100% { fill: var(--text); } 10% { fill: #b9a8ff; } }

.project--more {
  grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: 28px 32px; background: transparent; border: 1px dashed rgba(255, 255, 255, .18);
}
.project--more h3 { margin: 0 0 6px; }
.project--more p { margin: 0; color: var(--muted); }

/* ---------- Live ---------- */
.live { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.live__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.live__list li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.live__list .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); }
.live__list svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.live__list h3 { font-size: 1.08rem; margin: 2px 0 4px; }
.live__list p { margin: 0; color: var(--muted); font-size: .96rem; }

.ticket { position: relative; border-radius: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ticket__stage {
  height: 190px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 24px;
  background:
    radial-gradient(110px 230px at 28% -10%, rgba(255, 122, 61, .55), transparent 70%),
    radial-gradient(110px 230px at 72% -10%, rgba(124, 92, 255, .6), transparent 70%),
    radial-gradient(240px 110px at 50% 110%, rgba(45, 226, 198, .28), transparent 70%),
    #0e0e18;
}
.eq { display: flex; align-items: flex-end; gap: 8px; height: 55%; position: relative; z-index: 1; }
.eq i { width: 12px; border-radius: 6px; background: var(--text); animation: eq 1.1s ease-in-out infinite; height: 40%; }
.eq i:nth-child(2) { animation-delay: -.2s; }
.eq i:nth-child(3) { animation-delay: -.5s; }
.eq i:nth-child(4) { animation-delay: -.7s; }
.eq i:nth-child(5) { animation-delay: -.35s; }
.eq i:nth-child(6) { animation-delay: -.9s; }
.eq i:nth-child(7) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.ticket__body { padding: 26px 28px 0; }
.ticket__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ticket__brand { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.ticket__body h3 { font-size: 1.5rem; margin: 0; }
.ticket__info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 0; }
.ticket__info dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.ticket__info dd { margin: 0; font-family: var(--font-latin); font-size: .95rem; }
.ticket__stub { position: relative; margin-top: 24px; padding: 24px 28px 28px; border-top: 2px dashed var(--line); }
.ticket__stub::before, .ticket__stub::after { content: ""; position: absolute; top: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.ticket__stub::before { left: -14px; }
.ticket__stub::after { right: -14px; }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.studio__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.tempo { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
.tempo output { font-family: var(--font-latin); color: var(--text); min-width: 2.5ch; }
.tempo input { accent-color: var(--violet); width: 120px; }
.pads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 22px; border-radius: 28px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pad {
  --c: var(--orange);
  aspect-ratio: 1; border-radius: 18px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--muted); font-size: .95rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: transform .08s, background .25s, box-shadow .25s, color .2s;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.pad b { font-family: var(--font-latin); font-size: 1.4rem; color: var(--text); }
.pad:nth-child(2) { --c: var(--pink); }
.pad:nth-child(3) { --c: #ffd166; }
.pad:nth-child(4) { --c: var(--orange); }
.pad--note { --c: var(--violet); }
.pad--note:nth-child(even) { --c: var(--teal); }
.pad:hover { color: var(--text); border-color: rgba(255, 255, 255, .18); }
.pad.is-hit { transform: scale(.94); background: var(--c); color: #0b0b12; box-shadow: 0 0 40px -4px var(--c); }
.pad.is-hit b { color: #0b0b12; }
.pad.is-step { box-shadow: inset 0 0 0 2px var(--c); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.contact__list a { color: var(--text); direction: ltr; }
.contact__list a:hover { color: var(--teal); }
.contact__list svg, .socials svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact__list svg { color: var(--teal); }
.socials { display: flex; gap: 10px; }
.socials a { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--muted); transition: all .25s; }
.socials a:hover { color: var(--text); border-color: var(--violet); transform: translateY(-3px); }

.form { padding: 34px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: .92rem; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 16px;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form input::placeholder, .form textarea::placeholder { color: #66647a; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 92, 255, .18); }
.form .is-invalid { border-color: var(--pink) !important; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: .92rem; color: var(--muted); margin-bottom: 8px; padding: 0; }
.chips label { display: inline-block; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); cursor: pointer; transition: all .2s; }
.chips input:checked + span { background: color-mix(in srgb, var(--violet) 22%, transparent); border-color: var(--violet); color: var(--text); }
.chips input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.form__note { margin: 0; font-size: .92rem; min-height: 1.5em; color: var(--teal); }
.form__note.is-error { color: var(--pink); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg-2); }
.footer__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; padding-bottom: 32px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer__brand p { margin-top: 16px; max-width: 360px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-top: 8px; }
.footer__nav a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.footer__nav a:hover { color: var(--text); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; color: var(--muted); font-size: .9rem; }
.logo--sm { gap: 10px; }
.logo--sm .logo__mark { width: 39px; height: 32px; }
.logo--sm .logo__name { font-size: 1.1rem; }
.logo--sm .logo__sub { font-size: .5rem; margin-top: 3px; }
.totop { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); transition: all .25s; }
.totop:hover { color: var(--text); border-color: var(--teal); transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.notfound__mark { display: inline-block; margin-bottom: 8px; }
.notfound__mark img { display: block; border-radius: 16px; }
.notfound h1 { font-family: var(--font-latin); font-size: clamp(6rem, 22vw, 12rem); line-height: 1; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .projects { gap: 16px; }
  .project__body { padding: 20px; }
  .project__meta { flex-wrap: wrap; }
  .live { gap: 44px; }
}
@media (max-width: 880px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 11, 18, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 10px 16px 22px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .header:has(.nav.is-open) { background: rgba(11, 11, 18, .97); }
  .services, .projects { grid-template-columns: 1fr; }
  .project__media { aspect-ratio: 16 / 8; }
  .live { grid-template-columns: 1fr; }
  .studio, .contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  .project__media { aspect-ratio: 16 / 10; }
  .manifesto { grid-template-columns: 1fr; gap: 24px; }
  .manifesto__mark { width: 99px; height: 80px; }
  .project--more { padding: 24px; }
  .ticket__body { padding: 22px 22px 0; }
  .ticket__stub { padding: 22px; }
  .ticket__info { grid-template-columns: 1fr 1fr; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .pads { gap: 10px; padding: 14px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .stats li { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
