/* ============ IJ SPACE — Portfolio ============ */
:root {
  --ink: #111113;
  --ink-2: #1b1b1f;
  --ink-3: #26262b;
  --paper: #F4F3EF;
  --paper-2: #EBE9E3;
  --white: #FFFFFF;
  --red: #FF2D2D;
  --red-deep: #D91E1E;
  --tung: #8B857B;
  --line: rgba(17, 17, 19, .1);
  --line-d: rgba(244, 243, 239, .12);
  --muted: #6f6a62;
  --muted-d: #a8a39a;
  --r-sm: 12px;
  --r: 22px;
  --r-lg: 32px;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --f: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --fl: 'Space Grotesk', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(17,17,19,.04), 0 12px 40px -12px rgba(17,17,19,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f);
  font-size: clamp(1rem, .96rem + .2vw, 1.08rem); line-height: 1.85; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.latin { font-family: var(--fl); letter-spacing: -.02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Logo mark ---------- */
.ij-mark { width: 1em; height: 1em; display: block; overflow: visible; }
.ij-dot { transform-box: fill-box; transform-origin: center; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--fl); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand .ij-mark { font-size: 34px; }
.brand img { height: 36px; width: auto; }
.brand small { display: block; font-family: var(--f); font-weight: 500; font-size: .68rem; color: var(--muted); letter-spacing: 0; line-height: 1.2; }
.brand:hover .ij-dot { animation: blink 1s steps(2) infinite; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 52px; padding: 0 26px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(17,17,19,.45); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn-red { --bg: var(--red); --fg: #fff; }
.btn-red:hover { box-shadow: 0 14px 34px -10px rgba(255,45,45,.6); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dark .btn-ghost { --fg: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-d); }
.dark .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.btn-light { --bg: var(--paper); --fg: var(--ink); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(-4px); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, box-shadow .4s, transform .5s var(--ease); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.nav.scrolled { background: rgba(244,243,239,.78); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav-links { display: flex; gap: 6px; margin-inline-start: auto; }
.nav-links a { position: relative; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .96rem; color: #3b3a37; transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--ink); background: rgba(17,17,19,.05); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--red); bottom: 2px; left: 50%; translate: -50% 0; }
.nav-cta { height: 44px; padding: 0 20px; font-size: .95rem; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); position: relative; }
.burger span { position: absolute; height: 2px; width: 18px; background: var(--paper); left: 13px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; width: 12px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; width: 18px; transform: rotate(-45deg); }

/* ---------- Progress & cursor ---------- */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; background: var(--red); transform-origin: right; transform: scaleX(var(--p, 0)); }
.cursor { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; display: none; }
.cursor span { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--red); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, opacity .3s; mix-blend-mode: normal; }
.cursor.hover span { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(255,45,45,.18); box-shadow: inset 0 0 0 1.5px var(--red); }
.cursor.view span { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--red); }
.cursor.view span::after { content: 'شاهد'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: .9rem; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--ink); display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s; }
.loader .ij-mark { font-size: 72px; color: var(--paper); }
.loader .ij-dot { animation: blink 1s steps(2) infinite; }
.loaded .loader { opacity: 0; visibility: hidden; }
@keyframes blink { 50% { opacity: .15; } }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .04em .34em; margin: -.12em -.04em -.34em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.split.in .w > span { transform: none; }

/* ---------- Section head ---------- */
.sec { padding-block: clamp(84px, 11vw, 150px); position: relative; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.sec-head.row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.sec-head.row > :first-child { flex: 1 1 380px; }
.sec-head.row > .filters { flex: 0 1 auto; max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(255,45,45,.14); }
.dark .eyebrow { color: var(--muted-d); }
.h2 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem); line-height: 1.2; }
.h2 em { font-style: normal; color: var(--red); }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.dark { background: var(--ink); color: var(--paper); }
.dark .lead { color: var(--muted-d); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 70px; overflow: hidden; isolation: isolate; }
.hero-grid {
  position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(520px circle at var(--px, 70%) var(--py, 40%), #000 0%, transparent 72%);
          mask-image: radial-gradient(520px circle at var(--px, 70%) var(--py, 40%), #000 0%, transparent 72%);
}
.hero-glow { position: absolute; z-index: -1; width: 560px; height: 560px; border-radius: 50%; left: var(--px, 70%); top: var(--py, 40%); translate: -50% -50%; background: radial-gradient(circle, rgba(255,45,45,.14), transparent 65%); pointer-events: none; transition: left .6s var(--ease), top .6s var(--ease); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); font-size: .9rem; font-weight: 500; margin-bottom: 26px; }
.hero-kicker b { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--paper); font-family: var(--fl); font-size: .74rem; padding: 3px 10px; border-radius: 999px; letter-spacing: .05em; }
.hero-kicker b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2) infinite; }
.hero h1 { font-size: clamp(2.7rem, 1.4rem + 6vw, 6.4rem); line-height: 1.12; letter-spacing: -.025em; }
.hero h1 .accent { color: var(--red); }
.hero-sub { margin-top: 26px; font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem); color: #4a4843; max-width: 46ch; line-height: 1.85; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: clamp(18px, 3.5vw, 48px); margin-top: 54px; padding-top: 28px; border-top: 1px solid var(--line); justify-content: start; }
.stat b { display: block; font-family: var(--fl); font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.stat span { font-size: .9rem; color: var(--muted); }

/* viewfinder visual */
.vf { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); overflow: hidden; }
.vf-media { position: absolute; inset: 0; }
.vf-media img, .vf-media video { width: 100%; height: 100%; object-fit: cover; }
.vf-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,19,.25), transparent 30%, transparent 70%, rgba(17,17,19,.35)); }
.vf-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(17,17,19,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,19,.06) 1px, transparent 1px); background-size: 10% 10%; }
.vf-thirds { position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(17,17,19,.14) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgba(17,17,19,.14) 0 calc(66.66% + .5px), transparent 0), linear-gradient(transparent calc(33.33% - .5px), rgba(17,17,19,.14) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgba(17,17,19,.14) 0 calc(66.66% + .5px), transparent 0); }
.vf-mark { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); }
.vf-mark .ij-mark { font-size: min(62%, 300px); width: 62%; height: auto; aspect-ratio: 1; transform: translate(var(--tx, 0), var(--ty, 0)); transition: transform .6s var(--ease); }
.vf-mark .ij-dot { transform: translate(var(--dx, 0), var(--dy, 0)); transition: transform .4s var(--ease); }
.vf-corners span { position: absolute; width: 34px; height: 34px; border: 3px solid var(--ink); }
.vf.has-media .vf-corners span { border-color: #fff; }
.vf-corners span:nth-child(1) { top: 18px; right: 18px; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.vf-corners span:nth-child(2) { top: 18px; left: 18px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.vf-corners span:nth-child(3) { bottom: 18px; right: 18px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.vf-corners span:nth-child(4) { bottom: 18px; left: 18px; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.vf-hud { position: absolute; inset: 30px 32px auto; display: flex; justify-content: space-between; font-family: var(--fl); font-weight: 700; font-size: .82rem; letter-spacing: .06em; direction: ltr; }
.vf.has-media .vf-hud, .vf.has-media .vf-foot { color: #fff; }
.rec { display: inline-flex; align-items: center; gap: 7px; }
.rec::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: blink 1s steps(2) infinite; }
.vf-foot { position: absolute; inset: auto 32px 30px; display: flex; justify-content: space-between; font-family: var(--fl); font-size: .78rem; font-weight: 500; opacity: .75; direction: ltr; }
.chip-float { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 16px; background: var(--ink); color: var(--paper); font-size: .86rem; font-weight: 500; box-shadow: 0 18px 40px -16px rgba(17,17,19,.6); animation: float 6s ease-in-out infinite; }
.chip-float svg { width: 18px; height: 18px; color: var(--red); }
.chip-float.c1 { top: 12%; left: -28px; }
.chip-float.c2 { bottom: 16%; right: -22px; animation-delay: -3s; background: var(--red); }
.chip-float.c2 svg { color: #fff; }
.hero-visual { position: relative; }
@keyframes float { 50% { transform: translateY(-12px); } }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border-radius: 20px; box-shadow: inset 0 0 0 2px var(--line); }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--red); animation: scrollHint 1.8s var(--ease) infinite; }
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* client greeting */
.greet { margin-top: 26px; display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 18px; background: var(--ink); color: var(--paper); max-width: 560px; }
.greet .ij-mark { font-size: 36px; flex: none; color: var(--paper); }
.greet b { display: block; font-size: 1.02rem; }
.greet span { font-size: .92rem; color: var(--muted-d); }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 26px 0; transform: rotate(-1.2deg) scale(1.02); margin-block: 10px; }
.marquee { position: relative; z-index: 2; direction: ltr; }
.marquee.alt { background: var(--red); transform: rotate(1.2deg) scale(1.02); margin-top: -14px; z-index: 1; padding: 16px 0; }
.marquee.alt .mq-track span { font-size: clamp(1rem, .8rem + 1vw, 1.5rem); }
.mq-track { display: flex; width: max-content; animation: mq 40s linear infinite; direction: ltr; }
.marquee.alt .mq-track { animation-direction: reverse; animation-duration: 50s; }
.mq-track span { display: inline-flex; align-items: center; gap: 30px; padding-inline: 15px; font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); font-weight: 700; white-space: nowrap; direction: rtl; }
.mq-track span::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--red); flex: none; }
.marquee.alt .mq-track span::after { background: var(--ink); }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- Works ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 500; font-size: .94rem; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, box-shadow .3s; }
.filters button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.filters button.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.filters button sup { font-family: var(--fl); font-size: .7rem; margin-inline-start: 4px; opacity: .55; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(230px, 23vw, 330px); grid-auto-flow: dense; gap: clamp(12px, 1.6vw, 20px); }
.work { position: relative; border-radius: var(--r); overflow: hidden; background: var(--paper-2); cursor: pointer; isolation: isolate; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.work.big { grid-column: span 2; grid-row: span 2; }
.work.out { display: none; }
.work img, .work video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work:hover img, .work:hover video { transform: scale(1.06); }
.work::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(17,17,19,.82) 0%, rgba(17,17,19,.1) 45%, transparent 70%); transition: opacity .5s; }
.work::after { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 60%); opacity: 0; transition: opacity .4s; }
.work:hover::after { opacity: 1; }
.work-info { position: absolute; z-index: 2; inset: auto 0 0; padding: clamp(16px, 2vw, 26px); color: #fff; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.work-info small { display: inline-block; font-size: .78rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); margin-bottom: 8px; }
.work-info h3 { font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); }
.work.big .work-info h3 { font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); }
.work-info p { font-size: .86rem; opacity: .75; }
.work-go { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transform: scale(.6) rotate(45deg); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.work-go svg { width: 20px; height: 20px; }
.work:hover .work-go { transform: none; opacity: 1; }
.work-badge { position: absolute; z-index: 2; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(17,17,19,.6); backdrop-filter: blur(8px); color: #fff; font-size: .78rem; font-weight: 600; }
.work-badge svg { width: 14px; height: 14px; color: var(--red); }
.work-lock { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 6px 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: .74rem; font-weight: 600; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--r); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--r); background: var(--white); overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), color .4s; min-height: 260px; display: flex; flex-direction: column; }
.svc::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: circle(0% at var(--mx, 50%) var(--my, 100%)); transition: clip-path .7s var(--ease); }
.svc:hover { color: var(--paper); transform: translateY(-4px); }
.svc:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 100%)); }
.svc-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: auto; padding-bottom: 36px; }
.svc-ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--paper); color: var(--ink); transition: background .4s, color .4s, transform .5s var(--ease); }
.svc-ic svg { width: 28px; height: 28px; }
.svc:hover .svc-ic { background: var(--red); color: #fff; transform: rotate(-8deg) scale(1.05); }
.svc-n { font-family: var(--fl); font-weight: 700; color: var(--tung); font-size: .95rem; }
.svc h3 { font-size: 1.35rem; margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: .97rem; transition: color .4s; }
.svc:hover p { color: var(--muted-d); }

/* ---------- About / process ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.about-text { font-size: clamp(1.3rem, 1rem + 1.3vw, 2rem); line-height: 1.65; font-weight: 500; }
.about-text .hl { color: var(--red); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(50px, 7vw, 90px); counter-reset: step; }
.step { position: relative; padding-top: 34px; }
.step::before { counter-increment: step; content: '0' counter(step); position: absolute; top: 0; font-family: var(--fl); font-weight: 700; font-size: .9rem; color: var(--red); }
.step::after { content: ''; position: absolute; top: 9px; right: 40px; left: 0; height: 1px; background: var(--line-d); }
.step:last-child::after { display: none; }
.step h4 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { color: var(--muted-d); font-size: .95rem; }

/* ---------- Clients ---------- */
.clients-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(26px, 5vw, 64px); align-items: center; padding: 44px 0 0; }
.clients-row img { height: 42px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.clients-row img:hover { filter: none; opacity: 1; }
.clients-row span { font-weight: 700; font-size: 1.1rem; color: var(--muted); }

/* ---------- Packages ---------- */
.pk-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-d); }
.pk-tabs button { height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 500; font-size: .94rem; color: var(--muted-d); transition: background .3s, color .3s; }
.pk-tabs button.on { background: var(--paper); color: var(--ink); }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-top: 40px; align-items: stretch; }
.pk { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-d); overflow: hidden; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease), box-shadow .4s; isolation: isolate; }
.pk::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255,45,45,.14), transparent 60%); opacity: 0; transition: opacity .4s; }
.pk:hover::after { opacity: 1; }
.pk.pop { box-shadow: inset 0 0 0 1.5px var(--red), 0 30px 70px -30px rgba(255,45,45,.55); }
.pk.out { display: none; }
.pk-img { aspect-ratio: 16 / 9; overflow: hidden; }
.pk-img img { width: 100%; height: 100%; object-fit: cover; }
.pk-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.pk-cat { font-size: .82rem; color: var(--muted-d); }
.pk h3 { font-size: 1.45rem; margin: 2px 0 8px; }
.pk-desc { color: var(--muted-d); font-size: .95rem; }
.pk-price { display: flex; align-items: baseline; gap: 10px; margin: 22px 0; padding: 18px 0; border-block: 1px solid var(--line-d); flex-wrap: wrap; }
.pk-price b { font-family: var(--fl); font-size: 2.6rem; line-height: 1; letter-spacing: -.03em; }
.pk-price s { font-family: var(--fl); color: var(--muted-d); font-size: 1.1rem; }
.pk-price span { color: var(--muted-d); font-size: .9rem; }
.pk ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.pk li { display: flex; gap: 10px; align-items: start; font-size: .97rem; }
.pk li svg { flex: none; width: 20px; height: 20px; margin-top: 4px; padding: 3px; border-radius: 50%; background: rgba(255,45,45,.15); color: var(--red); stroke-width: 3; }
.pk .btn { margin-top: auto; width: 100%; }
.pk-badge { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: var(--red); color: #fff; font-size: .78rem; font-weight: 600; }
.pk-note { margin-top: 26px; text-align: center; color: var(--muted-d); font-size: .95rem; }
.pk-note a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }

/* ---------- Testimonials ---------- */
.tm-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(440px, 86%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: none; }
.tm-track::-webkit-scrollbar { display: none; }
.tm { scroll-snap-align: start; padding: 32px; border-radius: var(--r); background: var(--white); display: flex; flex-direction: column; gap: 22px; }
.tm-stars { display: flex; gap: 3px; color: var(--red); }
.tm-stars svg { width: 18px; height: 18px; fill: currentColor; }
.tm q { font-size: 1.12rem; line-height: 1.85; font-weight: 500; quotes: '«' '»'; flex: 1; }
.tm-who { display: flex; gap: 12px; align-items: center; }
.tm-av { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.tm-who b { display: block; font-size: .98rem; line-height: 1.3; }
.tm-who span { font-size: .85rem; color: var(--muted); }
.tm-nav { display: flex; gap: 8px; }
.tm-nav button { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .3s, color .3s; }
.tm-nav button:hover { background: var(--ink); color: var(--paper); }
.tm-nav svg { width: 22px; height: 22px; }

/* ---------- Team (press-badge cards) ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.badge { position: relative; padding-top: 30px; perspective: 900px; }
.badge-strap { position: absolute; top: 0; left: 50%; translate: -50% 0; width: 54px; height: 44px; border-radius: 8px 8px 4px 4px; background: var(--ink); z-index: 2; }
.badge-strap::after { content: ''; position: absolute; left: 50%; bottom: 8px; translate: -50% 0; width: 24px; height: 6px; border-radius: 6px; background: var(--paper); }
.badge-card { position: relative; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-origin: top center; transition: transform .5s var(--ease), box-shadow .4s; text-align: center; padding-bottom: 26px; }
.badge:hover .badge-card { box-shadow: 0 30px 60px -24px rgba(17,17,19,.35); }
.badge-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); background-size: 250% 100%; background-position: var(--sx, 120%) 0; pointer-events: none; mix-blend-mode: soft-light; }
.badge-pat { height: 74px; background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M15 18v7a5 5 0 0 0 10 0V10' fill='none' stroke='%23F4F3EF' stroke-width='4.5' stroke-linecap='round'/%3E%3Ccircle cx='14.5' cy='11' r='3' fill='%23FF2D2D'/%3E%3C/svg%3E"); background-size: 34px 34px; }
.badge-photo { width: 122px; height: 122px; margin: -58px auto 0; border-radius: 50%; padding: 5px; background: var(--white); position: relative; }
.badge-photo img, .badge-photo .ini { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2.5px var(--ink); }
.badge-photo .ini { display: grid; place-items: center; background: var(--paper); font-size: 2rem; font-weight: 700; color: var(--ink); position: relative; overflow: hidden; }
.badge-photo .ini::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--red); top: 16%; right: 18%; }
.badge-exp { position: absolute; bottom: 2px; left: 50%; translate: -50% 0; white-space: nowrap; padding: 3px 12px; border-radius: 999px; background: var(--red); color: #fff; font-size: .74rem; font-weight: 600; }
.badge-card h3 { font-size: 1.3rem; margin-top: 20px; }
.badge-role { color: var(--muted); font-weight: 500; font-size: .96rem; }
.badge-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 16px 20px 0; }
.badge-tags span { font-size: .78rem; padding: 4px 11px; border-radius: 999px; background: var(--paper); font-weight: 500; }
.badge-bio { padding: 14px 24px 0; color: var(--muted); font-size: .9rem; line-height: 1.75; }
.badge-ig { display: inline-flex; margin-top: 14px; width: 38px; height: 38px; border-radius: 50%; place-items: center; justify-content: center; align-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.badge-ig svg { width: 18px; height: 18px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: 18px; background: var(--white); overflow: hidden; }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 24px; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s, color .3s; }
.faq-list summary i svg { width: 18px; height: 18px; }
.faq-list details[open] summary i { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq-list details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { overflow: hidden; isolation: isolate; }
.contact::before { content: ''; position: absolute; z-index: -1; width: 900px; height: 900px; border-radius: 50%; left: -300px; bottom: -500px; background: radial-gradient(circle, rgba(255,45,45,.22), transparent 60%); }
.contact-big { font-size: clamp(2.4rem, 1.2rem + 5.4vw, 5.6rem); line-height: 1.12; letter-spacing: -.025em; max-width: 14ch; }
.contact-big em { font-style: normal; color: var(--red); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); margin-top: clamp(40px, 6vw, 70px); align-items: start; }
.ways { display: grid; gap: 12px; }
.way { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 20px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-d); transition: background .35s, transform .35s var(--ease), box-shadow .35s; }
.way:hover { transform: translateX(-6px); box-shadow: inset 0 0 0 1px rgba(244,243,239,.3); }
.way-ic { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--ink-3); transition: background .35s; }
.way-ic svg { width: 26px; height: 26px; }
.way:hover .way-ic { background: var(--red); color: #fff; }
.way.wa:hover .way-ic { background: #25D366; }
.way small { display: block; color: var(--muted-d); font-size: .85rem; }
.way b { font-family: var(--fl); font-size: 1.15rem; direction: ltr; unicode-bidi: plaintext; }
.way .arr { margin-inline-start: auto; width: 22px; height: 22px; color: var(--muted-d); transition: transform .35s var(--ease), color .3s; }
.way:hover .arr { transform: translateX(-6px); color: var(--paper); }
.meta-list { display: grid; gap: 12px; margin-top: 26px; color: var(--muted-d); font-size: .95rem; }
.meta-list div { display: flex; gap: 10px; align-items: center; }
.meta-list svg { width: 20px; height: 20px; color: var(--red); flex: none; }
.form { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); display: grid; gap: 14px; }
.form h3 { font-size: 1.4rem; }
.form p.hint { color: var(--muted); font-size: .92rem; margin-top: -8px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 14px 16px; border-radius: 14px; border: 1.5px solid transparent; background: var(--white); color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,19,.06); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--white); font-size: .9rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, color .25s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-d); transition: background .3s, color .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--paper); color: var(--ink); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-d); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-d); font-size: .9rem; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .brand { color: var(--paper); }
.footer .brand small { color: var(--muted-d); }
.footer-giant { font-family: var(--fl); font-weight: 700; font-size: clamp(4rem, 17vw, 15rem); line-height: .82; letter-spacing: -.05em; color: var(--ink-2); text-align: center; padding-top: 30px; user-select: none; direction: ltr; white-space: nowrap; overflow: hidden; }
.footer-giant i { font-style: normal; color: var(--red); }

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; position: fixed; z-index: 45; inset: auto 12px calc(12px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 22px; background: rgba(17,17,19,.92); backdrop-filter: blur(14px); box-shadow: 0 16px 40px -10px rgba(0,0,0,.5); gap: 6px; transform: translateY(140%); transition: transform .5s var(--ease); }
.mobile-bar.show { transform: none; }
.mobile-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 16px; color: var(--paper); font-size: .76rem; font-weight: 500; }
.mobile-bar a svg { width: 22px; height: 22px; }
.mobile-bar a.wa { background: #25D366; color: #08260f; }
.mobile-bar a.call { background: var(--red); color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(10,10,12,.94); backdrop-filter: blur(10px); display: grid; grid-template-rows: 1fr auto; padding: 70px clamp(12px, 6vw, 90px) 20px; animation: fadeIn .35s var(--ease); }
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100svh - 230px); border-radius: 14px; object-fit: contain; animation: zoomIn .45s var(--ease); }
.lb-stage video { width: 100%; background: #000; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } }
.lb-info { color: var(--paper); text-align: center; padding-top: 18px; max-width: 760px; margin-inline: auto; }
.lb-info small { color: var(--red); font-weight: 600; }
.lb-info h3 { font-size: 1.3rem; }
.lb-info p { color: var(--muted-d); font-size: .95rem; }
.lb-info .lb-count { font-family: var(--fl); color: var(--muted-d); font-size: .8rem; margin-top: 6px; }
.lb-close, .lb-nav { position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .3s; }
.lb-close:hover, .lb-nav:hover { background: var(--red); }
.lb-close svg, .lb-nav svg { width: 24px; height: 24px; }
.lb-close { top: 14px; left: 14px; }
.lb-nav { top: 50%; translate: 0 -50%; }
.lb-prev { right: 14px; } .lb-next { left: 14px; }

/* ---------- Locked ---------- */
.locked { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.locked .ij-mark { font-size: 90px; margin: 0 auto 26px; }
.locked h1 { font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem); }
.locked p { color: var(--muted); margin: 12px auto 28px; max-width: 42ch; }
.locked .hero-ctas { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; width: 100%; margin-inline: auto; }
  .vf { aspect-ratio: 5 / 4; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; margin-inline-start: auto; }
  .nav-links.open { display: flex; position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; padding: 12px var(--gut) 24px; background: var(--paper); box-shadow: 0 30px 50px -20px rgba(17,17,19,.25); animation: drop .4s var(--ease); }
  .nav-links.open a { font-size: 1.3rem; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links.open a.active::after { left: auto; right: -12px; top: 50%; bottom: auto; translate: 0 -50%; }
  .menu-open .nav { background: var(--paper); }
  .about, .faq-wrap, .contact-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 760px) {
  .mobile-bar { display: flex; }
  .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .hero { padding-top: 100px; min-height: auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .chip-float.c1 { left: 8px; top: -14px; } .chip-float.c2 { right: 8px; bottom: -14px; }
  .scroll-hint { display: none; }
  .lb-nav { top: auto; bottom: 14px; translate: none; }
}
@media (max-width: 600px) {
  .works-grid { grid-template-columns: 1fr; grid-auto-rows: 290px; }
  .work.big { grid-column: auto; grid-row: span 1; }
  .work-go { opacity: 1; transform: none; width: 40px; height: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .process { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .hero-ctas .btn { flex: 1; }
  .pk-tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; border-radius: 18px; scrollbar-width: none; }
  .pk-tabs button { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv, .split .w > span { opacity: 1; transform: none; }
}
