/* ==========================================================
   Effecto Studio — style.css
   رنگ‌ها و فونت‌ها از همین بخش بالا تغییر می‌کنند.
   ========================================================== */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0b1411;          /* پس‌زمینه اصلی (سبز-مشکی کاور پروپوزال) */
  --ink-2: #101c18;
  --panel: #152421;
  --line: rgba(233, 240, 237, .13);
  --text: #eaf1ee;
  --muted: #93aaa2;
  --teal: #6fc0ae;         /* هایلایت لوگو */
  --petrol: #2a4a5c;
  --ember: #d2561a;        /* S نارنجی لوگو */
  --ember-btn: #c14b12;
  --amber: #e07b10;

  --slash: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  --slash-sm: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
  --wrap: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.95;
  letter-spacing: 0;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; background: var(--teal); color: var(--ink); padding: .5rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--alt { background: var(--ink-2); }

/* ---------- تایپوگرافی ---------- */
h1 { font-size: clamp(2.35rem, 5.4vw, 4.75rem); font-weight: 900; line-height: 1.3; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1.45; }
h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.6; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 52ch; }
.prose p { max-width: 62ch; color: #c9d7d1; }
.prose p + p { margin-top: 1rem; }

/* نشان مورب کنار تیتر بخش‌ها — برگرفته از برش‌های لوگو */
.sec-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-head::before {
  content: ""; flex: none; width: 22px; height: 54px; margin-top: .35rem;
  background: linear-gradient(180deg, var(--teal) 0 58%, var(--ember) 58% 100%);
  clip-path: var(--slash);
}
.sec-head p { color: var(--muted); max-width: 54ch; margin-top: .4rem; }
.sec-head--row { align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.sec-head--row > div { display: flex; gap: 1rem; align-items: flex-start; }

/* ---------- دکمه‌ها ---------- */
.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 2.1rem; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.6;
  color: #fff; border: 0; background: none; cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ember-btn);
  transform: skewX(-14deg); transition: background .2s;
}
.btn:hover::before { background: var(--amber); }
.btn--ghost::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn--ghost:hover::before { background: rgba(111, 192, 174, .16); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- هدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 20, 17, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav ul { display: flex; gap: 2rem; }
.nav a:not(.btn) { position: relative; font-weight: 500; color: #cfdcd6; padding-block: .4rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--ember)); transform: skewX(-24deg);
}
.nav .btn { padding: .5rem 1.4rem; font-size: .95rem; }
.menu-btn { display: none; background: none; border: 1.5px solid var(--line); color: var(--text); width: 46px; height: 46px; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .25s, background .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- قاب‌های مدیا (ویدئو / تصویر) ---------- */
.frame { position: relative; overflow: hidden; background: var(--panel); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame video { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.frame.is-playing video { opacity: 1; }
.frame__hint {
  position: absolute; inset-inline-start: 1rem; bottom: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .8rem; font-size: .8rem;
  background: rgba(11, 20, 17, .7); color: var(--teal); border: 1px solid rgba(111, 192, 174, .35);
}
.frame.is-playing .frame__hint, .frame--clean .frame__hint { display: none; }
.frame--slash { clip-path: var(--slash); }
.frame--slash .frame__hint { inset-inline-start: 15%; }
.frame--wide { aspect-ratio: 16 / 9; }
.frame__play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border: 0; padding: 0; background: rgba(11, 20, 17, .25); cursor: pointer; color: #fff; }
.frame__play svg { width: 76px; height: 76px; padding: 22px 20px 22px 26px; background: var(--ember-btn); border-radius: 50%; transition: transform .2s, background .2s; }
.frame__play:hover svg { transform: scale(1.08); background: var(--amber); }
/* ---------- هیرو (صفحه اصلی) ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.hero::before {
  content: ""; position: absolute; inset: -20% auto auto -10%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(111, 192, 174, .16), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--gap); align-items: center; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .ln { display: block; overflow: hidden; padding-block: .06em; }
.hero h1 .ln > span { display: block; }
.hero .lead { margin-bottom: 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.hero__art { position: relative; height: min(78vh, 640px); aspect-ratio: 9 / 16; justify-self: center; }
.hero__art::before, .hero__art::after { content: ""; position: absolute; clip-path: var(--slash); }
.hero__art::before { inset: 10% auto -3% -16%; width: 42%; background: linear-gradient(180deg, var(--ember), var(--amber)); }
.hero__art::after { inset: -3% -14% auto auto; width: 36%; height: 26%; background: linear-gradient(135deg, var(--petrol), var(--teal)); }
.hero__art .frame { position: absolute; inset: 0; z-index: 1; clip-path: var(--slash-sm); }
/* یک حرکت هماهنگ هنگام بارگذاری — تنها انیمیشن خودکار سایت */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .ln > span { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
  .hero h1 .ln:nth-child(2) > span { animation-delay: .12s; }
  .hero h1 .ln:nth-child(3) > span { animation-delay: .24s; }
  .hero .lead, .hero__cta { animation: fade .8s .5s both; }
  .hero__art .frame { animation: reveal 1.1s .15s cubic-bezier(.2, .8, .2, 1) both; }
  .hero__art::before { animation: slide-l .9s .55s cubic-bezier(.2, .8, .2, 1) both; }
  .hero__art::after { animation: slide-r .9s .65s cubic-bezier(.2, .8, .2, 1) both; }
  
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
@keyframes reveal { from { clip-path: polygon(52% 0, 62% 0, 48% 100%, 38% 100%); } }
@keyframes slide-l { from { transform: translateX(-60px); opacity: 0; } }
@keyframes slide-r { from { transform: translateX(60px); opacity: 0; } }

/* ---------- معرفی ---------- */
.about .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: calc(var(--gap) * 1.6); align-items: center; }
.about .frame { aspect-ratio: 1 / 1; }
.points { margin-top: 2rem; display: grid; gap: 1rem; }
.points li { display: flex; gap: .9rem; align-items: baseline; color: #d6e2dc; }
.points li::before { content: ""; flex: none; width: 10px; height: 18px; background: var(--teal); clip-path: var(--slash); transform: translateY(2px); }

/* ---------- همکاران ---------- */
.clients { display: grid; grid-template-columns: repeat(6, 1fr); border-block: 1px solid var(--line); }
.clients li { display: grid; place-items: center; min-height: 112px; padding: 1.2rem; border-inline-start: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.clients li:first-child { border-inline-start: 0; }
.clients img { max-height: 46px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .75; }
.clients .ph { display: flex; align-items: center; gap: .6rem; opacity: .7; }
.clients .ph::before { content: ""; width: 14px; height: 24px; background: linear-gradient(180deg, var(--petrol), var(--teal)); clip-path: var(--slash); }

/* ---------- مسیر فعالیت ---------- */
.timeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; position: relative; }
.timeline li { position: relative; padding: 2.6rem .9rem 0 .9rem; }
.timeline li::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--line); }
.timeline li::after {
  content: ""; position: absolute; top: -9px; inset-inline-start: .9rem; width: 12px; height: 20px;
  background: var(--teal); clip-path: var(--slash);
}
.timeline li:last-child::after { background: var(--ember); height: 26px; top: -12px; width: 15px; }
.timeline li:last-child::before { background: linear-gradient(270deg, var(--line), var(--ember)); }
.timeline b { display: block; font-size: 1.9rem; font-weight: 900; line-height: 1.3; color: #fff; }
.timeline li:last-child b { color: var(--amber); }
.timeline p { font-size: .93rem; line-height: 1.8; color: var(--muted); margin-top: .35rem; }

/* ---------- پلن‌ها ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 2.2rem 2rem 2rem; background: var(--panel);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
.plan--hot { background: linear-gradient(160deg, #1d3a44 0%, var(--panel) 62%); }
.plan--hot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--teal), var(--ember)); }
.plan__tag { align-self: flex-start; font-size: .82rem; font-weight: 700; padding: .1rem .8rem; background: var(--ember-btn); color: #fff; margin-bottom: 1rem; clip-path: var(--slash-sm); }
.plan h3 { font-size: 1.45rem; }
.plan__price { margin: 1rem 0 .3rem; font-size: 2.2rem; font-weight: 900; line-height: 1.4; }
.plan__price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan__note { color: var(--muted); font-size: .92rem; margin-bottom: 1.4rem; }
.plan ul { display: grid; gap: .7rem; margin-bottom: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: .8rem; align-items: baseline; font-size: .98rem; color: #d6e2dc; }
.plan li::before { content: ""; flex: none; width: 8px; height: 14px; background: var(--teal); clip-path: var(--slash); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.fine { margin-top: 1.6rem; color: var(--muted); font-size: .9rem; }

/* ---------- نمونه‌کارها (کارت‌ها) ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.work {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--panel); color: inherit; font: inherit; text-align: start; cursor: pointer; overflow: hidden;
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.work:hover img { transform: scale(1.04); }
.work__cap {
  position: absolute; inset: auto 0 0 0; padding: 3rem 1.1rem 1rem;
  background: linear-gradient(0deg, rgba(11, 20, 17, .92), transparent);
}
.work__cat { display: inline-block; font-size: .8rem; font-weight: 700; padding: 0 .7rem; background: var(--teal); color: var(--ink); clip-path: var(--slash-sm); margin-bottom: .35rem; }
.work__t { display: block; font-weight: 700; font-size: 1.05rem; line-height: 1.6; }
.work__c { display: block; font-size: .85rem; color: var(--muted); }
.work__play { position: absolute; inset-block-start: 1rem; inset-inline-end: 1rem; width: 42px; height: 42px; display: grid; place-items: center; background: rgba(11, 20, 17, .7); border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; }
.work__play svg { width: 16px; height: 16px; margin-inline-start: -2px; }
.works--home .work { aspect-ratio: 4 / 3; }
.works--home .work:first-child { grid-column: span 2; aspect-ratio: auto; }
.works--home .work:first-child img { position: absolute; inset: 0; }
.work[hidden] { display: none; }
.works--page { display: block; column-count: 3; column-gap: 1.1rem; }
.works--page .work { aspect-ratio: var(--r, 4 / 3); margin-bottom: 1.1rem; break-inside: avoid; }
.section--tight { padding-top: 0; }
.empty { column-span: all; grid-column: 1 / -1; padding: 3rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); }

/* ---------- تماس ---------- */
.contact .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: calc(var(--gap) * 1.6); align-items: start; }
.info { display: grid; gap: 1.4rem; margin-top: 2rem; }
.info dt { color: var(--muted); font-size: .9rem; }
.info dd { margin: 0; font-weight: 700; font-size: 1.15rem; }
.info a:hover { color: var(--teal); }
.num { direction: ltr; unicode-bidi: embed; display: inline-block; }
.form { background: var(--panel); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.2rem; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .93rem; color: #cbd9d3; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--ink); border: 1.5px solid var(--line); padding: .75rem 1rem; border-radius: 0;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(111, 192, 174, .5); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: #ff8a65; }
.field .err { color: #ffab91; font-size: .85rem; min-height: 1.2em; }
.hp { position: absolute; inset-inline-start: -9999px; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.status { font-weight: 500; }
.status.ok { color: var(--teal); }
.status.bad { color: #ffab91; }

/* ---------- صفحه خدمات ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset: 0 auto auto 0; width: 34vw; max-width: 460px; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(210, 86, 26, .14), transparent); pointer-events: none; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); margin-bottom: 1rem; }
.svc { display: grid; grid-template-columns: 1.15fr 1fr; gap: calc(var(--gap) * 1.6); align-items: center; padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid var(--line); }
.svc:nth-of-type(even) { grid-template-columns: 1fr 1.15fr; }
.svc:nth-of-type(even) .svc__media { order: 2; }
.svc__media .frame { aspect-ratio: 16 / 10; }
.svc__body h2 { margin-bottom: 1rem; }
.svc__body .btn { margin-top: 1.8rem; }
.svc__list { display: grid; gap: .55rem; margin-top: 1.4rem; }
.svc__list li { display: flex; gap: .8rem; align-items: baseline; color: #d6e2dc; }
.svc__list li::before { content: ""; flex: none; width: 8px; height: 14px; background: var(--ember); clip-path: var(--slash); }
.svc-index { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.chip { position: relative; isolation: isolate; padding: .35rem 1.3rem; font-weight: 500; font-size: .95rem; color: var(--text); background: none; border: 0; font-family: inherit; cursor: pointer; }
.chip::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-14deg); box-shadow: inset 0 0 0 1.5px var(--line); transition: background .2s, box-shadow .2s; }
.chip:hover::before { box-shadow: inset 0 0 0 1.5px var(--teal); }
.chip[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.chip[aria-pressed="true"]::before { background: var(--teal); box-shadow: none; }

/* ---------- پنجره نمایش ---------- */
dialog.viewer { width: min(94vw, 1000px); max-height: 92vh; padding: 0; border: 1px solid var(--line); background: var(--ink-2); color: var(--text); overflow: auto; }
dialog.viewer::backdrop { background: rgba(5, 10, 8, .84); backdrop-filter: blur(4px); }
.viewer__media { background: #000; max-height: 70vh; display: grid; place-items: center; }
.viewer__media img, .viewer__media video { max-height: 70vh; width: 100%; object-fit: contain; }
.viewer__body { padding: 1.4rem 1.6rem 1.8rem; }
.viewer__body h2 { font-size: 1.5rem; margin-block: .4rem; }
.viewer__body p { color: #c9d7d1; max-width: 62ch; }
.viewer__meta { color: var(--muted); font-size: .9rem; margin-top: .6rem; }
.viewer__close { position: absolute; inset-block-start: .8rem; inset-inline-end: .8rem; z-index: 3; width: 42px; height: 42px; border: 0; background: rgba(11, 20, 17, .8); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.viewer__close:hover { background: var(--ember-btn); }

/* ---------- فوتر ---------- */
.site-footer { border-top: 1px solid var(--line); background: #08100d; padding-block: 4rem 2rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--gap); }
.site-footer img { width: 150px; height: auto; margin-bottom: 1rem; }
.site-footer h3 { font-size: 1rem; color: var(--teal); margin-bottom: .8rem; }
.site-footer li + li { margin-top: .35rem; }
.site-footer a:hover { color: var(--teal); }
.site-footer p, .site-footer li { color: #b9c9c2; font-size: .98rem; }
.copy { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1100px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li { padding: 0 2rem 2rem 0; padding-inline: 2rem 0; }
  .timeline li::before, .timeline li:last-child::before { inset: 0 auto 0 auto; inset-inline-start: 0; width: 2px; height: auto; }
  .timeline li:last-child::before { background: linear-gradient(180deg, var(--line), var(--ember)); }
  .timeline li::after { top: .7rem; inset-inline-start: -5px; }
  .timeline li:last-child::after { top: .6rem; inset-inline-start: -6px; }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .clients li:nth-child(4) { border-inline-start: 0; }
  .clients li:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.2rem 1.25rem 1.6rem; background: rgba(11, 20, 17, .97); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: .4rem; }
  .nav a:not(.btn) { display: block; padding: .6rem 0; }
  .nav .btn { align-self: flex-start; }
  .hero .wrap, .about .wrap, .contact .wrap, .svc { grid-template-columns: 1fr; }
  .svc:nth-of-type(even) .svc__media { order: 0; }
  .svc, .svc:nth-of-type(even) { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 520px; width: 100%; margin-inline: auto; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .works--page { column-count: 2; }
  .works--home .work:first-child { grid-column: span 2; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .works { grid-template-columns: 1fr; }
  .works--page { column-count: 1; }
  .works--home .work:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
  .form { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .clients li:nth-child(n) { border-inline-start: 1px solid var(--line); border-top: 1px solid var(--line); }
  .clients li:nth-child(odd) { border-inline-start: 0; }
  .clients li:nth-child(-n+2) { border-top: 0; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
/* ===== هیرو: قاب عمودی ۹:۱۶ — این بلوک باید آخر فایل باشد ===== */
.hero__art { position: relative; width: min(360px, 100%); max-width: none; height: auto; aspect-ratio: 9 / 16; justify-self: center; margin-inline: auto; }
.hero__art .frame { position: absolute; inset: 0; }
.hero__art::before { inset: 10% auto -3% -16%; width: 42%; }
.hero__art::after { inset: -3% -14% auto auto; width: 36%; height: 26%; }

@media (max-width: 900px) {
  .hero__art { order: -1; width: min(52vw, 260px); }
  .hero__art::before { inset: 10% auto -3% -12%; width: 38%; }
  .hero__art::after { inset: -3% -10% auto auto; width: 32%; height: 22%; }
}
@media (max-width: 480px) { .hero__art { width: min(58vw, 230px); } }
.clients img { filter: brightness(0) invert(1); opacity: .7; }
.clients img:hover { opacity: 1; }


/* ===== هیرو: دوربین قدیمی با حلقه‌های چرخان ===== */
.cam-art { position: relative; width: 100%; max-width: 560px; justify-self: center; }
.cam-art::before { content: ""; position: absolute; inset: 0 -6%; background: radial-gradient(closest-side, rgba(111, 192, 174, .2), transparent 72%); pointer-events: none; }
.cam { position: relative; display: block; width: 100%; height: auto; }
.reel, .crank { transform-box: fill-box; transform-origin: center; }
.holes { fill: none; stroke: #e9f0ed; stroke-opacity: .4; stroke-width: 10; stroke-dasharray: 14 16; }
@media (prefers-reduced-motion: no-preference) {
  .cam-art { animation: fade .9s .2s both; }
  .reel { animation: spin-in 1.6s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes spin-in { from { transform: rotate(-240deg); } }
 
/* ===== بخش معرفی: ویدئوی عمودی ۹:۱۶ با نوارهای رنگی ===== */
.about { overflow: hidden; }
.vid-art { position: relative; width: min(340px, 100%); aspect-ratio: 9 / 16; justify-self: center; }
.vid-art::before, .vid-art::after { content: ""; position: absolute; clip-path: var(--slash); }
.vid-art::before { inset: 10% auto -3% -16%; width: 42%; background: linear-gradient(180deg, var(--ember), var(--amber)); }
.vid-art::after { inset: -3% -14% auto auto; width: 36%; height: 26%; background: linear-gradient(135deg, var(--petrol), var(--teal)); }
.about .vid-art .frame { position: absolute; inset: 0; z-index: 1; aspect-ratio: auto; }
 
@media (max-width: 900px) {
  .cam-art { order: -1; max-width: min(86vw, 340px); margin-inline: auto; }
}
.about .wrap.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about__media { display: grid; place-items: center; padding-inline: 3.5rem; }
.about .vid-art { position: relative; width: min(340px, 100%); aspect-ratio: 9 / 16; }
.about .vid-art .frame { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; z-index: 1; }
.about .vid-art .frame img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .about .wrap.about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__media { padding-inline: 2rem; }
  .about .vid-art { width: min(52vw, 260px); }
}
 

/* ویدئوی عمودی ۹:۱۶ */
.svc--vertical .svc__media .frame { aspect-ratio: 9 / 16; max-width: 320px; margin-inline: auto; }

/* مربعی */
.svc--square .svc__media .frame { aspect-ratio: 1 / 1; max-width: 460px; margin-inline: auto; }

/* افقی کوچک‌تر */
.svc--small .svc__media .frame { max-width: 440px; margin-inline: auto; }

.frame--phone { clip-path: none; border-radius: 40px; }

.svc--phone .svc__media .frame { aspect-ratio: 7.6 / 16; max-width: 300px; margin-inline: auto; }

/* عکس بدون بک‌گراند (برندینگ) */
.frame--cutout { display: grid; place-items: center; background:var(--panel), linear-gradient(160deg, var(--panel), var(--ink-2) 75%); }
.frame--cutout img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 0%; }
.svc--brand .svc__media .frame { aspect-ratio: auto; height: 600px; }
@media (max-width: 900px) { .svc--brand .svc__media .frame { height: 400px; } }

/* نمونه‌کارها: ستون‌های ثابت + دکمه «مشاهده بیشتر» */
.works--page { display: flex; gap: 1.1rem; align-items: flex-start; column-count: auto; }
.works--page .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.works--page .work { margin-bottom: 0; }
.works--page .empty { flex: 1 1 100%; }



/* هیرو در موبایل: متن وسط‌چین و دکمه‌ها کنار هم */
@media (max-width: 900px) {
  .hero h1, .hero .lead { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero__cta { justify-content: center; flex-wrap: wrap; gap: .7rem; }
  .hero__cta .btn { padding: .65rem 1.2rem; font-size: .92rem; white-space: nowrap; }
}
.more-wrap { display: flex; justify-content: center; margin-top: 2.5rem; }
[hidden] { display: none !important; }







/* ۱) حذف هایلایت آبی هنگام لمس در موبایل (WebKit) و جایگزینی با حالت فشردن */
* { -webkit-tap-highlight-color: transparent; }
button, .btn, .chip, .work, .nav a, .menu-btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html { scroll-padding-top: 5.5rem; }          /* لینک‌های #contact زیر هدر نمی‌روند */
 
/* ۲) ظاهر شدن بخش‌ها هنگام اسکرول (کلاس .js و .in را جاوااسکریپت می‌گذارد) */
.work, .plan { transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal] {
  opacity: 0; translate: 0 30px;
  transition: opacity .8s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms),
              translate .9s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms),
              scale .9s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms),
              transform .4s cubic-bezier(.2, .8, .2, 1);
}
.js [data-reveal="scale"] { translate: 0 20px; scale: .94; }
.js [data-reveal].in { opacity: 1; translate: 0 0; scale: 1; }
 
/* ویدئوی عمودی: نوارهای رنگی می‌لغزند و با اسکرول کمی پارالکس می‌شوند */
.js .vid-art::before { translate: -40px 0; opacity: 0; transform: translateY(calc(var(--py, 0) * 36px)); transition: translate 1s cubic-bezier(.2, .8, .2, 1) .25s, opacity .8s .25s; }
.js .vid-art::after  { translate: 40px 0;  opacity: 0; transform: translateY(calc(var(--py, 0) * -30px)); transition: translate 1s cubic-bezier(.2, .8, .2, 1) .4s,  opacity .8s .4s; }
.js .vid-art.in::before, .js .vid-art.in::after { translate: 0 0; opacity: 1; }
 
/* نشانگر سال‌ها با یک جهش کوچک ظاهر می‌شود */
.js .timeline li::after { scale: 0; transition: scale .6s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0ms) + .25s); }
.js .timeline li.in::after { scale: 1; }
 
/* ۳) هدر: هنگام اسکرول کوچک‌تر و پررنگ‌تر می‌شود */
.site-header { transition: background .3s, box-shadow .3s; }
.site-header .wrap { transition: min-height .3s cubic-bezier(.2, .8, .2, 1); }
.brand img { transition: height .3s cubic-bezier(.2, .8, .2, 1); }
.site-header.is-scrolled { background: rgba(11, 20, 17, .94); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .7); }
.site-header.is-scrolled .wrap { min-height: 3.75rem; }
.site-header.is-scrolled .brand img { height: 32px; }
 
/* منوی موبایل نرم باز می‌شود */
@keyframes nav-in { from { opacity: 0; translate: 0 -10px; } }
.nav.is-open { animation: nav-in .3s cubic-bezier(.2, .8, .2, 1); }
 
/* ۴) خط زیر لینک منو */
.nav a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--ember));
  transform: skewX(-24deg) scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: skewX(-24deg) scaleX(1); }
 
/* ۵) دکمه‌ها، کارت‌ها و حالت فشردن (جایگزین هایلایت آبی) */
.btn { transition: translate .2s; }
.btn::before { transition: background .25s, transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.btn:hover::before { transform: skewX(-14deg) scaleX(1.05); }
.btn:active::before { transform: skewX(-14deg) scale(.96); }
.btn:active { translate: 0 1px; }
.btn svg { transition: translate .3s cubic-bezier(.2, .8, .2, 1); }
.btn:hover svg { translate: -4px 0; }
.chip { transition: scale .2s; }
.chip:active { scale: .95; }
.plan:hover { transform: translateY(-6px); }
.work:hover { transform: translateY(-4px); }
.work:active, .plan:active { transform: scale(.985); }
.menu-btn { transition: background .2s, scale .2s; }
.menu-btn:active { scale: .92; }
.field input, .field select, .field textarea { transition: border-color .25s, background .25s; }
.field input:focus, .field select:focus, .field textarea:focus { background: #0e1a16; }
 
/* ۶) جابه‌جایی نرم بین صفحه‌ها (Chrome و Safari جدید) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .25s ease both vt-out; }
::view-transition-new(root) { animation: .5s cubic-bezier(.2, .8, .2, 1) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
 