/* Sephr Afaq Technologies — one centered 1160px column, rounded hero, light-gray bands, pill buttons.
   Colors come from the logo: deep navy and bright blue. Single deliberate light look. */
:root {
  color-scheme: light;
  --navy: #002456;
  --sky: #0090F6;
  --white: #FFFFFF;
  --mist: #F5F5F7;
  --line: #E8E9EB;
  --muted: #747782;
  --soft: #9A9FAD;
  --tint: #E1F0FD;
  --danger: #C62828;
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --pill: 999px;
  --ease: cubic-bezier(.22,.61,.36,1);
}
html[lang="fa"] { --display: "Vazirmatn", "Segoe UI", Tahoma, sans-serif; --body: "Vazirmatn", "Segoe UI", Tahoma, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: var(--body); font-size: 16px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stack { display: grid; gap: 14px; }
.stack-center { display: grid; gap: 20px; justify-items: center; text-align: center; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(255,255,255,.92); }
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 88px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 21px; white-space: nowrap; }
.logo { height: 44px; width: auto; flex: none; }
.links { display: flex; align-items: center; gap: 32px; font-family: var(--display); font-weight: 500; font-size: 17px; }
.links a { position: relative; padding-block: 4px; }
.links a:hover { color: var(--muted); }
.links a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--sky); }
.actions { display: flex; align-items: center; gap: 12px; }
.lang { height: 42px; display: inline-grid; place-items: center; padding-inline: 18px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--white); color: var(--navy); font: 500 15px var(--body); }
.lang:hover { border-color: var(--navy); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--pill); font-family: var(--display); font-weight: 500; font-size: 17px; border: 1px solid transparent; transition: transform .2s, background .2s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-sky { background: var(--sky); color: var(--navy); }
.btn-white { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-ghost { color: var(--white); padding-inline: 8px; }
.arrow { display: inline-block; transition: transform .2s; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translate(2px,-2px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translate(2px,-2px); }
.menu { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.menu span, .menu span::before, .menu span::after { display: block; width: 16px; height: 2px; background: var(--navy); margin: auto; position: relative; content: ""; }
.menu span::before { position: absolute; top: -5px; } .menu span::after { position: absolute; top: 5px; }
.mobile-links { display: none; }

/* Hero */
.hero { padding-block: 8px 0; }
.hero-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy); color: var(--white); min-height: 520px; display: grid; place-items: center; text-align: center; padding: 72px 24px; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art .glow { position: absolute; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(0,144,246,.28), rgba(0,144,246,0) 65%); top: -220px; inset-inline-end: -160px; }
.hero-art .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.shape { position: absolute; border: 1.5px solid rgba(0,144,246,.45); }
.s1 { width: 120px; height: 120px; border-radius: 50%; left: 7%; top: 16%; animation: float 9s ease-in-out infinite; }
.s2 { width: 170px; height: 64px; border-radius: 999px; right: 8%; bottom: 14%; animation: float 11s ease-in-out infinite reverse; }
.s3 { width: 74px; height: 74px; border-radius: 16px; left: 14%; bottom: 12%; background: rgba(0,144,246,.12); transform: rotate(14deg); animation: float 10s ease-in-out infinite; }
.s4 { width: 12px; height: 12px; border-radius: 50%; background: var(--sky); border: 0; right: 22%; top: 22%; }
@keyframes float { 50% { translate: 0 -14px; } }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.cursor-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(0,144,246,.22), rgba(0,144,246,0) 65%); left: 0; top: 0; translate: -50% -50%; opacity: 0; transition: opacity .5s; pointer-events: none; }
.hero-card:hover .cursor-glow { opacity: 1; }
.hero-inner > * { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 100ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.hero-inner { position: relative; display: grid; gap: 18px; justify-items: center; max-width: 720px; }
.eyebrow { font-size: 14px; letter-spacing: 1.8px; text-transform: uppercase; }
html[lang="fa"] .eyebrow, html[lang="fa"] .eyebrow-dark, html[lang="fa"] .cat { letter-spacing: 0; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
html[lang="fa"] .hero h1 { line-height: 1.35; letter-spacing: 0; }
.hero-sub { font-size: clamp(17px, 2.2vw, 21px); color: rgba(255,255,255,.85); max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; margin-top: 8px; }

/* Clients strip — measured from the reference studio: 305px slot per logo, logos at most 170px wide, about 76px per second */
.clients { padding-block: 72px 24px; text-align: center; }
.clients h2 { font-size: 20px; font-weight: 500; }
.marquee { overflow: hidden; margin-top: 48px; mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%); direction: ltr; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; min-width: 100%; }
.client-logo { flex: none; width: 305px; min-width: 0; padding-inline: 12px; display: grid; place-items: center; height: 84px; color: #6E7076; font: 700 19px/1.15 var(--display); text-align: center; opacity: .85; transition: opacity .3s; }
.client-logo:hover { opacity: 1; }
.client-logo img { height: 47px; width: auto; max-width: min(170px, 100%); object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .8; transition: opacity .3s; }
.client-logo:hover img { opacity: 1; }
.client-logo.tall img, .client-logo.xl img { height: 58px; }
.client-logo.wide img { height: 52px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Intro */
.intro { position: relative; overflow: hidden; padding-block: 56px 160px; }
.intro .wrap { position: relative; z-index: 1; }
.decor { position: absolute; z-index: 0; pointer-events: none; height: auto; }
.decor-orbit { width: min(560px, 70vw); bottom: -150px; inset-inline-start: -120px; animation: drift 14s ease-in-out infinite; }
.decor-star { width: min(300px, 40vw); bottom: -70px; inset-inline-end: -40px; animation: drift 11s ease-in-out infinite reverse; }
@keyframes drift { 50% { transform: translate(14px, -18px) rotate(4deg); } }
.intro h2, .section-head h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 700; line-height: 1.2; }
.intro p { color: var(--muted); font-size: 18px; max-width: 60ch; }

/* Bands and section heads */
.band { background: var(--mist); padding-block: 96px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 44px; }
.section-head p { color: var(--muted); max-width: 60ch; }
.underline { border-bottom: 1px solid currentColor; padding-bottom: 2px; font-weight: 500; white-space: nowrap; }
.center { display: flex; justify-content: center; margin-top: 48px; }

/* Work cards */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.work a { display: grid; gap: 14px; }
.thumb { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; transition: transform .35s; }
.work a:hover .thumb { transform: scale(.985); }
.thumb > svg { width: 46%; height: auto; transition: transform .5s var(--ease); }
.thumb.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work a:hover .thumb > svg, .work a:hover .thumb.has-img img { transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(1.06); }
.thumb .liquid { filter: url(#liquid); }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(255,255,255,.92); color: var(--navy); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--pill); }
.cat { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.work h3 { font-size: 21px; font-weight: 600; margin-top: -8px; }

/* Services accordion (home) */
.services { padding-block: 96px; }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.svc-visual { position: sticky; top: 120px; aspect-ratio: 1 / 1; max-width: 100%; border-radius: var(--radius); overflow: hidden; display: grid; }
.svc-art { grid-area: 1 / 1; display: grid; place-items: center; opacity: 0; transition: opacity .5s; }
.svc-art.on { opacity: 1; }
.svc-art svg { width: 52%; height: auto; }
.acc { display: grid; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: 0; padding: 24px 0; cursor: pointer; color: var(--navy); font: 600 24px var(--display); text-align: start; }
.chev { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .3s, background .3s; }
.acc-item.open .chev { transform: rotate(180deg); background: var(--navy); color: var(--white); border-color: var(--navy); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-body { display: grid; gap: 18px; padding-bottom: 28px; }
.acc-body p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 14px; border-radius: var(--pill); background: var(--mist); border: 1px solid var(--line); font-size: 14px; }
.more { justify-self: end; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { background: var(--white); border-radius: var(--radius); padding: 32px; display: grid; gap: 14px; align-content: start; }
.step-no { width: 44px; height: 44px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; font: 700 17px var(--display); }
.step h3 { font-size: 22px; font-weight: 600; }
.step p { color: var(--muted); }

/* Why */
.why { padding-block: 96px; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.why-item { display: grid; gap: 10px; padding-block: 28px; border-top: 1px solid var(--line); }
.why-item h3 { font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.why-item h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); flex: none; }
.why-item p { color: var(--muted); }

/* Inner page head */
.page-head { position: relative; overflow: hidden; padding-block: 72px 56px; }
.page-head::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, var(--tint), rgba(225,240,253,0) 65%); top: -260px; inset-inline-end: -160px; z-index: -1; }
.page-head h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; max-width: 20ch; animation: rise .9s var(--ease) both; }
html[lang="fa"] .page-head h1 { line-height: 1.4; letter-spacing: 0; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 60ch; animation: rise .9s var(--ease) .12s both; }
.eyebrow-dark { font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--sky); font-weight: 700; }
.lead { font-size: 19px; color: var(--navy); }
.page-body { padding-block: 8px 96px; }
.back { display: inline-flex; gap: 8px; color: var(--muted); font-weight: 500; width: max-content; }
.back:hover { color: var(--navy); }
html[dir="rtl"] .back-arrow { transform: scaleX(-1); }

/* Projects page */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { padding: 9px 18px; border-radius: var(--pill); border: 1px solid var(--line); font-weight: 500; font-size: 15px; transition: background .2s, border-color .2s; }
.chip:hover { border-color: var(--navy); }
.chip.on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.empty { color: var(--muted); padding-block: 40px; }

/* Project case study */
.case-cover { position: relative; aspect-ratio: 16 / 8; max-width: 100%; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.case-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-cover svg { width: min(28%, 260px); height: auto; }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding-block: 64px; }
.case-facts { margin: 0; display: grid; gap: 22px; align-content: start; }
.case-facts dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; }
html[lang="fa"] .case-facts dt { letter-spacing: 0; }
.case-facts dd { margin: 4px 0 0; font: 600 19px var(--display); }
.case-text { display: grid; gap: 18px; font-size: 18px; max-width: 65ch; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-quote { margin: 72px auto 96px; max-width: 820px; text-align: center; display: grid; gap: 18px; }
.case-quote p { font: 500 clamp(22px, 3vw, 30px)/1.45 var(--display); }
.case-quote cite { font-style: normal; color: var(--muted); }

/* Services page */
.service-list { display: grid; gap: 24px; }
.service-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 28px; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); scroll-margin-top: 110px; }
.service-row:target { border-color: var(--sky); box-shadow: 0 0 0 4px var(--tint); }
.service-art { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); display: grid; place-items: center; }
.service-art svg { width: 40%; height: auto; }
.service-copy { display: grid; gap: 16px; }
.service-copy h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.service-copy p:not(.lead) { color: var(--muted); }
.row-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.about-emblem { aspect-ratio: 1 / 1; max-width: 100%; border-radius: var(--radius); background: var(--mist); display: grid; place-items: center; }
.about-emblem img { width: 62%; height: auto; }
.about-copy { gap: 20px; font-size: 18px; }
.about-copy p:not(.lead) { color: var(--muted); }
.stats-band { background: var(--navy); color: var(--white); padding-block: 72px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.stat { display: grid; gap: 6px; }
.stat-n { font: 800 clamp(40px, 5vw, 56px)/1 var(--display); color: var(--sky); font-variant-numeric: tabular-nums; }
.stat-l { color: rgba(255,255,255,.8); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.member { margin: 0; display: grid; gap: 12px; }
.member-photo { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--tint); display: grid; place-items: center; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo span { font: 800 56px var(--display); color: var(--sky); }
.member figcaption { display: grid; }
.member strong { font: 600 19px var(--display); }
.member figcaption span { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.contact-card { border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 32px; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fld { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.fld input, .fld select, .fld textarea { width: 100%; font: 400 16px var(--body); color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.fld textarea { resize: vertical; min-height: 140px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px var(--tint); }
.fld.bad input, .fld.bad textarea { border-color: var(--danger); }
.fld small { color: var(--danger); font-size: 14px; }
.form-error { background: #FDECEC; color: var(--danger); padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.form .btn { justify-self: start; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sent { display: grid; gap: 14px; justify-items: start; padding-block: 24px; }
.sent-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--sky); color: var(--navy); display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.sent h2 { font-size: 30px; }
.sent p { color: var(--muted); }
.contact-info { background: var(--navy); color: var(--white); border-radius: calc(var(--radius) + 6px); padding: 32px; display: grid; gap: 26px; }
.contact-info h3 { font-size: 14px; font-weight: 500; color: var(--soft); margin-bottom: 6px; }
.contact-info a:not(.underline) { color: var(--sky); font-size: 19px; word-break: break-word; }
.contact-info p { color: rgba(255,255,255,.85); margin-bottom: 8px; }

/* 404 */
.notfound { padding-block: 120px; }
.nf-code { font: 800 96px/1 var(--display); color: var(--tint); -webkit-text-stroke: 2px var(--sky); }

/* Footer */
.foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-top h2 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
html[lang="fa"] .foot-top h2 { line-height: 1.3; letter-spacing: 0; }
.foot-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; font-family: var(--display); font-weight: 600; font-size: 18px; }
.foot-logo .tile { background: var(--white); border-radius: 14px; padding: 8px 10px; display: grid; }
.foot-logo img { height: 40px; width: auto; }
.contact-lines { display: grid; gap: 6px; margin-top: 28px; font-size: 20px; }
.contact-lines .ph { color: var(--sky); justify-self: start; }
.contact-lines .ph:hover { text-decoration: underline; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-content: start; }
.foot-col { display: grid; gap: 12px; align-content: start; }
.foot-col h3 { font-size: 15px; font-weight: 500; color: var(--soft); }
.foot-col p { color: rgba(255,255,255,.8); }
.foot-link { color: var(--sky); justify-self: start; }
.foot-nav { display: grid; gap: 4px; }
.foot-nav a:hover { color: var(--sky); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; color: var(--soft); font-size: 14px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--white); }
.socials a:hover { background: var(--sky); color: var(--navy); border-color: var(--sky); }

/* Reveal on scroll: visible at rest, lifted only while waiting below the fold */
.reveal { transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.js .reveal.pending { opacity: .001; transform: translateY(24px); }

@media (max-width: 900px) {
  .links, .actions .btn-dark { display: none; }
  .menu { display: block; }
  .mobile-links.open { display: grid; gap: 4px; padding-block: 8px 20px; font: 500 20px var(--display); }
  .mobile-links a { padding-block: 8px; border-bottom: 1px solid var(--line); }
  .work-grid, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc, .service-row, .about-grid, .contact-grid, .case-body { grid-template-columns: minmax(0, 1fr); }
  .svc-visual { position: static; aspect-ratio: 16 / 9; }
  .svc-art svg { width: 28%; }
  .process-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .case-body { gap: 28px; padding-block: 40px; }
  .about-emblem { aspect-ratio: 16 / 9; }
  .about-emblem img { width: 34%; }
}
@media (max-width: 600px) {
  .nav { height: 72px; }
  .brand { font-size: 16px; }
  .logo { height: 34px; }
  .lang { padding-inline: 12px; }
  .hero-card { min-height: 460px; padding-inline: 18px; }
  .s1, .s2 { display: none; }
  .work-grid, .why-grid, .form-row, .gallery, .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .band, .services, .why, .page-body { padding-block: 64px; }
  .page-head { padding-block: 48px 36px; }
  .acc-btn { font-size: 20px; }
  .step, .contact-card, .contact-info, .service-row { padding: 22px; }
  .client-logo { width: 200px; }
  .client-logo img { height: 42px; }
  .client-logo.tall img, .client-logo.xl img { height: 52px; }
  .client-logo.wide img { height: 46px; }
  .case-cover { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== New Horizons: slogan, horizon glow, rotating words, AI section, technology, scroll progress ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--sky), #7CC8FF); }
html[dir="rtl"] .progress span { transform-origin: 100% 50%; }

.brand-text { display: grid; line-height: 1.15; }
.brand-text small { font: 600 11px var(--body); letter-spacing: 2.4px; text-transform: uppercase; color: var(--sky); }
html[lang="fa"] .brand-text small { letter-spacing: 0; font-size: 12px; }

/* Hero: slogan headline with moving light, a glowing planet horizon along the bottom */
.hero-inner > .slogan-title { background: linear-gradient(100deg, #fff 0%, #fff 38%, #9BD4FF 50%, #fff 62%, #fff 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .9s var(--ease) 220ms both, shimmer 6s linear 1.2s infinite; padding-bottom: .08em; }
@keyframes shimmer { from { background-position: 125% 0; } to { background-position: -125% 0; } }
.hero-card { padding-bottom: 120px; }
.horizon { position: absolute; left: -25%; right: -25%; top: 78%; height: 160%; border-radius: 50%; background: radial-gradient(ellipse at 50% 0%, #0A3C85 0%, #04224F 35%, var(--navy) 60%); box-shadow: 0 -1px 0 rgba(150,210,255,.9), 0 -14px 50px rgba(0,144,246,.55), 0 -50px 140px rgba(0,144,246,.3); }
.horizon::before { content: ""; position: absolute; left: 50%; top: -2px; width: 40%; height: 3px; translate: -50% 0; border-radius: 50%; background: radial-gradient(ellipse, #fff, rgba(255,255,255,0) 70%); filter: blur(1px); animation: dawn 7s ease-in-out infinite; }
@keyframes dawn { 50% { width: 60%; opacity: .7; } }
.hero-sub { max-width: 40ch; }
.rotator { display: inline-grid; justify-items: center; vertical-align: bottom; overflow: hidden; height: 1.6em; color: #7CC8FF; font-weight: 700; }
.rot-word { display: block; white-space: nowrap; transition: transform .45s var(--ease), opacity .45s; }
.rot-word.out { transform: translateY(-100%); opacity: 0; }
.rot-word.in { transform: translateY(100%); opacity: 0; transition: none; }

/* AI section */
.ai-band { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding-block: 110px; }
.ai-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 85% 20%, rgba(0,144,246,.35), transparent 45%), radial-gradient(circle at 10% 90%, rgba(0,144,246,.18), transparent 40%); }
.ai-glow::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.ai-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ai-copy { display: grid; gap: 20px; justify-items: start; }
.ai-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #7CC8FF; font-weight: 700; }
.ai-eyebrow svg { width: 14px; fill: currentColor; }
.ai-copy h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; line-height: 1.1; }
html[lang="fa"] .ai-copy h2 { line-height: 1.4; }
.ai-copy > p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 52ch; }
.ai-points { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.ai-points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.92); }
.ai-points li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: rgba(0,144,246,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%237CC8FF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

.chat { position: relative; border-radius: 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.chat-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--white); display: grid; place-items: center; flex: none; }
.chat-avatar img { width: 30px; height: auto; }
.chat-who { display: grid; line-height: 1.3; }
.chat-who small { color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 3px rgba(61,220,151,.2); }
.chat-tag { margin-inline-start: auto; font-size: 12px; padding: 3px 10px; border-radius: var(--pill); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); }
.chat-body { display: grid; gap: 14px; padding: 24px 20px; min-height: 280px; align-content: start; }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 18px; line-height: 1.55; }
.bubble.me { justify-self: end; background: var(--sky); color: var(--navy); font-weight: 500; border-end-end-radius: 6px; }
.bubble.bot { justify-self: start; background: rgba(255,255,255,.1); color: var(--white); border-end-start-radius: 6px; }
.bubble.typing { display: inline-flex; gap: 5px; padding: 16px 18px; }
.bubble.typing[hidden] { display: none; }
.bubble.typing span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.7); animation: blink 1s infinite; }
.bubble.typing span:nth-child(2) { animation-delay: .15s; }
.bubble.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.bubble.pop { animation: pop .4s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-inline-start: 2px; vertical-align: -2px; background: #7CC8FF; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chat-input { display: flex; align-items: center; justify-content: space-between; margin: 0 16px 16px; padding-block: 10px; padding-inline: 18px 10px; border-radius: var(--pill); background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); }
.chat-input b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--navy); }

/* Technology */
.stack-section { padding-block: 96px; }
.stack-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.stack-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; display: grid; gap: 14px; align-content: start; overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.stack-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(0,144,246,.12), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.stack-card:hover { border-color: rgba(0,144,246,.5); transform: translateY(-4px); }
.stack-card:hover::before { opacity: 1; }
.stack-no { font: 700 13px var(--display); color: var(--sky); }
.stack-card h3 { font-size: 19px; font-weight: 600; }
.stack-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stack-card li { font-size: 13.5px; padding: 4px 10px; border-radius: var(--pill); background: var(--mist); border: 1px solid var(--line); }

@media (max-width: 1100px) { .stack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .ai-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-text small { display: none; }
}
@media (max-width: 600px) {
  .stack-grid { grid-template-columns: minmax(0, 1fr); }
  .ai-band, .stack-section { padding-block: 72px; }
  .hero-card { padding-bottom: 96px; }
  .horizon { top: 84%; }
  .chat-body { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-inner > .slogan-title { background: none; color: var(--white); }
}

/* WhatsApp: floating button on every page */
.wa-float { position: fixed; z-index: 55; inset-inline-end: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; height: 56px; padding-inline: 16px; border-radius: var(--pill); background: var(--sky); color: var(--navy); font: 600 15px var(--display); box-shadow: 0 10px 30px rgba(0,36,86,.25); transition: transform .25s var(--ease); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s var(--ease); }
.wa-float:hover { transform: translateY(-3px); }
.wa-float:hover span, .wa-float:focus-visible span { max-width: 200px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(0,144,246,.5); animation: wa-ping 2.6s ease-out infinite; }
@keyframes wa-ping { 70%, 100% { box-shadow: 0 0 0 16px rgba(0,144,246,0); } }
.wa-btn { background: var(--sky); color: var(--navy); }

/* ===== v3: closer to the reference studio's rhythm — calm type, light footer, navy "who we are" band ===== */
.brand { font-weight: 500; }
.clients h2 { font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; }

/* Body copy: larger and in navy, as on the reference site */
.intro p, .section-head p { color: var(--navy); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.6; }
.intro { padding-block: 72px 140px; }
.intro h2, .section-head h2 { font-size: clamp(28px, 3.4vw, 36px); }
.decor-orbit { width: min(1300px, 160vw); left: 50%; translate: -50% 0; inset-inline-start: auto; bottom: -260px; animation: none; }
.decor-star { width: min(360px, 50vw); top: 30px; bottom: auto; inset-inline-end: -60px; animation: drift 14s ease-in-out infinite; }

/* Work cards */
.band { padding-block: 100px 50px; }
.thumb { border-radius: 12px; }
.cat { font-size: 14px; letter-spacing: 1.6px; color: var(--soft); }
.work h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; }

/* Services accordion: plain chevron, closed titles in gray */
.services { padding-block: 80px 120px; }
.acc-btn { font-size: 20px; color: var(--muted); padding-block: 28px; }
.acc-item.open .acc-btn { color: var(--navy); }
.chev { border: 0; width: 24px; height: 24px; font-size: 18px; }
.acc-item.open .chev { background: none; color: var(--navy); }
.acc-body p { color: var(--navy); }
.tag { background: var(--mist); border-color: transparent; }
.more { border: 0; font-weight: 400; color: var(--muted); }
.svc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 104px; }
.svc-visual { border-radius: 4px; aspect-ratio: 9 / 10; }

/* Navy "who we are" band */
.team-band { background: var(--navy); color: var(--white); padding-block: 110px; }
.team-grid-band { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.team-copy { display: grid; gap: 28px; justify-items: start; }
.team-copy h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.3; color: #7CC8FF; }
html[lang="fa"] .team-copy h2 { line-height: 1.6; }
.team-copy p { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.6; color: rgba(255,255,255,.9); }
.underline.light { color: var(--white); font-size: 18px; font-weight: 400; margin-top: 18px; }

/* Light footer */
.site-foot { position: relative; overflow: hidden; background: var(--mist); color: var(--navy); padding-block: 100px 60px; }
.foot-shape { position: absolute; width: 520px; height: 520px; inset-inline-start: -180px; bottom: -220px; border-radius: 50%; border: 70px solid #EAF4FE; pointer-events: none; }
.foot-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.foot-big { font-size: clamp(40px, 6vw, 64px); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
html[lang="fa"] .foot-big { line-height: 1.4; letter-spacing: 0; }
.foot-name { max-width: 9ch; }
.site-foot .contact-lines { display: grid; gap: 4px; margin-top: 28px; font-size: clamp(18px, 1.8vw, 21px); }
.site-foot .contact-lines a { justify-self: start; }
.site-foot .contact-lines a:hover { color: var(--sky); }
.foot-slogan { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--sky); font: 600 14px var(--body); letter-spacing: 2.4px; text-transform: uppercase; }
html[lang="fa"] .foot-slogan { letter-spacing: 0; font-size: 16px; }
.foot-slogan svg { width: 14px; fill: currentColor; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 56px; font-size: 18px; }
.foot-links a { justify-self: start; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.foot-links a:hover { color: var(--sky); }
.foot-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; margin-top: 52px; }
.foot-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.foot-info p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.foot-info p a:hover, .small-link:hover { color: var(--sky); }
.small-link { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--muted); border-bottom: 1px solid currentColor; }
.site-foot .foot-bottom { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-top: 80px; padding-top: 0; color: var(--muted); font-size: 14px; }
.site-foot .socials { display: flex; gap: 20px; }
.site-foot .socials a { width: auto; height: auto; border: 0; color: var(--navy); }
.site-foot .socials a:hover { background: none; color: var(--sky); }
.site-foot .socials svg { width: 22px; height: 22px; fill: currentColor; }
.lang-seg { display: flex; padding: 4px; border-radius: var(--pill); background: var(--white); }
.lang-seg a { padding: 8px 18px; border-radius: var(--pill); font-size: 16px; color: var(--navy); }
.lang-seg a[aria-current] { background: var(--line); }

@media (max-width: 900px) {
  .team-grid-band, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .svc { gap: 40px; }
  .svc-visual { aspect-ratio: 16 / 9; }
  .site-foot .foot-bottom { grid-template-columns: minmax(0, 1fr) auto; }
  .site-foot .copy { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 600px) {
  .team-band { padding-block: 64px; }
  .site-foot { padding-block: 64px 100px; }
  .foot-info { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .intro { padding-block: 48px 96px; }
}

.site-foot { padding-bottom: 110px; }

/* Keep the WhatsApp button readable inside the navy contact card */
.contact-info a.wa-btn { color: var(--navy); font-size: 17px; }

/* ===== Products: home band, product list and product pages ===== */
.prod-band { padding-block: 96px; }
.prod-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.prod-card { display: grid; grid-template-rows: auto 1fr; border-radius: 20px; overflow: hidden; background: var(--tint); transition: transform .35s var(--ease), box-shadow .35s; }
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,36,86,.12); }
.prod-card-media { aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--brand); padding: 28px 28px 0; }
.prod-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 12px 12px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.18); transition: transform .6s var(--ease); }
.prod-card:hover .prod-card-media img { transform: translateY(-6px) scale(1.01); }
.prod-card-body { display: grid; gap: 14px; padding: 26px 28px 30px; align-content: start; }
.prod-card-title { display: flex; gap: 14px; align-items: center; }
.prod-card-title h3 { font-size: 24px; font-weight: 700; }
.prod-card-title p { color: var(--brand); font-weight: 600; }
.prod-card-sum { color: var(--muted); }
.prod-card .underline { justify-self: start; color: var(--brand); }
.prod-logo { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.prod-logo.lg { width: 64px; height: 64px; border-radius: 16px; }
.prod-logo-text { display: grid; place-items: center; background: var(--brand); color: #fff; font: 800 22px var(--display); }
.prod-logo-text.lg { font-size: 30px; }
.prod-status { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: var(--pill); background: #FFF4E0; color: #8A5300; }
.prod-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E89A1C; }

.pp-hero { position: relative; overflow: hidden; padding-block: 56px 72px; background: linear-gradient(180deg, var(--tint), var(--white)); }
.pp-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.pp-hero-copy { gap: 18px; justify-items: start; }
.pp-brand { display: flex; align-items: center; gap: 14px; }
.pp-name { font: 700 22px var(--display); color: var(--brand); }
.pp-hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
html[lang="fa"] .pp-hero h1 { line-height: 1.45; letter-spacing: 0; }
.pp-hero .lead { color: var(--muted); font-size: 18px; max-width: 46ch; }
.pp-btn { background: var(--brand); color: #fff; }
.pp-hero-media { position: relative; }
.browser { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(20,20,60,.18); border: 1px solid var(--line); }
.browser-bar { display: flex; gap: 6px; padding: 10px 14px; background: #F3F3F6; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D8D8DE; }
.browser-bar i:nth-child(1) { background: #FF5F57; } .browser-bar i:nth-child(2) { background: #FEBC2E; } .browser-bar i:nth-child(3) { background: #28C840; }
.browser img { display: block; width: 100%; height: auto; }
.pp-phone { position: absolute; width: 23%; inset-inline-end: -14px; bottom: -36px; border-radius: 22px; border: 6px solid #111; box-shadow: 0 24px 60px rgba(0,0,0,.25); background: #111; }
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 4 / 3; max-width: 100%; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.mosaic img:first-child { grid-row: span 2; }
.mosaic img:nth-child(4) { display: none; }

.pp-stats { padding-block: 32px; border-block: 1px solid var(--line); }
.stats-row { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 24px; text-align: center; }
.pp-stat { display: grid; gap: 4px; color: var(--muted); }
.pp-stat-n { font: 800 clamp(36px, 4.6vw, 52px)/1 var(--display); color: var(--brand); font-variant-numeric: tabular-nums; }

.pp-section { padding-block: 88px; }
.pp-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pp-feature { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.pp-feature h3 { font-size: 18px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.pp-feature h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--brand); flex: none; }
.pp-feature p { color: var(--muted); font-size: 15px; }
.pp-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pp-area { background: var(--white); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; }
.pp-area h3 { font-size: 19px; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.pp-area small { font: 700 13px var(--body); color: var(--brand); background: var(--tint); border-radius: var(--pill); padding: 2px 10px; align-self: center; }
.pp-area ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pp-area li { font-size: 13.5px; padding: 4px 10px; border-radius: var(--pill); background: var(--mist); }
.pp-industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.pp-industries > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.pp-industries span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.pp-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pp-cta { padding-block: 96px; background: var(--brand); color: #fff; }
.pp-cta h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.pp-cta p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 50ch; }

@media (max-width: 1000px) {
  .pp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-areas, .pp-industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .prod-cards, .pp-hero-grid, .pp-shots { grid-template-columns: minmax(0, 1fr); }
  .pp-phone { inset-inline-end: 8px; }
}
@media (max-width: 600px) {
  .pp-features, .pp-areas, .pp-industries { grid-template-columns: minmax(0, 1fr); }
  .prod-band, .pp-section, .pp-cta { padding-block: 64px; }
  .prod-card-media { padding: 18px 18px 0; }
}

/* Hero sentence: rotating word ends line one in a soft highlight that resizes to each word; the rest sits on its own line */
.hero-sub { max-width: none; }
.hero-line, .hero-line2 { display: block; }
.rotator { display: inline-grid; justify-items: center; vertical-align: -0.38em; box-sizing: content-box; height: 1.55em; line-height: 1.55em; padding-inline: .4em; margin-inline-start: .1em; border-radius: .4em; overflow: hidden; background: rgba(124,200,255,.16); box-shadow: inset 0 0 0 1px rgba(124,200,255,.28); color: #9FD8FF; font-weight: 700; transition: width .38s var(--ease); }
.rot-word { transition: transform .38s var(--ease), opacity .38s; }

/* Align the highlighted word with the sentence: same line box, centred on the text, nothing hanging below the baseline */
.hero-line { line-height: 1.9; }
.rotator { display: inline-flex; align-items: center; justify-content: center; vertical-align: top; height: 1.9em; line-height: 1.9em; padding-block: 0; margin-block: 0; background: none; box-shadow: none; position: relative; }
.rotator::before { content: ""; position: absolute; inset: .22em 0; border-radius: .4em; background: rgba(124,200,255,.16); box-shadow: inset 0 0 0 1px rgba(124,200,255,.28); }
.rot-word { position: relative; line-height: 1.9em; }

/* ===== FAQ, legal pages, blog, careers ===== */
.faq-list, .job-list { display: grid; gap: 12px; max-width: 860px; }
.faq, .job { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s; }
.faq[open], .job[open] { border-color: rgba(0,144,246,.45); }
.faq summary, .job summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font: 600 19px var(--display); }
.faq summary::-webkit-details-marker, .job summary::-webkit-details-marker { display: none; }
.faq .chev, .job .chev { border: 0; width: 24px; height: 24px; transition: transform .3s; }
.faq[open] .chev, .job[open] .chev { transform: rotate(180deg); }
.faq p { padding: 0 24px 22px; color: var(--muted); font-size: 17px; max-width: 70ch; }
.faq-more { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }

.legal { max-width: 760px; display: grid; gap: 14px; }
.legal h2 { font-size: 22px; font-weight: 700; margin-top: 18px; }
.legal p { color: #3A4256; font-size: 17px; line-height: 1.75; }
.legal .lead { color: var(--navy); font-size: 19px; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.post-card a { display: grid; gap: 10px; }
.post-thumb { aspect-ratio: 16 / 10; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--mist); display: grid; place-items: center; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-thumb .post-mark { width: 34%; height: auto; object-fit: contain; opacity: .55; }
.post-card a:hover .post-thumb img { transform: scale(1.04); }
.post-card time, .post-head time { font-size: 14px; color: var(--soft); }
.post-card h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }
.post-card p { color: var(--muted); }
.post-card .underline { justify-self: start; font-size: 15px; }
.post-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; max-width: 100%; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { max-width: 720px; margin-inline: auto; padding-block: 48px 88px; display: grid; gap: 18px; font-size: 18px; line-height: 1.8; }
.post-body h2 { font-size: 26px; font-weight: 700; margin-top: 14px; }

.job-title { display: grid; gap: 8px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px; font: 400 14px var(--body); }
.job-body { padding: 0 24px 24px; display: grid; gap: 14px; justify-items: start; color: #3A4256; }
.job-general { margin-top: 28px; padding: 28px; border-radius: var(--radius); background: var(--mist); display: grid; gap: 16px; justify-items: start; }
.job-general p { font-size: 18px; max-width: 60ch; }
.muted-line { color: var(--muted); font-size: 15px; }
.site-foot .copy a { border-bottom: 1px solid currentColor; }
.site-foot .copy a:hover { color: var(--sky); }

@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .faq summary, .job summary { padding: 18px; font-size: 17px; }
  .faq p { padding: 0 18px 18px; }
  .job-body { padding: 0 18px 18px; }
}

/* ===== v6: typography and spacing measured from the reference studio at 1280px wide ===== */
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { --body: "Satoshi", "Segoe UI", system-ui, sans-serif; }
html[lang="fa"] { --body: "Vazirmatn", "Segoe UI", Tahoma, sans-serif; }

/* Page width: 1024px of content with wide side margins */
.wrap { max-width: 1152px; padding-left: max(clamp(16px, 5vw, 64px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 5vw, 64px), env(safe-area-inset-right, 0px)); }

/* Header */
.nav { height: 108px; }
.links { gap: 36px; font-size: 20px; }
.lang { height: 48px; min-width: 64px; font-size: 18px; }
.btn { font-size: 18px; line-height: 24px; padding: 12px 24px; }

/* Hero */
.hero-card { border-radius: 24px; min-height: 522px; }
.eyebrow { font-size: 16px; letter-spacing: .12em; }
.hero h1 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.16; letter-spacing: 0; }
.hero-sub { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.9vw, 24px); line-height: 1.5; color: var(--white); }
html[lang="fa"] .hero-sub { font-weight: 400; }

/* Section headings and copy */
.intro h2, .section-head h2, .team-copy h2 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.39; }
.intro p, .section-head p, .team-copy p { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; }
.clients h2 { font-size: clamp(16px, 1.9vw, 24px); line-height: 1.5; }

/* Project cards */
.work-grid { gap: 48px 32px; }
.thumb { aspect-ratio: 320 / 251; border-radius: 12px; }
.cat { font-size: 16px; letter-spacing: .12em; color: var(--soft); }
.work h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.25; margin-top: -6px; }

/* Services accordion */
.acc-btn { font-size: clamp(20px, 1.9vw, 24px); font-weight: 500; line-height: 1.4; }
.acc-body p { font-size: 18px; line-height: 1.5; }
.acc-body .tag { font-size: 16px; line-height: 16px; padding: 10px 16px; }
.more { font-size: 18px; color: #45484E; }
.svc { grid-template-columns: minmax(0, 410fr) minmax(0, 481fr); gap: clamp(40px, 10vw, 133px); }
.svc-visual { aspect-ratio: 410 / 464; }

/* Navy band */
.underline.light { font-size: 20px; }

/* Footer */
.foot-big { font-size: clamp(40px, 5vw, 64px); line-height: 1.16; letter-spacing: 0; }
.site-foot .contact-lines { font-size: clamp(18px, 1.9vw, 24px); }
.foot-links { font-size: 20px; }
.foot-info h3 { font-family: var(--display); font-size: 18px; font-weight: 600; }
.foot-info p { font-size: 16px; font-weight: 300; line-height: 1.7; }
html[lang="fa"] .foot-info p { font-weight: 400; }

/* Inner pages follow the same scale */
.page-head h1 { font-size: clamp(32px, 4vw, 52px); }
.page-head p { font-size: clamp(17px, 1.6vw, 20px); }

@media (max-width: 900px) {
  .nav { height: 88px; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc-visual { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .nav { height: 72px; }
  .lang { height: 42px; min-width: 52px; font-size: 16px; }
  .eyebrow { font-size: 13px; }
  .cat { font-size: 14px; }
  .acc-body p, .more { font-size: 16px; }
  .foot-links { font-size: 18px; }
}

/* Logo loop: each group is exactly as wide as its logos (no stretching), so the two copies join with no empty stretch */
.marquee-group { min-width: 0; flex: none; }
.marquee-track { animation-duration: 32s; }

/* Clients shown by name (no logo): set like a wordmark in the same gray as the logos */
.client-logo:not(:has(img)) { font: 800 clamp(20px, 2vw, 26px)/1.1 var(--display); letter-spacing: .02em; color: #7A7D86; }

/* Medium screens (laptops with narrow windows): keep the brand and the menu apart */
@media (min-width: 901px) and (max-width: 1180px) {
  .links { gap: 22px; font-size: 17px; }
  .brand { font-size: 18px; gap: 8px; }
  .logo { height: 38px; }
  .actions { gap: 8px; }
  .actions .btn-dark { padding-inline: 20px; }
}

/* Product pages: how it works, trust, pricing; the craft photos sit beside the second screenshot */
.pp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pp-step { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: var(--radius); background: var(--tint); }
.pp-step-no { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 18px var(--display); }
.pp-step h3 { font-size: 20px; font-weight: 600; }
.pp-step p { color: var(--muted); }
.pp-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.band .pp-feature { background: var(--white); }
.pp-pricing { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; padding: 36px 40px; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); background: var(--tint); }
.pp-pricing p { color: var(--muted); max-width: 56ch; }
.pp-shots .mosaic { aspect-ratio: auto; height: 100%; min-height: 280px; }
.pp-cta { background: var(--brand); }
@media (max-width: 1000px) { .pp-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pp-steps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .pp-trust { grid-template-columns: minmax(0, 1fr); } .pp-pricing { padding: 24px; } }
