/* ===== Yafa Studio ===== */
:root {
  --bg: #07070c;
  --bg-2: #0d0d15;
  --card: #10101a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ecebf5;
  --muted: #9a99ad;
  --dim: #8f8ea6;
  --a1: #7cf3d0;
  --a2: #8fb8ff;
  --a3: #c79bff;
  --grad: linear-gradient(100deg, var(--a1), var(--a2) 50%, var(--a3));
  --r: 18px;
  --f-head: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.mono { font-family: var(--f-mono); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.label { font-family: var(--f-mono); font-size: .85rem; color: var(--a1); margin-bottom: 1rem; }

/* Background */
.bg-grid { position: fixed; inset: 0; z-index: -2; 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 80% 60% at 50% 0%, #000 30%, transparent 75%); opacity: .5; }
.bg-glow { position: fixed; z-index: -1; top: -30vh; left: 50%; width: 120vw; height: 80vh; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(124, 243, 208, .14), transparent), radial-gradient(closest-side at 70% 40%, rgba(199, 155, 255, .16), transparent); filter: blur(40px); pointer-events: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; color: #07070c; background: var(--grad); border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(143, 184, 255, .55); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--a2); }
.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

/* Logo */
.logo { display: inline-flex; align-items: baseline; gap: .1rem; text-decoration: none; font-family: var(--f-head); }
.logo-word { font-weight: 700; font-size: 1.45rem; letter-spacing: -.04em; }
.logo-dot { width: .42rem; height: .42rem; border-radius: 50%; background: var(--grad); margin-right: .35rem; transform: translateY(-1px); }
.logo-sub { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 7, 12, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.links { display: flex; align-items: center; gap: 2rem; }
.links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .93rem; transition: color .2s; }
.links a:not(.btn):hover { color: var(--text); }
.menu { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; z-index: 2; }
.menu span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }
.menu span:first-child { top: 15px; } .menu span:last-child { top: 23px; }
.open .menu span:first-child { transform: translateY(4px) rotate(45deg); }
.open .menu span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; min-height: 100vh; padding: 7rem 0 4rem; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: .4rem .9rem; margin-bottom: 1.75rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 0 0 rgba(124, 243, 208, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(124, 243, 208, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 243, 208, 0); } }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 3rem; }
.facts { display: flex; gap: 2.5rem; margin: 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; }
.facts dt { font-family: var(--f-head); font-size: 2.2rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.facts dd { margin: .35rem 0 0; font-size: .85rem; color: var(--muted); }

.hero-stack { position: relative; height: 520px; perspective: 1400px; }
.frame { position: absolute; margin: 0; width: 78%; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.frame img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.f1 { top: 0; right: 0; transform: rotateY(-14deg) rotateX(6deg) translateZ(-60px); }
.f2 { top: 26%; left: 0; transform: rotateY(-14deg) rotateX(6deg); z-index: 2; }
.f3 { bottom: 0; right: 4%; width: 62%; transform: rotateY(-14deg) rotateX(6deg) translateZ(40px); z-index: 3; }
.hero-stack:hover .f1 { transform: rotateY(-6deg) translate(10px, -10px); }
.hero-stack:hover .f3 { transform: rotateY(-6deg) translate(10px, 14px); }
.bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #15151f; border-bottom: 1px solid var(--line); }
.bar i { width: 9px; height: 9px; border-radius: 50%; background: #2b2b3a; }
.bar i:nth-child(1) { background: #ff6a5f; } .bar i:nth-child(2) { background: #ffc14d; } .bar i:nth-child(3) { background: #3fd07a; }
.bar span { margin-left: 10px; font-family: var(--f-mono); font-size: .7rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 1.1rem 0; background: rgba(255, 255, 255, .015); }
.track { display: flex; gap: 3rem; width: max-content; animation: scroll 40s linear infinite; }
.track span { font-family: var(--f-head); font-size: 1.15rem; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 3rem; }
.track span::after { content: "✦"; color: var(--a3); font-size: .8rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(5rem, 10vw, 8rem) 0 0; }
.head { margin-bottom: 2.5rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { font: inherit; font-size: .88rem; color: var(--muted); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--text); }
.chip.active { color: #07070c; background: var(--text); border-color: var(--text); }

/* Work grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .3s, transform .3s; }
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card[hidden] { display: none; }
.card.featured { grid-column: span 3; display: grid; grid-template-columns: 1.35fr 1fr; }
.shot { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; border-bottom: 1px solid var(--line); overflow: hidden; }
.card.featured .shot { border-bottom: 0; border-right: 1px solid var(--line); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.card.featured .shot img { aspect-ratio: auto; height: calc(100% - 33px); min-height: 300px; }
.card:hover .shot img { transform: scale(1.03); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card.featured .card-body { padding: 2.2rem; justify-content: center; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.type { font-family: var(--f-mono); font-size: .72rem; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.status { flex: none; font-family: var(--f-mono); font-size: .7rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: .15rem .55rem; }
.status.live { color: var(--a1); border-color: rgba(124, 243, 208, .35); }
.card h3 { font-size: 1.35rem; }
.card.featured h3 { font-size: 2rem; }
.card p { color: var(--muted); font-size: .94rem; flex: 1; }
.tags { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-size: .75rem; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 6px; padding: .2rem .55rem; }
.visit { align-self: flex-start; font: inherit; font-weight: 600; font-size: .9rem; color: var(--text); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.visit:hover { border-color: var(--a2); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.svc:hover { background: rgba(255, 255, 255, .02); }
.svc .n { font-family: var(--f-mono); font-size: .8rem; color: var(--a2); }
.svc h3 { margin: 1.4rem 0 .6rem; }
.svc p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
.process li { position: relative; padding: 1.6rem; border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent); border: 1px solid var(--line); }
.process span { font-family: var(--f-mono); font-size: .8rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.process h3 { margin: 1rem 0 .5rem; }
.process p { color: var(--muted); font-size: .92rem; margin: 0; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: center; }
.about-mark { aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(124, 243, 208, .18), transparent 60%), radial-gradient(circle at 80% 90%, rgba(199, 155, 255, .2), transparent 55%), var(--bg-2); border: 1px solid var(--line); }
.about-mark span { font-size: clamp(4rem, 10vw, 8rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: "Noto Naskh Arabic", "Segoe UI", serif; line-height: 1.3; }
.about p:not(.label):not(.lead) { color: var(--muted); max-width: 60ch; }

/* Contact */
.contact { text-align: center; padding: clamp(3rem, 7vw, 5rem) 1.5rem; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, rgba(143, 184, 255, .16), transparent 60%), var(--bg-2); }
.contact .lead { margin: 0 auto 2rem; }
.mail { margin: 1.2rem 0 0; color: var(--muted); font-size: .9rem; }

/* Footer */
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 4rem 0 2.5rem; margin-top: 6rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .82rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 2rem; background: rgba(5, 5, 10, .88); backdrop-filter: blur(8px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1200px; width: 100%; }
.lightbox img { border-radius: 12px; border: 1px solid var(--line-2); width: 100%; }
.lightbox figcaption { text-align: center; margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.lb-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: 0; color: var(--text); font-size: 2.2rem; cursor: pointer; line-height: 1; }

/* Reveal */
.reveal, .svc, .process li, .head { opacity: 0; transform: translateY(18px); transition: opacity .7s ease var(--d, 0ms), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .svc, .process li, .head { opacity: 1; transform: none; transition: none; }
  .track { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 8rem; }
  .hero-stack { height: 420px; }
  .grid, .services { grid-template-columns: repeat(2, 1fr); }
  .card.featured { grid-column: span 2; grid-template-columns: 1fr; }
  .card.featured .shot { border-right: 0; border-bottom: 1px solid var(--line); }
  .card.featured .shot img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .about-mark { max-width: 320px; }
}
@media (max-width: 720px) {
  .menu { display: block; }
  .links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.6rem; background: rgba(7, 7, 12, .97); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .links a:not(.btn) { font-size: 1.5rem; font-family: var(--f-head); color: var(--text); }
  .open .links { opacity: 1; pointer-events: auto; }
  .open { overflow: hidden; }
  .grid, .services, .process { grid-template-columns: 1fr; }
  .card.featured { grid-column: auto; }
  .facts { gap: 1.5rem; flex-wrap: wrap; }
  .hero-stack { height: 300px; }
}

/* "Your project here" card */
.cta-card { justify-content: center; padding: 2rem; text-decoration: none; min-height: 360px; border-style: dashed; border-color: var(--line-2);
  background: radial-gradient(circle at 50% 0%, rgba(143, 184, 255, .1), transparent 60%), var(--card); }
.cta-card .plus { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; color: #07070c; background: var(--grad); margin-bottom: 1.4rem; }
.cta-card p { color: var(--muted); flex: 0; margin-bottom: 1.4rem; }

/* Keyboard focus */
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; }
.btn:focus-visible, .chip:focus-visible { outline-offset: 4px; }

/* Pricing */
.price-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.currency { display: flex; gap: .5rem; }
.prices { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.prices li { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.prices h3 { margin: 0 0 .3rem; }
.prices p { margin: 0; color: var(--muted); font-size: .94rem; max-width: 56ch; }
.price { flex: none; font-family: var(--f-head); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.price small { font-family: var(--f-body); font-size: .85rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price-note { margin-top: 1.4rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 720px) {
  .prices li { flex-direction: column; align-items: flex-start; gap: .6rem; }
}
.prices li { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .prices li { opacity: 1; transform: none; transition: none; } }
