/* Layout concept: dark-first studio page. Floating pill header, full-bleed signal-field hero, bento service grid, project strip, five-step sequence, contact panel. */
:root {
  --bg: #07090d;
  --bg-2: #0d1118;
  --surface: #121823;
  --line: #222b3a;
  --fg: #eef2f7;
  --muted: #94a0b4;
  --accent: #3ee0c8;
  --accent-ink: #04120f;
  --accent-2: #ffb454;
  --glass: rgba(13, 17, 24, 0.72);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --f-display: "Unbounded", "Changa", "Segoe UI", sans-serif;
  --f-body: "Manrope", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f5f8; --bg-2: #e9edf3; --surface: #ffffff; --line: #d3dae5;
    --fg: #0b1220; --muted: #526078; --accent: #0a8f7e; --accent-ink: #ffffff;
    --accent-2: #b8620a; --glass: rgba(255, 255, 255, 0.78);
    --shadow: 0 30px 70px -35px rgba(20, 35, 60, 0.35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f5f8; --bg-2: #e9edf3; --surface: #ffffff; --line: #d3dae5;
  --fg: #0b1220; --muted: #526078; --accent: #0a8f7e; --accent-ink: #ffffff;
  --accent-2: #b8620a; --glass: rgba(255, 255, 255, 0.78);
  --shadow: 0 30px 70px -35px rgba(20, 35, 60, 0.35);
  color-scheme: light;
}
:root[lang="ar"] {
  --f-display: "Changa", "Unbounded", "Segoe UI", sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
body.locked { overflow: hidden; height: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; line-height: 1.15; font-weight: 700; }
.wrap { max-width: 1240px; margin-inline: auto; }
.mono { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
:root[lang="ar"] .mono { letter-spacing: 0.02em; font-size: 0.8rem; text-transform: none; }
.tag { display: inline-flex; align-items: center; gap: 10px; }
.tag::before { content: ""; width: 26px; height: 1px; background: var(--accent); }

/* ---------- Intro ---------- */
#intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: all; }
#intro .panel { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--bg-2); transition: transform 1s var(--ease); }
#intro .top { top: 0; } #intro .bot { bottom: 0; }
#intro .core { position: relative; z-index: 2; text-align: center; display: grid; gap: 22px; justify-items: center; padding: 0 16px; transition: opacity 0.45s, transform 0.6s var(--ease); }
.word { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: clamp(2rem, 9vw, 5.4rem); letter-spacing: 0.02em; direction: ltr; display: flex; }
.word span { display: inline-block; transform: translateY(110%); opacity: 0; animation: rise 0.9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
.word span.hi { color: var(--accent); }
.wordmask { overflow: hidden; padding-bottom: 0.12em; }
@keyframes rise { to { transform: none; opacity: 1; } }
.meter { width: min(320px, 70vw); height: 2px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.count { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); direction: ltr; letter-spacing: 0.2em; }
#intro .skip { position: absolute; z-index: 3; bottom: max(24px, env(safe-area-inset-bottom, 0px)); inset-inline-end: 24px; background: none; border: 1px solid var(--line); border-radius: 99px; padding: 6px 16px; color: var(--muted); font-size: 0.8rem; }
#intro.done .top { transform: translateY(-101%); }
#intro.done .bot { transform: translateY(101%); }
#intro.done .core, #intro.done .skip { opacity: 0; transform: scale(1.06); }
#intro.gone { display: none; }

/* ---------- Header ---------- */
.hdr-spacer { height: 88px; }
header.hdr {
  position: fixed; z-index: 50; top: max(14px, env(safe-area-inset-top, 0px)); left: 0; right: 0;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}
header.hdr.hide { transform: translateY(-140%); }
.pill {
  pointer-events: auto; max-width: 1100px; margin-inline: auto; display: flex; align-items: center; gap: 14px;
  padding: 8px 10px 8px 22px; padding-inline: 22px 10px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow);
}
.logo { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 1.05rem; direction: ltr; letter-spacing: 0.02em; }
.logo b { color: var(--accent); font-weight: 800; }
nav.main { display: flex; gap: 4px; margin-inline: auto; }
nav.main a { position: relative; padding: 8px 14px; font-size: 0.9rem; color: var(--muted); border-radius: 99px; transition: color 0.3s, background 0.3s; }
nav.main a:hover, nav.main a.on { color: var(--fg); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tools { display: flex; align-items: center; gap: 8px; }
.ibtn { height: 40px; min-width: 40px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: transparent; display: inline-grid; place-items: center; font-family: var(--f-mono); font-size: 0.78rem; transition: border-color 0.3s, background 0.3s; }
.ibtn:hover { border-color: var(--accent); }
.ibtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.theme-ic .moon { display: block; } .theme-ic .sun { display: none; }
:root[data-resolved="light"] .theme-ic .moon { display: none; }
:root[data-resolved="light"] .theme-ic .sun { display: block; }
.cta-sm { height: 40px; padding: 0 20px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.88rem; display: inline-flex; align-items: center; border: 0; }
.burger { display: none; }

/* mobile menu */
#sheet { position: fixed; inset: 0; z-index: 49; background: var(--bg); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 100px max(24px, env(safe-area-inset-right, 0px)) 40px max(24px, env(safe-area-inset-left, 0px)); clip-path: circle(0 at calc(100% - 44px) 40px); transition: clip-path 0.8s var(--ease); visibility: hidden; }
:root[dir="rtl"] #sheet { clip-path: circle(0 at 44px 40px); }
#sheet.open { clip-path: circle(150% at 50% 30%); visibility: visible; }
#sheet a { font-family: var(--f-display); font-size: clamp(1.7rem, 8vw, 2.6rem); padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
#sheet a small { font-family: var(--f-mono); font-size: 0.7rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 860px); display: grid; align-items: center; padding-block: 40px 90px; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; width: 100%; display: grid; gap: 30px; }
.hero h1 { font-size: clamp(2.3rem, 8.4vw, 6.6rem); max-width: 14ch; letter-spacing: -0.02em; }
:root[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.2; max-width: 12ch; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.ready .hero h1 .ln > span { transform: none; }
.ready .hero h1 .ln:nth-child(2) > span { transition-delay: 0.12s; }
.ready .hero h1 .ln:nth-child(3) > span { transition-delay: 0.24s; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 56ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 99px; font-weight: 700; border: 1px solid var(--line); background: transparent; transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s; }
.btn.pri { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn:hover { transform: translateY(-3px); }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[dir="rtl"] .btn svg.arr { transform: scaleX(-1); }
.scrollhint { position: absolute; z-index: 1; bottom: 28px; inset-inline-start: 0; display: flex; align-items: center; gap: 12px; }
.scrollhint i { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: drip 2s infinite var(--ease); transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); direction: ltr; }
.marquee .track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-size: clamp(1.3rem, 3.4vw, 2.4rem); padding: 20px 28px; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--muted); }
.marquee span:nth-child(even) { color: var(--fg); -webkit-text-stroke: 0; }
.marquee span::after { content: "✦"; margin-inline-start: 56px; color: var(--accent); -webkit-text-stroke: 0; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding-block: clamp(70px, 11vw, 140px); }
.shead { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.shead h2 { font-size: clamp(1.8rem, 4.6vw, 3.4rem); max-width: 20ch; }
:root[lang="ar"] .shead h2 { line-height: 1.3; }
.shead p { color: var(--muted); max-width: 62ch; }

/* about */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.about > * { min-width: 0; }
.about .big { font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.4; text-wrap: balance; }
.about .big b { color: var(--accent); font-weight: 700; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; }
.facts dd { color: var(--muted); text-align: end; }

/* services */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.card { grid-column: span 4; position: relative; min-width: 0; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: grid; gap: 14px; align-content: start; min-height: 240px; transition: transform 0.5s var(--ease), border-color 0.3s; isolation: isolate; }
.card.w6 { grid-column: span 6; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.card:hover::before { opacity: 1; }
.card .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.card .ic svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .go { margin-top: auto; font-family: var(--f-mono); font-size: 0.75rem; color: var(--accent); }

/* work */
.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.proj { grid-column: span 4; display: grid; gap: 14px; min-width: 0; }
.proj.big { grid-column: span 8; }
.cover { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--c1); border: 1px solid var(--line); max-width: 100%; }
.proj.big .cover { aspect-ratio: 16 / 9; }
.cover::before { content: ""; position: absolute; inset: -30%; background: conic-gradient(from var(--a, 0deg) at 30% 70%, var(--c1), var(--c2), var(--c3), var(--c1)); filter: blur(40px); transition: transform 1.2s var(--ease); }
.cover::after { content: attr(data-mark); position: absolute; inset: 0; display: grid; place-items: center; font-family: "Unbounded", sans-serif; font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.6rem); color: #fff; mix-blend-mode: overlay; letter-spacing: 0.04em; direction: ltr; text-align: center; padding: 16px; }
.proj:hover .cover::before { transform: rotate(30deg) scale(1.15); }
.proj .meta { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.proj h3 { font-size: 1.05rem; font-family: var(--f-body); font-weight: 700; }
.proj .meta a:hover { color: var(--accent); }

/* process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: s; }
.step { padding: 28px 22px 10px 0; padding-inline: 0 22px; min-width: 0; position: relative; display: grid; gap: 12px; align-content: start; }
.step::before { content: ""; position: absolute; top: -5px; inset-inline-start: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent); }
.step .n { font-family: var(--f-mono); color: var(--accent); font-size: 0.8rem; direction: ltr; text-align: start; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* band */
.band { padding-block: clamp(60px, 9vw, 110px); }
.band .box { border-radius: 32px; padding: clamp(28px, 6vw, 80px); background: var(--accent); color: var(--accent-ink); display: grid; gap: 26px; position: relative; overflow: hidden; }
.band .box::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; inset-inline-end: -160px; top: -200px; border: 1px solid color-mix(in srgb, var(--accent-ink) 30%, transparent); box-shadow: 0 0 0 60px color-mix(in srgb, var(--accent-ink) 6%, transparent), 0 0 0 120px color-mix(in srgb, var(--accent-ink) 4%, transparent); pointer-events: none; }
.band h2 { font-size: clamp(1.8rem, 5vw, 3.6rem); max-width: 18ch; position: relative; z-index: 1; }
.band p { max-width: 54ch; position: relative; z-index: 1; opacity: 0.85; }
.band .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); position: relative; z-index: 1; width: fit-content; }

/* blog */
.posts { display: grid; border-top: 1px solid var(--line); }
.posts a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding 0.4s var(--ease), color 0.3s; }
.posts a:hover { color: var(--accent); padding-inline-start: 16px; }
.posts span { min-width: 0; font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 600; }
.posts svg { flex: none; width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
:root[dir="rtl"] .posts svg { transform: scaleX(-1); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); }
.contact > * { min-width: 0; }
form.f { display: grid; gap: 14px; padding: clamp(20px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font: inherit; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.sendrow .btn { height: 48px; padding: 0 20px; font-size: 0.9rem; }
.note { font-size: 0.85rem; color: var(--accent); min-height: 1.4em; }
.links { display: grid; gap: 0; border-top: 1px solid var(--line); align-content: start; }
.links a { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); transition: color 0.3s; }
.links a:hover { color: var(--accent); }
.links small { user-select: text; color: var(--muted); font-family: var(--f-mono); direction: ltr; }

footer { border-top: 1px solid var(--line); padding-block: 40px 60px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer p { color: var(--muted); font-size: 0.85rem; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Showcase slider ---------- */
#showcase { padding-block: clamp(50px, 8vw, 100px) 0; }
.slider { position: relative; border: 1px solid var(--line); border-radius: 32px; background: var(--bg-2); overflow: hidden; outline-offset: 4px; touch-action: pan-y; }
.slider::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px circle at var(--px, 80%) var(--py, 20%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%); pointer-events: none; transition: background 0.2s; }
.slides { display: grid; position: relative; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 4vw, 60px); align-items: center; padding: clamp(28px, 5vw, 72px) clamp(22px, 5vw, 72px) clamp(110px, 12vw, 140px); opacity: 0; visibility: hidden; transform: translateX(calc(var(--in, 1) * 60px)); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), visibility 0s 0.9s; min-width: 0; }
.slide > * { min-width: 0; }
.slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.7s var(--ease) 0.15s, transform 0.9s var(--ease) 0.15s, visibility 0s; }
.slide.out { transform: translateX(calc(var(--in, 1) * -60px)); }
.stext { display: grid; gap: 18px; justify-items: start; }
.stext > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
.slide.on .stext > * { opacity: 1; transform: none; }
.slide.on .stext > :nth-child(1) { transition-delay: 0.3s; }
.slide.on .stext > :nth-child(2) { transition-delay: 0.4s; }
.slide.on .stext > :nth-child(3) { transition-delay: 0.5s; }
.slide.on .stext > :nth-child(4) { transition-delay: 0.6s; }
.stext h2 { font-size: clamp(1.7rem, 4vw, 3.1rem); }
:root[lang="ar"] .stext h2 { line-height: 1.3; }
.stext p { color: var(--muted); max-width: 44ch; }
.svis { position: relative; aspect-ratio: 5 / 4; width: 100%; max-width: 560px; justify-self: center; display: grid; place-items: center; transform: translate(calc(var(--vx, 0) * 1px), calc(var(--vy, 0) * 1px)); transition: transform 0.4s var(--ease); direction: ltr; }
.glass { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.float { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* mock: browser */
.m-browser { width: 100%; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.m-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.m-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.m-bar b { margin-inline-start: 10px; height: 10px; flex: 1; border-radius: 6px; background: var(--bg-2); max-width: 220px; }
.m-page { padding: 16px; display: grid; gap: 12px; }
.m-hero { height: 110px; border-radius: 12px; background: linear-gradient(120deg, var(--accent), var(--accent-2)); position: relative; overflow: hidden; }
.m-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.2s infinite; }
@keyframes shine { to { transform: translateX(100%); } }
.m-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-cols span { height: 64px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.m-line { height: 9px; border-radius: 6px; background: var(--line); width: var(--w, 80%); }
/* mock: phone */
.m-phone { width: min(46%, 230px); aspect-ratio: 9 / 18; border-radius: 34px; padding: 10px; border: 2px solid var(--line); background: var(--surface); box-shadow: var(--shadow); display: grid; }
.m-screen { border-radius: 26px; background: var(--bg); padding: 22px 12px 12px; display: grid; gap: 9px; align-content: start; overflow: hidden; }
.m-pill { height: 54px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); position: relative; }
.m-pill.a { background: color-mix(in srgb, var(--accent) 22%, var(--bg-2)); border-color: var(--accent); }
.m-pill::before { content: ""; position: absolute; inset-inline-start: 10px; top: 12px; width: 28px; height: 28px; border-radius: 9px; background: var(--accent); opacity: 0.8; }
.m-chip { position: absolute; padding: 10px 14px; font-size: 0.8rem; font-family: var(--f-mono); }
/* mock: growth */
.m-chart { width: 100%; padding: 22px; display: grid; gap: 18px; }
.m-search { display: flex; align-items: center; gap: 10px; height: 44px; border-radius: 99px; border: 1px solid var(--line); padding: 0 16px; background: var(--bg); font-size: 0.85rem; color: var(--muted); }
.m-search svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; }
.m-search em { margin-inline-start: auto; font-style: normal; font-family: var(--f-mono); font-size: 0.7rem; background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 3px 10px; }
.m-bars { display: flex; align-items: end; gap: 12px; height: 170px; border-bottom: 1px solid var(--line); }
.m-bars span { flex: 1; border-radius: 8px 8px 0 0; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); height: 8%; transition: height 1.2s var(--ease); transition-delay: calc(var(--k) * 90ms + 500ms); }
.slide.on .m-bars span { height: var(--h); }
/* mock: brand */
.m-brand { width: 100%; display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.m-logo { aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: "Unbounded", sans-serif; font-weight: 800; font-size: clamp(2.6rem, 9vw, 5rem); }
.m-logo b { color: var(--accent-ink); opacity: 0.55; }
.m-side { display: grid; gap: 14px; grid-template-rows: 1fr auto; }
.m-aa { border-radius: 22px; display: grid; place-items: center; font-family: "Unbounded", sans-serif; font-size: clamp(1.8rem, 6vw, 3.2rem); padding: 10px; }
.m-sw { display: flex; gap: 10px; }
.m-sw i { flex: 1; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); }

/* controls */
.sctl { position: absolute; z-index: 3; inset-inline: clamp(22px, 5vw, 72px); bottom: clamp(20px, 3vw, 36px); display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
.sdots { display: flex; gap: 8px; flex: 1; min-width: 0; }
.sdot { position: relative; flex: 1; min-width: 0; text-align: start; background: none; border: 0; padding: 12px 0 0; font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sdot::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--line); }
.sdot i { position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: var(--origin, left); }
:root[dir="rtl"] .sdot i { --origin: right; }
.sdot.on { color: var(--fg); }
.sdot.on i { transform: scaleX(1); }
.sdot.done i { transform: scaleX(1); }
.slider.play .sdot.on i { transform: scaleX(0); animation: fill var(--dur, 6500ms) linear forwards; }
.slider.hold .sdot.on i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.sarr { display: flex; gap: 8px; flex: none; }
.sarr .ibtn { width: 46px; height: 46px; padding: 0; background: var(--surface); }
:root[dir="rtl"] .sarr .ibtn svg { transform: scaleX(-1); }
.sarr .ibtn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 860px) {
  .slide { grid-template-columns: 1fr; padding-bottom: 130px; }
  .svis { order: -1; max-width: 360px; aspect-ratio: 16 / 11; }
  .m-phone { width: 30%; min-width: 120px; }
  .m-hero { height: 70px; }
  .m-cols span { height: 40px; }
  .m-bars { height: 120px; }
  .m-chart { padding: 16px; gap: 12px; }
  .slide { gap: 18px; padding-top: 24px; }
  .sdot span { display: none; }
  .sdot { padding-top: 14px; }
}
@media (max-width: 480px) { .sarr .ibtn { width: 42px; height: 42px; } .m-chip { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  nav.main, .cta-sm { display: none; }
  .burger { display: inline-grid; }
  .pill { padding-inline: 20px 8px; }
  .logo { margin-inline-end: auto; }
  .about, .contact { grid-template-columns: 1fr; }
  .card, .card.w6 { grid-column: span 6; }
  .proj, .proj.big { grid-column: span 6; }
  .proj.big .cover { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; border-top: 0; border-inline-start: 1px solid var(--line); gap: 8px; }
  .step { padding: 8px 0 22px 26px; padding-inline: 26px 0; }
  .step::before { top: 12px; inset-inline-start: -5px; }
}
@media (max-width: 600px) {
  .card, .card.w6, .proj, .proj.big { grid-column: 1 / -1; }
  .hero { padding-bottom: 110px; }
  .btn { height: 50px; padding: 0 22px; }
  .scrollhint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee .track { animation: none; }
  html { scroll-behavior: auto; }
}
