/* ==========================================================================
   Vista Parto Teb — main stylesheet
   Concept: "the lightbox". Deep navy imaging surfaces (the hero scan, the
   page heads, the footer) set against clean white and cool-grey paper.
   Logo blue carries actions; a soft phosphor teal appears only on dark
   surfaces, the way an image glows on a viewer.
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2-variations"), url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #061428;
  --navy-900: #0a1f3c;
  --navy-800: #0f2c52;
  --blue: #0f75bd;          /* logo blue */
  --blue-700: #0b5e99;
  --sky: #59b8ec;           /* links/accents on dark */
  --teal: #62cdd4;          /* phosphor accent, dark surfaces only */
  --paper: #ffffff;
  --mist: #f0f4f8;
  --mist-2: #e6edf4;
  --ink: #0e1e33;
  --text: #39495d;
  --muted: #627187;
  --line: #dbe3ec;

  --f-body: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --f-display: "Vazirmatn", Tahoma, sans-serif;

  /* type scale (≈1.25) */
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.5rem, 1.1rem + 1.3vw, 2.125rem);
  --fs-h1: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem);
  --fs-hero: clamp(2rem, 1.2rem + 2.6vw, 3.4rem);

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 32px);
  --sec-y: clamp(64px, 8vw, 112px);
  --hdr-h: 76px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --shadow-1: 0 1px 2px rgb(10 31 60 / .05), 0 2px 8px rgb(10 31 60 / .04);
  --shadow-2: 0 2px 6px rgb(10 31 60 / .06), 0 18px 40px -12px rgb(10 31 60 / .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 64px); }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 var(--fs-md)/1.95 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.5; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[lang="en"] { font-family: var(--f-body); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.ic { width: 24px; height: 24px; flex: none; }
.ic-sm { width: 18px; height: 18px; }
.ic-xs { width: 14px; height: 14px; }

.h2 { font: 800 var(--fs-h2)/1.45 var(--f-display); letter-spacing: -.005em; margin-bottom: .55em; }
.muted { color: var(--muted); }
/* Client preference: body paragraphs justified with a first-line indent. */
.prose { text-align: justify; text-align-last: right; text-indent: 1.34em; max-width: 72ch; }
.prose--lg { font-size: var(--fs-lg); color: var(--ink); line-height: 1.9; }

.sec { padding-block: var(--sec-y); }
.sec--mist { background: var(--mist); }
.sec--tight { padding-block: clamp(40px, 5vw, 64px); }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec__head .h2 { margin-bottom: .2em; }
.sec__head p { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }

/* --------------------------------------------------------------- buttons */
.btn {
  --bg: var(--blue); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .6em 1.35em; border-radius: var(--r-sm);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font-weight: 600; font-size: var(--fs-sm); line-height: 1.4; cursor: pointer; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgb(15 117 189 / .55); }
.btn:active { transform: translateY(0); }
.btn__ic { transition: transform .3s var(--ease); }
.btn:hover .btn__ic { transform: translateX(-4px); }
.btn--primary:hover { --bg: var(--blue-700); }
.btn--navy { --bg: var(--navy-900); }
.btn--navy:hover { --bg: var(--navy-800); box-shadow: 0 10px 22px -10px rgb(10 31 60 / .6); }
.btn--ghost { --bg: transparent; --fg: var(--blue); --bd: currentColor; }
.btn--ghost:hover { --bg: var(--blue); --fg: #fff; --bd: var(--blue); }
.btn--light { --bg: #fff; --fg: var(--navy-900); }
.btn--light:hover { --bg: #eaf4fb; box-shadow: 0 12px 26px -10px rgb(0 0 0 / .4); }
.btn--outline-light { --bg: rgb(255 255 255 / .04); --fg: #fff; --bd: rgb(255 255 255 / .45); backdrop-filter: blur(6px); }
.btn--outline-light:hover { --bg: rgb(255 255 255 / .12); --bd: #fff; box-shadow: none; }
.btn--sm { min-height: 40px; padding: .45em 1.05em; font-size: var(--fs-xs); }
.btn--lg { min-height: 54px; padding: .7em 1.6em; font-size: var(--fs-md); }

.link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; font-size: var(--fs-sm); }
.link .ic { transition: transform .3s var(--ease); }
.link:hover .ic { transform: translateX(-4px); }
.link--muted { color: var(--muted); }

/* ---------------------------------------------------------------- header */
.hdr {
  position: sticky; top: 0; z-index: 50; height: var(--hdr-h);
  background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: height .35s var(--ease), border-color .35s, box-shadow .35s;
}
.hdr.is-scrolled { --hdr-h: 64px; border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(10 31 60 / .5); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 48px; height: auto; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.04); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand__txt b { font: 700 1.125rem/1.3 var(--f-display); }
.brand__txt span { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__txt span { color: rgb(255 255 255 / .6); }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  position: relative; display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; color: var(--ink); font-size: var(--fs-sm); font-weight: 500; border-radius: var(--r-sm);
}
.nav__link::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--blue); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--blue); }
.nav__sub {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 240px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.nav__sub a { display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink); font-size: var(--fs-sm); }
.nav__sub a:hover { background: var(--mist); color: var(--blue); }
.has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__mobile-extra { display: none; }
.hdr__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.hdr__tel { display: flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; font-size: var(--fs-sm); }
.hdr__tel .ic { color: var(--blue); }
.hdr__burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); cursor: pointer; color: var(--ink); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: clamp(620px, 88vh, 800px); display: flex; flex-direction: column;
  background:
    radial-gradient(60% 80% at 22% 45%, #123865 0%, transparent 70%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.hero::before { /* viewer grid */
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(rgb(98 205 212 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(98 205 212 / .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 30% 50%, #000 30%, transparent 100%);
}
.hero__scan, .hero__dicom { position: absolute; top: 0; bottom: 0; left: 0; width: 60%; z-index: -1; }
.hero__scan { width: 60%; height: 100%; }
/* Real echo clip: screen blending drops its black background into the navy. */
/* The container (not the video) blends: its z-index makes it the stacking context. */
.hero__media { position: absolute; top: 0; bottom: 0; left: 0; width: 60%; z-index: -1; display: flex; align-items: center; justify-content: center; padding: 3% 2% 9%; pointer-events: none; mix-blend-mode: screen; }
.hero__monitor { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.hero--video .hero__media { bottom: 128px; padding: 18px 2% 10px; }
.hero__monitor.has-pw { width: min(100%, calc((min(88vh, 800px) - 330px) * 1.38)); height: auto; }
.hero__monitor.has-pw .hero__video { height: auto; aspect-ratio: 664 / 480; }
.hero__pw {
  display: block; width: 100%; height: clamp(88px, 15vh, 140px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  opacity: 0; transition: opacity 1.2s var(--ease) .9s;
}
.is-ready .hero__pw { opacity: .95; }
.hero__video {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  filter: contrast(1.08) brightness(1.15) saturate(1.1);
  -webkit-mask-image: radial-gradient(75% 80% at 50% 45%, #000 60%, transparent 100%); mask-image: radial-gradient(75% 80% at 50% 45%, #000 60%, transparent 100%);
  opacity: 0; transform: scale(.97); transition: opacity 1.4s var(--ease) .2s, transform 1.8s var(--ease) .2s;
}
.is-ready .hero__video { opacity: .95; transform: none; }
.hero__credit { position: absolute; left: var(--gut); bottom: 104px; max-width: 46%; font-size: .66rem; line-height: 1.5; color: rgb(255 255 255 / .42); pointer-events: auto; }
.hero__credit a { color: inherit; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .2); }
.hero__credit a:hover { color: rgb(255 255 255 / .75); }
.hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, var(--navy-950) 0%, rgb(6 20 40 / .88) 34%, rgb(6 20 40 / 0) 62%); pointer-events: none; }
.hero__dicom { pointer-events: none; font-size: .72rem; line-height: 1.6; color: rgb(98 205 212 / .75); letter-spacing: .03em; }
.hero__dicom-tl { position: absolute; top: 28px; left: var(--gut); }
.hero__dicom-bl { position: absolute; bottom: 132px; left: var(--gut); }
.hero__depth {
  position: absolute; top: 10%; bottom: 22%; left: calc(50% + 34%); width: 10px;
  background: repeating-linear-gradient(180deg, rgb(98 205 212 / .55) 0 1px, transparent 1px 20px);
  -webkit-mask: linear-gradient(#000, #000) right / 6px 100% no-repeat; mask: linear-gradient(#000, #000) right / 6px 100% no-repeat;
  opacity: 0; transition: opacity 1.2s 1.6s;
}
.is-ready .hero__depth { opacity: 1; }
.hero__in { flex: 1; display: flex; align-items: center; padding-block: 72px 48px; }
.hero__copy { max-width: 700px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); font-size: var(--fs-sm); font-weight: 500; margin-bottom: 18px; }
.hero__kicker::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.hero__title { color: #fff; font: 800 var(--fs-hero)/1.4 var(--f-display); margin-bottom: 22px; letter-spacing: -.01em; }
.hero__title span { display: inline-block; }
.hero__lead { font-size: var(--fs-lg); line-height: 1.95; color: rgb(255 255 255 / .8); max-width: 54ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-block: 26px 30px; border-top: 1px solid rgb(255 255 255 / .1); }
.hero__feat { display: flex; align-items: center; gap: 14px; }
.hero__feat .ic { width: 44px; height: 44px; padding: 10px; border-radius: 50%; border: 1px solid rgb(98 205 212 / .35); color: var(--teal); }
.hero__feat b { display: block; font-size: var(--fs-sm); font-weight: 600; color: #fff; }
.hero__feat span { font-size: var(--fs-xs); color: rgb(255 255 255 / .6); }

/* load sequence */
.js .hero [data-seq] { opacity: 0; transform: translateY(26px); }
.js .is-ready [data-seq] { animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--s) * 130ms + 150ms); }
[data-seq="0"] { --s: 0; } [data-seq="1"] { --s: 1; } [data-seq="2"] { --s: 2; } [data-seq="3"] { --s: 3; } [data-seq="4"] { --s: 4; } [data-seq="5"] { --s: 6; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------- reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ----------------------------------------------------------- page head */
.phead { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding-block: clamp(48px, 7vw, 88px) clamp(44px, 6vw, 72px); background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); }
.phead__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgb(98 205 212 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(98 205 212 / .07) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: linear-gradient(270deg, transparent 20%, #000 100%);
  animation: grid-pan 30s linear infinite;
}
.phead::after { /* sweeping scan beam */
  content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -30%; z-index: -1;
  background: linear-gradient(90deg, transparent, rgb(98 205 212 / .12), transparent);
  animation: beam 7s var(--ease) 0.4s infinite;
}
@keyframes grid-pan { to { background-position: -40px 40px; } }
@keyframes beam { 0% { left: -30%; } 55%, 100% { left: 110%; } }
.phead__title { color: #fff; font: 800 var(--fs-h1)/1.45 var(--f-display); margin-top: 14px; }
.phead__en { color: var(--teal); font-size: var(--fs-sm); margin: 6px 0 0; letter-spacing: .03em; text-align: right; }
.phead__lead { color: rgb(255 255 255 / .78); max-width: 64ch; margin: 18px 0 0; font-size: var(--fs-md); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-xs); color: rgb(255 255 255 / .6); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .5; }
.crumbs a { color: rgb(255 255 255 / .75); }
.crumbs a:hover { color: #fff; }

/* ------------------------------------------------------------- home: intro */
.intro__grid { display: grid; grid-template-columns: 1.15fr .9fr 1fr; gap: clamp(24px, 3.5vw, 48px); align-items: stretch; }
.intro__text { align-self: center; }
.regcard {
  position: relative; padding: 28px; border-radius: var(--r-lg); color: #fff; overflow: hidden;
  background: linear-gradient(155deg, var(--navy-800), var(--navy-950));
}
.regcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 0%, rgb(98 205 212 / .22), transparent 70%); }
.regcard > * { position: relative; }
.regcard img { width: 64px; margin-bottom: 14px; }
.regcard__title { color: #fff; font: 600 var(--fs-md)/1.5 var(--f-display); margin-bottom: 14px; }
.regcard dl > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid rgb(255 255 255 / .12); font-size: var(--fs-sm); }
.regcard dt { color: rgb(255 255 255 / .65); }
.regcard dd { font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; }
.regcard--tall img { width: 150px; margin: 0 auto 22px; background: #fff; border-radius: var(--r-md); padding: 14px; }
.pillars { display: grid; gap: 12px; align-content: center; }
.pillars li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-md); background: var(--mist); transition: background-color .3s, transform .35s var(--ease); }
.pillars li:hover { background: var(--mist-2); transform: translateX(-4px); }
.pillars .ic { width: 42px; height: 42px; padding: 9px; border-radius: var(--r-sm); background: #fff; color: var(--blue); box-shadow: var(--shadow-1); }
.pillars b { display: block; color: var(--ink); font-size: var(--fs-sm); }
.pillars span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; }

/* --------------------------------------------------------- modality tiles */
.modal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mtile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px;
  padding: 26px 24px 24px; min-height: 196px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line);
  color: var(--text); transition: border-color .3s, box-shadow .35s, transform .35s var(--ease);
}
.mtile__code { font: 800 2.4rem/1 var(--f-body); color: var(--navy-900); letter-spacing: -.02em; margin-bottom: auto; padding-bottom: 22px; text-align: left; transition: color .3s; }
.mtile__fa { color: var(--ink); font-weight: 600; }
.mtile__text { font-size: var(--fs-xs); color: var(--muted); line-height: 1.75; }
.mtile__scan { position: absolute; inset-inline: 0; top: -40%; height: 40%; background: linear-gradient(180deg, transparent, rgb(15 117 189 / .1) 85%, rgb(15 117 189 / .5) 99%, transparent); pointer-events: none; opacity: 0; }
.mtile:hover { border-color: rgb(15 117 189 / .45); transform: translateY(-4px); box-shadow: var(--shadow-2); color: var(--text); }
.mtile:hover .mtile__code { color: var(--blue); }
.mtile:hover .mtile__scan { animation: tile-scan 1.1s var(--ease) forwards; }
@keyframes tile-scan { 0% { opacity: 1; top: -40%; } 100% { opacity: 0; top: 110%; } }

/* --------------------------------------------------------- product cards */
.pgrid { display: grid; gap: 20px; }
.pgrid--3 { grid-template-columns: repeat(3, 1fr); }
.pgrid--4 { grid-template-columns: repeat(4, 1fr); }
.pcard {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); color: var(--text);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; color: var(--text); }
.pcard__media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: linear-gradient(160deg, #f6f9fc, var(--mist-2)); }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; mix-blend-mode: multiply; transition: transform .7s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pvis { display: grid; place-items: center; width: 100%; height: 100%; color: var(--blue); background: radial-gradient(circle at 50% 45%, #fff 0, transparent 60%); }
.pvis__ic { width: 34%; height: auto; aspect-ratio: 1; stroke-width: 1; opacity: .85; transition: transform .7s var(--ease); }
.pcard:hover .pvis__ic { transform: scale(1.08) rotate(-3deg); }
.pcard__body { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px 52px; flex: 1; }
.pcard__title { color: var(--ink); font-weight: 600; line-height: 1.6; }
.pcard__en { font-size: var(--fs-xs); color: var(--muted); text-align: right; }
.pcard__text { font-size: var(--fs-sm); line-height: 1.8; margin-top: 8px; }
.pcard__brands { margin-top: 10px; font-size: var(--fs-xs); color: var(--blue); font-weight: 500; text-align: right; }
.pcard__go { position: absolute; left: 16px; bottom: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--blue); transition: background-color .3s, color .3s, transform .4s var(--ease), border-color .3s; }
.pcard:hover .pcard__go { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateX(-4px); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: var(--fs-sm); background: #fff; transition: border-color .25s, color .25s, background-color .25s; }
.chips a:hover { border-color: var(--blue); color: var(--blue); background: #f4f9fd; }

/* ---------------------------------------------------------------- marquee */
.marquee { position: relative; overflow: hidden; direction: ltr; padding-block: 8px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee li a { display: grid; place-items: center; width: 200px; height: 104px; padding: 18px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .3s, box-shadow .3s; }
.marquee li a:hover { border-color: rgb(15 117 189 / .4); box-shadow: var(--shadow-1); }
.marquee img { max-height: 60px; width: auto; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }
.wordmark { font: 700 1.1rem/1.2 var(--f-body); color: var(--navy-900); letter-spacing: .01em; text-align: center; }

/* ------------------------------------------------------- services on home */
.svc-home { display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.svc-home__intro { position: sticky; top: calc(var(--hdr-h) + 32px); }
.svc-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.svc-mini li { border-bottom: 1px solid var(--line); }
.svc-mini li:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.svc-mini a { display: flex; gap: 16px; padding: 22px 20px; color: var(--text); height: 100%; transition: background-color .3s; }
.svc-mini a:hover { background: #fff; color: var(--text); }
.svc-mini__ic .ic { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: var(--shadow-1); transition: background-color .3s, color .3s, transform .5s var(--ease); }
.svc-mini a:hover .svc-mini__ic .ic { background: var(--blue); color: #fff; transform: rotate(-10deg); }
.svc-mini b { display: block; color: var(--ink); font-weight: 600; font-size: var(--fs-sm); line-height: 1.7; }
.svc-mini span span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.8; }

/* -------------------------------------------------------- capabilities */
.why__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.85; }
.checks .ic { margin-top: 5px; color: var(--blue); padding: 2px; border-radius: 50%; background: rgb(15 117 189 / .1); width: 22px; height: 22px; }
.checks--cols { grid-template-columns: repeat(2, 1fr); gap: 10px 28px; margin-top: 18px; }
.counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.counters > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 30px 28px; background: #fff; }
.counters dd { font: 700 clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem)/1 var(--f-display); color: var(--navy-900); font-variant-numeric: tabular-nums; }
.counters dt { color: var(--muted); font-size: var(--fs-sm); }

/* ------------------------------------------------------------- room plan */
.proj-home { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.plan { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(12px, 2vw, 20px); }
.plan svg { width: 100%; height: auto; display: block; font-family: var(--f-body); }
.plan figcaption { font-size: var(--fs-xs); color: var(--muted); padding: 12px 6px 2px; line-height: 1.8; }
.plan__gridline { fill: none; stroke: #e9f0f6; stroke-width: 1; }
.plan__hatch { stroke: var(--teal); stroke-width: 2; }
.plan .draw { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.plan__walls .draw { stroke: var(--navy-900); stroke-width: 7; }
.plan__lead .draw { stroke: var(--teal); stroke-width: 3.5; }
.plan__door .draw { stroke: var(--blue); stroke-width: 4; }
.plan__door .thin, .plan__equip .thin { stroke-width: 1.5; stroke-dasharray: 4 4; }
.plan__equip .draw { stroke: var(--blue); stroke-width: 2; }
.plan__equip .shield { stroke: var(--teal); stroke-width: 6; }
.plan__glass { stroke: var(--teal); stroke-width: 1.5; }
.plan__labels text { font-size: 14px; fill: var(--ink); text-anchor: middle; font-weight: 600; }
.plan__labels .muted { fill: var(--muted); font-weight: 400; }
.plan__labels .tag { font-size: 12.5px; fill: var(--blue-700); font-weight: 500; text-anchor: start; }
.plan__labels .leader { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
/* drawing animation (pathLength="1" set by JS); dashed guides fade in instead */
.js .plan .draw:not(.thin) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) calc(var(--i, 0) * 70ms); }
.js .plan.is-drawn .draw:not(.thin) { stroke-dashoffset: 0; }
.js .plan .thin, .js .plan__labels, .js .plan__glass { opacity: 0; transition: opacity .8s 1.4s; }
.js .plan.is-drawn .thin, .js .plan.is-drawn .plan__labels, .js .plan.is-drawn .plan__glass { opacity: 1; }

.steps { counter-reset: s; position: relative; display: grid; gap: 4px; margin: 26px 0 30px; }
.steps::before { content: ""; position: absolute; top: 18px; bottom: 18px; right: 17px; width: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; top: 18px; right: 17px; width: 2px; height: calc((100% - 36px) * var(--p, 0)); background: var(--blue); transition: height .2s linear; }
.steps li { counter-increment: s; position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; padding-block: 8px; }
.steps li::before {
  content: counter(s, persian); grid-row: span 2; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); color: var(--muted); font-weight: 600; font-size: var(--fs-sm); transition: border-color .4s, color .4s, background-color .4s;
}
.steps li.is-on::before { border-color: var(--blue); color: #fff; background: var(--blue); }
.steps b { color: var(--ink); font-weight: 600; }
.steps span { font-size: var(--fs-sm); color: var(--muted); line-height: 1.8; }

/* --------------------------------------------------------------- support */
.support__in { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(120deg, #fff 40%, #eef6fc); }
.support__in .h2 { margin-bottom: .3em; }
.support__in .prose { margin: 0; }
.support__ic .ic { width: 72px; height: 72px; padding: 18px; border-radius: 50%; color: #fff; background: var(--blue); box-shadow: 0 0 0 10px rgb(15 117 189 / .1); animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgb(15 117 189 / 0); } }

/* ------------------------------------------------------------------- CTA */
.cta { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(110deg, var(--navy-800), var(--navy-950)); padding-block: clamp(44px, 6vw, 72px); }
.cta::before { content: ""; position: absolute; z-index: -1; left: -10%; top: -60%; width: 60%; height: 220%; background: radial-gradient(closest-side, rgb(98 205 212 / .2), transparent); animation: drift 12s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(30%); } }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta__title { color: #fff; font: 700 clamp(1.3rem, 1rem + 1vw, 1.75rem)/1.6 var(--f-display); margin-bottom: 8px; }
.cta p { color: rgb(255 255 255 / .72); margin: 0; }
.cta__actions { display: flex; align-items: center; gap: 22px; flex: none; }
.cta__tel { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.cta__tel:hover { color: var(--teal); }

/* ---------------------------------------------------------------- footer */
.ftr { background: var(--navy-950); color: rgb(255 255 255 / .7); padding-top: clamp(48px, 6vw, 72px); font-size: var(--fs-sm); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.ftr__about p { margin: 16px 0 18px; line-height: 1.9; }
.ftr__reg div { display: flex; gap: 8px; font-size: var(--fs-xs); line-height: 2; }
.ftr__reg dt { color: rgb(255 255 255 / .5); }
.ftr__reg dt::after { content: ":"; }
.ftr__reg dd { color: #fff; }
.ftr__h { color: #fff; font: 600 var(--fs-md)/1.5 var(--f-display); margin-bottom: 16px; }
.ftr__links li { margin-bottom: 8px; }
.ftr a { color: rgb(255 255 255 / .75); transition: color .2s; }
.ftr a:hover { color: var(--teal); }
.ftr__contact li { display: flex; gap: 10px; margin-bottom: 14px; line-height: 1.9; }
.ftr__contact .ic { color: var(--teal); margin-top: 5px; }
.ftr__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid rgb(255 255 255 / .1); font-size: var(--fs-xs); color: rgb(255 255 255 / .5); }
.ftr__base p { margin: 0; }

/* ------------------------------------------------------------ inner pages */
.jump { position: sticky; top: var(--hdr-h); z-index: 40; background: rgb(255 255 255 / .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: top .35s var(--ease); }
.jump__in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.jump__in::-webkit-scrollbar { display: none; }
.jump a { position: relative; flex: none; padding: 16px 14px; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.jump a::after { content: ""; position: absolute; inset-inline: 14px; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .35s var(--ease); }
.jump a:hover, .jump a.is-active { color: var(--blue); }
.jump a.is-active::after { transform: scaleX(1); }

.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about__side { position: sticky; top: calc(var(--hdr-h) + 24px); }
.quote { margin: 32px 0 0; padding: 24px 28px; border-inline-start: 3px solid var(--blue); background: var(--mist); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink); font: 500 var(--fs-lg)/1.9 var(--f-body); }
.scope { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.scope__item { padding: 24px 20px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.scope__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.scope__item .ic { width: 40px; height: 40px; color: var(--blue); margin-bottom: 14px; }
.scope__item h3 { font-size: var(--fs-md); margin-bottom: 6px; }
.scope__item p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.8; margin: 0; }
.mv-teaser { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.mv-teaser .prose { margin: 0; }

.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mvv__item { position: relative; padding: 34px 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.mvv__item::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: linear-gradient(270deg, var(--blue), var(--teal)); transform: scaleX(0); transform-origin: right; transition: transform 1s var(--ease) .3s; }
.mvv__item.is-in::before { transform: scaleX(1); }
.mvv__item h2 { font: 700 var(--fs-h3)/1.5 var(--f-display); margin-bottom: 14px; }
.mvv__item p { margin: 0; line-height: 2; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.values li { display: flex; gap: 10px; align-items: center; padding: 18px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: var(--fs-sm); line-height: 1.7; }
.values .ic { color: var(--blue); }
.goals { padding: 30px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: rgb(255 255 255 / .85); }
.goals h3 { color: #fff; font: 600 var(--fs-h3)/1.5 var(--f-display); margin-bottom: 16px; }
.goals li { position: relative; padding: 10px 22px 10px 0; border-top: 1px solid rgb(255 255 255 / .1); line-height: 1.8; }
.goals li::before { content: ""; position: absolute; right: 2px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* product page */
.prod { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.prod__media { aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--r-lg); background: linear-gradient(160deg, #f7fafd, var(--mist-2)); overflow: hidden; }
.prod__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.prod__media .pvis__ic { width: 40%; }
.prod__brands { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.prod__brands a { display: grid; place-items: center; height: 56px; min-width: 110px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; transition: border-color .25s; }
.prod__brands a:hover { border-color: var(--blue); }
.prod__brands img { max-height: 36px; width: auto; }
.prod__brands .wordmark { font-size: .95rem; }
.prod__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.prep { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.prep .h2 { font-size: var(--fs-h3); }
.prep ul { counter-reset: q; display: grid; gap: 10px; }
.prep li { position: relative; padding-inline-start: 22px; line-height: 1.8; }
.prep li::before { content: ""; position: absolute; right: 2px; top: 12px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }

.layers { display: grid; gap: 8px; }
.layers li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: var(--r-sm); background: #fff; border-inline-start: 8px solid var(--layer); box-shadow: var(--shadow-1); font-size: var(--fs-sm); }
.layers li span:last-child { color: var(--muted); font-size: var(--fs-xs); }
.js .is-in .layers li { animation: layer-in .7s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 200ms); }
@keyframes layer-in { from { opacity: 0; transform: translateX(-30px); } }

.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.tbl table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 640px; }
.tbl th { background: var(--navy-900); color: #fff; font-weight: 600; text-align: right; padding: 12px 16px; white-space: nowrap; }
.tbl td { padding: 11px 16px; border-top: 1px solid var(--line); text-align: right; }
.tbl tbody tr { transition: background-color .2s; }
.tbl tbody tr:hover { background: #f4f9fd; }
.tbl .yes { color: var(--blue); }
.tbl .no { color: var(--line); }

.note { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; border-radius: var(--r-md); background: #eef6fc; border: 1px solid #cfe4f3; color: var(--ink); font-size: var(--fs-sm); line-height: 1.9; }
.note > .ic { color: var(--blue); margin-top: 3px; }
.note p { margin: 0 0 12px; }
.note p:last-child { margin: 0; }

/* model gallery (CHISON line-up) */
.models__tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 26px; border-radius: 999px; background: var(--mist); }
.models__tabs button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); transition: background-color .3s, color .3s, box-shadow .3s; }
.models__tabs button:hover { color: var(--blue); }
.models__tabs .is-active { background: #fff; color: var(--blue); box-shadow: var(--shadow-1); }
.models__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.mcard { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.mcard.is-out { opacity: 0; transform: scale(.92); }
.mcard[hidden] { display: none; }
.mcard a { position: relative; display: flex; flex-direction: column; align-items: center; padding: 22px 14px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: linear-gradient(180deg, #fff 55%, var(--mist)); color: var(--ink); overflow: hidden; transition: border-color .3s, box-shadow .4s, transform .4s var(--ease); }
.mcard a:hover { border-color: transparent; box-shadow: var(--shadow-2); transform: translateY(-5px); color: var(--ink); }
.mcard__img { display: grid; place-items: end center; height: 220px; width: 100%; }
.mcard__img img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; transition: transform .7s var(--ease); }
.mcard a:hover .mcard__img img { transform: translateY(-6px) scale(1.04); }
.mcard__name { margin-top: 14px; font-weight: 600; }
.mcard__cta { font-size: var(--fs-xs); color: var(--blue); font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease); }
.mcard a:hover .mcard__cta, .mcard a:focus-visible .mcard__cta { opacity: 1; transform: none; }

/* services page */
.svc-list { display: grid; gap: 0; }
.svc { display: grid; grid-template-columns: 120px 1fr; gap: clamp(20px, 4vw, 48px); padding-block: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--hdr-h) + 72px); }
.svc:first-child { padding-top: 0; }
.svc__mark { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.svc__letter { font: 700 3.2rem/1 var(--f-display); color: var(--mist-2); transition: color .6s; }
.svc.is-in .svc__letter { color: rgb(15 117 189 / .22); }
.svc__mark .ic { width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: var(--blue); color: #fff; }
.svc__title { font: 700 var(--fs-h3)/1.6 var(--f-display); margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; justify-content: flex-end; }
.tags li { padding: 5px 12px; border-radius: 999px; background: var(--mist); color: var(--navy-900); font-size: var(--fs-xs); font-weight: 600; }
.svc__links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px; }

/* brands */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.btile { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); color: var(--text); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.btile:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: transparent; color: var(--text); }
.btile__logo { display: grid; place-items: center; height: 110px; margin-bottom: 12px; border-radius: var(--r-sm); background: #fff; border-bottom: 1px solid var(--line); }
.btile__logo img { max-height: 76px; max-width: 80%; width: auto; object-fit: contain; transition: transform .5s var(--ease); }
.btile:hover .btile__logo img { transform: scale(1.06); }
.btile__name { color: var(--ink); font-weight: 600; text-align: right; }
.btile__field { font-size: var(--fs-xs); color: var(--muted); line-height: 1.8; }
.brandp { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.brandp__logo { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 36px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.brandp__logo img { max-height: 160px; width: auto; }
.brandp__logo .wordmark { font-size: 2rem; }
.brandp__field { color: var(--blue); font-weight: 600; margin-bottom: 12px; }
.facts { display: grid; gap: 0; margin: 24px 0 28px; border-top: 1px solid var(--line); }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.facts dt { color: var(--muted); }
.facts dd { color: var(--ink); font-weight: 500; }
.facts--card { margin: 0; padding: 8px 24px; border: 1px solid var(--line); border-radius: var(--r-md); }

/* projects */
.captypes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.captype { padding: 26px 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; transition: transform .4s var(--ease), box-shadow .4s; }
.captype:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.captype .ic { width: 44px; height: 44px; color: var(--blue); margin-bottom: 16px; }
.captype h2 { font: 600 var(--fs-md)/1.6 var(--f-body); margin-bottom: 8px; }
.captype p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.8; margin: 0; }
.empty { display: flex; gap: 24px; align-items: flex-start; padding: clamp(24px, 4vw, 40px); border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--mist); }
.empty > .ic { width: 56px; height: 56px; color: var(--blue); flex: none; }
.empty p { max-width: 70ch; }
.projgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.projcard { display: block; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); color: var(--text); }
.projcard__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.projcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.projcard:hover img { transform: scale(1.05); }
.projcard__body { display: flex; flex-direction: column; padding: 16px 18px; font-size: var(--fs-sm); }
.projcard__body b { color: var(--ink); }
.ba, .gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery { grid-template-columns: repeat(3, 1fr); }
.ba figure, .gallery figure { margin: 0; border-radius: var(--r-md); overflow: hidden; }
.ba figcaption { padding: 8px 12px; font-size: var(--fs-sm); background: var(--navy-900); color: #fff; }

/* spec table (admin-editable label/value rows) */
.tbl--specs table { min-width: 0; }
.tbl--specs th { width: 34%; background: var(--mist); color: var(--ink); font-weight: 600; border-top: 1px solid var(--line); white-space: normal; }
.tbl--specs tr:first-child th, .tbl--specs tr:first-child td { border-top: 0; }

/* contact & forms */
.form-wrap { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-wrap__aside { position: sticky; top: calc(var(--hdr-h) + 24px); }
.clist { display: grid; gap: 18px; margin: 26px 0; }
.clist li { display: flex; gap: 14px; align-items: flex-start; }
.clist > li > .ic { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--mist); color: var(--blue); }
.clist div { display: flex; flex-direction: column; line-height: 1.9; font-size: var(--fs-sm); }
.clist__k { color: var(--muted); font-size: var(--fs-xs); }
.clist a { color: var(--ink); font-weight: 600; text-align: right; }
.clist a:hover { color: var(--blue); }
.clist__sub { color: var(--muted); font-size: var(--fs-xs); }
.clist__v { color: var(--ink); font-weight: 600; text-align: right; }
.quick { display: flex; flex-wrap: wrap; gap: 12px; }

.iform { position: relative; padding: clamp(22px, 3.5vw, 36px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); scroll-margin-top: calc(var(--hdr-h) + 24px); }
.iform__title { font: 700 var(--fs-h3)/1.5 var(--f-display); margin-bottom: 18px; }
.iform__label { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.iform__label i { color: #c0392b; font-style: normal; }
.seg { border: 0; padding: 0; margin: 0 0 22px; }
.seg__opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--mist); }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg__opt span { display: block; padding: 9px 6px; border-radius: var(--r-sm); text-align: center; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); transition: background-color .25s, color .25s, box-shadow .25s; }
.seg__opt input:checked + span { background: #fff; color: var(--blue); box-shadow: var(--shadow-1); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
.iform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fld { display: block; }
.fld--wide { grid-column: 1 / -1; }
/* spam trap: visually hidden in place (an off-screen offset would widen RTL pages) */
.hp { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.fld[hidden] { display: none; }
.fld.is-entering { animation: fld-in .45s var(--ease); }
@keyframes fld-in { from { opacity: 0; transform: translateY(-6px); } }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: #fbfcfe; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.fld textarea { resize: vertical; min-height: 120px; line-height: 1.8; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgb(15 117 189 / .12); }
.fld [aria-invalid="true"] { border-color: #c0392b; }
.fld__err { display: block; color: #b03a2e; font-size: var(--fs-xs); margin-top: 4px; }
.iform__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.iform__note { margin: 0; font-size: var(--fs-xs); color: var(--muted); flex: 1; min-width: 200px; line-height: 1.8; }
.iform__status { margin: 16px 0 0; font-size: var(--fs-sm); }
.iform__status:empty { display: none; }
.iform__status.is-ok { padding: 12px 16px; border-radius: var(--r-sm); background: #eaf7f0; color: #17643d; }
.iform__status.is-err { padding: 12px 16px; border-radius: var(--r-sm); background: #fdeeee; color: #9b2c22; }

.map { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: saturate(.75) contrast(1.02); }
.map__card { position: absolute; top: 20px; right: 20px; max-width: 340px; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-2); font-size: var(--fs-sm); }
.map__card > .ic { color: var(--blue); }
.map__card p { margin: 0; line-height: 1.9; }
.map__card b { display: block; color: var(--ink); }
.map__card .btn { align-self: flex-start; }

/* articles */
.agrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.acard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); color: var(--text); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.acard:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; color: var(--text); }
.acard__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); }
.acard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.acard:hover .acard__media img { transform: scale(1.05); }
.acard__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: rgb(98 205 212 / .7); }
.acard__ph-ic { width: 56px; height: 56px; stroke-width: 1; }
.acard__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.acard__cat { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: #eaf4fb; color: var(--blue); font-size: var(--fs-xs); font-weight: 600; }
.acard__title { color: var(--ink); font: 700 var(--fs-md)/1.7 var(--f-display); }
.acard__excerpt { font-size: var(--fs-sm); line-height: 1.85; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acard__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 10px; font-size: var(--fs-xs); color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.pager__num, .pager__btn { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: var(--fs-sm); }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .is-current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager .is-disabled { color: var(--line); }

.article__wrap { max-width: 820px; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 22px; color: var(--muted); font-size: var(--fs-sm); }
.article__meta time { display: inline-flex; align-items: center; gap: 6px; }
.article__cover { margin: 0 0 28px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.article__cover img { width: 100%; }
.article__lead { font-size: var(--fs-lg); line-height: 2; color: var(--ink); padding-inline-start: 16px; border-inline-start: 3px solid var(--teal); }
.article__body { font-size: 1.0625rem; line-height: 2.05; color: var(--text); }
.article__body > * + * { margin-top: 1em; }
.article__body p { margin: 0; text-align: justify; text-align-last: right; }
.article__body > p:not([style*="text-align"]) { text-indent: 1.5em; } /* about five spaces, the client's first-line indent */
.article__body h2 { font: 800 1.5rem/1.6 var(--f-display); color: var(--ink); margin-top: 1.8em; }
.article__body h3 { font: 700 1.2rem/1.7 var(--f-display); color: var(--ink); margin-top: 1.5em; }
.article__body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article__body ul, .article__body ol { padding-inline-start: 1.4em; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li + li { margin-top: .35em; }
.article__body blockquote { margin-inline: 0; padding: 16px 22px; border-inline-start: 3px solid var(--blue); background: var(--mist); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink); }
.article__body img { border-radius: var(--r-md); margin-inline: auto; }
.article__body table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.article__body th, .article__body td { border: 1px solid var(--line); padding: 10px 14px; text-align: right; }
.article__body th { background: var(--navy-900); color: #fff; }
.tags--fa { justify-content: flex-start; margin-top: 32px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.share a, .share button { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; cursor: pointer; transition: border-color .25s, color .25s; }
.share a:hover, .share button:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 1024px) { .agrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .agrid { grid-template-columns: 1fr; } .article__body p { text-align: right; } }

/* 3D location map (contact page) */
.map3d { position: relative; height: clamp(420px, 62vh, 600px); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #e9eef3; box-shadow: var(--shadow-2); }
.map3d__canvas, .map3d__canvas iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map3d__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: var(--fs-sm); }
.map3d__loading span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--blue); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.map3d.is-ready .map3d__loading { display: none; }
.map3d__card { position: absolute; top: 20px; right: 20px; z-index: 2; max-width: 360px; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-md); background: rgb(255 255 255 / .94); backdrop-filter: blur(8px); box-shadow: var(--shadow-2); font-size: var(--fs-sm); }
.map3d__card > .ic { color: var(--blue); }
.map3d__card p { margin: 0; line-height: 1.9; }
.map3d__card b { display: block; color: var(--ink); }
.map3d__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.is-fallback .map3d__actions [data-map-toggle], .is-fallback .map3d__actions [data-map-home] { display: none; }
.map3d__pin { display: flex; flex-direction: column; align-items: center; cursor: default; filter: drop-shadow(0 6px 10px rgb(10 31 60 / .35)); }
.map3d__pin img { position: relative; z-index: 1; width: 46px; height: auto; padding: 5px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); animation: pin-drop 1s var(--ease) both .6s; }
.map3d__pin b { margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--navy-900); color: #fff; font: 600 12px/1.6 var(--f-body); white-space: nowrap; }
.map3d__pin::after { content: ""; width: 2px; height: 26px; background: linear-gradient(var(--blue), transparent); }
.map3d__pulse { position: absolute; top: 2px; width: 56px; height: 56px; margin-left: -5px; border-radius: 50%; background: rgb(15 117 189 / .35); animation: map-pulse 2.2s ease-out infinite; }
@keyframes map-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes pin-drop { 0% { transform: translateY(-40px); opacity: 0; } 70% { transform: translateY(4px); opacity: 1; } 100% { transform: none; } }
.map3d .maplibregl-ctrl-group { border-radius: var(--r-sm); box-shadow: var(--shadow-1); }
@media (max-width: 720px) {
  .map3d { height: 460px; }
  .map3d__card { top: auto; bottom: 12px; right: 12px; left: 12px; max-width: none; padding: 14px; }
}

.nf__in { text-align: center; max-width: 560px; }
.nf__code { font: 700 6rem/1 var(--f-display); color: var(--mist-2); margin: 0 0 12px; }
.nf .prose { text-align: center; text-indent: 0; text-align-last: center; margin-inline: auto; }
.nf .quick { justify-content: center; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .hdr__tel { display: none; }
  .nav__link { padding: 8px 9px; }
  .intro__grid { grid-template-columns: 1fr 1fr; }
  .intro__text { grid-column: 1 / -1; }
  .scope, .captypes { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  /* backdrop-filter would make the header the containing block of the fixed drawer */
  .hdr { backdrop-filter: none; background: #fff; }
  .hdr__burger { display: inline-flex; }
  .hdr__actions .btn { display: none; }
  .nav {
    position: fixed; inset: var(--hdr-h) 0 0 0; margin: 0; padding: 20px var(--gut) 32px; overflow-y: auto;
    background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s;
  }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { padding: 14px 4px; font-size: var(--fs-md); }
  .nav__link::after { display: none; }
  .nav__link .ic { display: none; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 12px 10px; min-width: 0; }
  .nav__mobile-extra { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
  .nav__tel { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); font-weight: 600; }
  .nav-open .nav__item { animation: rise .5s var(--ease) both; }
  .nav-open .nav__item:nth-child(2) { animation-delay: .04s; } .nav-open .nav__item:nth-child(3) { animation-delay: .08s; }
  .nav-open .nav__item:nth-child(4) { animation-delay: .12s; } .nav-open .nav__item:nth-child(5) { animation-delay: .16s; }
  .nav-open .nav__item:nth-child(6) { animation-delay: .2s; } .nav-open .nav__item:nth-child(7) { animation-delay: .24s; }

  .hero__scan, .hero__dicom, .hero__media { width: 100%; }
  .hero__media { padding: 4% 0 30%; }
  .is-ready .hero__video { opacity: .55; }
  .hero__credit { max-width: none; right: var(--gut); bottom: auto; top: calc(100% - 26px); }
  .hero__veil { background: linear-gradient(0deg, var(--navy-950) 8%, rgb(6 20 40 / .78) 50%, rgb(6 20 40 / .45)); }
  .hero__depth { display: none; }
  .modal-grid, .pgrid--4 { grid-template-columns: repeat(2, 1fr); }
  .pgrid--3 { grid-template-columns: repeat(2, 1fr); }
  .svc-home, .why__grid, .proj-home, .form-wrap, .about, .prod, .brandp, .split { grid-template-columns: 1fr; }
  .svc-home__intro, .form-wrap__aside, .about__side { position: static; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .mvv { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .brandp__logo { max-width: 420px; }
  .prod__media { max-width: 520px; }
}
@media (max-width: 720px) {
  :root { --hdr-h: 64px; }
  .brand__mark { width: 40px; }
  .brand__txt b { font-size: 1rem; }
  .hero { min-height: auto; }
  .hero__in { padding-block: 56px 36px; }
  .hero__feats { grid-template-columns: 1fr; gap: 14px; }
  .hero__dicom-bl, .hero__dicom-tl { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .sec__head { flex-direction: column; align-items: flex-start; }
  .intro__grid, .scope, .captypes, .projgrid, .gallery, .ba { grid-template-columns: 1fr; }
  .modal-grid { gap: 10px; }
  .mtile { min-height: 168px; padding: 20px 16px; }
  .mtile__code { font-size: 1.9rem; }
  .pgrid--4, .pgrid--3 { grid-template-columns: 1fr; }
  .svc-mini { grid-template-columns: 1fr; }
  .svc-mini li:nth-child(odd) { border-inline-end: 0; }
  .checks--cols { grid-template-columns: 1fr; }
  .support__in { grid-template-columns: 1fr; text-align: right; }
  .cta__in, .mv-teaser { flex-direction: column; align-items: flex-start; }
  .cta__actions { flex-wrap: wrap; }
  .ftr__grid { grid-template-columns: 1fr; gap: 32px; }
  .svc { grid-template-columns: 1fr; gap: 14px; }
  .svc__mark { flex-direction: row; }
  .svc__letter { font-size: 2.4rem; }
  .values { grid-template-columns: 1fr; }
  .seg__opts { grid-template-columns: repeat(2, 1fr); }
  .iform__grid { grid-template-columns: 1fr; }
  .map iframe { height: 340px; }
  .map__card { position: static; max-width: none; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
  .prose { text-align: right; text-indent: 0; }
  .marquee li a { width: 160px; height: 88px; }
}

/* ---------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero [data-seq] { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track li[aria-hidden="true"] { display: none; }
  .marquee { mask-image: none; }
  .phead::after { display: none; }
}

/* shop link (xrayshop.ir) */
.hdr__shop { display: none; }
@media (min-width: 1025px) { .nav__link { white-space: nowrap; } }
@media (min-width: 1025px) and (max-width: 1340px) { .hdr__tel { display: none; } }
@media (min-width: 1025px) and (max-width: 1180px) { .nav__link { white-space: nowrap; padding: 8px 7px; } .hdr__in { gap: 16px; } .hdr__actions { gap: 10px; } }
@media (max-width: 1120px) { .hdr__shop-x { display: none; } }
@media (min-width: 1025px) and (max-width: 1100px) { .nav__link { padding: 8px 5px; } }
.ftr .ftr__links .ftr__shop { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 600; }
@media (max-width: 1024px) {
  .hdr__shop { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: var(--r-sm); background: var(--blue); color: #fff; font-weight: 600; font-size: var(--fs-xs); white-space: nowrap; }
  .hdr__shop:hover { color: #fff; background: var(--blue-700); }
}
@media (max-width: 440px) {
  .hdr__shop { width: 44px; padding: 0; }
  .hdr__shop span { display: none; }
}

/* hero quad: CHISON clinical images (fetus / heart / gyn / abdomen) */
.hero--quad .hero__in { gap: clamp(32px, 4vw, 56px); }
.hero--quad .hero__copy { flex: 0 1 620px; }
.hero__quad { flex: 1 1 0; min-width: 0; max-width: 600px; margin: 0; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero__tile { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: #000; border: 1px solid rgb(98 205 212 / .22); box-shadow: 0 18px 40px -18px rgb(0 0 0 / .75); }
.js .hero__tile { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: .35s; }
.js .hero__tile:nth-child(2) { transition-delay: .47s; }
.js .hero__tile:nth-child(3) { transition-delay: .59s; }
.js .hero__tile:nth-child(4) { transition-delay: .71s; }
.js .is-ready .hero__tile { opacity: 1; transform: none; }
.hero__tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero__tile::after { content: ""; position: absolute; inset: auto 0 0 0; height: 48%; background: linear-gradient(0deg, rgb(6 20 40 / .88), transparent); pointer-events: none; }
@media (hover: hover) { .hero__tile:hover img { transform: scale(1.04); } }
.hero__tag { position: absolute; z-index: 1; bottom: 10px; right: 12px; display: flex; flex-direction: column; line-height: 1.4; }
.hero__tag b { font-size: var(--fs-sm); font-weight: 700; color: #fff; }
.hero__tag i { font-style: normal; font-size: .68rem; color: var(--teal); letter-spacing: .04em; }
.hero__cap { margin-top: 12px; font-size: .72rem; line-height: 1.6; color: rgb(255 255 255 / .5); text-align: center; }
.hero__cap a { color: inherit; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .25); }
.hero__cap a:hover { color: rgb(255 255 255 / .85); }
@media (max-width: 1180px) {
  .hero--quad .hero__in { flex-direction: column; align-items: stretch; }
  .hero--quad .hero__copy { flex: none; }
  .hero__quad { flex: none; width: 100%; max-width: 640px; margin-inline: 0 auto; }
}
@media (max-width: 440px) {
  .hero__grid { gap: 6px; }
  .hero__tag { bottom: 6px; right: 8px; }
  .hero__tag b { font-size: .8rem; }
  .hero__tag i { font-size: .62rem; }
}

/* hero quad: live ultrasound canvas (assets/js/sono.js) */
.hero__live { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__tile.is-live img { opacity: 0; }
.hero__tile.is-live::after { height: 34%; }