@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');

/* Design tokens */
:root {
  --paper: #f4f1ea;
  --paper-2: #ebe5d9;
  --ink: #11181f;
  --muted: #63717d;
  --line: rgba(17, 24, 31, 0.13);
  --red: #c60e14;
  --red-dark: #8f0a0f;
  --steel: #1f303b;
  --steel-2: #2e4654;
  --sand: #c7a36e;
  --stone: #77695b;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(17, 24, 31, 0.16);
  --radius: 8px;
  --header-height: 92px;
}

/* Base elements */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Vazirmatn', 'IRANSans', 'Yekan Bakh', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

html[lang='en'] body {
  font-family: 'Manrope', Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 clamp(18px, 5vw, 72px);
  background: rgba(244, 241, 234, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(244, 241, 234, 0.94);
  border-color: var(--line);
  box-shadow: 0 12px 34px rgba(17, 24, 31, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 330px;
  flex: 0 0 auto;
}

.brand__mark {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand__mark img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.brand__text {
  display: grid;
  gap: 0;
  line-height: 1.25;
}

.brand__text strong {
  font-size: 1.16rem;
  font-weight: 900;
  white-space: nowrap;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: clamp(12px, 2vw, 28px);
  color: rgba(17, 24, 31, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
}

html[lang='en'] .site-nav {
  gap: clamp(14px, 1.5vw, 26px);
  font-size: 0.9rem;
}

.site-nav a {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  padding: 9px 0;
  white-space: nowrap;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-submenu {
  position: absolute;
  inset-inline-start: 50%;
  top: 100%;
  z-index: 60;
  min-width: 190px;
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(17, 24, 31, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

html[dir='rtl'] .nav-submenu {
  transform: translateX(50%);
}

.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

html[dir='rtl'] .nav-item:hover .nav-submenu,
html[dir='rtl'] .nav-item:focus-within .nav-submenu {
  transform: translateX(50%) translateY(0);
}

.nav-submenu a {
  display: flex;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.86rem;
}

.nav-submenu a:hover {
  background: rgba(198, 14, 20, 0.08);
  color: var(--red);
}

.nav-submenu a::after {
  display: none;
}

.site-nav a::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.lang-link,
.menu-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 900;
}

.lang-link {
  min-width: 54px;
  padding: 0 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: transform 180ms ease;
}

.menu-toggle span + span {
  margin-inline-start: -18px;
  transform: translateY(6px);
}

.menu-open .menu-toggle span:first-child {
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(0) translateX(-18px) rotate(-45deg);
}

html[dir='rtl'] .menu-open .menu-toggle span:last-child {
  transform: translateY(0) translateX(18px) rotate(-45deg);
}

/* Hero sections */
.page-hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--steel);
  color: #fff;
  isolation: isolate;
}

.page-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 16, 22, 0.58), rgba(9, 16, 22, 0.16)),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.22) 100%),
    radial-gradient(circle at 16% 20%, rgba(198, 14, 20, 0.1), transparent 26%);
}

html[dir='rtl'] .page-hero::after {
  background:
    linear-gradient(270deg, rgba(9, 16, 22, 0.6), rgba(9, 16, 22, 0.16)),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.22) 100%),
    radial-gradient(circle at 84% 20%, rgba(198, 14, 20, 0.1), transparent 26%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.34fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
  width: 100%;
  padding: clamp(72px, 9vw, 118px) clamp(20px, 6vw, 82px) clamp(48px, 7vw, 92px);
}

.hero-inner--solo {
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy {
  max-width: 900px;
}

html[lang='en'] .page-hero--home .hero-copy {
  max-width: 1040px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
}

.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy h1 {
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 8vw, 7.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 900;
}

.page-hero--home .hero-copy h1 {
  white-space: nowrap;
  font-size: clamp(3.2rem, 6.4vw, 7.05rem);
}

.hero-title-with-logo {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 20px);
  white-space: nowrap;
}

.hero-title-with-logo img {
  width: auto;
  height: clamp(144px, 18.6vw, 276px);
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22));
}

html[lang='en'] .hero-copy h1 {
  font-size: clamp(3.1rem, 6vw, 6.1rem);
  text-wrap: balance;
}

html[lang='en'] .page-hero--home .hero-copy h1 {
  font-size: clamp(3.1rem, 5.55vw, 6rem);
  white-space: nowrap;
}

.hero-copy p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.04rem, 1.6vw, 1.34rem);
}

.page-hero--about .hero-copy p {
  font-size: 1.29rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.button--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.button--dark {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.hero-panel {
  display: grid;
  gap: 18px;
  align-self: center;
  padding-inline-start: clamp(18px, 3vw, 32px);
  border-inline-start: 1px solid rgba(255, 255, 255, 0.24);
}

html[dir='rtl'] .page-hero--home .hero-panel {
  position: relative;
  left: clamp(-72px, -3.5vw, -30px);
}

html[lang='en'] .page-hero--home .hero-panel {
  position: relative;
  left: clamp(48px, 4.8vw, 104px);
}

.hero-panel strong {
  display: block;
  font-size: clamp(1.65rem, 3.2vw, 3.85rem);
  line-height: 1;
  color: #fff;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

/* Page sections */
.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 82px);
}

.section--white {
  background: #fff;
}

.section--dark {
  background: var(--ink);
  color: #fff;
}

.section--red {
  background:
    linear-gradient(135deg, rgba(198, 14, 20, 0.94), rgba(143, 10, 15, 0.96)),
    var(--red);
  color: #fff;
}

.cta-block {
  max-width: 980px;
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.cta-block h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.18;
}

.cta-block p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.cta-block .button {
  min-height: 58px;
  padding-inline: 34px;
  font-size: 1.05rem;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 36px;
}

.section-heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.45fr);
  align-items: end;
  gap: clamp(24px, 5vw, 76px);
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.section-heading p,
.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.section--dark .section-heading p,
.section--dark .lead,
.section--red .section-heading p,
.section--red .lead {
  color: rgba(255, 255, 255, 0.72);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 150px;
  display: grid;
  align-content: center;
  padding: 24px clamp(18px, 3vw, 38px);
  background: #fff;
}

.metric strong {
  display: block;
  color: var(--red);
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Feature blocks and cards */
.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.72fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
}

.photo-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--steel);
}

.photo-frame img {
  height: min(64vw, 620px);
  object-fit: cover;
}

.photo-frame--short img {
  height: min(48vw, 460px);
}

.text-stack {
  display: grid;
  gap: 18px;
}

.text-stack h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.18;
}

.text-stack p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
}

.mini-list {
  display: grid;
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--line);
}

.mini-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.74);
}

.mini-list span {
  color: var(--red);
  font-weight: 900;
}

.mini-list strong {
  font-size: 0.96rem;
}

.product-grid,
.industry-grid,
.cert-grid,
.subsidiary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.customer-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.product-grid--featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-grid--featured .product-card {
  min-height: 330px;
  padding: clamp(28px, 3.2vw, 42px);
}

.product-card,
.industry-card,
.cert-card,
.subsidiary-card,
.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.board-card {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 245, 239, 0.86)),
    #fff;
  box-shadow: 0 22px 56px rgba(17, 24, 31, 0.09);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.board-card::before {
  display: none;
}

.board-card:hover {
  border-color: rgba(207, 23, 30, 0.22);
  box-shadow: 0 24px 54px rgba(17, 24, 31, 0.12);
  transform: translateY(-4px);
}

.board-card__image {
  width: 100%;
  height: clamp(230px, 17vw, 310px);
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 241, 234, 0.72)),
    #fff;
  box-shadow: none;
}

.board-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  object-position: center center;
}

.board-card__image--placeholder {
  display: grid;
  place-items: center;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(31, 48, 59, 0.96), rgba(64, 82, 93, 0.88)),
    var(--steel);
}

.board-card__image--placeholder span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 0;
  font-size: 1.8rem;
  font-weight: 900;
}

.board-card__body {
  width: 100%;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 16px 22px;
  text-align: center;
}

.board-card__body h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.25vw, 1.32rem);
  line-height: 1.32;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.board-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 1vw, 0.98rem);
  font-weight: 900;
  line-height: 1.55;
}

html[lang='en'] .board-card__body h3 {
  font-size: clamp(0.9rem, 1vw, 1.08rem);
  line-height: 1.26;
  hyphens: none;
  white-space: normal;
}

.board-card__body h3.board-card__name--compact {
  font-size: clamp(0.98rem, 1.08vw, 1.18rem);
  line-height: 1.28;
  white-space: normal;
  overflow-wrap: normal;
}

html[lang='en'] .board-card__body h3.board-card__name--compact {
  font-size: clamp(0.82rem, 0.9vw, 0.98rem);
}

.customer-logo-card {
  min-height: 198px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(17, 24, 31, 0.05);
}

.customer-logo-card--link {
  color: inherit;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.customer-logo-card--link:hover {
  border-color: rgba(207, 23, 30, 0.26);
  box-shadow: 0 18px 38px rgba(17, 24, 31, 0.1);
  transform: translateY(-3px);
}

.customer-logo-card__mark {
  width: 100%;
  height: 104px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
}

.customer-logo-card__mark img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: min(76%, 170px) !important;
  max-height: 82px !important;
  object-fit: contain !important;
}

.customer-logo-card h3 {
  min-height: 48px;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: var(--steel-2);
  font-size: clamp(0.82rem, 0.92vw, 0.96rem);
  font-weight: 900;
  line-height: 1.55;
  text-align: center;
}

.section--white .product-card,
.section--white .industry-card,
.section--white .cert-card,
.section--white .subsidiary-card,
.section--white .contact-card {
  background: #f7f5ef;
}

.product-card h3,
.industry-card h3,
.subsidiary-card h3,
.contact-card h3 {
  margin-bottom: 10px;
  font-size: 1.38rem;
  line-height: 1.35;
}

.product-grid--featured .product-card h3 {
  margin-bottom: 16px;
  font-size: clamp(1.72rem, 2.3vw, 2.55rem);
  line-height: 1.24;
}

.product-card p,
.industry-card p,
.cert-card p,
.subsidiary-card p,
.contact-card p {
  color: var(--muted);
}

.product-grid--featured .product-card p {
  max-width: 48ch;
  font-size: clamp(1.08rem, 1.35vw, 1.35rem);
  line-height: 1.9;
  font-weight: 700;
}

.industry-card p {
  font-size: clamp(1.03rem, 1.25vw, 1.18rem);
  line-height: 1.9;
  font-weight: 600;
}

.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.spec-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--steel-2);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-grid--featured .spec-list {
  gap: 10px;
  margin-top: 28px;
}

.product-grid--featured .spec-list span {
  min-height: 40px;
  padding: 7px 14px;
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
}

.cert-card {
  min-height: 330px;
  gap: 22px;
}

.cert-card__logo {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 18px 38px rgba(17, 24, 31, 0.1);
}

.cert-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-card__logo--text {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.cert-card__logo--text span {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0;
}

.cert-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.35;
}

.cert-card p {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  font-weight: 700;
}

/* Story, process and gallery */
.story-strip {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 560px;
  background: var(--ink);
  color: #fff;
}

.story-strip__media img {
  height: 100%;
  object-fit: cover;
}

.story-strip__copy {
  display: grid;
  align-content: center;
  padding: clamp(38px, 6vw, 82px);
}

.story-strip__copy h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1.15;
}

.story-strip__copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
}

.process-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.process-step {
  min-height: 310px;
  padding: 24px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.process-step span {
  display: inline-flex;
  color: var(--red);
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 0.9;
  font-weight: 900;
}

.process-step h3 {
  margin: 18px 0 12px;
  font-size: 1.22rem;
}

.process-step p {
  color: var(--muted);
}

.gallery-carousel {
  display: grid;
  gap: 16px;
}

.gallery-stage {
  position: relative;
  height: clamp(420px, 54vw, 720px);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    var(--steel);
  box-shadow: var(--shadow);
}

.gallery-stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  transition:
    opacity 180ms ease,
    transform 420ms ease;
}

.gallery-stage img.is-changing {
  opacity: 0.2;
  transform: scale(1.02);
}

.gallery-stage figcaption {
  position: absolute;
  inset-inline: 20px;
  bottom: 20px;
  max-width: min(620px, calc(100% - 40px));
  padding: 14px 16px;
  color: #fff;
  background: rgba(17, 24, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  font-size: clamp(0.96rem, 1.2vw, 1.12rem);
  font-weight: 800;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 5vw, 64px);
  height: clamp(44px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(17, 24, 31, 0.62);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.gallery-arrow:hover {
  background: rgba(198, 14, 20, 0.82);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-50%) scale(1.04);
}

.gallery-arrow svg {
  display: block;
  width: clamp(28px, 3vw, 40px);
  height: clamp(28px, 3vw, 40px);
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-arrow--prev {
  left: 18px;
}

.gallery-arrow--next {
  right: 18px;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.gallery-control {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.gallery-control:hover {
  color: var(--red);
  border-color: rgba(198, 14, 20, 0.35);
  transform: translateY(-1px);
}

.gallery-count {
  min-width: 78px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.gallery-thumb {
  aspect-ratio: 1.45;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  background: var(--steel);
  cursor: pointer;
  opacity: 0.66;
  transition:
    border-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  border-color: var(--red);
  opacity: 1;
  transform: translateY(-1px);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tables, contact and footer */
.capacity-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 0.68fr);
  gap: 28px;
  align-items: start;
}

.capacity-note {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.capacity-note p {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: start;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--steel-2);
  background: #ede8dc;
  font-size: 0.84rem;
}

td {
  font-size: 0.93rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.shareholder-table table {
  min-width: 980px;
}

.shareholder-table td:first-child {
  font-weight: 800;
}

.shareholder-table .is-total td {
  color: var(--ink);
  background: #f7f1e8;
  font-weight: 900;
}

.contact-layout {
  display: block;
  max-width: 1280px;
  margin-inline: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
}

.contact-card {
  min-height: 148px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
}

.contact-card__icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  padding: 10px;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(198, 14, 20, 0.22);
}

.contact-card__label {
  display: inline-flex;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
}

.contact-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: normal;
}

.contact-card--mail strong,
.contact-card--phone strong,
.contact-card--headset strong,
.contact-card--message strong,
.contact-card--hash strong,
.contact-card--inbox strong {
  white-space: nowrap;
}

.contact-card--mail strong {
  font-size: clamp(0.92rem, 1.08vw, 1.02rem);
}

.contact-panel {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.map-block {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(17, 24, 31, 0.84), rgba(17, 24, 31, 0.52)),
    url('assets/images/plant-silos.jpg') center / cover no-repeat;
  border-radius: var(--radius);
  color: #fff;
}

.map-block strong {
  max-width: 560px;
  font-size: clamp(1.8rem, 3.4vw, 3.8rem);
  line-height: 1.16;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(260px, 0.4fr);
  gap: 24px;
  padding: 38px clamp(20px, 6vw, 82px);
  background: #0d1217;
  color: rgba(255, 255, 255, 0.72);
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: flex-end;
}

.footer-links a {
  color: #fff;
  font-weight: 800;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

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

/* Responsive layout */
@media (max-width: 1500px) {
  html[lang='en'] .page-hero--home .hero-copy h1 {
    font-size: 5.15rem;
  }

  .board-card {
    min-height: 0;
  }

  .board-card__image {
    height: clamp(220px, 18vw, 290px);
    min-height: 0;
  }

  .board-card__body {
    padding: 18px 14px 22px;
  }

  .board-card__body h3 {
    font-size: clamp(1rem, 1.2vw, 1.22rem);
  }

  .board-card__body h3.board-card__name--compact {
    font-size: clamp(0.94rem, 1.04vw, 1.1rem);
  }

  html[lang='en'] .board-card__body h3 {
    font-size: clamp(0.86rem, 0.96vw, 1rem);
  }

  html[lang='en'] .board-card__body h3.board-card__name--compact {
    font-size: clamp(0.78rem, 0.86vw, 0.94rem);
  }
}

@media (max-width: 1280px) {
  .page-hero--home .hero-copy h1 {
    font-size: 5.25rem;
  }

  html[lang='en'] .page-hero--home .hero-copy h1 {
    font-size: 4.35rem;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand__text small {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset-inline: 12px;
    top: calc(var(--header-height) + 10px);
    display: grid;
    gap: 2px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .nav-item {
    display: grid;
  }

  .nav-submenu {
    position: static;
    min-width: 0;
    padding: 2px 0 6px 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  html[dir='rtl'] .nav-submenu {
    padding: 2px 14px 6px 0;
    transform: none;
  }

  .nav-item:hover .nav-submenu,
  .nav-item:focus-within .nav-submenu,
  html[dir='rtl'] .nav-item:hover .nav-submenu,
  html[dir='rtl'] .nav-item:focus-within .nav-submenu {
    transform: none;
  }

  .nav-submenu a {
    padding: 8px 12px;
    color: var(--muted);
    font-size: 0.84rem;
  }

  .menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .hero-inner,
  .split-feature,
  .story-strip,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: repeat(3, 1fr);
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    padding: 24px 0 0;
  }

  html[dir='rtl'] .page-hero--home .hero-panel {
    left: auto;
  }

  html[lang='en'] .page-hero--home .hero-panel {
    left: auto;
  }

  .product-grid,
  .industry-grid,
  .cert-grid,
  .subsidiary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .process-line,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-frame img {
    height: min(74vw, 520px);
  }

  html[lang='en'] .page-hero--home .hero-copy h1 {
    font-size: 4.9rem;
  }
}

@media (max-width: 840px) {
  :root {
    --header-height: 76px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand__mark {
    width: 60px;
    height: 60px;
  }

  .brand__mark img {
    width: 56px;
    height: 56px;
  }

  .brand__text strong {
    font-size: 0.98rem;
  }

  html[lang='en'] .brand__text strong {
    font-size: 0.92rem;
  }

  .brand__text small {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset-inline: 12px;
    top: calc(var(--header-height) + 10px);
    display: grid;
    gap: 2px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .page-hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 76px;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 13vw, 5rem);
  }

  .page-hero--home .hero-copy h1 {
    white-space: normal;
    font-size: clamp(2.3rem, 9.5vw, 4.2rem);
  }

  .hero-title-with-logo {
    flex-wrap: wrap;
    white-space: normal;
  }

  .hero-title-with-logo img {
    height: clamp(92px, 24vw, 138px);
  }

  html[lang='en'] .page-hero--home .hero-copy h1 {
    font-size: clamp(2.25rem, 8vw, 3.9rem);
  }

  .hero-panel,
  .section-heading--split,
  .capacity-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .page-hero--about .hero-copy p {
    font-size: 1.08rem;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capacity-note {
    position: static;
  }

  .gallery-stage {
    height: min(76vw, 520px);
  }

  .gallery-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .section {
    padding-inline: 16px;
  }

  .hero-inner {
    padding-inline: 16px;
  }

  .metric-grid,
  .product-grid,
  .contact-grid,
  .industry-grid,
  .cert-grid,
  .subsidiary-grid,
  .process-line {
    grid-template-columns: 1fr;
  }

  .customer-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-stage {
    height: 68vw;
  }

  .gallery-stage figcaption {
    inset-inline: 64px 12px;
    bottom: 12px;
    max-width: calc(100% - 76px);
  }

  .gallery-arrow--prev {
    left: 10px;
  }

  .gallery-arrow--next {
    right: 10px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric,
  .process-step,
  .product-card,
  .industry-card,
  .cert-card,
  .subsidiary-card,
  .board-grid {
    min-height: 0;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .board-card {
    min-height: 0;
    padding: 0;
  }

  .board-card__image {
    width: 100%;
    height: min(96vw, 420px);
    min-height: 280px;
  }

  .board-card__body {
    padding: 28px 22px 32px;
  }

  .board-card__body h3,
  html[lang='en'] .board-card__body h3 {
    font-size: clamp(1.25rem, 6vw, 1.85rem);
  }

  .board-card__body h3.board-card__name--compact,
  html[lang='en'] .board-card__body h3.board-card__name--compact {
    font-size: clamp(1.08rem, 4.8vw, 1.5rem);
    white-space: normal;
  }

  .mini-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  html[lang='en'] .page-hero--home .hero-copy h1 {
    font-size: 2.28rem;
  }
}

@media (max-width: 420px) {
  .customer-logo-grid {
    grid-template-columns: 1fr;
  }

  html[lang='en'] .page-hero--home .hero-copy h1 {
    font-size: 1.92rem;
  }
}

@media (max-width: 360px) {
  html[lang='en'] .page-hero--home .hero-copy h1 {
    font-size: 1.72rem;
  }
}
