/* ===== Section 01 — Hero ===== */
:root {
  color-scheme: dark;
  --navy-950: #01060c;
  --navy-900: #081a2d;
  --navy-800: #0b223c;
  --navy-700: #13365c;
  --gold: #d6b85f;
  --white: #f8f8f6;
  --hero-height: min(100svh, 900px);
  --content-max: 1728px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

/* ===== IRANYekanX ===== */
@font-face {
  font-family: "IRANYekanX";
  src: url("./fonts/IRANYekanX-Regular.woff2") format("woff2"),
       url("./fonts/IRANYekanX-Regular.woff")  format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekanX";
  src: url("./fonts/IRANYekanX-Bold.woff2") format("woff2"),
       url("./fonts/IRANYekanX-Bold.woff")  format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekanX";
  src: url("./fonts/IRANYekanX-Black.woff2") format("woff2"),
       url("./fonts/IRANYekanX-Black.woff")  format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* یک کلیک → Black */
.hero__title-black {
  font-family: "IRANYekanX", sans-serif;
  font-weight: 900;
}

/* تا اتصال → Bold */
.hero__title-bold {
  font-family: "IRANYekanX", sans-serif;
  font-weight: 600;
}

/* توضیحات → Regular */
.hero__description {
  font-family: "IRANYekanX", sans-serif;
  font-weight: 400;
}

/* B2B داخل پاراگراف هم با همان خانواده و وزن Regular */
.hero__description strong {
  font-family: "IRANYekanX", sans-serif;
  font-weight: 900;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--navy-950);
  color: var(--white);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

a { color: inherit; }

.hero {
  position: relative;
  isolation: isolate;
  height: 100svh;
  overflow: hidden;
  background-color: #1b3050;
  background-image: linear-gradient(
    to top,
    #1b3050 0%,
    #1b3050 25%,
    #122f50 55%,
    #0b1f39 82%,
    #081626 100%
  );
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.37fr) minmax(0, 1fr);
  direction: ltr;
  width: min(100%, var(--content-max));
  min-height: 0;
  margin-inline: auto;
  padding: 10px clamp(28px, 4vw, 76px) 0px;
}

/* -------------------------------------------------------------------------- */
/* Visual composition: one coordinated canvas for phones, floating cards and  */
/* SVG artwork. All positions below are relative to this canvas.              */
/* -------------------------------------------------------------------------- */
.hero__visual {
  position: relative;
  min-width: 0;
  height: min(760px, calc(100svh - 150px));
  min-height: 0;
  align-self: start;
  overflow: visible;
  direction: ltr;
}

.hero__decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.decoration {
  position: absolute;
  display: block;
  height: auto;
  pointer-events: none;
}

/* ================= Electronic lines ================= */
.decoration--electronic {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: .85;
}

.decoration--electronic-top {
  width: 30%;
  max-width: none;
  left: 50%;
  top: 6.5%;
  transform: rotateY(180deg);
}

.decoration--electronic-bottom {
  width: 30%;
  max-width: none;
  left: 46%;
  bottom: 9.5%;
}

.electronic-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Flow pulses: glow is built from wide, low-opacity strokes drawn in the
   SVG itself (see script.js). No CSS filters on animated elements. */
/* ================= Binary code decorations ================= */
.decoration--code {
  position: absolute;
  z-index: 1;
  opacity: .92;
}

.decoration--code-top {
  width: 52%;
  left: 28.5%;
  top: 8%;
  transform: rotate(180deg);   /* همان چرخش اصلی حفظ شد */
}

.decoration--code-bottom {
  width: 40%;
  left: 49%;
  bottom: 12%;
}

.code-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  /* درخشش ملایم محیطی روی کل SVG */
  filter: drop-shadow(0 0 3px rgba(0, 190, 255, .25));
}

/* متن 0/1 */
.code-chars text {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Consolas", "Courier New", monospace;
  font-size: 11px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* 0 → سفید خالص */
.code-chars tspan.is-zero {
  fill: #ffffff;
  transition: fill .18s ease-out;
}

/* 1 → طلایی */
.code-chars tspan.is-one {
  fill: var(--gold, #CBAF5E);
  transition: fill .18s ease-out;
}

/* کاراکتر ثابت — فقط fill عوض می‌شود (سبک، GPU friendly) */
.code-chars tspan {
  transition: fill .18s ease-out;
}

.code-chars tspan.is-hot {
  fill: #cdeeff !important;
  /* halo via a stroke instead of a blur filter: much cheaper per flip */
  stroke: rgba(0, 190, 255, .75);
  stroke-width: 1.2px;
  paint-order: stroke;
}

@media (prefers-reduced-motion: reduce) {
  .code-chars tspan.is-zero,
  .code-chars tspan.is-one { transition: none; }
  .code-chars tspan.is-hot { stroke: none; }
}

.decoration--crane {
  position: absolute;
  z-index: 2;
  width: 38%;
  left: 44%;
  top: 49%;
  aspect-ratio: 447.36 / 121.64;
  pointer-events: none;
}

.crane-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Crane glow: a wider, translucent stroke layer (see the .crane-halo <use>). */

/* درخشش دایره */
.crane-dot {
  filter:
    drop-shadow(0 0 6px #CBAF5E)
    drop-shadow(0 0 14px rgba(203, 175, 94, 0.55));
}
.phone {
  position: absolute;
  display: block;
  height: auto;
  margin: 0;
}

.phone picture { display: block; }

.phone img {
  display: block;
  width: 97%;
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .2));
}

/* Positions and sizes are matched to the 1728px reference composition. */
.phone--tosee {
  z-index: 4;
  width: clamp(235px, 32%, 300px);
  left: 17.5%;
  top: 13.5%;
}

.phone--user {
  z-index: 3;
  width: clamp(190px, 24%, 232px);
  left: 75.5%;
  top: 1.5%;
}

.float {
  position: absolute;
  z-index: 5;
  display: block;
  height: auto;
  margin: 0;
  pointer-events: none;
  animation: float-drift 6.5s ease-in-out infinite;
  will-change: translate;
}

.float img {
  display: block;
  width: 100%;
  height: auto;
}

/* Sizes and placements follow the source artwork rather than viewport-sized
   guesses; the cards remain clustered around the blue device. */
.float--1 {
  width: 21.4%;
  left: 3.3%;
  top: 16.5%;
  animation-delay: -.8s;
}

.float--2 {
  width: 13.2%;
  left: 11%;
  top: 44.5%;
  animation-delay: -2.1s;
}

.float--3 {
  width: 15%;
  left: 7.2%;
  top: 60%;
  animation-delay: -3.4s;
}

.float--4 {
  width: 11%;
  left: 13.7%;
  top: 78%;
  animation-delay: -1.5s;
}

.float--5 {
  width: 27%;
  left: 30.5%;
  top: 61%;
  animation-delay: -2.7s;
}

/* -------------------------------------------------------------------------- */
/* Copy and actions                                                            */
/* -------------------------------------------------------------------------- */
.hero__content {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  direction: rtl;
  text-align: right;
  padding: 25px 0 55px clamp(12px, 2vw, 36px);
}

.hero__eyebrow {
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  color: var(--gold);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: .04em;
  opacity: .9;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  width: clamp(20px, 3vw, 40px);
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
  opacity: .55;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  font-size: clamp(40px, 4.6vw, 76px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.hero__title span:first-child { color: var(--gold); }
.hero__title span:last-child { color: var(--white); }

.hero__description {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .94);
  font-size: clamp(18px, 1.70vw, 29px);
  line-height: 1.8;
  white-space: nowrap;
}

.hero__description strong {
  color: var(--gold);
  font-weight: 900;
  margin-inline: 2px;
}

.hero__actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: clamp(105px, 13vw, 205px);
  font-family: "IRANYekanX", sans-serif;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 145PX;
  min-height: 53px;
  padding: 9px 20px;
  border: 3px solid currentColor;
  border-radius: 9px;
  font-size: clamp(17px, 1.45vw, 25px);
  line-height: 1.3;
  text-decoration: none;
  transition:
    color .2s ease,
    background-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.button--primary {
  color: var(--white);
  background: rgba(7, 22, 39, .22);
}

.button--primary:hover {
  color: var(--navy-900);
  background: var(--white);
}

.button--secondary {
  color: var(--gold);
  background: rgba(7, 22, 39, .18);
}

.button--secondary:hover {
  color: var(--navy-900);
  background: var(--gold);
}

/* -------------------------------------------------------------------------- */
/* Infinite partner logo marquee                                               */
/* -------------------------------------------------------------------------- */
.hero__brands {
  position: absolute;
  z-index: 8;
  left: 10%;
  right: 0;
  bottom: 9%;
  display: flex;
  justify-content: center;
  padding-inline: 24px;
}

.brand__logo {
  display: block;
  width: 150px;
  height: 52px;
  object-fit: contain;
  opacity: .85;
  transition: opacity .2s;
  flex-shrink: 0;
}

.brand__logo:hover { opacity: 1; }

/* مربعی‌ها: جعبه‌ی مربع */
.brand__logo--square {
  width: 52px;
  height: 52px;
}

/* خیلی پهن‌ها: عرض بیشتر تا همان قدر دیده شوند */

.brand {
  position: relative;
  transform-origin: center;
  will-change: transform;
  flex: 0 0 var(--slot, 230px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(36, 74, 127, .72);
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 38px);
  white-space: nowrap;
  line-height: 1;
}
/* دسکتاپ: هر لوگو یک اسلات ثابت */
.brand-marquee__group {
  gap: 0;
  padding-inline: 0;
}

.brand__logo--wide {
  width: 170px;
  height: 52px;
}
.brand-marquee {
  width: min(245px, 46vw);
  overflow: hidden;
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding-block: 24px;
}

.brand-marquee__track {
  display: flex;
  width: max-content;
  animation: brand-scroll 40s linear infinite;
  will-change: transform;
}

.brand-marquee:hover .brand-marquee__track,
.brand-marquee:focus-within .brand-marquee__track {
  animation-play-state: paused;
}

.brand-marquee__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(56px, 6vw, 84px);
  list-style: none;
  margin: 0;
  padding: 0 28px;
}

.brand--ronix { letter-spacing: -.07em; }
.brand--shour { font-size: clamp(19px, 2vw, 31px); }
.brand--partner { font-size: clamp(15px, 1.5vw, 23px); }

@keyframes float-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -------------------------------------------------------------------------- */
/* Tablet: copy first, visual canvas below. The devices keep their separation. */
/* -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero {
    height: auto;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding: 48px 30px 0;
  }

  .hero__inner,
  .hero__content {
    display: contents;
  }

  .hero__title {
    order: 1;
    align-self: center;
    align-items: center;
    text-align: center;
    font-size: clamp(40px, 5.2vw, 58px);
  }

  .hero__description {
    order: 2;
    align-self: center;
    text-align: center;
    margin-top: 17px;
    font-size: clamp(19px, 2.3vw, 24px);
    white-space: normal;
  }

  .hero__visual {
    order: 3;
    align-self: center;
    width: min(100%, 850px);
    height: clamp(590px, 76vw, 700px);
    min-height: 0;
    margin: 4px auto 0;
  }

  .hero__brands {
    order: 5;
    position: relative;
    bottom: auto;
    padding: 0;
    margin: 24px 0 0;
  }

  .hero__actions {
    order: 5;
    align-self: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 30px 0 0;
  }

  .phone--tosee { width: clamp(215px, 32%, 280px); left: 17%; top: 13%; }
  .phone--user  { width: clamp(175px, 24%, 215px); left: 75%; top: 1%; }

  .decoration--crane { width: 38%; left: 43%; top: 46%; }

  .float--1 { width: 16%;   left: 6.5%;  top: 20%; }
  .float--2 { width: 9%;    left: 12.5%; top: 44%; }
  .float--3 { width: 10.5%; left: 8.5%;  top: 59%; }
  .float--4 { width: 8%;    left: 15%;   top: 77%; }
  .float--5 { width: 22%;   left: 28%;   top: 59%; }

  .brand-marquee { width: min(520px, 80vw); }
}

/* Mobile: the same assets are rearranged, not simply shrunk. */
@media (max-width: 640px) {
  .hero { padding: 20px 16px 0; }

  .hero__eyebrow { margin-bottom: 7px; font-size: clamp(18px, 5vw, 22px); }
  .hero__eyebrow::before, .hero__eyebrow::after { width: 16px; }

  .hero__title {
    order: 1;
    font-size: clamp(32px, 9.5vw, 44px);
    line-height: 1.2;
  }

  .hero__description {
    order: 2;
    margin-top: 13px;
    font-size: clamp(15px, 4.2vw, 19px);
    line-height: 1.7;
  }

  .hero__visual {
    order: 3;
    width: 100%;
    height: clamp(420px, 112vw, 500px);
    min-height: 0;
    margin-top: 5px;
    overflow: hidden;
  }

  .hero__brands {
    order: 5;
    padding: 0 14px;
    margin: 20px 0 0;
  }

  .hero__actions {
    order: 5;
    gap: 9px;
    margin: -8% 0 24px;
    z-index: 10;
  }

  .button {
    min-width: 0;
    min-height: 45px;
    padding: 7px 13px;
    border-width: 2px;
    border-radius: 7px;
    font-size: clamp(13px, 3.6vw, 15px);
  }

  .phone--tosee { width: 38%; min-width: 0; left: 11%; top: 16%; }
  .phone--user  { width: 27%; min-width: 0; left: 70%; top: 4%; }

  .decoration--electronic-top {
    width: 30%; left: 45%; top: 9%;
  }
  .decoration--electronic-bottom {
    width: 30%; left: 42%; top: 65%;
  }
  .decoration--code-top {
    width: 67%; left: 24%; top: 10%;
    transform: rotate(180deg); opacity: .85;
  }
  .decoration--code-bottom {
    width: 58%; left: 26%; bottom: 33%; opacity: .55;
  }
  .decoration--crane {
    width: 34%; left: 41%; top: 41%;
  }

  .float--1 { width: 22%; left: -2%; top: 19%; }
  .float--2 { width: 15%; left: 5%;  top: 40%; }
  .float--3 { width: 17%; left: 1%;  top: 53%; }
  .float--4 { width: 14%; left: 7%;  top: 67%; }
  .float--5 { width: 29%; left: 25%; top: 52%; }

  .brand-marquee { width: min(100%, 390px); }
  .brand { font-size: 48px; }

  /* موبایل: اسلات کوچک‌تر */
  .brand-marquee__group {
    padding-inline: 0;
  }

  .brand {
    flex-basis: 140px;
  }

  .brand__logo {
    width: 112px;
    height: 40px;
  }

  .brand__logo--square {
    width: 40px;
    height: 40px;
  }

  .brand__logo--wide {
    width: 120px;
    height: 40px;
  }


  .brand-marquee {
    padding-block: 14px;
  }

  .brand-marquee__group {
    gap: 40px;
    padding-inline: 20px;
  }

  .brand__logo {
    width: 112px;
    height: 40px;
  }

  .brand__logo--square {
    width: 40px;
    height: 40px;
  }

  .brand__logo--wide {
    width: 150px;
    height: 40px;
  }

}

@media (max-width: 380px) {
  .hero { padding-inline: 12px; }
  .hero__title { font-size: 32px; }
  .hero__actions { gap: 7px; margin-top: 0px; }
  .button { padding-inline: 10px; font-size: 13px; }
  .hero__visual { height: 405px; min-height: 0; }
  .float--2 { display: none; }
}



/* ===== Section 02 — About platform ===== */
/* -------------------------------------------------------
   Tosee Sakhteman — Section 02
   Standalone styles. All selectors are scoped to this section.
   ------------------------------------------------------- */

   /* ===== IRANYekanX ===== */






:root {
  --about-gold: #d2b457;
  --about-white: #f7f8fb;
  --about-muted: rgba(247, 248, 251, 0.9);
  --about-section-top: #01060c;
  --about-section-mid-dark: #081a2d;
  --about-section-mid-light: #13365c;
  --about-section-bottom: #0b223c;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--about-white);
  background: var(--about-section-bottom);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

.about-platform {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(10px, 0.5vw, 112px) clamp(24px, 4.7vw, 76px);
  background: #1b3050;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

.about-platform__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  grid-template-areas: "content visual";
  align-items: center;
  gap: clamp(24px, 3.5vw, 60px);
  width: min(100%, 1600px);
  min-height: min(700px, calc(100svh - 150px));
  margin-inline: auto;
}

.about-platform__content {
  grid-area: content;
  width: 100%;
  max-width: 610px;
  justify-self: end;
  text-align: right;
  direction: rtl;
}

.about-platform__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  color: var(--about-white);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

/* «پلتفرم» — Regular، سفید، کوچک‌تر */
.about-platform__eyebrow {
  display: block;
  margin-block-end: 4px;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: clamp(1.7rem, 2.35vw, 2.55rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--about-white);
}

/* «توسعه ساختمان» و «چیست؟» — Black */
.about-platform__title-main,
.about-platform__title-tail {
  display: block;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: clamp(1.85rem, 3.1vw, 3.3rem);
  font-weight: 900;
  line-height: 1.18;
  white-space: nowrap;
}

.about-platform__title-main { color: var(--about-gold); }
.about-platform__title-tail { color: var(--about-white); }

.about-platform__description {
  max-width: 610px;
  margin: clamp(42px, 3vw, 76px) 0 0;
  color: var(--about-muted);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: clamp(0.88rem, 1.02vw, 1.05rem);
  font-weight: 400;
  line-height: 2.15;
  text-align: justify;
  text-align-last: right;
}

.about-platform__button {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 42px;
  margin-block-start: clamp(34px, 3.2vw, 62px);
  padding: 7px 22px 9px;
  border: 1.5px solid var(--about-gold);
  border-radius: 10px;
  color: var(--about-gold);
  background: rgba(5, 17, 34, 0.08);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  right: 33%;
}

.about-platform__button:hover {
  color: #101a2a;
  background: var(--about-gold);
  box-shadow: 0 0 24px rgba(210, 180, 87, 0.16);
}

.about-platform__button:focus-visible {
  outline: 3px solid rgba(210, 180, 87, 0.55);
  outline-offset: 4px;
}

.about-platform__visual {
  grid-area: visual;
  position: relative;
  width: 100%;
  max-width: 700px;
  justify-self: start;
  direction: ltr;
}

.about-platform__artwork {
  position: relative;
  width: 100%;
  right: 5%;
  aspect-ratio: 1.04 / 1;
  overflow: visible;
}

.about-platform__asset {
  position: absolute;
  display: block;
  pointer-events: none;
}

.about-platform__asset img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* Decorative gold elements remain behind both devices. */
.about-platform__asset--back {
  z-index: 0;
  top: 13%;
  left: 22%;
  width: 78%;
  opacity: 0.4;
}

/* Laptop sits behind the phone, as in the supplied reference. */
.about-platform__asset--laptop {
  z-index: 1;
  top: 2%;
  left: -3%;
  width: 115%;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.2));
}

.about-platform__asset--mobile {
  z-index: 2;
  top: 34%;
  left: 30%;
  width: 69%;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.28));
}

/* Entrance: the laptop rises from below, the phone fades in from the right. */
.about-platform.is-enhanced .about-platform__asset--laptop,
.about-platform.is-enhanced .about-platform__asset--mobile {
  opacity: 0;
  transition: opacity 900ms cubic-bezier(.22, .61, .36, 1),
              transform 900ms cubic-bezier(.22, .61, .36, 1);
}

.about-platform.is-enhanced .about-platform__asset--laptop {
  transform: translateY(64px);
}

.about-platform.is-enhanced .about-platform__asset--mobile {
  transform: translateX(72px);
}

.about-platform.is-enhanced .about-platform__visual.is-in .about-platform__asset--laptop,
.about-platform.is-enhanced .about-platform__visual.is-in .about-platform__asset--mobile {
  opacity: 1;
  transform: translate(0, 0);
}

.about-platform.is-enhanced .about-platform__visual.is-in .about-platform__asset--mobile {
  transition-delay: 140ms;
}

@media (prefers-reduced-motion: reduce) {
  .about-platform.is-enhanced .about-platform__asset--laptop,
  .about-platform.is-enhanced .about-platform__asset--mobile {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.about-platform__asset-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px;
  border: 1px dashed rgba(210, 180, 87, 0.58);
  border-radius: 8px;
  color: rgba(247, 248, 251, 0.65);
  background: rgba(3, 12, 24, 0.32);
  font: 12px/1.4 monospace;
  text-align: center;
}

.about-platform__asset.is-missing .about-platform__asset-placeholder {
  display: flex;
}

.about-platform__asset.is-missing img {
  display: none;
}

/* Tablet: retain the two-column layout while tightening the artwork. */
@media (max-width: 1100px) and (min-width: 851px) {
  .about-platform {
    padding-inline: 32px;
  }

  .about-platform__inner {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: 24px;
  }

  .about-platform__title-main,
  .about-platform__title-tail {
    font-size: clamp(1.65rem, 3.1vw, 2.3rem);
  }

  .about-platform__description {
    margin-block-start: 38px;
    font-size: 0.9rem;
  }

  .about-platform__artwork {
    aspect-ratio: 0.96 / 1;
  }

  .about-platform__asset--laptop {
    top: 8%;
    width: 75%;
  }

  .about-platform__asset--mobile {
    top: 35%;
    left: 57%;
    width: 36%;
  }
}

/* Mobile and portrait tablet: content first, artwork underneath. */
@media (max-width: 850px) {
  .about-platform {
    min-height: auto;
    padding: 76px 24px 54px;
  }

  /* wrapperها از چیدمان حذف می‌شوند؛ فرزندانشان مستقیم فرزند .about-platform__inner می‌شوند */
  .about-platform__content {
    display: contents;
  }

  .about-platform__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    min-height: auto;
  }

  /* ترتیب: عنوان → توضیحات → ویژوال → دکمه */

  .about-platform__title {
    order: 1;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 650px;
  }

  .about-platform__eyebrow {
    font-size: clamp(1.55rem, 5vw, 2rem);
  }

  .about-platform__title-main,
  .about-platform__title-tail {
    font-size: clamp(1.7rem, 5.2vw, 2.5rem);
    white-space: normal;
  }

  .about-platform__description {
    order: 2;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    font-size: clamp(0.88rem, 2.2vw, 1rem);
    text-align: center;
    text-align-last: center;
  }

  .about-platform__visual {
    order: 3;
    width: min(100%, 620px);
  }

  .about-platform__artwork {
    aspect-ratio: 1.04 / 1;
  }

  .about-platform__asset--back {
    top: 6%;
    left: 49%;
    width: 43%;
  }

  .about-platform__asset--laptop {
    top: 5%;
    left: 0;
    width: 74%;
  }

  .about-platform__asset--mobile {
    top: 31%;
    left: 56%;
    width: 36%;
  }

  /* دکمه به انتهای سکشن می‌رود */
  .about-platform__button {
    position: static;
    order: 4;
    margin-block-start: 0;
    right: auto;
  }
}

@media (max-width: 480px) {
  .about-platform {
    padding: 64px 18px 38px;
  }

  .about-platform__inner {
    gap: 22px;
  }

  .about-platform__title-main,
  .about-platform__title-tail {
    font-size: clamp(1.5rem, 6.5vw, 1.9rem);
  }

  .about-platform__description {
    margin-block-start: 0;
    line-height: 2;
  }

  .about-platform__artwork {
    aspect-ratio: 0.98 / 1;
  }

  .about-platform__asset--back {
    top: 0%;
    left: 3%;
    width: 100%;
  }

  .about-platform__asset--laptop {
    top: 5%;
    left: -6%;
    width: 100%;
  }

  .about-platform__asset--mobile {
    top: 31%;
    left: 18.5%;
    width: 70%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .about-platform__button {
    transition: none;
  }
}

/* ===== Section 03 — Features project ===== */
/* Section 03 — Features Project
   Namespaced styles: safe to use alongside the other page sections. */
/* ===== IRANYekanX ===== */






   :root {
  --about-gold: #d2b457;
  --about-white: #f7f8fb;
  --about-muted: rgba(247, 248, 251, 0.9);
  --about-section-top: #01060c;
  --about-section-mid-dark: #081a2d;
  --about-section-mid-light: #13365c;
  --about-section-bottom: #0b223c;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--about-white);
  background: var(--about-section-bottom);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}
.features-project {
  --features-bg: #15274f;
  --features-gold: #d4b252;
  --features-white: #f7f7f8;
  --features-content-width: 590px;

  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 843px;
  overflow: hidden;
  color: var(--features-white);
  background: #1b3050;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

.features-project,
.features-project * {
  box-sizing: border-box;
}

.features-project__inner {
  width: min(100% - 64px, 1500px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 88px);
}

/* Keep the background visually close to the reference: solid navy,
   with only a very restrained local light bloom behind the artwork. */
.features-project__visual {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
}

.features-project__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 88%;
  aspect-ratio: 1;
  inset-inline-start: 4%;
  top: 4%;
  pointer-events: none;
  background: radial-gradient(circle, rgb(72 89 125 / 13%) 0%, rgb(21 39 79 / 0%) 68%);
}

.features-project__artwork {
  position: relative;
  width: min(100%, 590px);
  height: clamp(390px, 36vw, 535px);
  flex: 0 0 auto;
}

.features-project__back {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.features-project__back {
  z-index: 0;
  opacity: 0.4;
  transform: scale(1.4);
  mix-blend-mode: screen;
}

.features-project__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  margin-top: 4px;
  padding-inline: 12px;
  color: var(--features-white);
  text-align: center;
}

.features-project__caption p {
  margin: 0;
  font-size: clamp(17px, 1.75vw, 27px);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.6;
}

.features-project__caption-dot {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 8px;
  background: var(--features-gold);
  box-shadow: 0 0 18px rgb(212 178 82 / 12%);
}

.features-project__content {
  width: 100%;
  max-width: var(--features-content-width);
  justify-self: end;
  padding-top: 0;
  text-align: right;
}

.features-project__header {
  margin: 0;
}

.features-project__eyebrow {
  margin: 0 0 4px;
  color: var(--features-white);
  font-size: clamp(23px, 2.3vw, 34px);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.55;
}

.features-project__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  color: var(--features-white);
  font-size: clamp(30px, 3.1vw, 44px);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.features-project__title-accent {
  color: var(--features-gold);
}

.features-project__description {
  display: grid;
  gap: 34px;
  margin-top: clamp(48px, 5vw, 76px);
}

.features-project__description p {
  margin: 0;
  color: rgb(247 247 248 / 96%);
  font-size: clamp(13px, 1.13vw, 16px);
  line-height: 2.05;
  text-align: right;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-weight: 400;
}

.features-project__button {
  display: inline-flex;
  min-width: 151px;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  margin-top: clamp(46px, 4.6vw, 70px);
  padding: 6px 22px 8px;
  border: 1.5px solid var(--features-gold);
  border-radius: 9px;
  color: var(--features-gold);
  background: transparent;
  font-size: 18px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-weight: 700;
}

.features-project__button:hover {
  color: #17294f;
  background: var(--features-gold);
  transform: translateY(-2px);
}

.features-project__button:focus-visible {
  outline: 3px solid rgb(212 178 82 / 45%);
  outline-offset: 4px;
}

/* Reveal is enabled only when JavaScript is active. */
.features-project.is-enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.features-project.is-enhanced [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.features-project.is-enhanced .features-project__visual {
  transition-delay: 100ms;
}

@media (min-width: 1600px) {
  .features-project__inner {
    width: min(100% - 96px, 1600px);
  }
}

@media (max-width: 1100px) {
  .features-project {
    min-height: 760px;
  }

  .features-project__inner {
    width: min(100% - 48px, 1050px);
    gap: 28px;
    padding-block: 66px;
  }

  .features-project__artwork {
    height: clamp(340px, 43vw, 460px);
  }

  .features-project__description {
    gap: 24px;
    margin-top: 42px;
  }

  .features-project__button {
    margin-top: 42px;
  }
}

@media (max-width: 760px) {
  .features-project {
    min-height: 0;
  }

  .features-project__inner {
    width: min(100% - 40px, 560px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding-block: 50px 0px;
  }

  /* wrapper محتوا از چیدمان حذف می‌شود */
  .features-project__content {
    display: contents;
  }

  /* ترتیب: هدر → توضیحات → ویژوال (با کپشن) → دکمه */

  .features-project__header {
    order: 1;
  }

  .features-project__eyebrow {
    font-size: clamp(21px, 5.4vw, 28px);
  }

  .features-project__title {
    font-size: clamp(28px, 6.5vw, 37px);
    line-height: 1.25;
  }

  .features-project__description {
    order: 2;
    gap: 21px;
    margin-top: 0px;
  }

  .features-project__description p {
    font-size: 14px;
    line-height: 2;
  }

  .features-project__visual {
    order: 3;
    width: 100%;
    padding-top: 0;
  }

  .features-project__artwork {
    width: min(100%, 470px);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .features-project__caption {
    margin-top: 8px;
    gap: 11px;
  }

  .features-project__caption p {
    font-size: clamp(16px, 4.1vw, 21px);
  }

  .features-project__caption-dot {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
    border-radius: 6px;
  }

  /* دکمه به انتهای سکشن می‌رود */
  .features-project__button {
    order: 4;
    align-self: center;
    margin-top: 0;
    min-height: 42px;
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .features-project__inner {
    width: calc(100% - 32px);
  }

  .features-project__title {
    font-size: 28px;
  }

  .features-project__description p {
    font-size: 13px;
  }
}



/* ===== Airdrop float animations — one per item ===== */
/* All three layers share the source 366x380 canvas, so only the visible
   item moves; recompositing the layers still matches the original artwork. */

@keyframes airdrop-float-center {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50%      { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes airdrop-float-right {
  0%, 100% { transform: translate(0, 0) rotate(0.6deg); }
  50%      { transform: translate(5px, -8px) rotate(-1.1deg); }
}

@keyframes airdrop-float-left {
  0%, 100% { transform: translate(0, 0) rotate(0.9deg); }
  50%      { transform: translate(-6px, -7px) rotate(-0.8deg); }
}

.features-project__airdrop {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  will-change: transform;
}

/* transform-origin sits over each item's own centre on the shared canvas. */
.features-project__airdrop--center {
  z-index: 4;
  transform-origin: 53% 37%;
  animation: airdrop-float-center 6.5s ease-in-out infinite;
}

.features-project__airdrop--right {
  z-index: 2;
  transform-origin: 83% 74%;
  animation: airdrop-float-right 7.8s ease-in-out infinite;
}

.features-project__airdrop--left {
  z-index: 2;
  transform-origin: 19% 68%;
  animation: airdrop-float-left 5.4s ease-in-out infinite;
}

.features-project__airdrop-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .features-project__airdrop {
    animation: none;
  }
}

/* ===== Section 04 — Features factory ===== */
/* =========================================================
   Section 04 — Features Factory
   Scoped styles for the "کارخانه‌دار" section.
   ========================================================= */

/* ===== IRANYekanX ===== */




:root {
  --about-gold: #d2b457;
  --about-white: #f7f8fb;
  --about-muted: rgba(247, 248, 251, 0.9);
  --about-section-bottom: #0b223c;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--about-white);
  background: var(--about-section-bottom);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

.features-factory {
  --factory-bg: #15274f;
  --factory-gold: #d4b252;
  --factory-white: #f7f7f8;
  --factory-content-width: 590px;

  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 843px;
  overflow: hidden;
  color: var(--factory-white);
  background: #1b3050;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

.features-factory *,
.features-factory *::before,
.features-factory *::after { box-sizing: border-box; }

.features-factory__inner {
  width: min(100% - 64px, 1500px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 88px);
}

/* ----------------- Visual ----------------- */
.features-factory__visual {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
}

.features-factory__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 88%;
  aspect-ratio: 1;
  inset-inline-start: 4%;
  top: 4%;
  pointer-events: none;
  background: radial-gradient(circle, rgb(72 89 125 / 13%) 0%, rgb(21 39 79 / 0%) 68%);
}

.features-factory__artwork {
  position: relative;
  width: min(100%, 620px);
  height: clamp(390px, 38vw, 560px);
  flex: 0 0 auto;
}

.features-factory__back,
.features-factory__factory,
.features-factory__Graph {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* تکسچر طلایی پس‌زمینه */
.features-factory__back {
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.3;
  transform: scale(1.3);
  mix-blend-mode: screen;
}

/* کارخانه — پایه‌ی ویژوال */
.features-factory__factory {
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.28));
}

/* دود — لایه‌ی شفاف جداگانه روی تصویر کارخانه */
.features-factory__smoke {
  margin-top: -13px;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* A small, steady wisp keeps each plume visually attached to its mouth. */
.smoke-wisp {
  transform-box: fill-box;
  transform-origin: 50% 78%;
  opacity: 0.34;
  animation: wisp-breathe 3.6s ease-in-out infinite alternate;
  will-change: opacity;
}

.smoke-stream--short .smoke-wisp {
  opacity: 0.3;
  animation-duration: 4.4s;
  animation-delay: -1.3s;
}

@keyframes wisp-breathe {
  from { opacity: 0.26; transform: scale(0.9); }
  to   { opacity: 0.42; transform: scale(1.12) translateY(-4px); }
}

.smoke-puff {
  transform-box: fill-box;
  transform-origin: 50% 62%;
  will-change: transform, opacity;
  animation: smoke-rise var(--smoke-dur) linear infinite;
  animation-delay: var(--smoke-delay);
  opacity: 0;
}

.smoke-stream--tall .smoke-puff {
  --smoke-dur: 7.4s;
  --drift: 12px;
}

.smoke-stream--short .smoke-puff {
  --smoke-dur: 6.1s;
  --drift: -10px;
}

/* Each puff is phase-shifted so the stream never resets visibly. */
.smoke-stream--tall .smoke-puff:nth-child(1),
.smoke-stream--short .smoke-puff:nth-child(1) { --smoke-delay: 0s; }
.smoke-stream--tall .smoke-puff:nth-child(2),
.smoke-stream--short .smoke-puff:nth-child(2) { --smoke-delay: -1.23s; }
.smoke-stream--tall .smoke-puff:nth-child(3),
.smoke-stream--short .smoke-puff:nth-child(3) { --smoke-delay: -2.46s; }
.smoke-stream--tall .smoke-puff:nth-child(4),
.smoke-stream--short .smoke-puff:nth-child(4) { --smoke-delay: -3.69s; }
.smoke-stream--tall .smoke-puff:nth-child(5),
.smoke-stream--short .smoke-puff:nth-child(5) { --smoke-delay: -4.92s; }
.smoke-stream--tall .smoke-puff:nth-child(6) { --smoke-delay: -6.15s; }
.smoke-stream--tall .smoke-puff:nth-child(7) { --smoke-delay: -1.85s; }
.smoke-stream--tall .smoke-puff:nth-child(8) { --smoke-delay: -4.31s; }
.smoke-stream--short .smoke-puff:nth-child(6) { --smoke-delay: -1.02s; }
.smoke-stream--short .smoke-puff:nth-child(7) { --smoke-delay: -3.57s; }

/* Slightly different swirl offsets stop the two plumes looking synchronised. */
.smoke-stream--tall .smoke-puff:nth-child(2n) { --drift: -9px; }
.smoke-stream--short .smoke-puff:nth-child(2n) { --drift: 13px; }
.smoke-puff:nth-child(3n) { --sway: -6px; }
.smoke-puff:nth-child(3n + 1) { --sway: 5px; }

@keyframes smoke-rise {
  0% {
    transform: translate(0, 6px) scale(0.32) rotate(-8deg);
    opacity: 0;
  }
  14% {
    opacity: 0.72;
  }
  45% {
    transform: translate(calc(var(--drift, 10px) + var(--sway, 0px)), -78px) scale(0.95) rotate(4deg);
    opacity: 0.55;
  }
  74% {
    transform: translate(calc(var(--drift, 10px) * -0.6 + var(--sway, 0px)), -150px) scale(1.35) rotate(-3deg);
    opacity: 0.30;
  }
  100% {
    transform: translate(var(--sway, 0px), -226px) scale(1.75) rotate(6deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .features-factory__smoke .smoke-puff,
  .features-factory__smoke .smoke-wisp {
    animation: none;
  }
  .smoke-stream--tall .smoke-puff:nth-child(1),
  .smoke-stream--short .smoke-puff:nth-child(3) {
    opacity: 0.32;
    transform: translate(0, -40px) scale(0.9);
  }
}

/* سکه‌ها — جلو، با شناوری ظریف */
.features-factory__Graph {
  z-index: 2;
  right: -2%;
  bottom: 10%;
  width: 28%;
  height: auto;
  animation: factory-Graph-float 6.5s ease-in-out infinite;
  will-change: transform;
  transform-origin: center 60%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.3));
}

@keyframes factory-Graph-float {
  0%, 100% { transform: translateY(0) rotate(-0.3deg); }
  50%      { transform: translateY(-9px) rotate(0.3deg); }
}

/* کپشن */
.features-factory__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  margin-top: 4px;
  padding-inline: 12px;
  color: var(--factory-white);
  text-align: center;
}

.features-factory__caption p {
  margin: 0;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: clamp(17px, 1.75vw, 27px);
  font-weight: 700;
  line-height: 1.6;
}

.features-factory__caption-dot {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 8px;
  background: var(--factory-gold);
  box-shadow: 0 0 18px rgb(212 178 82 / 12%);
}

/* ----------------- Content ----------------- */
.features-factory__content {
  width: 100%;
  max-width: var(--factory-content-width);
  justify-self: end;
  text-align: right;
}

.features-factory__header { margin: 0; }

.features-factory__eyebrow {
  margin: 0 0 4px;
  color: var(--factory-white);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: clamp(23px, 2.3vw, 34px);
  font-weight: 400;
  line-height: 1.55;
}

.features-factory__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  color: var(--factory-white);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: clamp(30px, 3.1vw, 44px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.features-factory__title-accent { color: var(--factory-gold); }

.features-factory__description {
  display: grid;
  gap: 34px;
  margin-top: clamp(48px, 5vw, 76px);
}

.features-factory__description p {
  margin: 0;
  color: rgb(247 247 248 / 96%);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: clamp(13px, 1.13vw, 16px);
  font-weight: 400;
  line-height: 2.05;
  text-align: right;
}

/* دکمه */
.features-factory__button {
  display: inline-flex;
  min-width: 151px;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  margin-top: clamp(46px, 4.6vw, 70px);
  padding: 6px 22px 8px;
  border: 1.5px solid var(--factory-gold);
  border-radius: 9px;
  color: var(--factory-gold);
  background: transparent;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.features-factory__button:hover {
  color: #17294f;
  background: var(--factory-gold);
  transform: translateY(-2px);
}

.features-factory__button:focus-visible {
  outline: 3px solid rgb(212 178 82 / 45%);
  outline-offset: 4px;
}

/* Reveal */
.features-factory.is-enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}
.features-factory.is-enhanced [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.features-factory.is-enhanced .features-factory__visual {
  transition-delay: 100ms;
}

/* ----------------- Responsive ----------------- */
@media (min-width: 1600px) {
  .features-factory__inner {
    width: min(100% - 96px, 1600px);
  }
}

@media (max-width: 1100px) {
  .features-factory { min-height: 760px; }

  .features-factory__inner {
    width: min(100% - 48px, 1050px);
    gap: 28px;
    padding-block: 66px;
  }

  .features-factory__artwork {
    height: clamp(340px, 45vw, 470px);
  }

  .features-factory__Graph {
    right: 3%;
    bottom: 12%;
    width: 23% !important ;
  }

  .features-factory__description {
    gap: 24px;
    margin-top: 42px;
  }

  .features-factory__button { margin-top: 42px; }
}

@media (max-width: 760px) {
  .features-factory { min-height: 0; }

  .features-factory__inner {
    width: min(100% - 40px, 560px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding-block: 10px 0px;
  }

    .features-factory__Graph {
    right: 2%;
    bottom: 12%;
    width: 42%;
    animation-duration: 7.5s;   /* آرام‌تر روی موبایل */
  }

  @keyframes factory-Graph-float {
    0%, 100% { transform: translateY(0) rotate(-0.3deg); }
    50%      { transform: translateY(-6px) rotate(0.3deg); }   /* دامنه‌ی کمتر */
  }

  /* wrapper محتوا از چیدمان حذف می‌شود */
  .features-factory__content { display: contents; }

  /* ترتیب: هدر → توضیحات → ویژوال (با کپشن) → دکمه */

  .features-factory__header { order: 1; }

  .features-factory__eyebrow {
    font-size: clamp(21px, 5.4vw, 28px);
  }

  .features-factory__title {
    font-size: clamp(28px, 6.5vw, 37px);
    line-height: 1.25;
  }

  .features-factory__description {
    order: 2;
    gap: 21px;
    margin-top: 12px;
  }

  .features-factory__description p {
    font-size: 14px;
    line-height: 2;
  }

  .features-factory__visual {
    order: 3;
    width: 100%;
    padding-top: 0;
  }

  .features-factory__artwork {
    width: min(100%, 470px);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .features-factory__caption {
    margin-top: 8px;
    gap: 11px;
  }

  .features-factory__caption p {
    font-size: clamp(16px, 4.1vw, 21px);
  }

  .features-factory__caption-dot {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
    border-radius: 6px;
  }

  .features-factory__button {
    order: 4;
    align-self: center;
    margin-top: 0;
    min-height: 42px;
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .features-factory__inner { width: calc(100% - 32px); }
  .features-factory__title { font-size: 28px; }
  .features-factory__description p { font-size: 13px; }
}

/* ===== Section 05 — Iran projects ===== */
/* =========================================================
   Section 05 — Projects in Iran
   Mirror of Section 04 (features-factory): Back.png as
   the hero visual, map overlaid on top of it.
   ========================================================= */

/* ===== IRANYekanX ===== */




:root {
  --about-gold: #d2b457;
  --about-white: #f7f8fb;
  --about-muted: rgba(247, 248, 251, 0.9);
  --about-section-bottom: #0b223c;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--about-white);
  background: var(--about-section-bottom);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

/* ================= Section ================= */
.iran-projects {
  --ip-bg: #15274f;
  --ip-gold: #cbaf5e;
  --ip-gold-dark: #8a7134;
  --ip-province-fill: #1b3050;
  --ip-white: #f7f7f8;
  --ip-content-width: 590px;

  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 843px;
  overflow: hidden;
  color: var(--ip-white);
  background: #1b3050;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

.iran-projects *,
.iran-projects *::before,
.iran-projects *::after { box-sizing: border-box; }

.iran-projects__inner {
  width: min(100% - 64px, 1500px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 88px);
}

/* ================= Content (right column) ================= */
.iran-projects__content {
  width: 100%;
  max-width: var(--ip-content-width);
  justify-self: end;
  text-align: right;
  direction: rtl;
}

.iran-projects__header { margin: 0; }

.iran-projects__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  color: var(--ip-white);
  font-size: clamp(30px, 3.1vw, 44px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.iran-projects__title-accent { color: var(--ip-gold); }

.iran-projects__description {
  max-width: var(--ip-content-width);
  margin: clamp(42px, 5vw, 76px) 0 0;
  color: rgb(247 247 248 / 96%);
  font-size: clamp(13px, 1.13vw, 16px);
  font-weight: 400;
  line-height: 2.05;
  text-align: right;
}

/* ===== Province quick-pick chips (only provinces with > 2 projects) ===== */
.iran-projects__provinces {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.iran-projects__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid rgba(203, 175, 94, 0.45);
  border-radius: 999px;
  color: var(--ip-gold);
  background: rgba(203, 175, 94, 0.06);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease,
              border-color 180ms ease, transform 180ms ease;
}

.iran-projects__chip-count {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(203, 175, 94, 0.16);
  font-size: .85em;
  font-weight: 400;
}

.iran-projects__chip:hover,
.iran-projects__chip.is-active {
  color: #17294f;
  border-color: var(--ip-gold);
  background: var(--ip-gold);
  transform: translateY(-2px);
}

.iran-projects__chip:hover .iran-projects__chip-count,
.iran-projects__chip.is-active .iran-projects__chip-count {
  background: rgba(23, 41, 79, 0.16);
}

.iran-projects__chip:focus-visible {
  outline: 3px solid rgb(203 175 94 / 45%);
  outline-offset: 3px;
}

.iran-projects__button {
  display: inline-flex;
  min-width: 151px;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  margin-top: clamp(46px, 4.6vw, 70px);
  padding: 6px 22px 8px;
  border: 1.5px solid var(--ip-gold);
  border-radius: 9px;
  color: var(--ip-gold);
  background: transparent;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.iran-projects__button:hover {
  color: #17294f;
  background: var(--ip-gold);
  transform: translateY(-2px);
}

.iran-projects__button:focus-visible {
  outline: 3px solid rgb(203 175 94 / 45%);
  outline-offset: 4px;
}

/* ================= Visual (left column) ================= */
.iran-projects__visual {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  direction: ltr;
}

.iran-projects__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 88%;
  aspect-ratio: 1;
  inset-inline-start: 4%;
  top: 4%;
  pointer-events: none;
  background: radial-gradient(circle, rgb(72 89 125 / 13%) 0%, rgb(21 39 79 / 0%) 68%);
}

.iran-projects__artwork {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 1.04 / 1;
  flex: 0 0 auto;
}

/* Back.png — تکسچر طلایی، پررنگ و بزرگ مثل reference */
.iran-projects__back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.65;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 1;
}

/* نقشه — روی تکسچر، کمی کوچک‌تر تا لبه‌های تکسچر دیده شود */
.iran-projects__map {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  display: block;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}

/* Only the provinces layer receives pointer input. */
.iran-projects__map--provinces { pointer-events: auto; }

/* Layer 1: water. The dark-gold layer sits on top and fades in/out; animating
   the layer's opacity does not repaint the map. */
.iran-projects__map-water path,
.iran-projects__map-water-dark path {
  fill: var(--ip-gold);
  stroke: none;
}

.iran-projects__map-water-dark path { fill: var(--ip-gold-dark); }

.iran-projects__map--water-dark {
  opacity: 0;
  will-change: opacity;
  animation: water-breathe 10s ease-in-out infinite;
}

@keyframes water-breathe {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}

/* Layer 2: provinces */
.iran-projects__map-paths path {
  fill: var(--ip-province-fill);
  stroke: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* The province that is hovered/selected is lifted into the highlight layer,
   so its base copy is hidden (same visual as the old moved path). */
.iran-projects__map-paths path.is-lifted {
  opacity: 0;
}

/* Highlight layer: copies of the hovered and selected provinces. */
.iran-projects__hl {
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.iran-projects__hl.is-on {
  opacity: 1;
  transform: translateY(-2px);
  filter:
    drop-shadow(0 0 8px rgba(203, 175, 94, 0.55))
    drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}

.iran-projects__hl-gold { fill: var(--ip-gold); stroke: none; }

.iran-projects__hl-dark {
  fill: var(--ip-gold-dark);
  stroke: none;
  opacity: 0;
}

.iran-projects__hl.is-on .iran-projects__hl-dark {
  animation: province-breathe 7s ease-in-out infinite;
}

@keyframes province-breathe {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}

/* Layer 3: dashed borders */
.iran-projects__map-borders path {
  fill: none;
  stroke: var(--ip-gold);
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  pointer-events: none;
  animation: dash-flow 4s linear infinite;
  transition: stroke 200ms ease;
}

.iran-projects__map-borders path.is-hot {
  stroke: var(--ip-province-fill);
  animation: none;
}

@keyframes dash-flow {
  to { stroke-dashoffset: -10; }
}

/* Tooltip */
.iran-projects__tooltip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(8, 26, 45, 0.95);
  color: var(--ip-gold);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.iran-projects__tooltip[hidden] { display: none; }

/* Caption (تحت ویژوال، مثل sections 03/04) */
.iran-projects__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  margin-top: 4px;
  padding-inline: 12px;
  color: var(--ip-white);
  text-align: center;
}

.iran-projects__caption p {
  margin: 0;
  font-size: clamp(17px, 1.75vw, 27px);
  font-weight: 700;
  line-height: 1.6;
}

.iran-projects__caption-dot {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 8px;
  background: var(--ip-gold);
  box-shadow: 0 0 18px rgb(203 175 94 / 12%);
}

/* ================= Reveal ================= */
.iran-projects.is-enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}
.iran-projects.is-enhanced [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.iran-projects.is-enhanced .iran-projects__visual {
  transition-delay: 100ms;
}

/* ================= Responsive ================= */
@media (min-width: 1600px) {
  .iran-projects__inner { width: min(100% - 96px, 1600px); }
}

@media (max-width: 1100px) {
  .iran-projects { min-height: 760px; }
  .iran-projects__inner {
    width: min(100% - 48px, 1050px);
    gap: 28px;
    padding-block: 66px;
  }
  .iran-projects__artwork { aspect-ratio: 1 / 1; }
}

@media (max-width: 760px) {
  .iran-projects { min-height: 0; }

  .iran-projects__inner {
    width: min(100% - 40px, 560px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding-block: 30%;
  }
  .iran-projects__provinces {
    order: 4;
    margin-top: 0;
    width: 100%;
    max-width: 470px;
    align-self: center;
    justify-content: center;
  }

  .iran-projects__button {
    order: 5;   /* ← از 4 به 5 */
    /* بقیه‌ی مقادیر مثل قبل */
  }

  /* wrapper محتوا از چیدمان حذف می‌شود */
  .iran-projects__content { display: contents; }

  /* ترتیب: هدر → توضیحات → ویژوال (با کپشن) → دکمه */

  .iran-projects__header { order: 1; }

  .iran-projects__title {
    font-size: clamp(28px, 6.5vw, 37px);
    line-height: 1.25;
  }

  .iran-projects__description {
    order: 2;
    margin-top: 12px;
    font-size: 14px;
    line-height: 2;
  }

  .iran-projects__visual {
    order: 3;
    width: 100%;
    padding-top: 0;
  }

  .iran-projects__artwork {
    width: min(100%, 470px);
    aspect-ratio: 1 / 1;
  }

  .iran-projects__caption {
    margin-top: 8px;
    gap: 11px;
  }

  .iran-projects__caption p { font-size: clamp(16px, 4.1vw, 21px); }

  .iran-projects__caption-dot {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
    border-radius: 6px;
  }

  .iran-projects__button {
    order: 4;
    align-self: center;
    margin-top: 0;
    min-height: 42px;
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .iran-projects__inner { width: calc(100% - 32px); }
  .iran-projects__title { font-size: 28px; }
  .iran-projects__description { font-size: 13px; }
}


/* ===== Section 06 — Features smartphone ===== */
/* =========================================================
   Section 06 — Features Smartphone
   Mirrors Section 04 structure: two-column grid, RTL,
   button at the bottom on mobile.
   ========================================================= */

/* ===== IRANYekanX ===== */




:root {
  --about-gold: #d2b457;
  --about-white: #f7f8fb;
  --about-muted: rgba(247, 248, 251, 0.9);
  --about-section-bottom: #0b223c;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--about-white);
  background: var(--about-section-bottom);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

/* ================= Section ================= */
.features-smartphone {
  --sp-bg: #15274f;
  --sp-gold: #d4b252;
  --sp-white: #f7f7f8;
  --sp-content-width: 590px;

  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  color: var(--sp-white);
  background: #1b3050;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

.features-smartphone *,
.features-smartphone *::before,
.features-smartphone *::after { box-sizing: border-box; }

.features-smartphone__inner {
  width: min(100% - 64px, 1500px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 88px);
  padding-block: 65px;
}

/* ================= Content ================= */
.features-smartphone__content {
  width: 100%;
  max-width: var(--sp-content-width);
  justify-self: end;
  text-align: right;
}

.features-smartphone__header { margin: 0; }

.features-smartphone__eyebrow {
  margin: 0 0 4px;
  color: var(--sp-white);
  font-size: clamp(23px, 2.3vw, 34px);
  font-weight: 400;
  line-height: 1.55;
}

.features-smartphone__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  color: var(--sp-white);
  font-size: clamp(30px, 3.1vw, 44px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.features-smartphone__title-accent { color: var(--sp-gold); }

.features-smartphone__description {
  max-width: var(--sp-content-width);
  margin: clamp(24px, 3vw, 40px) 0 0;
  color: rgb(247 247 248 / 96%);
  font-size: clamp(13px, 1.13vw, 16px);
  font-weight: 400;
  line-height: 2.05;
  text-align: right;
}

.features-smartphone__description + .features-smartphone__description {
  margin-top: clamp(14px, 1.8vw, 22px);
}

.features-smartphone__button {
  display: inline-flex;
  min-width: 151px;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  margin-top: clamp(46px, 4.6vw, 70px);
  padding: 6px 22px 8px;
  border: 1.5px solid var(--sp-gold);
  border-radius: 9px;
  color: var(--sp-gold);
  background: transparent;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}


.features-smartphone__button:hover {
  color: #17294f;
  background: var(--sp-gold);
  transform: translateY(-2px);
}

.features-smartphone__button:focus-visible {
  outline: 3px solid rgb(212 178 82 / 45%);
  outline-offset: 4px;
}

/* ================= Visual ================= */
.features-smartphone__visual {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  direction: ltr;
}

.features-smartphone__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 92%;
  aspect-ratio: 1;
  inset-inline-start: 4%;
  top: 8%;
  pointer-events: none;
  background: radial-gradient(circle, rgb(72 89 125 / 14%) 0%, rgb(21 39 79 / 0%) 68%);
}

.features-smartphone__artwork {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 1.5 / 1;
  flex: 0 0 auto;
}

.features-smartphone__phone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.32));
  animation: smartphone-float 7s ease-in-out infinite;
  will-change: transform;
  transform-origin: center 60%;
}

@keyframes smartphone-float {
  0%, 100% { transform: translateY(0) rotate(-0.25deg); }
  50%      { transform: translateY(-9px) rotate(0.25deg); }
}

/* ================= Reveal ================= */
.features-smartphone.is-enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}
.features-smartphone.is-enhanced [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.features-smartphone.is-enhanced .features-smartphone__visual {
  transition-delay: 100ms;
}

/* ================= Responsive ================= */
@media (min-width: 1600px) {
  .features-smartphone__inner { width: min(100% - 96px, 1600px); }
}

@media (max-width: 1100px) {
  .features-smartphone { min-height: 760px; }

  .features-smartphone__inner {
    width: min(100% - 48px, 1050px);
    gap: 28px;
    padding-block: 66px;
  }

  .features-smartphone__artwork { aspect-ratio: 1.4 / 1; }

  .features-smartphone__description { margin-top: 28px; }
  .features-smartphone__button { margin-top: 42px; }
}

@media (max-width: 760px) {
  .features-smartphone { min-height: 0; }

  .features-smartphone__inner {
    width: min(100% - 40px, 560px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding-block: 10px px;
  }

  /* wrapper محتوا از چیدمان حذف می‌شود */
  .features-smartphone__content { display: contents; }

  /* ترتیب: هدر → توضیحات → ویژوال → دکمه */

  .features-smartphone__header { order: 1; }

  .features-smartphone__eyebrow { font-size: clamp(21px, 5.4vw, 28px); }

  .features-smartphone__title {
    font-size: clamp(28px, 6.5vw, 37px);
    line-height: 1.25;
  }

  .features-smartphone__description {
    order: 2;
    margin-top: 10px;
    font-size: 14px;
    line-height: 2;
  }

  .features-smartphone__description + .features-smartphone__description {
    margin-top: 0;
  }

  .features-smartphone__visual {
    order: 3;
    width: 100%;
    padding-top: 0;
  }

  .features-smartphone__artwork {
    width: min(100%, 520px);
    aspect-ratio: 1.35 / 1;
  }

  .features-smartphone__button {
    order: 4;
    align-self: center;
    margin-top: 0;
    min-height: 42px;
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .features-smartphone__inner { width: calc(100% - 32px); }
  .features-smartphone__title { font-size: 28px; }
  .features-smartphone__description { font-size: 13px; }
}


/* ===== Section 07 — Engineers & contractors ===== */
/* Mirrors the smartphone section: two-column RTL grid, artwork left,
   copy right. The three transparent PNGs share one canvas so every
   layer stays aligned at every viewport. */

.features-engineer {
  --fe-gold: #d4b252;
  --fe-white: #f7f7f8;
  --fe-content-width: 680px;

  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  color: var(--fe-white);
  background: #1b3050;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

.features-engineer *,
.features-engineer *::before,
.features-engineer *::after { box-sizing: border-box; }

/* Faint blueprint-style linework behind the artwork, like the reference. */
.features-engineer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, rgb(255 255 255 / 2.5%) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 2.5%) 0 1px, transparent 1px 64px);
}

.features-engineer__inner {
  width: min(100% - 64px, 1500px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 88px);
  padding-block: 65px;
}

/* ---------------- Copy (right column) ---------------- */
.features-engineer__content {
  width: 100%;
  max-width: var(--fe-content-width);
  justify-self: start;
  text-align: right;
  direction: rtl;
}

.features-engineer__header { margin: 0; }

.features-engineer__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  color: var(--fe-white);
  font-size: clamp(30px, 3.1vw, 44px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.features-engineer__title-accent { color: var(--fe-gold); }

.features-engineer__description {
  max-width: var(--fe-content-width);
  margin: clamp(24px, 3vw, 40px) 0 0;
  color: rgb(247 247 248 / 96%);
  font-size: clamp(13px, 1.13vw, 16px);
  font-weight: 400;
  line-height: 2.05;
  text-align: right;
}

.features-engineer__button {
  display: inline-flex;
  width: fit-content;
  margin-inline-start: auto;
  margin-inline-end: 80px;
  min-width: 151px;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  margin-top: clamp(46px, 4.6vw, 70px);
  padding: 6px 22px 8px;
  border: 1.5px solid var(--fe-gold);
  border-radius: 9px;
  color: var(--fe-gold);
  background: transparent;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
  z-index: 10;
}

.features-engineer__button:hover {
  color: #17294f;
  background: var(--fe-gold);
  transform: translateY(-2px);
}

.features-engineer__button:focus-visible {
  outline: 3px solid rgb(212 178 82 / 45%);
  outline-offset: 4px;
}

/* ---------------- Artwork (left column) ---------------- */
.features-engineer__visual {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  direction: ltr;
}

.features-engineer__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 92%;
  aspect-ratio: 1;
  inset-inline-start: 4%;
  top: 6%;
  pointer-events: none;
  background: radial-gradient(circle, rgb(72 89 125 / 14%) 0%, rgb(21 39 79 / 0%) 68%);
}

.features-engineer__artwork {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
}

.features-engineer__layer {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.features-engineer__map {
  width: 60%;
  height: auto;
  left: 20%;
  top: 0%;
  transform: rotate(-10deg);
  filter: drop-shadow(0 22px 30px rgb(0 0 0 / 30%));
}

.features-engineer__hat {
  width: 46%;
  height: auto;
  left: 39%;
  top: 10%;
  z-index: 3;
  transform: rotate(-4deg);
  filter: drop-shadow(0 18px 24px rgb(0 0 0 / 34%));
}

.features-engineer__wrench {
  width: 33%;
  height: auto;
  left: 17%;
  top: 32%;
  z-index: 4;
  transform: rotate(-20deg);
  filter: drop-shadow(0 20px 26px rgb(0 0 0 / 34%));
}

.features-engineer__caption {
  position: absolute;
  inset-inline-end: 10%;
  bottom: 21%;
  width: 80%;
  margin: 0;
  color: var(--fe-white);
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
  direction: rtl;
}

.features-engineer__caption::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-inline-end: 10px;
  background: var(--fe-gold);
  vertical-align: baseline;
}

/* Reveal — fade only, no layout change */
.features-engineer.is-enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}
.features-engineer.is-enhanced [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.features-engineer.is-enhanced .features-engineer__visual { transition-delay: 100ms; }

/* ---------------- Responsive ---------------- */
@media (min-width: 1600px) {
  .features-engineer__inner { width: min(100% - 96px, 1600px); }
}

@media (max-width: 1100px) {
  .features-engineer { min-height: 760px; }
  .features-engineer__inner {
    width: min(100% - 48px, 1050px);
    gap: 28px;
    padding-block: 66px;
  }
  .features-engineer__description { margin-top: 28px; }
  .features-engineer__button { margin-top: 42px; }
}

@media (max-width: 760px) {
  .features-engineer { min-height: 0; }
  .features-engineer__inner {
    width: min(100% - 40px, 560px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-block: 10px 0px;
  }
  .features-engineer__content { display: contents; }
  .features-engineer__header { order: 1; }
  .features-engineer__eyebrow { font-size: clamp(21px, 5.4vw, 28px); }
  .features-engineer__title {
    font-size: clamp(28px, 6.5vw, 37px);
    line-height: 1.25;
  }
  .features-engineer__description {
    order: 2;
    margin-top: 10px;
    font-size: 14px;
    line-height: 2;
  }
  .features-engineer__visual {
    order: 3;
    width: 100%;
  }
  .features-engineer__artwork {
    width: min(100%, 520px);
    aspect-ratio: 1 / 1;
  }
  .features-engineer__caption { order: 1; font-size: 13px; }
  .features-engineer__button {
    margin-inline-start: 0;
    margin: auto;
    order: 4;
    align-self: center;
    margin-top: -25;
    min-height: 42px;
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .features-engineer__inner { width: calc(100% - 32px); }
  .features-engineer__title { font-size: 28px; }
  .features-engineer__description { font-size: 13px; }
}


/* ===== Section 08 — Categories ===== */
.categories {
  --cat-gold: #cbaf5e;
  --cat-navy: #1b3050;
  --cat-white: #f7f8fb;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  padding-block: 3vh;
  overflow: hidden;
  color: var(--cat-white);
  background: var(--cat-navy);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

.categories *,
.categories *::before,
.categories *::after { box-sizing: border-box; }

.categories__inner {
  width: min(94%, 1500px);
  height: 100%;
  min-height: calc(100svh - 6vh - var(--nav-offset, 0px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2vh;
}

.categories__header { flex: 0 0 auto; text-align: center; direction: rtl; }

.categories__title {
  margin: 0;
  color: var(--cat-gold);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.25;
}

.categories__subtitle {
  margin: 0.6vh 0 0;
  color: var(--cat-white);
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.35;
}

.categories__description {
  max-width: 62%;
  margin: 1.4vh auto 0;
  color: rgb(247 248 251 / 92%);
  font-size: clamp(11px, 1vw, 14px);
  line-height: 1.8;
}

.categories__grid {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  flex-direction: row;
  align-items: center;
  gap: clamp(10px, 3vw, 54px);
  direction: rtl;
}

.categories__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.categories__card {
  width: min(24vw, 34vh, 300px);
  aspect-ratio: 1 / 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2vh;
  padding: 2vh;
  border: 2px solid var(--cat-gold);
  border-radius: clamp(10px, 1.6vw, 22px);
  background: transparent;
  color: var(--cat-gold);
  text-decoration: none;
  transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease, transform 250ms ease;
}

.categories__card:hover,
.categories__card:focus-visible {
  background: var(--cat-gold);
  border-color: var(--cat-gold);
  color: var(--cat-navy);
  transform: translateY(-3px);
  outline: none;
}

.categories__icon {
  display: block;
  width: 58%;
  aspect-ratio: 101 / 108;
  color: var(--cat-gold);
  transition: color 250ms ease;
}

.categories__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.categories__icon--engineer { aspect-ratio: 101 / 102; }
.categories__icon--material { aspect-ratio: 128 / 89; }

.categories__card:hover .categories__icon,
.categories__card:focus-visible .categories__icon { color: var(--cat-navy); }

.categories__label {
  font-size: clamp(11px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.categories__counter {
  position: relative;
  margin: 1.6vh 0 0;
  font-size: clamp(16px, 3vh, 32px);
  font-weight: 900;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.categories__counter::before,
.categories__counter::after {
  content: "";
  display: inline-block;
  width: clamp(14px, 3vw, 42px);
  height: 1px;
  vertical-align: middle;
  background: linear-gradient(90deg, transparent, var(--cat-gold));
  transform: scaleX(0);
  opacity: 0;
  transition: transform 700ms ease, opacity 700ms ease;
}

.categories__counter::after { transform: scaleX(0) scaleX(-1); background: linear-gradient(270deg, transparent, var(--cat-gold)); }

.categories__counter [data-count-to] {
  display: inline-block;
  min-width: 3ch;
  background: linear-gradient(180deg, var(--cat-white) 10%, var(--cat-gold) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgb(203 175 94 / 35%));
  transform: translateY(6px) scale(0.96);
  opacity: 0;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 700ms ease;
}

.categories__counter-label {
  margin: 0.4vh 0 0;
  color: var(--cat-white);
  font-size: clamp(9px, 1.6vh, 17px);
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.categories.is-in .categories__counter::before,
.categories.is-in .categories__counter::after { transform: scaleX(1); opacity: 1; }
.categories.is-in .categories__counter [data-count-to] { transform: none; opacity: 1; }
.categories.is-in .categories__counter-label { opacity: 1; transform: none; }

.categories__item:nth-child(2) .categories__counter::before,
.categories__item:nth-child(2) .categories__counter::after,
.categories__item:nth-child(2) .categories__counter [data-count-to],
.categories__item:nth-child(2) .categories__counter-label { transition-delay: 180ms; }
.categories__item:nth-child(3) .categories__counter::before,
.categories__item:nth-child(3) .categories__counter::after,
.categories__item:nth-child(3) .categories__counter [data-count-to],
.categories__item:nth-child(3) .categories__counter-label { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .categories__counter::before,
  .categories__counter::after,
  .categories__counter [data-count-to],
  .categories__counter-label { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 760px) {
  .categories__inner { width: 94%; gap: 1.4vh; margin-top: 25%;}
  .categories__description { max-width: 100%; font-size: clamp(9px, 2.4vw, 12px); line-height: 1.6; }
  .categories__grid { gap: 2vw; }
  .categories__card {
    width: min(38vw, 30vh);
    aspect-ratio: 1 / 1;
    border-width: 1.5px;
    padding: 1.4vh 2px;
  }
  .categories__icon { width: 62%; }
  .categories__label { font-size: clamp(9px, 2.8vw, 13px); }
  .categories__counter { font-size: clamp(13px, 2.4vh, 18px); }
  .categories__counter-label { font-size: clamp(8px, 1.8vh, 11px); }
}

@media (max-width: 380px) {
  .categories__title { font-size: 20px; }
  .categories__subtitle { font-size: 15px; }
  .categories__description { font-size: 10px; }
  .categories__card { border-radius: 9px; }
  .categories__label { font-size: 10px; }
  .categories__counter { font-size: 13px; }
  .categories__counter-label { font-size: 8px; }
}

/* ===== Section 09 — Brandino ===== */
.brandino {
  --br-navy: #1b3050;
  --br-white: #f7f8fb;
  --br-gold: #cbaf5e;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  color: var(--br-white);
  background: var(--br-navy);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

.brandino *,
.brandino *::before,
.brandino *::after { box-sizing: border-box; }

/* The three supplied layers share the full section box so they scale together. */
.brandino__layers {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.brandino__layers img {
  position: absolute;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.brandino__glow {
  width: 126%;
  height: 86%;
  left: -13%;
  top: -4%;
  object-fit: cover;
  opacity: 0.42;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 76% 62% at 48% 46%, #000 0%, rgb(0 0 0 / 88%) 38%, rgb(0 0 0 / 38%) 68%, transparent 100%);
  mask-image: radial-gradient(ellipse 76% 62% at 48% 46%, #000 0%, rgb(0 0 0 / 88%) 38%, rgb(0 0 0 / 38%) 68%, transparent 100%);
}

.brandino__lines {
  width: 122%;
  height: 100%;
  left: -4%;
  top: 0;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.62;
}

.brandino__billboard {
  width: 102%;
  height: 118%;
  left: 0;
  bottom: -6.5%;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 24px 42px rgb(0 0 0 / 28%));
}

.brandino__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 8vw, 1500px);
  height: 100%;
  min-height: calc(100svh - var(--nav-offset, 0px));
  margin-inline: auto;
  padding-block: 6vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(18px, 4vh, 46px);
  direction: rtl;
}

.brandino__content {
  width: 100%;
  text-align: right;
}

.brandino__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(2px, 0.6vh, 10px);
  position: relative;
  top: -8vh;
  margin: 0;
  color: var(--br-white);
  font-size: clamp(42px, 5.6vw, 86px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-shadow: 0 10px 30px rgb(0 0 0 / 25%);
}

.brandino__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(132px, 12vw, 168px);
  min-height: clamp(40px, 5vh, 52px);
  padding: 8px 20px;
  border: 1.5px solid var(--br-white);
  border-radius: 8px;
  color: var(--br-white);
  background: transparent;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: clamp(14px, 1.3vw, 19px);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  position: relative;
  top: 10vh;
  align-self: flex-start;
  margin-inline-start: 29%;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.brandino__button:hover,
.brandino__button:focus-visible {
  color: var(--br-navy);
  background: var(--br-white);
  border-color: var(--br-white);
  transform: translateY(-2px);
  outline: none;
}

@media (max-width: 900px) {
  .brandino__glow { width: 170%; left: -35%; }
  .brandino__lines { width: 175%; left: -30%; object-position: center 45%; }
  .brandino__billboard { width: 118%; height: 70%; left: -10%; bottom: 0; }
  .brandino__inner {
    width: min(100% - 40px, 620px);
    align-items: flex-end;
    justify-content: flex-start;
    padding-block: 14vh 0;
    gap: 26px;
  }
  .brandino__title { top: 0; font-size: clamp(38px, 7vw, 58px); }
  .brandino__button { top: 0; margin-inline-start: 0; align-self: flex-start; }
}

@media (max-width: 560px) {
  .brandino__inner { width: calc(100% - 32px); padding-block: 15vh 0; gap: 20px; }
  .brandino__title { top: 0; font-size: clamp(30px, 9vw, 42px); }
  .brandino__glow { width: 210%; left: -55%; }
  .brandino__lines { width: 220%; left: -55%; }
  .brandino__billboard { width: 200%; height: 65%; left: -18%; bottom: 26%; }
  .brandino__button { top: 0; min-height: 42px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .brandino__button { transition: none; }
}


/* ===== Section 10 — Active factories & latest inquiries ===== */
.active-factories {
  --af-gold: #cbaf5e;
  --af-white: #f7f7f8;
  --af-navy: #1b3050;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  color: var(--af-white);
  background: var(--af-navy);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

.active-factories *,
.active-factories *::before,
.active-factories *::after { box-sizing: border-box; }

.active-factories__layers {
  position: absolute;
  z-index: 0;
  inset: 1% auto auto 0;
  width: 58%;
  height: 70%;
  pointer-events: none;
}

.active-factories__layers img {
  position: absolute;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  max-width: 87%;
  height: auto;
  margin-top: 25%;
}

.active-factories__lines,
.active-factories__sparks {
  inset: 4% 0 0;
  width: 100%;
  height: 129%;
  object-fit: fill;
}
.active-factories__lines { opacity: 0.30; }
.active-factories__sparks { mix-blend-mode: screen; }

.active-factories__factory {
  object-fit: contain;
  filter: drop-shadow(0 26px 34px rgb(0 0 0 / 30%));
}
.active-factories__factory--one { width: 59%; height: 55%; left: 20%; top: -47%; }
.active-factories__factory--three { width: 35%; height: 47%; left: 60%; top: 0%; }
.active-factories__factory--two { width: 43%; height: 54%; left: 18%; top: 13%; }

.active-factories__inner {
  position: relative;
  z-index: 2;
  width: min(94%, 1500px);
  height: 100%;
  min-height: calc(100svh - var(--nav-offset, 0px));
  margin-inline: auto;
  padding-block: 4vh 3vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3vh;
  direction: rtl;
}

.active-factories__copy {
  flex: 0 0 auto;
  width: 40%;
  margin-inline-end: auto;
  margin-block: auto;
  text-align: end;
}

.active-factories__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2vh;
  margin: 0;
  font-size: clamp(30px, 3.1vw, 44px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.active-factories__title-accent { color: var(--af-gold); }

.active-factories__description {
  max-width: 620px;
  margin: 3vh 0 0;
  color: rgb(247 247 248 / 96%);
  font-size: clamp(13px, 1.13vw, 16px);
  font-weight: 400;
  line-height: 2.05;
  text-align: right;
}

.active-factories__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 151px;
  min-height: 41px;
  margin-top: clamp(46px, 4.6vw, 70px);
  padding: 6px 22px 8px;
  border: 1.5px solid var(--af-gold);
  border-radius: 9px;
  color: var(--af-gold);
  background: transparent;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.active-factories__button:hover,
.active-factories__button:focus-visible {
  color: #17294f;
  background: var(--af-gold);
  transform: translateY(-2px);
  outline: none;
}

.latest-inquiries__cards {
  position: relative;
  flex: 0 0 auto;
  /* Room for the "view all" link pinned above the scrolling rail */
  padding: clamp(72px, 9vh, 104px) clamp(0px, 0vw, 60px) 16px;
  margin-top: auto;
  margin-bottom: -20px;
}

/* The cards scroll here; the button stays pinned to the outer wrapper. */
.latest-inquiries__rail {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  gap: clamp(8px, 1.4vw, 20px);
}

.latest-inquiries__rail::-webkit-scrollbar { display: none; width: 0; height: 0; }

.latest-inquiries__rail:empty::before {
  content: 'در حال بارگذاری استعلامها…';
  align-self: center;
  color: rgb(247 247 248 / 60%);
  font-size: clamp(12px, 1vw, 14px);
}

.latest-inquiries__rail.is-empty {
  align-items: center;
  color: rgb(247 247 248 / 70%);
  font-size: clamp(12px, 1vw, 14px);
}

.glass-card {
  --glass-gold: #cbaf5e;
  --glass-white: #f7f7f8;
  flex: 0 0 min(76vw, 280px);
  min-width: 0;
  min-height: clamp(86px, 11vh, 112px);
  scroll-snap-align: start;
  padding: clamp(9px, 1.1vh, 14px) clamp(10px, 1.2vw, 16px);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 13px;
  background: linear-gradient(135deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 3%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), 0 10px 24px rgb(0 0 0 / 14%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--glass-white);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgb(203 175 94 / 42%);
  background: linear-gradient(135deg, rgb(255 255 255 / 14%), rgb(255 255 255 / 6%));
}

.glass-card__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8vh;
}

.glass-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 clamp(28px, 2.6vw, 38px);
  width: clamp(28px, 2.6vw, 38px);
  height: clamp(28px, 2.6vw, 38px);
  overflow: hidden;
  border: 1px solid rgb(203 175 94 / 55%);
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(203 175 94 / 38%), rgb(21 39 79 / 65%));
  color: var(--glass-white);
  font-size: clamp(14px, 1.2vw, 19px);
  font-weight: 900;
}

.glass-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.glass-card__name {
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.glass-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0.4vh;
  font-size: clamp(11px, 0.95vw, 14px);
  line-height: 1.5;
}

.glass-card__row span { color: rgb(247 248 251 / 68%); }
.glass-card__row strong { color: var(--glass-gold); font-weight: 700; white-space: nowrap; }
.glass-card__row strong.is-timeline {
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.glass-card__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.8vh;
  font-size: clamp(11px, 0.95vw, 14px);
  font-weight: 700;
}

.glass-card__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 10px currentColor;
}

.glass-card__status-dot.is-pending { background: #f59e0b; color: #f59e0b; }
.glass-card__status-dot.is-progress { background: #3b82f6; color: #3b82f6; }
.glass-card__status-dot.is-done { background: #10b981; color: #10b981; }

@media (max-width: 1100px) {
  .active-factories__copy { width: 30%; }
  .active-factories__layers { width: 40%; height: 50%; }
}

@media (max-width: 900px) {
  .active-factories { min-height: 0; display: flex; flex-direction: column; }
  .active-factories__inner {
    display: contents;
  }
  .active-factories__copy {
    display: contents;
  }
  .active-factories__title {
    order: 1;
    width: min(100% - 40px, 620px);
    margin: 11vh auto 0;
    align-items: center;
    text-align: center;
  }
  .active-factories__description {
    order: 2;
    width: min(100% - 40px, 620px);
    margin: 10px auto 0;
    max-width: none;
    font-size: 14px;
    line-height: 2;
    text-align: center;
  }
  .active-factories__button { order: 4; align-self: center; margin-top: 0; min-height: 42px; font-size: 16px; }
  .active-factories__layers {
    order: 3;
    position: relative;
    inset: auto;
    width: min(100%, 680px);
    height: 42vh;
    min-height: 300px;
    margin: 18px auto 0;
    opacity: 0.92;
    transform: translateX(calc(-1 * min(2vw, 14px)));
  }
  .active-factories__factory--one { width: 34%; height: 38%; left: 11%; top: -14px; }
  .active-factories__factory--two { width: 25%; height: 28%; left: 4%; top: 38%; }
  .active-factories__factory--three { width: 22%; height: 24%; left: 27%; top: 18%; }
  .active-factories__lines,
  .active-factories__sparks { inset: 3% 0 0; width: 100%; height: 130%; }
  .latest-inquiries__cards {
    order: 3;
    width: 100%;
    margin: 10px 0 4vh;
    padding: 68px max(20px, calc((100vw - 620px) / 2)) 12px;
    margin-top: auto;
  }
  .latest-inquiries__rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    gap: 12px;
  }
  .latest-inquiries__rail::-webkit-scrollbar { display: none; }
  .latest-inquiries__button {
    top: 12px;
    left: max(20px, calc((100vw - 620px) / 2));
  }
  .glass-card {
    flex: 0 0 min(76vw, 280px);
    min-width: 0;
    min-height: 112px;
    scroll-snap-align: start;
  }
}

@media (max-width: 560px) {
  .active-factories__copy { width: calc(100% - 32px); margin-block-start: 10vh; }
  .active-factories__title { width: calc(100% - 32px); font-size: clamp(28px, 6.5vw, 37px); line-height: 1.25; }
  .active-factories__description { width: calc(100% - 32px); }
  .active-factories__layers { width: 100%; height: 38vh; min-height: 260px; transform: translateX(-6.4vw); }
  .active-factories__factory--one { width: 50%; height: 36%; left: 18%; top: -28%; }
  .active-factories__factory--two { width: 36%; height: 26%; left: 22%; top: 13%; }
  .active-factories__factory--three { width: 35%; height: 23%; left: 60%; top: 0%; }
  .active-factories__lines,
  .active-factories__sparks { inset: 2% 0 0; height: 132%; }
  .latest-inquiries__cards { padding-inline: 0px; }
  .glass-card { flex: 0 0 calc(70vw); min-height: 0; }
  .glass-card__row { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .glass-card, .active-factories__button, .latest-inquiries__button { transition: none; }
}


/* ===== Section 11 — Latest purchase inquiries ===== */
.latest-inquiries {
  --li-gold: #cbaf5e;
  --li-white: #f7f7f8;
  --li-navy: #1b3050;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  color: var(--li-white);
  background: #1b3050;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

.latest-inquiries *,
.latest-inquiries *::before,
.latest-inquiries *::after { box-sizing: border-box; }

.latest-inquiries__layers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.latest-inquiries__glow {
  position: absolute;
  display: block;
  width: 78%;
  height: auto;
  left: -24%;
  top: 6%;
  opacity: 0.42;
}

.latest-inquiries__inner {
  position: relative;
  z-index: 2;
  width: min(94%, 1500px);
  height: 100%;
  min-height: calc(100svh - 6vh - var(--nav-offset, 0px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2vh;
  direction: rtl;
}

.latest-inquiries__copy {
  flex: 0 0 auto;
  width: min(100%, 760px);
  margin-inline: auto;
  text-align: center;
  margin-top: 8%;
}

.latest-inquiries__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.latest-inquiries__eyebrow {
  margin: 0;
  color: var(--li-gold);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
}

.latest-inquiries__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2vh;
  margin: 0;
  font-size: clamp(30px, 3.1vw, 44px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.latest-inquiries__title-accent { color: var(--li-gold); }

.latest-inquiries__description {
  max-width: 620px;
  margin: 2.4vh auto 0;
  color: rgb(247 247 248 / 92%);
  font-size: clamp(13px, 1.13vw, 16px);
  line-height: 2.05;
  text-align: center;
}

.latest-inquiries__button {
  position: absolute;
  z-index: 2;
  top: clamp(12px, 2vh, 20px);
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 151px;
  min-height: 41px;
  margin-top: 0;
  padding: 6px 22px 8px;
  border: 1.5px solid var(--li-gold);
  border-radius: 9px;
  background: var(--li-gold);
  color: #1E1E1E;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.latest-inquiries__button:hover,
.latest-inquiries__button:focus-visible {
  background: #c9a54e;
  transform: translateY(-2px);
  outline: none;
}

/* Desktop-only rail controls: minimal circular arrows that pan the cards. */
.latest-inquiries__controls {
  display: none;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.latest-inquiries__nav {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(203 175 94 / 55%);
  border-radius: 50%;
  background: transparent;
  color: var(--li-gold);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease,
              border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.latest-inquiries__nav svg {
  width: 18px;
  height: 18px;
  display: block;
}

.latest-inquiries__nav:hover:not(:disabled),
.latest-inquiries__nav:focus-visible:not(:disabled) {
  background: var(--li-gold);
  border-color: var(--li-gold);
  color: #1b3050;
  transform: translateY(-2px);
  outline: none;
}

.latest-inquiries__nav:disabled {
  opacity: 0.32;
  cursor: default;
}

@media (min-width: 901px) {
  .latest-inquiries__controls { display: flex; }
}

.latest-inquiries__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: rgb(247 247 248 / 72%);
  font-size: clamp(11px, 0.95vw, 14px);
}

.latest-inquiries__caption-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--li-gold);
  box-shadow: 0 0 10px rgb(203 175 94 / 70%);
}

@media (max-width: 900px) {
  .latest-inquiries { min-height: 0; }

  .latest-inquiries__copy { width: min(100% - 40px, 620px); margin-inline: auto; }
  .latest-inquiries__header,
  .latest-inquiries__title { align-items: center; }
  .latest-inquiries__description { margin-inline: auto; text-align: center; }
  .latest-inquiries__glow { width: 130%; left: -44%; top: 0; }
  .latest-inquiries__caption { order: 4; margin-block: 8px 3vh; }
}

@media (max-width: 560px) {
  .latest-inquiries__copy { width: calc(100% - 32px); margin-block-start: 8vh; }
  .latest-inquiries__title { font-size: clamp(28px, 6.5vw, 37px); line-height: 1.25; }
  .latest-inquiries__description { font-size: 14px; }
  .latest-inquiries__button { min-height: 42px; font-size: 15px; }
  .latest-inquiries__glow { width: 170%; left: -66%; }
}


/* ===== Section 12 — Download the apps ===== */
.download-apps {
  --da-gold: #cbaf5e;
  --da-white: #f7f8fb;
  --da-navy: #1b3050;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  color: var(--da-white);
  background: var(--da-navy);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

.download-apps *,
.download-apps *::before,
.download-apps *::after { box-sizing: border-box; }

/* The real lattice artwork from the reference, placed behind the download links. */
.download-apps__pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.download-apps__pattern-img {
  position: absolute;
  display: block;
  width: clamp(340px, 36vw, 560px);
  height: auto;
  left: 7%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.38;
  mix-blend-mode: screen;
  user-select: none;
  -webkit-user-drag: none;
}

.download-apps__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 64px, 1500px);
  min-height: calc(100svh - var(--nav-offset, 0px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 88px);
  padding-block: 60px;
  direction: ltr;
}

/* Title sits high and centred; the three links sit low on the left, as in
   the reference. The artwork owns the right column. */
.download-apps__copy { display: contents; }

.download-apps__header {
  position: absolute;
  z-index: 2;
  top: clamp(56px, 13vh, 140px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  margin: 0;
}

.download-apps__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  margin: 0;
  color: var(--da-white);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.035em;
  text-align: center;
}

.download-apps__title-accent { color: var(--da-gold); }

.download-apps__platforms {
  position: absolute;
  z-index: 2;
  left: 11%;
  bottom: 42vh;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.download-apps__platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1.5px solid var(--da-gold);
  border-radius: 9px;
  color: var(--da-white);
  background: transparent;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.download-apps__platform:hover,
.download-apps__platform:focus-visible {
  color: #17294f;
  background: var(--da-gold);
  transform: translateY(-2px);
  outline: none;
}

.download-apps__platform-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--da-gold);
  transition: color 180ms ease;
}

.download-apps__platform:hover .download-apps__platform-icon,
.download-apps__platform:focus-visible .download-apps__platform-icon { color: #17294f; }

.download-apps__platform-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.download-apps__visual {
  position: relative;
  grid-column: 2;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-8%);
  direction: ltr;
}

.download-apps__artwork {
  position: relative;
  width: min(125%, 820px);
  aspect-ratio: 1.55 / 1;
  flex: 0 0 auto;
}

.download-apps__laptop,
.download-apps__phone {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.download-apps__laptop {
  width: 100%;
  left: 0;
  top: 8%;
  filter: drop-shadow(0 26px 30px rgb(0 0 0 / 30%));
}

.download-apps__phone {
  width: 110%;
  left: -5%;
  top: -3%;
  filter: drop-shadow(0 18px 26px rgb(0 0 0 / 32%));
}

@media (min-width: 1600px) {
  .download-apps__inner { width: min(100% - 96px, 1600px); }
}

@media (max-width: 1100px) {
  .download-apps__inner {
    width: min(100% - 48px, 1050px);
    gap: 28px;
    padding-block: 66px;
  }
  .download-apps__title { font-size: clamp(28px, 3.4vw, 40px); }
  .download-apps__platforms { margin-top: 38px; }
}

@media (max-width: 760px) {
  .download-apps { min-height: 0; }

  .download-apps__inner {
    width: min(100% - 40px, 560px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 28px;
    padding-block: 40px;
  }

  .download-apps__copy { display: contents; }

  .download-apps__header {
    position: static;
    transform: none;
    width: 100%;
    order: 1;
    align-self: center;
  }
  .download-apps__title { font-size: clamp(28px, 6.5vw, 37px); line-height: 1.25; }
  .download-apps__platforms {
    position: static;
    left: auto;
    bottom: auto;
    order: 2;
    align-self: center;
    justify-content: center;
    margin-top: 0;
  }
  .download-apps__visual { order: 3; grid-column: auto; transform: none; width: 100%; margin-top: -28px; }

  .download-apps__artwork {
    width: min(120%, 520px);
    aspect-ratio: 1.2 / 1;
  }

  .download-apps__laptop { width: 120%; left: -9%; top: 5%; }
  .download-apps__phone { width: 125%; left: -11%; top: 1%; }

  .download-apps__pattern-img {
    width: min(88vw, 390px);
    left: 50%;
    top: 20%;
    transform: translate(-50%, -50%);
    opacity: 0.24;
  }
}

@media (max-width: 380px) {
  .download-apps__inner { width: calc(100% - 32px); }
  .download-apps__title { font-size: 28px; }
  .download-apps__platform { min-height: 42px; padding-inline: 13px; font-size: 15px; }
  .download-apps__platform-icon { width: 19px; height: 19px; flex-basis: 19px; }
  .download-apps__laptop { width: 118%; left: -6%; top: 4%; }
}

@media (prefers-reduced-motion: reduce) {
  .download-apps__platform { transition: none; }
}


/* ===== Section 07 — Contact ===== */
/* =========================================================
   Section 07 — Contact Phone
   Card = canvas. Text and phone positioned independently
   with percentages, so each can move without affecting the other.
   ========================================================= */





:root {
  --about-section-bottom: #0b223c;
  --about-white: #f7f8fb;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--about-section-bottom);
  color: var(--about-white);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
}

/* ================= Section 07 — Contact ================= */
.contact-phone {
  --cp-card: #cbaf5e;
  --cp-white: #f7f8fb;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.4vw, 36px);
  background: #1b3050;
  overflow: hidden;
}

.contact-phone *,
.contact-phone *::before,
.contact-phone *::after { box-sizing: border-box; }

.contact-phone__inner {
  width: 88%;
  margin-inline: auto;
}

.contact-phone__card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 460px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(203, 175, 94, 0.16);
  border-radius: 28px;
  background: #1b3050;
}

.contact-phone__pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/back.png") left center / auto 100% no-repeat;
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
}

.contact-phone__scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.contact-phone__scene img {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
}

.contact-phone__particles {
  width: 34%;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
}

.contact-phone__portal {
  width: 22%;
  left: 19%;
  top: 50%;
  transform: translateY(-50%) rotate(135deg);
}

.contact-phone__icons {
  width: 40%;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
}

/* ===== Contact scene — entrance sequence =====
   After Effects → CSS equivalents:
   "pop up"           = scale() keyframes with a small overshoot
   "fade in / opacity"= opacity 0 → 1
   "after 0.5 s"      = animation-delay
   "linear path"      = translate() keyframes, linear timing
   "wiggle position"  = translateY() keyframes only — no rotation
   Each motion lives on its own nested layer so the transforms compose. */

/* The no-JS / pre-observer state is the finished composition. JS adds
   .is-armed first (hide), then .is-playing when the section enters view. */
.contact-phone.is-armed:not(.is-playing) .contact-phone__portal,
.contact-phone.is-armed:not(.is-playing) .contact-phone__particles,
.contact-phone.is-armed:not(.is-playing) .contact-phone__icons,
.contact-phone.is-armed:not(.is-playing) .contact-phone__plane-scale {
  opacity: 0;
}

/* Portal — first: pop up + fade in. */
.contact-phone.is-playing .contact-phone__portal {
  animation: cp-pop-portal 700ms cubic-bezier(.2, .85, .25, 1.25) both;
}

/* Particles — same pop + fade, half a second later. */
.contact-phone.is-playing .contact-phone__particles {
  animation: cp-pop 700ms 500ms cubic-bezier(.2, .85, .25, 1.25) both;
}

/* Icons — pop up after the particles. */
.contact-phone.is-playing .contact-phone__icons {
  animation: cp-pop 700ms 1000ms cubic-bezier(.2, .85, .25, 1.25) both;
}

/* Full-scene travel layer: a defined straight path from the portal centre
   (30%, 50%) to an open area clear of the title and contact text. */
.contact-phone__plane-travel {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  --cp-dx: 30%;
  --cp-dy: -14%;
  transform: translate(0%, 0%);
  will-change: transform;
}

.contact-phone.is-playing .contact-phone__plane-travel {
  animation: cp-travel 1800ms 1500ms linear both;
}

/* Float layer: wiggle position only, starts when the flight ends. */
.contact-phone__plane-float {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  will-change: transform;
}

.contact-phone.is-playing .contact-phone__plane-float {
  animation: cp-float 2600ms 3300ms ease-in-out infinite;
}

/* Grow layer: fade in + scale 0 → 1 while the plane travels. */
.contact-phone__plane-scale {
  position: absolute;
  left: 30%;   /* portal centre x */
  top: 50%;    /* portal centre y */
  display: block;
  width: clamp(90px, 18%, 220px);
  transform: translate(-50%, -50%) scale(1);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.contact-phone.is-playing .contact-phone__plane-scale {
  animation: cp-grow 1800ms 1500ms ease-out both;
}

.contact-phone__scene .contact-phone__plane {
  display: block;
  position: static; /* override .contact-phone__scene img { position: absolute } */
  width: 100%;
  height: auto;
  max-width: none;
  /* The artwork's nose points left; mirror it so it follows the rightward path. */
  transform: scaleX(-1);
}

@keyframes cp-pop {
  0%   { opacity: 0; transform: translateY(-50%) scale(.55); }
  65%  { opacity: 1; transform: translateY(-50%) scale(1.06); }
  100% { opacity: 1; transform: translateY(-50%) scale(1); }
}

@keyframes cp-pop-portal {
  0%   { opacity: 0; transform: translateY(-50%) rotate(135deg) scale(.35); }
  65%  { opacity: 1; transform: translateY(-50%) rotate(135deg) scale(1.08); }
  100% { opacity: 1; transform: translateY(-50%) rotate(135deg) scale(1); }
}

@keyframes cp-travel {
  from { transform: translate(0%, 0%); }
  to   { transform: translate(var(--cp-dx), var(--cp-dy)); }
}

@keyframes cp-grow {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes cp-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.contact-phone__content {
  position: absolute;
  top: 22%;
  right: 4%;
  z-index: 3;
  max-width: 45%;
  text-align: right;
}

.contact-phone__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.contact-phone__title-accent {
  color: var(--cp-card);
  font-size: clamp(24px, 3.1vw, 42px);
  font-weight: 900;
}

.contact-phone__title-main {
  color: var(--cp-white);
  font-size: clamp(17px, 2.6vw, 37px);
  font-weight: 900;
}

.contact-phone__contact {
  position: absolute;
  left: 3%;
  bottom: 8%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
  direction: ltr;
  text-align: left;
  color: var(--cp-card);
  font-size: clamp(12px, 1.1vw, 16px);
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.contact-phone__contact a {
  color: inherit;
  text-decoration: none;
}

.contact-phone__contact a:hover { text-decoration: underline; }

.contact-phone__contact-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-phone__contact-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--cp-card);
  opacity: 0.9;
}

.contact-phone__button {
  position: absolute;
  right: 27%;
  bottom: 11%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 24px;
  border: 1.5px solid var(--cp-card);
  border-radius: 9px;
  color: var(--cp-card);
  background: transparent;
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.contact-phone__button:hover {
  color: #17294f;
  background: var(--cp-card);
  transform: translateY(-2px);
}

.contact-phone__socials {
  position: absolute;
  right: 4%;
  bottom: 9%;
  z-index: 3;
  display: flex;
  gap: 12px;
}

.contact-phone__social {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #17294f;
  background: var(--cp-card);
  transition: transform 180ms ease, background-color 180ms ease;
}

.contact-phone__social:hover {
  transform: translateY(-2px);
  background: #e3c877;
}

.contact-phone__social:focus-visible {
  outline: 3px solid var(--cp-white);
  outline-offset: 3px;
}

.contact-phone__social svg {
  display: block;
  width: 55%;
  height: 55%;
}

@media (max-width: 1100px) {
  .contact-phone { padding: 40px 16px; }
  .contact-phone__inner {
    width: 100%;
    max-width: none;
  }
  .contact-phone__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    aspect-ratio: auto;
    min-height: 0;
    padding: 0 20px 30px;
    border-radius: 22px;
  }

  .contact-phone__scene {
    position: relative;
    inset: auto;
    height: clamp(240px, 58vw, 380px);
    margin: 178px -20px 8px;
  }

  .contact-phone__particles { width: 75%; left: -19%; top: -4%; }
  .contact-phone__portal { width: 60%; left: -13%; top: 3%; }
  .contact-phone__icons { width: 70%; left: -4%; top: -1%; }

  /* Mobile: the portal ring centre is at ~15%, 8% — the plane must fade in
     there, then fly down-right into the empty area below the artwork. */
  .contact-phone__plane-scale { left: 15%; top: 0%; width: clamp(96px, 71%, 270px); }
  .contact-phone__plane-travel { --cp-dx: 50%; --cp-dy: -7%; }

  .contact-phone__content {
    position: static;
    max-width: none;
    text-align: center;
  }

  .contact-phone__title { align-items: center; }

  .contact-phone__contact {
    position: static;
    align-items: center;
    text-align: center;
    margin-top: 16px;
  }

  .contact-phone__button {
    position: static;
    align-self: center;
    margin-top: 18px;
  }

  .contact-phone__socials {
    position: static;
    justify-content: center;
    margin-top: 18px;
  }
}

@media (max-width: 380px) {
  .contact-phone { padding: 30px 12px; }
  .contact-phone__card { padding: 0 16px 26px; }
  .contact-phone__scene { margin: 0 -16px 6px; height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  /* Show the finished composition immediately, no motion. */
  .contact-phone.is-armed:not(.is-playing) .contact-phone__portal,
  .contact-phone.is-armed:not(.is-playing) .contact-phone__particles,
  .contact-phone.is-armed:not(.is-playing) .contact-phone__icons,
  .contact-phone.is-armed:not(.is-playing) .contact-phone__plane-scale {
    opacity: 1;
  }

  .contact-phone.is-playing .contact-phone__portal,
  .contact-phone.is-playing .contact-phone__particles,
  .contact-phone.is-playing .contact-phone__icons,
  .contact-phone.is-playing .contact-phone__plane-travel,
  .contact-phone.is-playing .contact-phone__plane-float,
  .contact-phone.is-playing .contact-phone__plane-scale {
    animation: none !important;
  }

  /* Final resting pose of the travel layer. */
  .contact-phone__plane-travel { transform: translate(var(--cp-dx), var(--cp-dy)); }
  .contact-phone__plane-scale { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}



/* =========================================================
   Layout
   Desktop (mouse, wider than 1100px): every section is exactly one screen.
   Wheel and keys move one section at a time.
   Tablet and phone (touch, or 1100px and narrower): natural smooth scrolling.
   A screen-sized section moves one section per swipe; a taller section scrolls
   normally until its content ends.
   ========================================================= */

html {
  scrollbar-width: none;
}

/* While the footer is active the section stepper is off: let native scroll move. */
html.footer-scroll-zone {
  scroll-snap-type: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
main > section::-webkit-scrollbar,
.sections-split > section::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  overflow-x: clip;
}

/* ===== Fixed navbar offset: section content must start below the header ===== */
:root {
  --nav-offset: 76px;
}

main {
  padding-top: var(--nav-offset);
}

main > section,
.sections-split > section {
  scroll-margin-top: var(--nav-offset);
}

@media (min-width: 1101px) and (pointer: fine) {
  main > section,
  .sections-split > section {
    min-height: calc(100vh - var(--nav-offset));
    min-height: calc(100svh - var(--nav-offset));
  }
}

@media (max-width: 1100px), (pointer: coarse) {
  :root {
    --nav-offset: 72px;
  }

  main > section,
  .sections-split > section {
    height: auto !important;
    min-height: calc(100svh - var(--nav-offset)) !important;
    max-height: none !important;
    overflow-x: clip !important;
    overflow-y: clip !important;
  }
}


/* ===== Images: never selectable, draggable or long-press callout ===== */
img,
svg,
picture {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
img::selection,
svg::selection {
  background: transparent;
}

/* ===== Alternating sections, driven by the numeric section id =====
   Odd-id sections (1, 3, 5 …) carry .section--flip in the markup so the
   layout is correct on the very first paint — no JS class toggling and
   therefore no mid-load shift. The columns are swapped with `order`,
   NOT with `direction`, so every text element stays right-to-left.
   Stacked mobile layouts keep their own sequence. */

@media (min-width: 761px) {
  .sections-split > section.section--flip [class$="__visual"] {
    order: -1;
  }
  .sections-split > section.section--flip [class$="__content"] {
    justify-self: start;
  }

  /* about-platform is the one section using named grid areas. */
  .sections-split > section.section--flip .about-platform__inner {
    grid-template-areas: "visual content";
  }
  .sections-split > section.section--flip .about-platform__visual {
    justify-self: end;
  }
}

/* Persian copy always reads right-to-left, on either side of the page. */
.sections-split > section [class$="__content"] {
  direction: rtl;
}

/* ===== Shared two-column shell for sections 02-07 ===== */
.sections-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
}

.sections-split > section {
  grid-column: 1 / -1;
  min-width: 0;
}

@media (min-width: 851px) {
  .about-platform {
    padding-inline: 0;
  }

  .about-platform__inner {
    width: min(100% - 64px, 1500px);
    gap: clamp(36px, 5vw, 88px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-platform__content {
    max-width: 590px;
  }
}

@media (min-width: 851px) and (max-width: 1100px) {
  .about-platform__inner {
    width: min(100% - 48px, 1050px);
    gap: 28px;
  }
}

/* ===== Two consistent button columns =====
   Left-text sections: buttons flush with the left edge of their text column.
   Right-text sections: buttons flush with the right edge of their text column.
   Text stays right-aligned inside its own block. */
@media (min-width: 851px) {
  .about-platform__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .about-platform__button {
    position: static;
    right: auto;
  }
}


/* ===== Id-driven parity for the custom full-bleed sections =====
   Odd ids: artwork right, copy left. Even ids: artwork left, copy right.
   Scoped to desktop so mobile stacking keeps its own order. */
@media (min-width: 901px) {
  /* id 5 — active factories */
  .sections-split > section.active-factories.section--flip .active-factories__layers {
    left: auto;
    right: 0;
  }
  .sections-split > section.active-factories.section--flip .active-factories__copy {
    margin-inline-start: auto;
    margin-inline-end: 0;
  }

  /* id 9 — brandino */
  .sections-split > section.brandino.section--flip .brandino__inner {
    align-items: flex-end;
  }
  .sections-split > section.brandino.section--flip .brandino__title {
    align-items: flex-end;
    text-align: left;
  }
  .sections-split > section.brandino.section--flip .brandino__button {
    align-self: flex-end;
    margin-inline-start: 0;
    margin-inline-end: 0;
  }
  .sections-split > section.brandino.section--flip .brandino__billboard {
    left: auto;
    right: 0;
    object-position: right bottom;
  }

  /* id 10 — download (even: artwork left, copy right) */
  .sections-split > section.download-apps .download-apps__visual {
    grid-column: 1;
    transform: translateX(8%);
  }
  .sections-split > section.download-apps .download-apps__platforms {
    left: auto;
    right: 11%;
  }

  /* id 11 — contact */
  .sections-split > section.contact-phone.section--flip .contact-phone__scene {
    transform: scaleX(-1);
  }
  .sections-split > section.contact-phone.section--flip .contact-phone__content {
    right: auto;
    left: 4%;
    text-align: left;
  }
  .sections-split > section.contact-phone.section--flip .contact-phone__title {
    align-items: flex-start;
  }
  .sections-split > section.contact-phone.section--flip .contact-phone__contact {
    left: auto;
    right: 3%;
    text-align: right;
  }
  .sections-split > section.contact-phone.section--flip .contact-phone__button {
    right: auto;
    left: 27%;
  }
  .sections-split > section.contact-phone.section--flip .contact-phone__socials {
    right: auto;
    left: 4%;
  }
}

@media (min-width: 761px) {
  .features-project__content,
  .iran-projects__content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  /* Headers always sit at the right edge of their own section. */
  .features-project__header,
  .iran-projects__header {
    align-self: flex-start;
  }

  .features-factory__content,
  .features-smartphone__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}