:root {
  --bg: #0c0f12;
  --surface: #14191e;
  --surface-2: #1b2229;
  --surface-3: #242c34;
  --text: #f4f5f6;
  --muted: #b9c0c7;
  --line: rgba(255,255,255,.12);
  --accent: #eea33a;
  --accent-2: #a487bd;
  --success: #72c89a;
  --shadow: 0 24px 80px rgba(0,0,0,.28);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Tahoma, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
body[dir="rtl"] { font-family: Tahoma, Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 9999;
  inset-inline-start: 1rem;
  top: -5rem;
  background: var(--accent);
  color: #15100a;
  padding: .75rem 1rem;
  border-radius: 0 0 12px 12px;
  font-weight: 800;
}
.skip-link:focus { top: 0; }

.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.section { padding: 6.5rem 0; }
.section-compact { padding: 4rem 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)); }

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 800;
}
body[dir="rtl"] .eyebrow { letter-spacing: 0; }

.section-heading { max-width: 760px; margin-bottom: 2.25rem; }
.section-heading h2 { margin: 0 0 .85rem; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.12; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  inset-inline: 0;
  height: 82px;
  background: rgba(8, 11, 14, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; min-width: max-content; }
.brand img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; border: 1px solid rgba(255,255,255,.14); }
.brand-text { display: grid; line-height: 1.2; }
.brand-text strong { font-size: 1rem; }
.brand-text span { color: var(--muted); font-size: .72rem; }

.nav-wrap { display: flex; align-items: center; gap: 1rem; }
.primary-nav { display: flex; align-items: center; gap: 1.35rem; }
.primary-nav a { color: #d8dde2; text-decoration: none; font-size: .92rem; font-weight: 700; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--accent); }

.language-switcher { display: flex; align-items: center; gap: .3rem; border: 1px solid var(--line); border-radius: 999px; padding: .25rem; }
.language-switcher a { text-decoration: none; color: var(--muted); font-size: .76rem; font-weight: 800; padding: .38rem .58rem; border-radius: 999px; }
.language-switcher a[aria-current="page"] { background: var(--surface-3); color: #fff; }

.menu-toggle { display: none; background: transparent; color: #fff; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: .2s ease; }

.hero {
  min-height: 850px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  background: #0a0d10 url('../img/hero.webp') center/cover no-repeat;
  padding-top: 82px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5,7,9,.94) 0%, rgba(5,7,9,.78) 42%, rgba(5,7,9,.38) 72%, rgba(5,7,9,.66) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 32%);
}
body[dir="rtl"] .hero::before {
  background:
    linear-gradient(270deg, rgba(5,7,9,.94) 0%, rgba(5,7,9,.78) 42%, rgba(5,7,9,.38) 72%, rgba(5,7,9,.66) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 32%);
}
.hero-content { width: min(800px, 100%); padding: 5rem 0 3rem; }
.hero-logo { width: 86px; height: 86px; object-fit: cover; border-radius: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.16); margin-bottom: 1.5rem; }
.hero h1 { margin: 0; font-size: clamp(3rem, 7vw, 6.6rem); line-height: .98; letter-spacing: -.035em; max-width: 850px; }
body[dir="rtl"] .hero h1 { letter-spacing: 0; }
.hero h1 span { color: var(--accent); display: block; }
.hero-lead { margin: 1.5rem 0 0; max-width: 700px; font-size: clamp(1.05rem, 2vw, 1.28rem); color: #d7dce1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .82rem 1.2rem; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #18110a; }
.btn-secondary { border-color: var(--line); background: rgba(255,255,255,.06); color: #fff; }
.btn-ghost { border-color: var(--line); color: #fff; }

.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 3rem; max-width: 720px; }
.stat { padding: 1rem; background: rgba(20,25,30,.72); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; backdrop-filter: blur(8px); }
.stat strong { display: block; font-size: 1.2rem; color: #fff; }
.stat span { color: var(--muted); font-size: .82rem; }

.trust-strip { margin-top: -1px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #101419; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 1.4rem 1rem; text-align: center; border-inline-end: 1px solid var(--line); color: #d7dce1; font-weight: 700; }
.trust-item:last-child { border-inline-end: 0; }
.trust-item span { color: var(--accent); margin-inline-end: .4rem; }

.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split.reverse .media-card { order: 2; }
.media-card { position: relative; min-height: 560px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); }
.media-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.media-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.35), transparent 55%); }
.media-badge { position: absolute; z-index: 2; inset-inline-start: 1.25rem; bottom: 1.25rem; background: rgba(8,11,14,.82); border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; max-width: 80%; backdrop-filter: blur(10px); }
.media-badge strong { display: block; }
.media-badge span { color: var(--muted); font-size: .86rem; }
.content-block h2 { margin: 0 0 1.25rem; font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1.12; }
.content-block p { color: var(--muted); font-size: 1.05rem; }
.key-list { display: grid; gap: .8rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.key-list li { display: flex; gap: .75rem; align-items: flex-start; }
.key-list li::before { content: "✓"; flex: 0 0 1.65rem; height: 1.65rem; display: grid; place-items: center; border-radius: 50%; background: rgba(238,163,58,.14); color: var(--accent); font-weight: 900; margin-top: .15rem; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature-card, .product-card, .application-card, .process-card, .contact-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card { padding: 1.35rem; min-height: 210px; }
.feature-number { color: var(--accent); font-weight: 900; font-size: .82rem; letter-spacing: .08em; }
.feature-card h3 { margin: .55rem 0 .45rem; font-size: 1.15rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .93rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.product-card img { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.product-body { padding: 1.2rem; }
.product-body h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.product-body p { margin: 0; color: var(--muted); font-size: .93rem; }
.product-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.tag { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: #dfe3e7; border-radius: 999px; padding: .28rem .55rem; font-size: .72rem; }

.application-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.application-card { padding: 1.2rem; min-height: 220px; }
.application-icon { width: 46px; height: 46px; display: grid; place-items: center; background: rgba(164,135,189,.14); border: 1px solid rgba(164,135,189,.28); border-radius: 14px; font-size: 1.45rem; }
.application-card h3 { margin: 1rem 0 .45rem; font-size: 1.05rem; }
.application-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.process-wrap { position: relative; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.process-card { padding: 1.35rem; position: relative; }
.process-card::before { content: attr(data-step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: #17110a; font-weight: 900; margin-bottom: .8rem; }
.process-card h3 { margin: 0 0 .4rem; }
.process-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.gallery { display: grid; grid-template-columns: 1.3fr .7fr .7fr; grid-template-rows: 260px 260px; gap: 1rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.gallery figure:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption { position: absolute; inset-inline: .9rem; bottom: .9rem; padding: .55rem .7rem; border-radius: 12px; background: rgba(8,11,14,.78); backdrop-filter: blur(8px); font-size: .82rem; }

.download-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border: 1px solid var(--line); background: linear-gradient(100deg, rgba(238,163,58,.12), rgba(164,135,189,.1)); border-radius: var(--radius); padding: 1.5rem; }
.download-panel h3 { margin: 0 0 .3rem; }
.download-panel p { margin: 0; color: var(--muted); }

.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1rem; }
.contact-stack { display: grid; gap: 1rem; }
.contact-card { padding: 1.25rem; }
.contact-card h3 { margin: 0 0 .65rem; }
.contact-card p, .contact-card address { margin: 0; color: var(--muted); font-style: normal; }
.contact-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .9rem; }
.contact-links a { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: .48rem .7rem; font-size: .84rem; }
/* Keep telephone digits in their written order inside RTL Persian text. */
.phone-number {
  display: inline-flex;
  flex-direction: row;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  gap: .32em;
  font-variant-numeric: tabular-nums;
}
.phone-number > span {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

.contact-links a:hover { border-color: var(--accent); color: var(--accent); }
.quote-panel { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.5rem, 5vw, 3rem); border-radius: var(--radius); background: linear-gradient(135deg, #242c34, #151a20); border: 1px solid var(--line); }
.quote-panel h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; }
.quote-panel p { color: var(--muted); }
.quote-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }

.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.footer-links { display: flex; gap: .8rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-size: .85rem; }
.footer-links a:hover { color: var(--accent); }

.notice { border-inline-start: 3px solid var(--accent); padding: .9rem 1rem; background: rgba(238,163,58,.08); border-radius: 10px; color: #ddd; font-size: .92rem; }

@media (max-width: 1000px) {
  .primary-nav { position: fixed; top: 82px; inset-inline: 1rem; display: none; flex-direction: column; align-items: stretch; padding: 1rem; background: rgba(12,15,18,.98); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .65rem .4rem; }
  .menu-toggle { display: block; }
  .language-switcher { margin-inline-start: auto; }
  .split, .contact-layout { grid-template-columns: 1fr; }
  .media-card { min-height: 480px; }
  .split.reverse .media-card { order: initial; }
  .cards, .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .application-grid, .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 350px 240px 240px; }
  .gallery figure:first-child { grid-column: 1 / 3; grid-row: auto; }
}

@media (max-width: 680px) {
  .site-header { height: 72px; }
  .brand img { width: 44px; height: 44px; }
  .brand-text span { display: none; }
  .language-switcher a { padding: .32rem .42rem; }
  .primary-nav { top: 72px; }
  .hero { min-height: 760px; padding-top: 72px; background-position: 58% center; }
  .hero-content { padding-top: 4rem; }
  .hero h1 { font-size: clamp(2.75rem, 15vw, 4.7rem); }
  .hero-stats { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-inline-end: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 4.5rem 0; }
  .cards, .product-grid, .application-grid, .process-grid { grid-template-columns: 1fr; }
  .media-card { min-height: 420px; }
  .gallery { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(5, 260px); }
  .gallery figure:first-child { grid-column: auto; }
  .download-panel, .footer-inner { align-items: flex-start; flex-direction: column; }
  .hero-actions .btn, .quote-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.content-block .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.5rem; }
@media (max-width: 680px) { .content-block .process-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Responsive presentation upgrade — cache-busted v4
   ===================================================================== */
html, body { width: 100%; max-width: 100%; }
body { overflow-x: clip; }
main, section, header, footer { max-width: 100%; }
.container { width: min(var(--max), calc(100% - clamp(1.25rem, 4vw, 3rem))); }

/* Full-screen animated intro. It is fixed and never participates in page flow. */
.has-intro { overflow: hidden; }
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1rem, 4vw, 3rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(238,163,58,.22), transparent 27%),
    radial-gradient(circle at 82% 72%, rgba(164,135,189,.22), transparent 30%),
    linear-gradient(145deg, #070a0d, #0c1117 55%, #080b0e);
  color: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity .72s ease, visibility .72s ease;
}
.intro-screen.is-closing { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-particles,
.intro-particles::before,
.intro-particles::after {
  content: "";
  position: absolute;
  inset: -15%;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.24) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(238,163,58,.22) 0 1.2px, transparent 2px);
  background-size: 72px 72px, 118px 118px;
  background-position: 0 0, 38px 26px;
  opacity: .32;
  animation: introDrift 18s linear infinite;
}
.intro-particles::before { transform: rotate(17deg) scale(1.08); animation-duration: 24s; }
.intro-particles::after { transform: rotate(-12deg) scale(.96); animation-direction: reverse; animation-duration: 29s; }
.intro-card {
  position: relative;
  z-index: 2;
  width: min(92vw, 760px);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: clamp(22px, 4vw, 36px);
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  box-shadow: 0 38px 110px rgba(0,0,0,.42);
  backdrop-filter: blur(22px);
  transform: translateY(28px) scale(.965);
  opacity: 0;
  animation: introCardIn .9s .12s cubic-bezier(.2,.8,.2,1) forwards;
}
.intro-logo-wrap {
  position: relative;
  width: clamp(106px, 18vw, 148px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
}
.intro-logo {
  position: relative;
  z-index: 2;
  width: clamp(76px, 13vw, 104px);
  height: clamp(76px, 13vw, 104px);
  border-radius: 26px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 60px rgba(0,0,0,.44), 0 0 45px rgba(238,163,58,.13);
  animation: introLogoFloat 3.1s ease-in-out infinite;
}
.intro-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(238,163,58,.42);
  box-shadow: inset 0 0 28px rgba(238,163,58,.08);
}
.intro-ring-a { animation: introRingSpin 7s linear infinite; }
.intro-ring-b { inset: 12%; border-color: rgba(164,135,189,.42); animation: introRingSpin 5.4s linear infinite reverse; }
.intro-ring::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  top: 8%;
  left: 50%;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(238,163,58,.75);
}
.intro-kicker {
  margin: 0 0 .55rem;
  color: var(--accent);
  font-size: clamp(.72rem, 1.5vw, .88rem);
  font-weight: 900;
  letter-spacing: .22em;
}
body[dir="rtl"] .intro-kicker { letter-spacing: .08em; }
.intro-card h2 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.05;
  text-wrap: balance;
}
.intro-card > p:not(.intro-kicker) {
  max-width: 58ch;
  margin: 1rem auto 0;
  color: #d7dce2;
  font-size: clamp(.95rem, 2vw, 1.15rem);
}
.intro-progress {
  width: min(310px, 75%);
  height: 3px;
  margin: 1.5rem auto 0;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.1);
}
.intro-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left;
  animation: introProgress 2.5s linear forwards;
}
body[dir="rtl"] .intro-progress span { transform-origin: right; }
.intro-skip {
  margin-top: 1.15rem;
  padding: .72rem 1.1rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.065);
  cursor: pointer;
  font-weight: 800;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.intro-skip:hover,
.intro-skip:focus-visible { transform: translateY(-2px); border-color: rgba(238,163,58,.5); background: rgba(238,163,58,.13); }

/* Header and hero scale smoothly across all common viewport sizes. */
.site-header { width: 100%; }
.header-inner { min-width: 0; }
.brand { min-width: 0; }
.brand-text { min-width: 0; }
.brand-text strong, .brand-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-wrap { min-width: 0; }
.primary-nav { min-width: 0; }
.hero {
  min-height: max(720px, 100svh);
  width: 100%;
  overflow: hidden;
  background-position: center;
}
.hero-content { max-width: min(800px, 100%); }
.hero h1 {
  max-width: 100%;
  font-size: clamp(3rem, 6.5vw, 6.5rem);
  overflow-wrap: anywhere;
}
.hero h1 span { margin-top: .1em; }
.hero-lead { max-width: 62ch; }
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: 5%;
  top: 18%;
  width: min(34vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238,163,58,.18), rgba(164,135,189,.09) 48%, transparent 72%);
  filter: blur(18px);
  animation: heroGlow 11s ease-in-out infinite;
}

/* Image reliability and predictable sizing. */
img { height: auto; }
.media-card img,
.product-card img,
.gallery img { object-position: center center; }
.product-card img {
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
  background: var(--surface-2);
}
.gallery figure { min-width: 0; }
.gallery img { min-width: 100%; }

/* Dynamic but restrained interaction. */
.feature-card,
.product-card,
.application-card,
.process-card,
.contact-card,
.quote-panel,
.download-panel,
.gallery figure,
.media-card,
.stat,
.btn {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease, background .35s ease;
}
.feature-card:hover,
.product-card:hover,
.application-card:hover,
.process-card:hover,
.contact-card:hover,
.quote-panel:hover,
.download-panel:hover,
.gallery figure:hover,
.media-card:hover,
.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(238,163,58,.36);
  box-shadow: 0 26px 70px rgba(0,0,0,.24);
}
.product-card img,
.media-card img,
.gallery img { transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.product-card:hover img,
.media-card:hover img,
.gallery figure:hover img { transform: scale(1.035); }

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(.985);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.ambient-toggle {
  position: fixed;
  z-index: 1400;
  inset-inline-end: clamp(.75rem, 2vw, 1.25rem);
  bottom: clamp(.75rem, 2vw, 1.25rem);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  max-width: calc(100vw - 1.5rem);
  padding: .68rem .9rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #fff;
  background: rgba(12,17,22,.82);
  box-shadow: 0 18px 45px rgba(0,0,0,.3);
  backdrop-filter: blur(14px);
  cursor: pointer;
}
.ambient-toggle.is-active { border-color: rgba(238,163,58,.45); background: linear-gradient(135deg, rgba(238,163,58,.2), rgba(164,135,189,.15)); }
.ambient-icon { display:grid; place-items:center; width:1.8rem; height:1.8rem; border-radius:50%; background:rgba(255,255,255,.08); }
.ambient-label { font-size: .78rem; font-weight: 800; white-space: nowrap; }

.notice { overflow-wrap: anywhere; }
.contact-links a { max-width: 100%; overflow-wrap: anywhere; }

@keyframes introDrift { to { transform: translate3d(72px, 72px, 0); } }
@keyframes introCardIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes introLogoFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-7px) rotate(-1.5deg); } }
@keyframes introRingSpin { to { transform: rotate(360deg); } }
@keyframes introProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes heroGlow { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-18px,16px,0) scale(1.08); } }

/* Laptop / small desktop */
@media (max-width: 1180px) {
  .primary-nav { gap: .95rem; }
  .primary-nav a { font-size: .86rem; }
  .brand-text span { max-width: 190px; }
  .application-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* Tablets and compact navigation */
@media (max-width: 1024px) {
  .site-header { height: 76px; }
  .header-inner { gap: .65rem; }
  .brand img { width: 46px; height: 46px; }
  .primary-nav { top: 76px; }
  .hero { padding-top: 76px; min-height: 780px; }
  .split, .contact-layout { grid-template-columns: 1fr; }
  .split .media-card, .split.reverse .media-card { order: 0; }
  .media-card { min-height: clamp(360px, 62vw, 560px); }
  .cards, .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .application-grid, .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: 360px 260px 260px; }
  .gallery figure:first-child { grid-column: 1 / -1; grid-row: auto; }
}

/* Small tablets */
@media (max-width: 760px) {
  .container { width: min(100% - 1.25rem, var(--max)); }
  .section { padding: 4.75rem 0; }
  .section-compact { padding: 3rem 0; }
  .hero { min-height: 760px; background-position: 58% center; }
  .hero-content { padding: 4.25rem 0 2.5rem; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4.8rem); }
  .hero-stats { grid-template-columns: 1fr; max-width: 100%; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(2n) { border-inline-end: 0; }
  .trust-item:nth-last-child(-n+2) { border-bottom: 0; }
  .cards, .product-grid, .application-grid, .process-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery figure, .gallery figure:first-child { grid-column: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .download-panel, .footer-inner { flex-direction: column; align-items: flex-start; }
  .quote-actions, .hero-actions { width: 100%; }
  .quote-actions .btn, .hero-actions .btn { flex: 1 1 100%; }
}

/* Phones */
@media (max-width: 560px) {
  .site-header { height: 68px; }
  .brand img { width: 42px; height: 42px; border-radius: 11px; }
  .brand-text strong { font-size: .9rem; max-width: 118px; }
  .brand-text span { display: none; }
  .language-switcher { gap: .15rem; padding: .18rem; }
  .language-switcher a { padding: .3rem .42rem; font-size: .7rem; }
  .menu-toggle { width: 40px; height: 40px; }
  .primary-nav { top: 68px; inset-inline: .65rem; }
  .hero { padding-top: 68px; min-height: 720px; }
  .hero-logo { width: 72px; height: 72px; border-radius: 18px; }
  .hero h1 { font-size: clamp(2.6rem, 15vw, 4rem); line-height: 1.02; }
  .hero-lead { font-size: 1rem; }
  .section-heading h2, .content-block h2 { font-size: clamp(2rem, 11vw, 3rem); overflow-wrap: anywhere; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-inline-end: 0; }
  .trust-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .media-card { min-height: 360px; }
  .contact-links { flex-direction: column; align-items: stretch; }
  .contact-links a { justify-content: center; text-align: center; }
  .ambient-toggle { inset-inline: .65rem; justify-content: center; }
  .intro-card { padding: 1.4rem 1rem; }
  .intro-card h2 { font-size: clamp(1.8rem, 10vw, 2.8rem); }
}

@media (max-height: 620px) and (orientation: landscape) {
  .intro-card { transform: scale(.86); }
  .intro-logo-wrap { width: 90px; margin-bottom: .6rem; }
  .intro-logo { width: 64px; height: 64px; border-radius: 18px; }
  .intro-card h2 { font-size: clamp(1.6rem, 6vh, 2.7rem); }
  .intro-card > p:not(.intro-kicker) { margin-top: .55rem; }
  .intro-progress { margin-top: .75rem; }
  .intro-skip { margin-top: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-particles, .intro-particles::before, .intro-particles::after,
  .intro-logo, .intro-ring, .hero::after { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== Mine workers intro animation ===== */
.intro-scene {
  position: relative;
  z-index: 2;
  width: min(100%, 640px);
  margin: 1.25rem auto 1rem;
}
.mine-scene {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 18px 50px rgba(0,0,0,.26);
}
.excavator {
  transform-origin: 45px 38px;
  animation: excavatorBounce 2.8s ease-in-out infinite;
}
.excavator-arm {
  transform-origin: 0px 6px;
  animation: excavatorArmLift 2.8s ease-in-out infinite;
}
.excavator-forearm {
  transform-origin: 0px 0px;
  animation: excavatorForearmMove 2.8s ease-in-out infinite;
}
.mine-cart {
  animation: cartRoll 2.9s ease-in-out infinite;
}
.worker {
  transform-origin: center 42px;
}
.worker .arm,
.worker .pickaxe,
.worker .shovel {
  transform-box: fill-box;
  transform-origin: top center;
}
.worker-a {
  animation: workerShiftA 2.4s ease-in-out infinite;
}
.worker-a .arm-right,
.worker-a .pickaxe {
  animation: swingPickaxe 2.4s ease-in-out infinite;
}
.worker-b {
  animation: workerShiftB 2.6s ease-in-out infinite .2s;
}
.worker-b .arm-right,
.worker-b .shovel {
  animation: swingShovel 2.6s ease-in-out infinite .2s;
}
.scene-dust {
  transform-origin: center;
}
.dust-a { animation: dustFloat 2.4s ease-in-out infinite; }
.dust-b { animation: dustFloat 2.8s ease-in-out infinite .6s; }
.dust-c { animation: dustFloat 3.2s ease-in-out infinite .2s; }

@keyframes excavatorBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes excavatorArmLift {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-6deg); }
  60% { transform: rotate(4deg); }
}
@keyframes excavatorForearmMove {
  0%, 100% { transform: translate(60px, 18px) rotate(0deg); }
  30% { transform: translate(60px, 18px) rotate(14deg); }
  60% { transform: translate(60px, 18px) rotate(-6deg); }
}
@keyframes cartRoll {
  0%, 100% { transform: translate(296px, 176px); }
  50% { transform: translate(308px, 176px); }
}
@keyframes workerShiftA {
  0%, 100% { transform: translate(462px, 150px); }
  50% { transform: translate(462px, 147px); }
}
@keyframes workerShiftB {
  0%, 100% { transform: translate(570px, 160px); }
  50% { transform: translate(570px, 156px); }
}
@keyframes swingPickaxe {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-14deg); }
  60% { transform: rotate(12deg); }
}
@keyframes swingShovel {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-10deg); }
  60% { transform: rotate(10deg); }
}
@keyframes dustFloat {
  0% { transform: translateY(0) scale(.9); opacity: .15; }
  35% { opacity: .55; }
  100% { transform: translateY(-18px) scale(1.25); opacity: 0; }
}

@media (max-width: 680px) {
  .intro-scene {
    margin-top: 1rem;
    margin-bottom: .9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .excavator, .excavator-arm, .excavator-forearm, .mine-cart, .worker-a, .worker-b, .worker .arm, .worker .pickaxe, .worker .shovel, .scene-dust {
    animation: none !important;
  }
}


/* ===== Expanded responsive gallery v5 ===== */
.gallery.gallery-expanded {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 1rem;
  align-items: start;
}
.gallery.gallery-expanded figure,
.gallery.gallery-expanded figure:first-child {
  grid-column: auto;
  grid-row: auto;
  margin: 0;
  min-width: 0;
  height: auto;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.gallery.gallery-expanded img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  background: #101419;
}
.gallery.gallery-expanded figcaption {
  position: static;
  display: block;
  margin: 0;
  padding: .75rem .9rem;
  border-radius: 0;
  background: rgba(8,11,14,.96);
  backdrop-filter: none;
  color: #e6e9ec;
  line-height: 1.5;
}
@media (max-width: 1000px) {
  .gallery.gallery-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
  .gallery.gallery-expanded figure:first-child { grid-column: auto; }
}
@media (max-width: 620px) {
  .gallery.gallery-expanded {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
}

/* ===== Uniform gallery cards v6 ===== */
.gallery.gallery-expanded {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}
.gallery.gallery-expanded figure,
.gallery.gallery-expanded figure:first-child {
  display: grid;
  grid-template-rows: 1fr auto;
  aspect-ratio: 4 / 3;
  min-width: 0;
  height: auto;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.13);
  background: #11161b;
  box-shadow: 0 14px 38px rgba(0,0,0,.18);
}
.gallery.gallery-expanded img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  background: #11161b;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}
.gallery.gallery-expanded figure:hover img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.03);
}
.gallery.gallery-expanded figcaption {
  position: static;
  min-height: 3.55rem;
  display: flex;
  align-items: center;
  margin: 0;
  padding: .75rem .9rem;
  border-top: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background: rgba(8,11,14,.98);
  color: #edf0f2;
  font-size: .84rem;
  line-height: 1.4;
}
@media (max-width: 1000px) {
  .gallery.gallery-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .gallery.gallery-expanded {
    grid-template-columns: 1fr;
    gap: .95rem;
  }
  .gallery.gallery-expanded figure,
  .gallery.gallery-expanded figure:first-child {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }
}

/* ===== Interactive gallery lightbox v7 ===== */
.gallery.gallery-expanded figure {
  cursor: zoom-in;
  outline: none;
}
.gallery.gallery-expanded figure:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(238,163,58,.25), 0 18px 44px rgba(0,0,0,.28);
}
.gallery.gallery-expanded figure::after {
  content: "↗";
  position: absolute;
  top: .75rem;
  inset-inline-end: .75rem;
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(7,10,13,.72);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-7px) scale(.9);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.gallery.gallery-expanded figure:hover::after,
.gallery.gallery-expanded figure:focus-visible::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: clamp(.75rem, 2vw, 1.5rem);
  background: rgba(3,5,7,.9);
  backdrop-filter: blur(16px) saturate(.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity .34s ease, visibility .34s ease;
}
.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.gallery-lightbox__panel {
  position: relative;
  width: min(94vw, 1180px);
  height: min(88vh, 820px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: clamp(18px, 2vw, 28px);
  border: 1px solid rgba(255,255,255,.15);
  background: #090d11;
  box-shadow: 0 35px 120px rgba(0,0,0,.62);
  transform: scale(.86) translateY(26px);
  opacity: 0;
  transition: transform .48s cubic-bezier(.16,.84,.24,1), opacity .34s ease;
}
.gallery-lightbox.is-open .gallery-lightbox__panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.gallery-lightbox__media {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(238,163,58,.08), transparent 35%),
    #090d11;
}
.gallery-lightbox__image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0;
  transform: scale(.94);
  transition: opacity .34s ease, transform .48s cubic-bezier(.16,.84,.24,1);
}
.gallery-lightbox__image.is-ready {
  opacity: 1;
  transform: scale(1);
}
.gallery-lightbox__caption {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 4.5rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(10,14,18,.98);
  color: #f2f4f5;
  font-size: clamp(.88rem, 1.5vw, 1rem);
}
.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(7,10,13,.76);
  color: #fff;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:focus-visible {
  transform: scale(1.07);
  background: rgba(238,163,58,.22);
  border-color: rgba(238,163,58,.5);
}
.gallery-lightbox__close {
  top: .85rem;
  inset-inline-end: .85rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  font-size: 1.4rem;
}
.gallery-lightbox__nav {
  top: 50%;
  width: 3rem;
  height: 4.6rem;
  border-radius: 16px;
  transform: translateY(-50%);
  font-size: 1.5rem;
}
.gallery-lightbox__nav:hover,
.gallery-lightbox__nav:focus-visible {
  transform: translateY(-50%) scale(1.06);
}
.gallery-lightbox__prev { inset-inline-start: .85rem; }
.gallery-lightbox__next { inset-inline-end: .85rem; }
.gallery-lightbox__counter {
  position: absolute;
  z-index: 3;
  top: .9rem;
  inset-inline-start: .9rem;
  padding: .42rem .7rem;
  border-radius: 999px;
  background: rgba(7,10,13,.72);
  border: 1px solid rgba(255,255,255,.12);
  color: #dce1e5;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}
body.lightbox-open { overflow: hidden; }

@media (max-width: 700px) {
  .gallery-lightbox { padding: .5rem; }
  .gallery-lightbox__panel {
    width: calc(100vw - 1rem);
    height: min(86svh, 760px);
    border-radius: 18px;
  }
  .gallery-lightbox__caption {
    padding: .8rem 3.8rem;
    min-height: 3.7rem;
  }
  .gallery-lightbox__nav {
    width: 2.6rem;
    height: 4rem;
  }
  .gallery-lightbox__prev { inset-inline-start: .4rem; }
  .gallery-lightbox__next { inset-inline-end: .4rem; }
  .gallery-lightbox__close { top: .45rem; inset-inline-end: .45rem; }
  .gallery-lightbox__counter { top: .5rem; inset-inline-start: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox,
  .gallery-lightbox__panel,
  .gallery-lightbox__image { transition: none !important; }
}


/* ===== Gallery quality + polished lightbox v8 ===== */
.gallery.gallery-expanded figure img {
  image-rendering: auto;
  backface-visibility: hidden;
}
.gallery-lightbox__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.05), transparent 55%);
  pointer-events: none;
}
.gallery-lightbox__image {
  filter: saturate(1.02) contrast(1.02);
}
.gallery-lightbox__panel {
  background: linear-gradient(180deg, rgba(12,16,20,.98), rgba(8,11,15,.98));
}
.gallery-lightbox__caption {
  letter-spacing: .01em;
}


/* ===== V9 fixed gallery uniform previews ===== */
.gallery.gallery-expanded {
  align-items: stretch;
}
.gallery.gallery-expanded figure {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
}
.gallery.gallery-expanded figure img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center !important;
  flex: 0 0 auto !important;
}
.gallery.gallery-expanded figcaption {
  min-height: 4.2rem !important;
  flex: 1 0 auto !important;
}
.gallery-lightbox__image {
  image-rendering: auto;
  filter: saturate(1.03) contrast(1.03) !important;
}
