/* =========================================================
   DigiGovah — Concept 09 «پوستر»
   Iranian graphic-poster tradition: letterforms as image,
   flat planes, overprint, constructivist diagonals.
   ========================================================= */

:root {
  --red: #E63322;
  --black: #000;
  --white: #fff;
  --ochre: #E9B44C;
  --cobalt: #1E3FD8;
  --ink-soft: #2a2a2a;
  --rule: 4px;

  --display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
  --body: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --head-h: 72px;

  --ease: cubic-bezier(.2, .9, .1, 1);
  --focus: var(--cobalt);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.95;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
ul[role="list"], ol[class], ul[class] { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.25; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--black); color: var(--white); padding: .6em 1em; font-weight: 700;
}
.skip:focus { top: 12px; }
.code, [dir="ltr"] { unicode-bidi: isolate; }

/* ---------- type ---------- */
.h-display {
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.4vw, 5rem);
  line-height: 1.22;
  letter-spacing: 0;
}
.sec-head { max-width: 62ch; margin-block-end: clamp(2rem, 4vw, 3.5rem); }
.sec-head p { margin-block-start: .6rem; font-size: 1.125rem; }
.sec-head a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- buttons: overprint plane behind ---------- */
.btn {
  --sh: var(--ochre);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .55em 1.35em;
  font-family: var(--body); font-weight: 800; font-size: 1.1875rem; line-height: 1.3;
  text-decoration: none; text-align: center;
  border: 3px solid transparent;
  transition: transform .18s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bbg, transparent); }
.btn::after {
  content: ""; position: absolute; inset: -3px; z-index: -2;
  background: var(--sh);
  transform: translate(-7px, 7px);
  transition: transform .22s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: translate(0, 0); }
.btn:active { transform: translate(-3px, 3px); }
.btn-lg { min-height: 60px; padding-inline: 1.7em; font-size: 1.25rem; }
.btn-red { --bbg: var(--red); color: var(--white); --sh: var(--black); }
.btn-black { --bbg: var(--black); color: var(--white); --sh: var(--red); }
.btn-ochre { --bbg: var(--ochre); color: var(--black); --sh: var(--black); }
.btn-white { --bbg: var(--white); color: var(--black); --sh: var(--black); }
.btn-line { --bbg: var(--white); color: var(--black); border-color: var(--black); --sh: var(--cobalt); }
.p-red .btn-black { --sh: var(--white); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-block-end: var(--rule) solid var(--black);
}
.head-in {
  width: min(100% - 2 * var(--gutter), 1600px); margin-inline: auto;
  height: var(--head-h);
  display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2rem);
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex: none; }
.brand-name { font-family: var(--display); font-size: 2rem; line-height: 1; white-space: nowrap; }
.brand-seal {
  display: inline-grid; place-items: center;
  width: 1.08em; height: 1.08em; margin-inline-start: .04em;
  background: var(--red); color: var(--white); border-radius: 50%;
  line-height: 1; vertical-align: -.12em; padding-block-start: .14em;
}
.brand-tag {
  font-size: .78rem; font-weight: 700; line-height: 1.35; max-width: 9.5em;
  border-inline-start: 3px solid var(--black); padding-inline-start: .7rem;
}
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: clamp(.4rem, 1.4vw, 1.4rem); list-style: none; padding: 0; }
.nav a {
  position: relative; display: block; padding: .4rem .2rem;
  font-weight: 800; font-size: 1rem; text-decoration: none; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 5px;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform .25s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.head-tel { font-weight: 800; text-decoration: none; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.head-cta { min-height: 46px; font-size: 1.05rem; padding-inline: 1.1em; }
.menu-btn { display: none; align-items: center; gap: .5rem; min-height: 48px; padding: 0 .8rem; font-weight: 800; border: 3px solid var(--black); }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 22px; height: 3px; background: currentColor; position: relative; transition: transform .25s var(--ease); }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

.mnav {
  position: fixed; inset: var(--head-h) 0 0; z-index: 49;
  background: var(--red); color: var(--black);
  padding: 1.5rem var(--gutter) 6rem; overflow-y: auto;
  --focus: var(--white);
}
.mnav::before {
  content: ""; position: absolute; inset-inline-end: -30vw; top: 30%; width: 120vw; height: 18vw;
  background: var(--black); transform: rotate(-24deg); opacity: .12; pointer-events: none;
}
.mnav ul { list-style: none; padding: 0; position: relative; }
.mnav li { border-block-end: 3px solid var(--black); }
.mnav li a { display: block; font-family: var(--display); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.5; text-decoration: none; padding-block: .2rem; }
.mnav.is-open li { animation: mnavIn .4s var(--ease) both; }
.mnav.is-open li:nth-child(2) { animation-delay: .04s; } .mnav.is-open li:nth-child(3) { animation-delay: .08s; }
.mnav.is-open li:nth-child(4) { animation-delay: .12s; } .mnav.is-open li:nth-child(5) { animation-delay: .16s; }
.mnav.is-open li:nth-child(6) { animation-delay: .2s; }
@keyframes mnavIn { from { opacity: 0; transform: translateX(40px); } }
.mnav-foot { margin-block-start: 1.5rem; font-weight: 800; font-size: 1.2rem; position: relative; }

/* ---------- poster section tokens ---------- */
.poster { position: relative; background: var(--bg); color: var(--fg); overflow: hidden; }
.p-red    { --bg: var(--red);    --fg: #000; --focus: #000; }
.p-black  { --bg: #000;          --fg: #fff; --focus: var(--ochre); }
.p-cobalt { --bg: var(--cobalt); --fg: #fff; --focus: var(--ochre); }
.p-ochre  { --bg: var(--ochre);  --fg: #000; --focus: var(--cobalt); }
.p-white  { --bg: #fff;          --fg: #000; --focus: var(--cobalt); }
.poster-credit {
  padding-block: 1.1rem 1.4rem; margin-block-start: clamp(2rem, 4vw, 3rem);
  border-block-start: 2px solid currentColor; font-size: .875rem; font-weight: 500;
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; background: var(--white); padding-block-end: clamp(2.5rem, 6vw, 5rem); }
.hero-art {
  --fs: clamp(10rem, 33vw, 33rem);
  position: relative; isolation: isolate;
  height: calc(var(--fs) * 1.32);
  font-size: var(--fs);
}
.mega {
  position: absolute; inset-inline-start: -.1em; top: -.16em;
  display: flex; align-items: flex-end; gap: .02em;
  font-family: var(--display); line-height: 1.3;
  user-select: none;
}
.gl { position: relative; display: block; }
.ink { display: block; mix-blend-mode: multiply; will-change: transform; }
.ink-r { color: var(--red); }
.ink-c { color: var(--cobalt); position: absolute; inset: 0; }
.gl-a { margin-inline-start: .04em; }
.gl-he { width: .86em; height: .86em; align-self: flex-end; margin-block-end: .24em; margin-inline-start: .06em; }
.seal { width: 100%; height: 100%; overflow: visible; }
.seal-rim { font-family: var(--body); font-weight: 800; font-size: 13.4px; letter-spacing: .3px; }
.seal-he { font-family: var(--display); font-size: 128px; }

.pl { position: absolute; display: block; mix-blend-mode: multiply; will-change: transform; }
.pl-ochre { width: .95em; height: .95em; border-radius: 50%; background: var(--ochre); inset-inline-start: .55em; top: .02em; }
.pl-band { width: 3.6em; height: .2em; background: var(--cobalt); inset-inline-end: -.6em; top: .98em; transform-origin: left center; rotate: -14deg; }
.pl-bar { width: .12em; height: 1.3em; background: var(--red); inset-inline-start: .42em; top: -.05em; rotate: 14deg; }
.pl-rule { width: 2.6em; height: .035em; background: var(--black); inset-inline-end: 0; top: 1.24em; mix-blend-mode: normal; }

.hero-side {
  position: absolute; inset-inline-end: var(--gutter); top: 1.2rem;
  font-size: .875rem; font-weight: 700; line-height: 1.5; max-width: 13em;
  border-block-start: 3px solid var(--black); padding-block-start: .5rem;
}

.hero-copy {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
  margin-block-start: calc(var(--fs-copy-pull, 0) * -1);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.6vw, 4.4rem); line-height: 1.28;
}
.hero h1 .hl { display: inline; background: linear-gradient(var(--ochre), var(--ochre)) 0 88% / 100% .38em no-repeat; }
.lead { font-size: clamp(1.0625rem, 1.3vw, 1.2rem); line-height: 2; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1.1rem 1.4rem; margin-block: 1.6rem 1.8rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .4rem 0; border-block-start: 3px solid var(--black); padding-block-start: .9rem; }
.hero-facts li { font-size: .95rem; line-height: 1.6; padding-inline-end: 1.1rem; margin-inline-end: 1.1rem; border-inline-end: 2px solid var(--black); }
.hero-facts li:last-child { border: 0; margin: 0; padding: 0; }
.hero-facts b { display: block; font-weight: 900; font-size: 1.05rem; }

/* hero choreography (1.2s) */
.js .hero .ink, .js .hero .pl, .js .hero .gl-he, .js .hero h1, .js .hero-side-copy { opacity: 0; }
.hero.go .ink, .hero.go .pl, .hero.go .gl-he, .hero.go h1, .hero.go .hero-side-copy { opacity: 1; }
.hero.go .pl-band    { animation: wipeX .55s var(--ease) both; }
.hero.go .pl-ochre  { animation: popIn .6s .08s var(--ease) both; }
.hero.go .pl-bar { animation: dropIn .6s .14s var(--ease) both; }
.hero.go .pl-rule   { animation: wipeX .5s .3s var(--ease) both; }
.hero.go .gl-go .ink-r { animation: fromRight .75s .12s var(--ease) both; }
.hero.go .gl-go .ink-c { animation: fromTop .75s .2s var(--ease) both; }
.hero.go .gl-a .ink-r  { animation: fromTop .6s .34s var(--ease) both; }
.hero.go .gl-a .ink-c  { animation: fromBottom .6s .4s var(--ease) both; }
.hero.go .gl-he        { animation: rollIn .7s .5s var(--ease) both; }
.hero.go h1            { animation: rise .6s .55s var(--ease) both; }
.hero.go .hero-side-copy { animation: rise .6s .68s var(--ease) both; }
@keyframes wipeX { from { transform: scaleX(0); } }
@keyframes popIn { from { transform: scale(0); opacity: 0; } }
@keyframes dropIn { from { transform: translateY(-110%); } }
@keyframes fromRight { from { transform: translate(28%, 0); opacity: 0; } }
@keyframes fromTop { from { transform: translate(0, -30%); opacity: 0; } }
@keyframes fromBottom { from { transform: translate(0, 24%); opacity: 0; } }
@keyframes rollIn { from { transform: translateX(-70%) rotate(-200deg) scale(.6); opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* =========================================================
   QUICK TOOL
   ========================================================= */
.quick { padding-block-start: clamp(3.5rem, 7vw, 6rem); }
.quick-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.quick-q { position: relative; }
.giant-q {
  display: block; font-family: var(--display); font-size: clamp(9rem, 17vw, 16rem); line-height: .8;
  color: var(--red); margin-block-end: .5rem; pointer-events: none;
}
.quick-q h2, .quick-q p { position: relative; }
.quick-sub { margin-block-start: 1rem; font-size: 1.125rem; max-width: 30ch; }
.goal-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; background: var(--white); border: 4px solid var(--white); }
.goal {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 72px; padding: .8rem 1rem; text-align: start;
  background: var(--black); color: var(--white);
  font-weight: 800; font-size: 1.1rem; line-height: 1.45;
}
.goal::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.goal:hover::before { transform: scaleX(.04); }
.goal[aria-pressed="true"] { color: var(--black); }
.goal[aria-pressed="true"]::before { transform: scaleX(1); }
.goal:focus-visible { outline-offset: -6px; }
.quick-out { min-height: 15rem; margin-block-start: 1.6rem; }
.quick-empty { font-size: 1.05rem; opacity: .85; border-inline-start: 6px solid var(--red); padding-inline-start: 1rem; }
.qo { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.6rem; align-items: start; }
.qo-big { grid-row: span 3; font-family: var(--display); font-size: clamp(4.5rem, 10vw, 8.5rem); line-height: 1; color: var(--ochre); }
.qo-big[dir="ltr"] { font-family: var(--body); font-weight: 900; letter-spacing: -.02em; }
.qo-std { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.qo-std li { background: var(--white); color: var(--black); padding: .15rem .7rem; font-weight: 800; font-size: .95rem; }
.qo p { font-size: 1.02rem; line-height: 1.95; }
.qo .btn { justify-self: start; margin-block-start: .4rem; }
.qo.in { animation: rise .45s var(--ease) both; }
.qo.in .qo-big { animation: stampIn .5s var(--ease) both; }
@keyframes stampIn { from { transform: scale(1.5) rotate(-8deg); opacity: 0; } }

/* =========================================================
   TENDER
   ========================================================= */
.tender { padding-block: clamp(4rem, 8vw, 7rem); }
.tender-art { position: absolute; inset-inline-start: -6%; bottom: -10%; width: min(52vw, 640px); opacity: 1; pointer-events: none; }
.tender .wrap { position: relative; }
.tender-head { max-width: 760px; }
.tender-head p { margin-block-start: .8rem; font-size: 1.125rem; }
.stair { margin-block: clamp(2rem, 5vw, 3.5rem); counter-reset: s; max-width: 860px; }
.stair li {
  display: grid; grid-template-columns: 5.2rem 1fr; gap: 1rem; align-items: start;
  background: var(--white); color: var(--black);
  padding: 1.1rem 1.3rem 1.2rem; margin-block-end: 6px;
  margin-inline-start: calc(var(--i, 0) * clamp(0px, 4.5vw, 64px));
  max-width: 640px;
  border-inline-start: 10px solid var(--red);
}
.stair li:nth-child(2) { --i: 1; } .stair li:nth-child(3) { --i: 2; }
.stair li:nth-child(4) { --i: 3; } .stair li:nth-child(5) { --i: 4; }
.stair-n { font-family: var(--display); font-size: 4.2rem; line-height: .95; color: var(--cobalt); }
.stair h3 { font-family: var(--display); font-size: 1.7rem; line-height: 1.35; }
.stair p { font-size: 1rem; line-height: 1.85; }

/* reveal for stair/diag (plane wipe, not fade-up) */
.js .reveal-wipe > * { clip-path: inset(0 0 0 100%); }
.js .reveal-wipe.seen > * { clip-path: inset(0 0 0 0); transition: clip-path .6s var(--ease); }
.js .reveal-wipe.seen > *:nth-child(2) { transition-delay: .07s; } .js .reveal-wipe.seen > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-wipe.seen > *:nth-child(4) { transition-delay: .21s; } .js .reveal-wipe.seen > *:nth-child(5) { transition-delay: .28s; }
.js .reveal-wipe.seen > *:nth-child(6) { transition-delay: .35s; } .js .reveal-wipe.seen > *:nth-child(7) { transition-delay: .42s; }
.js .reveal-wipe.seen > *:nth-child(8) { transition-delay: .49s; } .js .reveal-wipe.seen > *:nth-child(9) { transition-delay: .56s; }

/* =========================================================
   CATEGORY WALL
   ========================================================= */
.cats { padding-block: clamp(4rem, 8vw, 7rem); }
.wall {
  display: grid; gap: 6px;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(150px, auto);
}
.tile {
  --bg: #000; --fg: #fff; --obj: var(--red);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.2rem 1.3rem; min-height: 230px;
  background: var(--bg); color: var(--fg); text-decoration: none;
}
.tile-obj {
  position: absolute; inset-inline-end: -.06em; top: -.2em; z-index: -1;
  font-family: var(--display); font-size: clamp(5rem, 11vw, 10rem); line-height: 1.2;
  color: var(--obj); mix-blend-mode: multiply;
  transition: transform .45s var(--ease);
}
.tile-latin { font-family: var(--body); font-weight: 900; letter-spacing: -.04em; line-height: 1; top: -.05em; }
.tile:hover .tile-obj, .tile:focus-visible .tile-obj { transform: translate(-10px, 8px); }
.tile-svg { position: absolute; inset-inline-start: 1.1rem; top: 1.1rem; width: clamp(64px, 7vw, 96px); z-index: -1; transition: transform .45s var(--ease); }
.tile:hover .tile-svg { transform: rotate(-8deg); }
.tile-body b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.3; }
.tile-body small { display: block; font-size: .95rem; line-height: 1.75; margin-block-start: .3rem; max-width: 42ch; }
.tile:focus-visible { outline-offset: -6px; }
.t-permit { grid-column: span 7; grid-row: span 2; --bg: var(--red); --fg: #000; --obj: #fff; --focus: #000; }
.t-permit .tile-obj { font-size: clamp(6rem, 16vw, 15rem); mix-blend-mode: normal; color: rgba(255,255,255,.95); }
.t-permit .tile-svg { width: clamp(90px, 10vw, 140px); }
.t-ms { grid-column: span 5; --bg: #000; --fg: #fff; --obj: var(--cobalt); --focus: var(--ochre); }
.t-ms .tile-obj { mix-blend-mode: normal; }
.t-food { grid-column: span 5; --bg: var(--ochre); --fg: #000; --obj: var(--red); }
.t-export { grid-column: span 4; --bg: var(--cobalt); --fg: #fff; --obj: #000; --focus: var(--ochre); }
.t-export .tile-obj { mix-blend-mode: normal; color: rgba(0,0,0,.55); font-size: clamp(6rem, 12vw, 11rem); }
.t-med { grid-column: span 4; --bg: #fff; --fg: #000; --obj: var(--ochre); box-shadow: inset 0 0 0 4px #000; }
.t-lab { grid-column: span 4; --bg: #fff; --fg: #000; --obj: var(--cobalt); box-shadow: inset 0 0 0 4px #000; }
.t-lab .tile-obj { color: rgba(30,63,216,.85); }
.t-hse { grid-column: span 6; --bg: #000; --fg: #fff; --obj: var(--ochre); --focus: var(--ochre); }
.t-hse .tile-obj { mix-blend-mode: normal; }
.t-train { grid-column: span 6; --bg: var(--red); --fg: #000; --obj: #000; --focus: #000; }
.t-train .tile-obj { mix-blend-mode: normal; color: rgba(0,0,0,.2); }
.t-med .tile-body small, .t-lab .tile-body small { color: var(--ink-soft); }
.wall-more { margin-block-start: 1.6rem; font-size: 1.05rem; }
.wall-more a { font-weight: 700; text-underline-offset: 5px; }

/* =========================================================
   PROCESS diagonal
   ========================================================= */
.process { padding-block: clamp(4rem, 8vw, 7rem); border-block: var(--rule) solid #000; }
.process::before {
  content: ""; position: absolute; inset-inline-start: -10%; top: 58%; width: 130%; height: 26px;
  background: var(--red); transform: rotate(-9deg); pointer-events: none;
}
.diag { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: start; }
.diag li {
  position: relative; background: #fff; border: 4px solid #000;
  padding: 1rem 1rem 1.2rem; margin-block-start: calc(var(--i, 0) * clamp(0px, 3.4vw, 52px));
}
.diag li:nth-child(2) { --i: 1; } .diag li:nth-child(3) { --i: 2; } .diag li:nth-child(4) { --i: 3; }
.diag li:nth-child(5) { --i: 4; } .diag li:nth-child(6) { --i: 5; background: var(--black); color: #fff; }
.diag-n { display: block; font-family: var(--display); font-size: 4.6rem; line-height: 1; color: var(--red); }
.diag li:nth-child(6) .diag-n { color: var(--ochre); }
.diag h3 { font-family: var(--display); font-size: 1.45rem; line-height: 1.35; margin-block: .3rem .4rem; }
.diag p { font-size: .95rem; line-height: 1.85; }
.diag-t { display: inline-block; margin-block-start: .7rem; font-weight: 900; font-size: .9rem; background: var(--ochre); color: #000; padding: .05rem .55rem; }

/* =========================================================
   TRUST
   ========================================================= */
.trust { padding-block: clamp(4rem, 8vw, 7rem); }
.trust-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.trust-main > p { margin-block-start: 1rem; font-size: 1.125rem; max-width: 52ch; }
.trust-h3 { font-family: var(--display); font-size: 1.8rem; margin-block: 2rem .8rem; }
.verify { counter-reset: v; }
.verify li { counter-increment: v; display: grid; grid-template-columns: 3rem 1fr; gap: .6rem; align-items: baseline; padding-block: .55rem; border-block-start: 3px solid #000; font-weight: 500; }
.verify li::before { content: counter(v, persian); font-family: var(--display); font-size: 2rem; line-height: 1; }
.trust-art svg { width: 100%; max-width: 420px; margin-inline: auto; }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 4px solid #000; margin-block-start: 1rem; }
.stats div { display: flex; flex-direction: column-reverse; padding: 1rem 1.2rem; border-inline-start: 4px solid #000; }
.stats div:first-child { border-inline-start: 0; }
.stats dd { font-family: var(--display); font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1.1; color: #fff; }
.stats dt { font-weight: 800; font-size: 1rem; }
.stats-note { grid-column: 1 / -1; font-size: .875rem; font-weight: 500; }

/* =========================================================
   REVISION 2026
   ========================================================= */
.rev { padding-block: clamp(3rem, 6vw, 5rem); }
.rev-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1rem, 4vw, 4rem); align-items: center; }
.rev-year {
  font-family: var(--display); font-size: clamp(7rem, 22vw, 20rem); line-height: .95;
  color: var(--black); position: relative; margin-inline-start: -.05em;
}
.rev-year::after {
  content: ""; position: absolute; inset-inline-start: 4%; top: 46%; width: 92%; height: .09em;
  background: var(--red); mix-blend-mode: multiply; transform: rotate(-6deg);
}
.rev-copy p { margin-block: 1rem 1.6rem; font-size: 1.1rem; max-width: 50ch; }

/* =========================================================
   INDUSTRIES
   ========================================================= */
.inds { padding-block: clamp(4rem, 8vw, 7rem); }
.inds-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.ind-list { columns: 2; column-gap: 2rem; }
.ind-list li { break-inside: avoid; }
.ind-list { padding-inline-start: .8em !important; }
.ind {
  position: relative; display: block; width: 100%; text-align: start;
  font-family: var(--display); font-size: clamp(1.9rem, 3.6vw, 3.3rem); line-height: 1.45;
  color: #000; padding-inline-start: .1em;
  transition: color .2s, transform .3s var(--ease);
}
.ind::before {
  content: ""; position: absolute; inset-inline-start: -.62em; top: 50%; width: .42em; height: .42em; margin-top: -.21em;
  border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .3s var(--ease);
}
.ind:hover { color: var(--red); }
.ind[aria-pressed="true"] { color: var(--cobalt); }
.ind[aria-pressed="true"]::before { transform: scale(1); }
.ind-panel {
  position: sticky; top: calc(var(--head-h) + 1.5rem);
  background: var(--cobalt); color: #fff; padding: 1.6rem 1.6rem 1.8rem; overflow: hidden; isolation: isolate;
  --focus: var(--ochre);
}
.ind-big { position: absolute; inset-inline-end: -.04em; top: -.18em; z-index: -1; font-family: var(--display); font-size: clamp(7rem, 12vw, 11rem); line-height: 1; color: rgba(0,0,0,.28); }
.ind-name { font-family: var(--display); font-size: 2.2rem; }
.ind-std { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: .8rem 1rem; }
.ind-std li { background: #fff; color: #000; font-weight: 800; padding: .1rem .65rem; font-size: .95rem; direction: ltr; unicode-bidi: isolate; }
.ind-note { margin-block-end: 1.3rem; }
.ind-panel .btn-black { --sh: var(--ochre); }
.ind-panel.swap { animation: panelSwap .4s var(--ease); }
@keyframes panelSwap { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* =========================================================
   GUIDES
   ========================================================= */
.guides { padding-block: clamp(4rem, 8vw, 7rem); }
.guide-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 2rem 1.6rem; }
.g-feature { grid-row: span 2; }
.guide a { display: block; text-decoration: none; color: inherit; }
.guide-art { width: 100%; height: auto; aspect-ratio: 400 / 260; margin-block-end: 1rem; transition: transform .4s var(--ease); }
.guide a:hover .guide-art { transform: translate(-6px, -6px); box-shadow: 6px 6px 0 var(--red); }
.guide h3 { font-family: var(--display); font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.45; }
.g-feature h3 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); }
.guide p { margin-block-start: .5rem; }
.guide-meta { display: inline-block; margin-block-start: .6rem; font-size: .875rem; font-weight: 700; color: var(--ochre); }
.guide a:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 4px; text-underline-offset: 8px; }

/* =========================================================
   FAQ (calm)
   ========================================================= */
.faq { padding-block: clamp(4rem, 8vw, 7rem); display: grid; grid-template-columns: 1fr 1.8fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq > h2 { position: sticky; top: calc(var(--head-h) + 1.5rem); }
.faq-list details { border-block-start: 3px solid #000; }
.faq-list details:last-child { border-block-end: 3px solid #000; }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding-block: 1.1rem; padding-inline: 0 3.2rem; font-weight: 800; font-size: 1.15rem; line-height: 1.7;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; inset-inline-end: .2rem; top: 1.15rem; width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff;
  font: 900 1.5rem/1 var(--body);
  transition: transform .3s var(--ease), background .3s;
}
.faq-list details[open] summary::after { content: "−"; transform: rotate(180deg); background: #000; }
.faq-list summary:hover::after { transform: scale(1.12); }
.faq-list details p { padding-block-end: 1.3rem; max-width: 64ch; color: var(--ink-soft); }

/* =========================================================
   FORMS
   ========================================================= */
.contact { padding-block: clamp(4rem, 8vw, 7rem); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-info > p { margin-block: 1rem 1.6rem; font-size: 1.125rem; }
.contact-lines li { display: grid; grid-template-columns: 7rem 1fr; gap: .8rem; padding-block: .6rem; border-block-start: 3px solid #000; font-weight: 700; }
.contact-lines li > span:first-child { font-weight: 500; }
.contact-lines .lines { display: flex; flex-wrap: wrap; gap: 0 .6rem; }
.contact-lines a { font-weight: 900; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.lead-form { background: #fff; color: #000; padding: clamp(1.3rem, 3vw, 2.2rem); position: relative; --focus: var(--cobalt); box-shadow: -14px 14px 0 #000; }
.field { margin-block-end: 1.1rem; }
.field label, .field .label { display: block; font-weight: 800; font-size: .98rem; margin-block-end: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .6rem .9rem;
  background: #fff; border: 3px solid #000; border-radius: 0; font-size: 1.05rem;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 0; border-color: var(--cobalt); }
.field input[type="tel"] { direction: ltr; text-align: right; }
.field input[aria-invalid="true"] { border-color: var(--red); background: #fff5f4; }
.field-err { min-height: 0; font-size: .92rem; font-weight: 700; color: #b3200f; margin-block-start: .3rem; }
.field-err:empty { display: none; }
.form-ok { margin-block-start: 1rem; padding: .9rem 1rem; background: var(--black); color: #fff; font-weight: 800; border-inline-start: 10px solid var(--red); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-foot { background: #000; color: #fff; overflow: hidden; --focus: var(--ochre); padding-block-start: clamp(3rem, 6vw, 5rem); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr; gap: 2rem; }
.foot-logo { font-family: var(--display); font-size: 2.6rem; line-height: 1.2; margin-block-end: .6rem; }
.foot-brand p { margin-block-end: .6rem; line-height: 1.9; }
.foot-brand a { text-decoration: none; font-weight: 700; }
.foot-col h2 { font-family: var(--display); font-size: 1.6rem; color: var(--ochre); margin-block-end: .6rem; }
.foot-col ul { list-style: none; padding: 0; }
.foot-col a { display: inline-block; padding-block: .22rem; text-decoration: none; line-height: 1.6; }
.foot-col a:hover { color: var(--ochre); text-decoration: underline; }
.foot-giant {
  font-family: var(--display); font-size: clamp(9rem, 34vw, 32rem); line-height: .9;
  color: var(--red); margin-block: 2rem -.32em; margin-inline-start: -.05em; white-space: nowrap;
  user-select: none;
}
.foot-copy { position: relative; padding-block: 1.2rem 1.6rem; font-size: .85rem; color: #fff; border-block-start: 2px solid #fff; background: #000; }

/* ---------- floating contact ---------- */
.float-cta { position: fixed; z-index: 45; inset-inline-start: auto; inset-inline-end: 20px; bottom: 20px; display: flex; gap: 0; box-shadow: -6px 6px 0 #000; }
.float-cta a { display: flex; align-items: center; gap: .45rem; min-height: 54px; padding: 0 1.1rem; font-weight: 900; text-decoration: none; }
.float-cta svg { width: 22px; height: 22px; }
.fc-call { background: #fff; color: #000; border: 3px solid #000; display: none !important; }
.fc-wa { background: var(--red); color: #fff; border: 3px solid #000; font-size: 1.1rem; }

/* =========================================================
   SERVICES PAGE
   ========================================================= */
.crumb { font-size: .92rem; font-weight: 500; padding-block: 1rem 0; }
.crumb ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; }
.crumb li:not(:last-child)::after { content: "/"; margin-inline-start: .45rem; font-weight: 800; color: var(--red); }
.crumb a { text-decoration: none; font-weight: 700; }
.crumb a:hover { text-decoration: underline; }

.svc-hero { position: relative; overflow: hidden; padding-block: 1rem clamp(2rem, 4vw, 3rem); isolation: isolate; }
.svc-hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.svc-hero h1 { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: 1.2; }
.svc-hero p { max-width: 54ch; font-size: 1.125rem; margin-block-start: .8rem; }
.svc-hero .svc-count { max-width: none; margin-block-start: 0; font-family: var(--display); font-size: clamp(8rem, 24vw, 22rem); line-height: .85; color: var(--red); margin-block-end: -.12em; position: relative; }
.svc-count small { position: absolute; inset-inline-start: 0; bottom: .55em; font-family: var(--body); font-size: 1rem; font-weight: 900; color: #000; background: var(--ochre); padding: .1rem .6rem; line-height: 1.6; }
.svc-hero-band { position: absolute; z-index: -1; inset-inline-end: -10%; top: 62%; width: 70%; height: 3.4rem; background: var(--cobalt); transform: rotate(-12deg); }

.filter-strip { position: sticky; top: var(--head-h); z-index: 30; background: #000; color: #fff; --focus: var(--ochre); }
.fs-in { display: grid; grid-template-columns: minmax(240px, 380px) 1fr auto; gap: 1rem; align-items: center; padding-block: .8rem; }
.fs-search { position: relative; }
.fs-search input {
  width: 100%; min-height: 54px; padding: .5rem 3rem .5rem 1rem;
  background: #fff; color: #000; border: 0; border-radius: 0; font-size: 1.1rem; font-weight: 700;
}
.fs-search input::placeholder { color: #555; font-weight: 500; }
.fs-search svg { position: absolute; inset-inline-start: .8rem; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); pointer-events: none; }
.fs-search input:focus-visible { outline: 4px solid var(--ochre); outline-offset: 0; }
.fs-cats { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; padding-block: 2px; }
.fs-cats button {
  flex: none; min-height: 44px; padding: .2rem .9rem; font-weight: 800; font-size: .95rem;
  color: #fff; border: 2px solid #fff; white-space: nowrap;
}
.fs-cats button:hover { background: #222; }
.fs-cats button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.fs-count { font-weight: 900; white-space: nowrap; font-size: 1rem; }
.fs-count b { font-family: var(--display); font-weight: 400; font-size: 1.8rem; color: var(--ochre); }

.bundle-banner { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; background: var(--ochre); padding: 1.2rem clamp(1rem, 3vw, 2rem); margin-block: 2rem; }
.bundle-banner p { font-weight: 700; }
.bundle-banner strong { font-family: var(--display); font-weight: 400; font-size: 1.8rem; display: block; line-height: 1.3; }
.bundle-banner svg { width: 74px; }

.cat { --bg: #000; --fg: #fff; --acc: var(--red); display: grid; grid-template-columns: minmax(220px, 30%) 1fr; margin-block-end: clamp(2rem, 4vw, 3rem); border: 4px solid #000; scroll-margin-top: calc(var(--head-h) + 90px); }
.cat-poster {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--fg); padding: 1.4rem 1.4rem 1.6rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
}
.cat-poster .cat-sticky { position: sticky; top: calc(var(--head-h) + 100px); }
.cat-num { display: block; font-family: var(--display); font-size: clamp(6rem, 11vw, 10rem); line-height: 1; color: var(--acc); }
.cat-num-l { display: block; font-weight: 800; font-size: .95rem; margin-block-start: -.4rem; }
.cat-poster h2 { font-family: var(--display); font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1.3; margin-block: 1rem .5rem; }
.cat-poster p { font-size: .98rem; line-height: 1.85; }
.cat-poster svg { width: 70%; max-width: 200px; margin-block-start: 1.4rem; }
.c-red { --bg: var(--red); --fg: #000; --acc: #fff; }
.c-black { --bg: #000; --fg: #fff; --acc: var(--red); }
.c-cobalt { --bg: var(--cobalt); --fg: #fff; --acc: var(--ochre); }
.c-ochre { --bg: var(--ochre); --fg: #000; --acc: var(--cobalt); }
.c-white { --bg: #fff; --fg: #000; --acc: var(--red); }
.c-white .cat-poster { border-inline-end: 4px solid #000; }

.svc-list { background: #fff; }
.svc {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 9.5rem 1fr auto; gap: 1.2rem; align-items: center;
  padding: 1rem 1.3rem; border-block-end: 2px solid #000;
}
.svc:last-child { border-block-end: 0; }
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ochre);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.svc:hover::before, .svc:focus-within::before { transform: scaleX(1); }
.svc-code { direction: ltr; text-align: right; line-height: 1.05; }
.svc-code small { display: block; font-size: .78rem; font-weight: 900; letter-spacing: .02em; }
.svc-code span { display: block; font-family: var(--display); font-size: 2.1rem; line-height: 1.15; }
.svc-code.is-word span { font-size: 1.55rem; }
.svc h3 { font-weight: 800; font-size: 1.1rem; line-height: 1.6; font-family: var(--body); }
.svc p { font-size: .95rem; line-height: 1.8; color: var(--ink-soft); }
.svc .core { display: inline-block; margin-inline-start: .4rem; padding: 0 .5rem; background: var(--red); color: #000; font-size: .78rem; font-weight: 900; vertical-align: .15em; line-height: 1.7; }
.svc-go { font-weight: 800; font-size: .95rem; white-space: nowrap; text-decoration: none; border-block-end: 3px solid var(--red); padding-block: .2rem; }
.svc-go:hover { border-color: #000; }
.svc mark { background: var(--ochre); color: inherit; padding: 0 .1em; }
.no-results { padding: 3rem 0; text-align: center; }
.no-results p:first-child { font-family: var(--display); font-size: 2.6rem; }

/* =========================================================
   ISO 9001 PAGE
   ========================================================= */
.iso-hero { position: relative; overflow: hidden; background: var(--cobalt); color: #fff; isolation: isolate; --focus: var(--ochre); padding-block-end: clamp(2.5rem, 5vw, 4rem); }
.iso-hero .crumb { color: #fff; }
.iso-hero .crumb li:not(:last-child)::after { color: var(--ochre); }
.iso-num {
  position: relative; display: block;
  font-family: var(--display); font-size: clamp(11rem, 40vw, 38rem); line-height: .9;
  margin-block: -.06em -.12em; margin-inline-start: -.06em; white-space: nowrap;
  color: #fff;
}
.iso-num .ink-2 { position: absolute; inset: 0; transform: translate(-.035em, .028em); color: var(--red); mix-blend-mode: multiply; will-change: transform; }
.iso-seal { position: absolute; inset-inline-end: 6%; top: 12%; width: clamp(110px, 17vw, 240px); z-index: 2; }
.js .iso-hero .iso-num, .js .iso-hero .iso-seal { opacity: 0; }
.iso-hero.go .iso-num { opacity: 1; animation: fromRight .8s var(--ease) both; }
.iso-hero.go .iso-seal { opacity: 1; animation: rollIn .8s .35s var(--ease) both; }
.iso-hero-copy { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; position: relative; }
.iso-hero h1 { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.25; }
.iso-hero .lead { color: #fff; }
.iso-hero .btn-line { --bbg: var(--cobalt); color: #fff; border-color: #fff; --sh: #000; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 4px solid #000; background: #fff; }
.facts div { padding: 1.1rem 1.2rem; border-inline-start: 4px solid #000; }
.facts div:first-child { border-inline-start: 0; }
.facts dt { font-weight: 800; font-size: .92rem; }
.facts dd { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.35; }

.prose-sec { padding-block: clamp(3.5rem, 7vw, 6rem); }
.prose-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 5vw, 5rem); }
.prose p + p { margin-block-start: 1rem; }
.prose { max-width: 66ch; }
.prose h3 { font-family: var(--display); font-size: 1.8rem; margin-block: 2rem .6rem; }
.note-box { margin-block-start: 1.6rem; border-inline-start: 10px solid var(--red); background: #000; color: #fff; padding: 1.2rem 1.4rem; }
.note-box h3 { margin-block-start: 0; color: var(--ochre); }

.principles { padding-block: clamp(3.5rem, 7vw, 6rem); }
.pr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pr { position: relative; overflow: hidden; isolation: isolate; padding: 1.2rem; min-height: 190px; background: var(--b, #fff); color: var(--f, #000); display: flex; flex-direction: column; justify-content: flex-end; }
.pr svg { position: absolute; inset-inline-end: 1rem; top: 1rem; width: 70px; height: 70px; z-index: -1; }
.pr h3 { font-family: var(--display); font-size: 1.6rem; }
.pr p { font-size: .95rem; line-height: 1.8; }
.pr-1 { --b: var(--red); }
.pr-2 { --b: #000; --f: #fff; }
.pr-3 { --b: var(--ochre); }
.pr-4 { --b: var(--cobalt); --f: #fff; }
.pr-5 { --b: #fff; box-shadow: inset 0 0 0 4px #000; }
.pr-6 { --b: var(--red); }
.pr-7 { --b: #000; --f: #fff; }
.pr-intro { grid-column: span 1; background: #fff; padding: 1.2rem 0; }

/* clause explorer */
.clauses { padding-block: clamp(3.5rem, 7vw, 6rem); }
.cl-tabs { display: flex; justify-content: space-between; gap: 0; border-block: 4px solid #fff; margin-block-end: 2rem; }
.cl-tab {
  flex: 1; position: relative; isolation: isolate; overflow: hidden;
  font-family: var(--display); font-size: clamp(3.2rem, 9vw, 8.5rem); line-height: 1.15; color: #fff;
  padding-block: .1em 0; border-inline-start: 4px solid #fff;
}
.cl-tab:first-child { border-inline-start: 0; }
.cl-tab::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: translateY(101%); transition: transform .35s var(--ease); }
.cl-tab:hover::before { transform: translateY(85%); }
.cl-tab[aria-selected="true"] { color: #000; }
.cl-tab[aria-selected="true"]::before { transform: translateY(0); }
.cl-tab:focus-visible { outline-offset: -8px; }
.cl-panel { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); }
.cl-panel h3 { font-family: var(--display); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.3; }
.cl-q { font-size: 1.15rem; margin-block-start: .6rem; color: var(--ochre); font-weight: 700; }
.cl-panel h4 { font-weight: 900; font-size: 1rem; margin-block-end: .4rem; border-block-end: 3px solid var(--red); display: inline-block; }
.cl-panel ul { padding-inline-start: 1.1rem; }
.cl-panel li { margin-block-end: .25rem; line-height: 1.8; }
.cl-nc { background: #fff; color: #000; padding: 1rem 1.2rem; margin-block-start: 1rem; }
.cl-panel.swap > * { animation: rise .4s var(--ease) both; }
.cl-panel.swap > *:nth-child(2) { animation-delay: .05s; } .cl-panel.swap > *:nth-child(3) { animation-delay: .1s; }

/* roadmap */
.roadmap { padding-block: clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.rm-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-block-end: 2rem; }
.size-pick { display: flex; border: 4px solid #000; }
.size-pick button { min-height: 52px; padding: .3rem 1rem; font-weight: 800; border-inline-start: 4px solid #000; }
.size-pick button:first-child { border-inline-start: 0; }
.size-pick button[aria-pressed="true"] { background: #000; color: #fff; }
.rm-total { font-weight: 800; }
.rm-total b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.2; color: var(--red); }
.rm-band { position: relative; }
.rm-band::before {
  content: ""; position: absolute; inset-inline-start: -20%; top: 50%; width: 140%; height: 90px;
  background: var(--ochre); transform: rotate(-8deg); z-index: 0;
}
.rm-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; align-items: start; }
.rm-step { margin-block-start: calc(var(--i, 0) * clamp(0px, 2.4vw, 34px)); }
.rm-step:nth-child(2) { --i: 1; } .rm-step:nth-child(3) { --i: 2; } .rm-step:nth-child(4) { --i: 3; }
.rm-step:nth-child(5) { --i: 4; } .rm-step:nth-child(6) { --i: 5; } .rm-step:nth-child(7) { --i: 6; }
.rm-step:nth-child(8) { --i: 7; } .rm-step:nth-child(9) { --i: 8; }
.rm-btn {
  display: block; width: 100%; text-align: start; padding: .7rem .8rem .9rem;
  background: #fff; border: 4px solid #000; min-height: 150px;
  transition: transform .25s var(--ease), background .2s;
}
.rm-btn:hover { transform: translateY(-6px); }
.rm-btn[aria-expanded="true"] { background: #000; color: #fff; }
.rm-n { display: block; font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--red); }
.rm-btn[aria-expanded="true"] .rm-n { color: var(--ochre); }
.rm-t { display: block; font-weight: 800; font-size: .95rem; line-height: 1.55; margin-block: .2rem .4rem; }
.rm-d { display: inline-block; font-size: .82rem; font-weight: 900; background: var(--cobalt); color: #fff; padding: 0 .45rem; }
.rm-detail { position: relative; z-index: 1; margin-block-start: 2rem; background: #000; color: #fff; padding: clamp(1.3rem, 3vw, 2.2rem); display: grid; grid-template-columns: auto 1fr 1fr; gap: 1.5rem 2.5rem; --focus: var(--ochre); }
.rm-detail .big { font-family: var(--display); font-size: clamp(5rem, 10vw, 9rem); line-height: .9; color: var(--red); }
.rm-detail h3 { font-family: var(--display); font-size: 2rem; grid-column: 2 / -1; }
.rm-detail h4 { color: var(--ochre); font-weight: 900; font-size: 1rem; }
.rm-detail.swap { animation: panelSwap .45s var(--ease); }

.benefits { padding-block: clamp(3.5rem, 7vw, 6rem); }
.ben-list { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 4px solid #000; }
.ben-list li { padding: 1.3rem 1.1rem; border-inline-start: 4px solid #000; }
.ben-list li:first-child { border-inline-start: 0; }
.ben-list .glyph { font-family: var(--display); font-size: 3.4rem; line-height: 1.1; color: var(--red); display: block; }
.ben-list h3 { font-weight: 900; font-size: 1.1rem; font-family: var(--body); margin-block: .3rem; }
.ben-list p { font-size: .95rem; line-height: 1.8; }

.split2 { display: grid; grid-template-columns: 1fr 1fr; }
.docs, .time { padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.2rem, 4vw, 3.5rem); }
.doc-list li { display: grid; grid-template-columns: 46px 1fr; gap: 1rem; align-items: center; padding-block: .8rem; border-block-start: 3px solid currentColor; }
.doc-list svg { width: 46px; height: 46px; }
.doc-list b { display: block; }
.doc-list span { font-size: .95rem; }
.time-bars { margin-block-start: 1.6rem; }
.tb { margin-block-end: 1.2rem; }
.tb-label { display: flex; justify-content: space-between; font-weight: 800; }
.tb-track { position: relative; height: 34px; background: rgba(255,255,255,.15); margin-block-start: .3rem; }
.tb-fill { position: absolute; inset-block: 0; inset-inline-start: var(--from); width: var(--w); background: var(--ochre); transform-origin: right; }
.time-scale { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 700; border-block-start: 2px solid #fff; padding-block-start: .3rem; }
.js .time-bars .tb-fill { transform: scaleX(0); }
.js .time-bars.seen .tb-fill { transform: scaleX(1); transition: transform .9s var(--ease); }

.price { padding-block: clamp(3.5rem, 7vw, 6rem); }
.price-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 5vw, 5rem); }
.factor { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; padding-block: .8rem; border-block-start: 3px solid #000; }
.factor h3 { font-weight: 800; font-size: 1.08rem; font-family: var(--body); }
.factor p { grid-column: 1 / -1; font-size: .95rem; color: var(--ink-soft); line-height: 1.8; }
.weight { display: flex; gap: 3px; }
.weight i { width: 18px; height: 18px; background: #000; }
.weight i.o { background: transparent; box-shadow: inset 0 0 0 2px #000; }
.weight-legend { font-size: .9rem; margin-block-start: 1rem; color: var(--ink-soft); }

/* =========================================================
   WIZARD (start.html)
   ========================================================= */
.wz-body { background: #000; padding-block-end: 76px; }
.wz-body .float-cta { display: none; }
.wz { position: relative; min-height: calc(100vh - var(--head-h)); min-height: calc(100svh - var(--head-h)); display: flex; flex-direction: column; }
.wz-top {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 1rem; padding: .8rem var(--gutter);
  background: #000; color: #fff; --focus: var(--ochre);
}
.wz-top h1 { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; }
.wz-meter { margin-inline-start: auto; display: flex; align-items: center; gap: .9rem; }
.wz-count { font-weight: 800; font-size: .95rem; white-space: nowrap; }
.mini-poster { width: 58px; height: 74px; background: #fff; flex: none; }
.mini-poster .mp { opacity: 0; transform: scale(.4); transform-origin: center; transform-box: fill-box; transition: opacity .35s, transform .5s var(--ease); }
.mini-poster .mp.on { opacity: 1; transform: none; }
.wz-dots { display: flex; gap: 5px; }
.wz-dots i { width: 22px; height: 6px; background: #444; transition: background .3s; }
.wz-dots i.on { background: var(--red); }

.wz-stage { position: relative; flex: 1; display: grid; }
.wz-step {
  grid-area: 1 / 1; position: relative; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--fg);
  padding: clamp(1.8rem, 5vw, 4rem) var(--gutter) 7rem;
}
.wz-step[hidden] { display: none !important; }
.wz-step.enter { animation: stepIn .55s var(--ease) both; }
@keyframes stepIn { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } to { clip-path: polygon(-30% 0, 100% 0, 100% 100%, -30% 100%); } }
.wz-in { max-width: 1180px; margin-inline: auto; position: relative; }
.wz-bgnum { position: absolute; inset-inline-end: -.02em; top: -.12em; z-index: -1; font-family: var(--display); font-size: clamp(14rem, 40vw, 38rem); line-height: 1; color: var(--bgnum); pointer-events: none; }
[data-focus]:focus { outline: none; }
.wz-step fieldset { border: 0; padding: 0; min-width: 0; }
.wz-step legend, .wz-q { font-family: var(--display); font-size: clamp(2.2rem, 5.6vw, 5rem); line-height: 1.25; padding: 0; margin-block-end: .4rem; max-width: 18ch; }
.wz-help { font-size: 1.1rem; margin-block-end: 1.8rem; max-width: 56ch; font-weight: 500; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; }
.opts.opts-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt input + span {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 84px; padding-block: .8rem; padding-inline: 3.4rem 1.1rem;
  background: var(--optbg, #fff); color: var(--optfg, #000);
  font-weight: 800; font-size: 1.15rem; line-height: 1.45;
  border: 3px solid var(--optbd, #000);
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.opt input + span small { display: block; font-weight: 500; font-size: .9rem; line-height: 1.6; margin-block-start: .15rem; }
.opt input + span::after {
  content: ""; position: absolute; inset-inline-start: 1.1rem; top: 50%; width: 1.5rem; height: 1.5rem; margin-top: -.75rem;
  border-radius: 50%; border: 3px solid currentColor; transition: background .2s, transform .3s var(--ease);
}
.opt.is-check input + span::after { border-radius: 0; }
.opt input:hover + span { transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--optbd, #000); }
.opt input:checked + span { background: var(--selbg, #000); color: var(--selfg, #fff); border-color: var(--selbg, #000); }
.opt input:checked + span::after { background: var(--seldot, var(--red)); border-color: var(--seldot, var(--red)); transform: scale(1.15); }
.opt input:focus-visible + span { outline: 4px solid var(--focus); outline-offset: 3px; }
.opt .rec { position: absolute; top: -10px; inset-inline-start: .8rem; background: var(--ochre); color: #000; font-size: .75rem; font-weight: 900; padding: 0 .45rem; line-height: 1.6; z-index: 1; pointer-events: none; }
.wz-sub { font-family: var(--display); font-size: 1.8rem; margin-block: 2rem .8rem; }

.s-red    { --bg: var(--red);    --fg: #000; --bgnum: rgba(0,0,0,.12); --focus: #000; }
.s-cobalt { --bg: var(--cobalt); --fg: #fff; --bgnum: rgba(0,0,0,.25); --focus: var(--ochre); --selbg: var(--ochre); --selfg: #000; --seldot: #000; --optbd: #fff; }
.s-ochre  { --bg: var(--ochre);  --fg: #000; --bgnum: rgba(230,51,34,.35); --focus: var(--cobalt); }
.s-black  { --bg: #000;          --fg: #fff; --bgnum: rgba(255,255,255,.08); --focus: var(--ochre); --selbg: var(--red); --selfg: #000; --seldot: #000; --optbd: #fff; }
.s-white  { --bg: #fff;          --fg: #000; --bgnum: rgba(30,63,216,.12); --focus: var(--cobalt); }
.s-red .opt input:checked + span::after { background: var(--ochre); border-color: var(--ochre); }

.wz-nav {
  position: fixed; z-index: 40; inset-inline: 0; bottom: 0;
  display: flex; gap: .6rem; align-items: center; justify-content: space-between;
  padding: .8rem var(--gutter); background: #000; color: #fff; --focus: var(--ochre);
  border-block-start: 4px solid var(--red);
}
.wz-nav .btn { min-height: 52px; }
.wz-nav .btn-back { --bbg: #000; color: #fff; border-color: #fff; --sh: #444; }
.wz-nav .btn[disabled] { opacity: .4; cursor: not-allowed; }
.wz-nav .btn[disabled]::after { transform: translate(0,0); }
.wz-nav-hint { font-size: .9rem; font-weight: 500; flex: 1; text-align: center; }

/* result */
.res { --bg: #fff; --fg: #000; padding-block-end: 4rem; }
.res-poster { position: relative; overflow: hidden; isolation: isolate; background: #000; color: #fff; padding: clamp(1.5rem, 4vw, 3rem); margin-block-end: 2.5rem; --focus: var(--ochre); }
.res-poster .res-code { font-family: var(--display); font-size: clamp(6rem, 18vw, 16rem); line-height: .95; color: var(--red); display: block; margin-block-end: .3rem; }
.res-poster .res-code.latin { font-family: var(--body); font-weight: 900; letter-spacing: -.04em; }
.res-poster h2 { font-family: var(--display); font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1.25; }
.res-std { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 1rem; }
.res-std li { background: #fff; color: #000; font-weight: 900; padding: .2rem .8rem; }
.res-std li:nth-child(3n+1) { background: var(--ochre); }
.res-std li:nth-child(3n+2) { background: var(--red); color: #000; }
.res-total { display: inline-block; margin-block-start: .6rem; font-weight: 800; font-size: 1.1rem; border-block-start: 3px solid var(--red); padding-block-start: .4rem; }
.res-total b { font-family: var(--display); font-weight: 400; font-size: 2.4rem; color: var(--ochre); display: block; line-height: 1.2; }
.res-poster .res-circle { position: absolute; z-index: -1; inset-inline-start: -6%; top: -18%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--cobalt); }
.res-poster .res-bar { position: absolute; z-index: -1; inset-inline-start: -10%; bottom: 18%; width: 70%; height: 30px; background: var(--ochre); transform: rotate(-10deg); mix-blend-mode: multiply; }
.res-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.res h3.res-h { font-family: var(--display); font-size: 2rem; margin-block-end: 1rem; }
.gantt { margin-block-end: 2.5rem; }
.gantt-row { display: grid; grid-template-columns: 9.5rem 1fr; gap: .8rem; align-items: center; margin-block-end: 8px; }
.gantt-row b { font-weight: 800; font-size: .95rem; line-height: 1.4; }
.gantt-track { position: relative; height: 38px; background: #eee; }
.gantt-bar { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: var(--c, #000); color: var(--cf, #fff); font-size: .85rem; font-weight: 900; display: flex; align-items: center; padding-inline: .6rem; white-space: nowrap; transform-origin: right; animation: wipeX .8s var(--ease) both; }
.gantt-axis { display: flex; justify-content: space-between; margin-inline-start: 10.3rem; font-size: .82rem; font-weight: 700; border-block-start: 2px solid #000; padding-block-start: .2rem; }
.res-steps { counter-reset: r; }
.res-steps li { counter-increment: r; display: grid; grid-template-columns: 3.4rem 1fr; gap: .8rem; padding-block: .8rem; border-block-start: 3px solid #000; }
.res-steps li::before { content: counter(r, persian); font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--red); }
.res-steps b { display: block; font-weight: 900; }
.res-steps span { font-size: .95rem; line-height: 1.8; }
.res-steps em { font-style: normal; font-weight: 800; background: var(--ochre); padding: 0 .4rem; font-size: .85rem; white-space: nowrap; }
.why { margin-block-start: 2rem; }
.why ul { list-style: none; padding: 0; }
.why li { padding-block: .6rem; border-block-start: 2px solid #000; line-height: 1.85; }
.why b { font-weight: 900; }
.res .lead-form { position: sticky; top: calc(var(--head-h) + 1rem); box-shadow: -14px 14px 0 var(--red); border: 4px solid #000; }
.res .lead-form h3 { font-family: var(--display); font-size: 1.9rem; margin-block-end: .3rem; }
.res .lead-form > p { margin-block-end: 1.2rem; font-size: .98rem; }
.restart { margin-block-start: 1.5rem; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .head-tel { display: none; }
  .diag { grid-template-columns: repeat(3, 1fr); }
  .diag li { margin-block-start: 0 !important; }
  .process::before { top: 50%; }
  .rm-steps { grid-template-columns: repeat(3, 1fr); }
  .rm-step { margin-block-start: 0 !important; }
  .ben-list { grid-template-columns: repeat(3, 1fr); }
  .ben-list li:nth-child(4) { border-inline-start: 0; }
  .ben-list li { border-block-end: 4px solid #000; }
  .fs-in { grid-template-columns: 1fr auto; }
  .fs-cats { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 980px) {
  :root { --head-h: 64px; }
  .nav, .head-cta { display: none; }
  .menu-btn { display: inline-flex; margin-inline-start: auto; }
  .brand-tag { display: none; }
  .hero-copy, .quick-grid, .trust-grid, .rev-grid, .inds-grid, .faq, .contact-grid, .iso-hero-copy, .prose-grid, .price-grid, .res-grid, .split2 { grid-template-columns: 1fr; }
  .faq > h2, .ind-panel, .res .lead-form { position: static; }
  .wall { grid-template-columns: repeat(2, 1fr); }
  .wall .tile { grid-column: span 1; grid-row: auto; }
  .wall .t-permit { grid-column: 1 / -1; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .g-feature { grid-column: 1 / -1; grid-row: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-inline-start: 0; }
  .stats div:nth-child(-n+2) { border-block-end: 4px solid #000; }
  .trust-art { order: -1; max-width: 300px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cat { grid-template-columns: 1fr; }
  .cat-poster .cat-sticky { position: static; }
  .cat-poster svg { display: none; }
  .cat-num { font-size: 6rem; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { border-inline-start: 0; }
  .facts div:nth-child(-n+2) { border-block-end: 4px solid #000; }
  .pr-grid { grid-template-columns: repeat(2, 1fr); }
  .pr-intro { grid-column: 1 / -1; }
  .cl-panel { grid-template-columns: 1fr; }
  .rm-detail { grid-template-columns: 1fr; }
  .rm-detail h3 { grid-column: auto; }
  .svc-hero-grid { grid-template-columns: 1fr; }
  .svc-count { order: -1; }
  .float-cta { inset-inline: 0; bottom: 0; box-shadow: none; }
  .float-cta a { flex: 1; justify-content: center; min-height: 56px; }
  .fc-call { display: flex !important; }
  body:not(.wz-body) { padding-block-end: 56px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-art { --fs: clamp(8.5rem, 44vw, 14rem); height: calc(var(--fs) * 1.36); }
  .mega { inset-inline-start: -.16em; }
  .hero-side { display: none; }
  .hero-facts { flex-direction: column; }
  .hero-facts li { border: 0; margin: 0; padding: 0; }
  .cta-row .btn { width: 100%; }
  .goal-pick { grid-template-columns: 1fr; }
  .goal { min-height: 60px; }
  .qo { grid-template-columns: 1fr; }
  .qo-big { grid-row: auto; }
  .stair li { margin-inline-start: 0; grid-template-columns: 3.4rem 1fr; padding: 1rem; }
  .stair-n { font-size: 3.2rem; }
  .wall { grid-template-columns: 1fr; }
  .tile { min-height: 200px; }
  .diag { grid-template-columns: 1fr; }
  .diag li { display: grid; grid-template-columns: 3.6rem 1fr; column-gap: .8rem; }
  .diag-n { grid-row: span 3; font-size: 3.6rem; }
  .process::before { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .ind-list { columns: 1; }
  .guide-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .contact-lines li { grid-template-columns: 1fr; gap: 0; }
  .lead-form { box-shadow: -8px 8px 0 #000; }
  .svc { grid-template-columns: 1fr; gap: .3rem; padding: .9rem 1rem; }
  .svc-code { text-align: right; }
  .svc-code small, .svc-code span { display: inline; }
  .svc-code span { font-size: 1.7rem; }
  .svc-code small { margin-inline-end: .5rem; }
  .svc-hero-band { display: none; }
  .svc-go { justify-self: start; }
  .fs-in { grid-template-columns: 1fr; }
  .fs-count { display: none; }
  .bundle-banner { grid-template-columns: 1fr; }
  .bundle-banner svg { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-inline-start: 0 !important; border-block-end: 4px solid #000; }
  .pr-grid { grid-template-columns: 1fr; }
  .cl-tab { font-size: 2.6rem; }
  .rm-steps { grid-template-columns: 1fr 1fr; }
  .ben-list { grid-template-columns: 1fr; }
  .ben-list li { border-inline-start: 0 !important; }
  .size-pick { width: 100%; }
  .size-pick button { flex: 1; padding-inline: .4rem; font-size: .9rem; }
  .gantt-row { grid-template-columns: 1fr; gap: .2rem; }
  .gantt-axis { margin-inline-start: 0; }
  .wz-top h1 { display: none; }
  .wz-meter { margin-inline-start: 0; width: 100%; justify-content: space-between; }
  .wz-dots i { width: 14px; }
  .opt input + span { min-height: 68px; font-size: 1.05rem; }
  .wz-nav-hint { display: none; }
  .iso-seal { top: 4%; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js .hero .ink, .js .hero .pl, .js .hero .gl-he, .js .hero h1, .js .hero-side-copy,
  .js .iso-hero .iso-num, .js .iso-hero .iso-seal { opacity: 1; }
  .js .reveal-wipe > * { clip-path: none; }
  .js .time-bars .tb-fill { transform: none; }
}
@media print {
  .site-head, .float-cta, .mnav, .filter-strip, .wz-nav { display: none !important; }
}
