/* =========================================================================
   KAZEROUNI — main stylesheet
   Design system: design-system/kazeruni/MASTER.md
   Logical properties (inline-start/end) are used throughout so the Persian
   RTL layout mirrors automatically.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette (exact) */
  /* mapped onto the official tokens in kazeruni-brand-colors.css */
  --forest: var(--kz-royal-forest, #183D32);
  --deep: var(--kz-deep-green, #244F40);
  --dark: var(--kz-obsidian-green, #102B24);
  --ivory: var(--kz-ancient-limestone, #E9DFC9);
  --gold: var(--kz-aged-gold, #C5A46D);
  --bronze: var(--kz-natural-bronze, #8D704C);
  --sand: var(--kz-sand-beige, #B69A76);
  --bg: var(--kz-persian-ivory, #FAF8F2);
  --bg-soft: var(--kz-limestone-tint, #F3EEE2);
  --white: var(--kz-white, #FFFFFF);

  /* Semantic */
  --text: var(--dark);
  --text-muted: #4A5A52;          /* 7.0:1 on --bg */
  --text-on-dark: #F4EFE3;
  --text-on-dark-muted: #C9CDBF;  /* 8.5:1 on --forest */
  --line: #DDD6C7;
  --line-strong: #C9BFAA;
  --line-dark: rgba(233, 223, 201, .18);
  --error: #A3342B;
  --warn-bg: #FBF4E6;

  /* Type */
  --font-heading: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --lh-body: 1.7;
  --tracking-eyebrow: .18em;

  /* Spacing (spacious density) */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem;
  --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 6rem;
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --gutter: 24px;
  --container: 1240px;

  --radius: 2px;
  --radius-md: 4px;
  --shadow-sm: 0 1px 2px rgba(16, 43, 36, .06);
  --shadow-md: 0 12px 32px -16px rgba(16, 43, 36, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 220ms;
  --header-h: 80px;
}

/* Script-specific typography */
html[lang="zh-Hans"] {
  --font-heading: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Inter", sans-serif;
  --lh-body: 1.8;
  --tracking-eyebrow: .08em;
}
html[lang="fa"] {
  --font-heading: "Estedad", "Vazirmatn", Tahoma, sans-serif;
  --font-body: "Vazirmatn", Tahoma, sans-serif;
  --lh-body: 1.9;
  --tracking-eyebrow: 0;
}
html[lang="ru"] { --tracking-eyebrow: .14em; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--deep); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.15; margin: 0 0 var(--space-4); color: var(--dark); letter-spacing: -.01em; text-wrap: balance; }
html[lang="zh-Hans"] :is(h1, h2, h3), html[lang="fa"] :is(h1, h2, h3) { font-weight: 600; letter-spacing: 0; line-height: 1.4; }
h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 3vw, 2.75rem); }
h3 { font-size: 1.375rem; }
html[lang="zh-Hans"] h1, html[lang="fa"] h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
html[lang="zh-Hans"] h2, html[lang="fa"] h2 { font-size: clamp(1.6rem, 2.6vw, 2.35rem); }
html[lang="ru"] h1 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 1px; }
main:focus { outline: none; }
::selection { background: var(--ivory); color: var(--dark); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 480px) { :root { --gutter: 16px; } }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 200; background: var(--forest); color: var(--white); padding: 12px 18px; }
.skip-link:focus { top: 12px; color: var(--white); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

/* ---------- 3. Typographic components ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 var(--space-4);
  font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--deep);
}
html[lang="zh-Hans"] .eyebrow, html[lang="fa"] .eyebrow { font-size: .875rem; text-transform: none; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.eyebrow-light { color: var(--ivory); }
.lead { font-size: clamp(1.075rem, 1.4vw, 1.25rem); color: var(--text-muted); max-width: 62ch; }
.section-dark .lead { color: var(--text-on-dark-muted); }
.num { font-family: var(--font-heading); color: var(--bronze); font-size: 1.5rem; line-height: 1; letter-spacing: .08em; display: block; margin-bottom: var(--space-3); }
.h3-like { font-size: 1.5rem; }
.section-title { margin-bottom: var(--space-7); max-width: 22ch; }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--forest); --btn-fg: var(--white); --btn-bd: var(--forest);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border: 1px solid var(--btn-bd); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg); font: 500 .95rem/1.2 var(--font-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .icon-arrow { transform: scaleX(-1) translateX(3px); }
.btn-primary:hover { --btn-bg: var(--deep); --btn-bd: var(--deep); color: var(--white); }
.btn-secondary { --btn-bg: transparent; --btn-fg: var(--forest); }
.btn-secondary:hover { --btn-bg: var(--forest); --btn-fg: var(--white); color: var(--white); }
.btn-light { --btn-bg: var(--ivory); --btn-fg: var(--dark); --btn-bd: var(--ivory); }
.btn-light:hover { --btn-bg: var(--white); --btn-bd: var(--white); color: var(--dark); }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: var(--ivory); --btn-bd: rgba(233, 223, 201, .55); }
.btn-ghost-light:hover { --btn-bg: rgba(233, 223, 201, .1); --btn-bd: var(--ivory); color: var(--ivory); }
.btn-text { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--forest); padding-inline: 4px; text-decoration: underline; text-underline-offset: .25em; }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--forest); }
.link-arrow .icon { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }

/* ---------- 5. Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 248, 242, .94); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--dur), box-shadow var(--dur); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); flex: none; }
.brand-logo { display: block; height: 54px; width: auto; }
.site-footer .brand-logo { height: 72px; }
.brand-logo-plate { background: var(--white); padding: 12px 16px; border-radius: var(--radius-md); box-sizing: content-box; }
/* Logo artwork contains its own Latin + Persian lettering: never mirror it in RTL */
[dir="rtl"] .brand-logo { transform: none; }

.nav-desktop { margin-inline-start: auto; }
.nav-desktop ul { display: flex; gap: clamp(14px, 1.6vw, 28px); }
.nav-desktop a { position: relative; display: block; padding: 10px 0; font-size: .875rem; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap; }
html[lang="fa"] .nav-desktop a, html[lang="zh-Hans"] .nav-desktop a { font-size: .9375rem; }
.nav-desktop a::after { content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform var(--dur) var(--ease); }
.nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
.nav-desktop a[aria-current="page"] { color: var(--forest); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.lang-switch { position: relative; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; background: none; border: 1px solid transparent; border-radius: var(--radius); font: 500 .85rem var(--font-body); color: var(--text); cursor: pointer; }
.lang-toggle:hover, .lang-toggle[aria-expanded="true"] { border-color: var(--line); }
.lang-toggle .chev { width: 14px; height: 14px; transition: transform var(--dur); }
.lang-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.lang-menu a { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; min-height: 44px; color: var(--text); text-decoration: none; border-radius: var(--radius); font-size: .95rem; }
.lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a[aria-current="true"] { color: var(--forest); font-weight: 600; }
.lang-menu a[aria-current="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.menu-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--forest); cursor: pointer; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding-block: var(--space-5) var(--space-7); }
.mobile-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-heading); font-size: 1.35rem; color: var(--dark); text-decoration: none; }
.mobile-links a[aria-current="page"] { color: var(--forest); }
.mobile-menu .btn-block { margin-top: var(--space-5); }
.mobile-lang-title { margin: var(--space-6) 0 var(--space-3); font-size: .75rem; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--text-muted); }
.mobile-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-langs a { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.mobile-langs a[aria-current="true"] { border-color: var(--forest); color: var(--forest); font-weight: 600; }

@media (max-width: 1220px) { .nav-desktop { display: none; } .menu-toggle { display: inline-flex; } .header-actions { margin-inline-start: auto; } }
@media (max-width: 1380px) { html[lang="ru"] .nav-desktop { display: none; } html[lang="ru"] .menu-toggle { display: inline-flex; } html[lang="ru"] .header-actions { margin-inline-start: auto; } }
@media (max-width: 640px) { .header-cta { display: none; } :root { --header-h: 68px; } .brand-logo { height: 42px; } }

/* ---------- 6. Sections ---------- */
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--forest); color: var(--text-on-dark); }
.section-dark :is(h2, h3) { color: var(--ivory); }
.section-dark .eyebrow { color: var(--ivory); }
.section-head { max-width: 760px; margin-bottom: var(--space-7); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-7); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- 7. Page hero (inner pages) ---------- */
.page-hero { background: var(--bg-soft); padding-block: clamp(3rem, 7vw, 6rem); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; gap: var(--space-7); align-items: center; }
.page-hero.has-media .page-hero-grid { grid-template-columns: 1.1fr .9fr; }
.page-hero h1 { max-width: 18ch; }
.page-hero-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .page-hero.has-media .page-hero-grid { grid-template-columns: 1fr; } .page-hero-media { aspect-ratio: 16 / 9; } }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--text-muted); margin-bottom: var(--space-5); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--sand); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--forest); text-decoration: underline; }

/* ---------- 8. Cards ---------- */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.category-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color var(--dur), box-shadow var(--dur); }
.category-card a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.category-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.category-card-media img, .product-card-media img, .article-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.category-card a:hover img, .product-card-link:hover img, .article-card a:hover img { transform: scale(1.03); }
.category-card-body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }
.category-card-body p { color: var(--text-muted); flex: 1; }
.category-card a:hover .link-arrow .icon, .product-card-link:hover .link-arrow .icon, .article-card a:hover .link-arrow .icon { transform: translateX(3px); }
[dir="rtl"] .category-card a:hover .link-arrow .icon, [dir="rtl"] .product-card-link:hover .link-arrow .icon, [dir="rtl"] .article-card a:hover .link-arrow .icon { transform: scaleX(-1) translateX(3px); }
.category-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--forest); margin-bottom: var(--space-4); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6) var(--space-5); }
.product-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.product-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); border-radius: var(--radius); }
.product-card-body { padding-top: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.product-card-cat { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--deep); margin-bottom: var(--space-2); font-weight: 600; }
html[lang="fa"] .product-card-cat, html[lang="zh-Hans"] .product-card-cat { letter-spacing: 0; font-size: .85rem; }
.product-card-title { font-size: 1.4rem; margin-bottom: var(--space-2); }
.product-card-text { color: var(--text-muted); font-size: .975rem; flex: 1; }

@media (max-width: 1023px) { .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .category-grid, .product-grid { grid-template-columns: 1fr; } }

/* ---------- 9. Home: why, capacity, split, trade ---------- */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.why-item { padding: var(--space-6) var(--space-5) var(--space-6) 0; border-inline-end: 1px solid var(--line); padding-inline-start: var(--space-5); }
.why-item:first-child { padding-inline-start: 0; }
.why-item:last-child { border-inline-end: 0; }
.why-item .icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: var(--space-5); }
.why-item h3 { font-size: 1.2rem; }
.why-item p { color: var(--text-muted); font-size: .95rem; margin: 0; }
@media (max-width: 1023px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item { border-inline-end: 0; border-bottom: 1px solid var(--line); padding-inline: 0 var(--space-5); }
}
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.capacity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.capacity-stat { border-inline-start: 1px solid var(--gold); padding-inline-start: var(--space-7); }
.stat-number { font-family: "Playfair Display", Georgia, serif; font-size: clamp(4.5rem, 10vw, 8.5rem); line-height: .95; color: var(--gold); margin: 0; font-weight: 500; }
.stat-number span { color: var(--sand); margin-inline: .05em; }
.stat-sm { font-size: 4rem; }
.stat-label { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); margin: var(--space-3) 0 var(--space-6); }
html[lang="fa"] .stat-label, html[lang="zh-Hans"] .stat-label { letter-spacing: 0; font-size: 1rem; }
@media (max-width: 860px) { .capacity-grid { grid-template-columns: 1fr; gap: var(--space-7); } .capacity-stat { padding-inline-start: var(--space-5); } }

.check-list { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--gold); margin-top: .25em; width: 1.1em; height: 1.1em; }
.check-list-light { color: var(--text-on-dark); margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media { aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text p { color: var(--text-muted); max-width: 56ch; }
.split-text .btn { margin-top: var(--space-3); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-reverse .split-media { order: 0; } }

.trade { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--space-8); align-items: start; }
.trade-text p { color: var(--text-muted); max-width: 58ch; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-5) 0 var(--space-6); }
.pill-list li { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .875rem; color: var(--text); background: var(--white); }
.trade-terms { background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: var(--space-6); border-radius: var(--radius); }
.trade-terms-title { font-weight: 600; margin-bottom: var(--space-5); }
.incoterm-list li { display: flex; align-items: baseline; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.incoterm-list strong { font-family: "Playfair Display", Georgia, serif; font-size: 1.35rem; color: var(--forest); min-width: 3.2ch; }
.incoterm-list span { color: var(--text-muted); font-size: .95rem; }
@media (max-width: 900px) { .trade { grid-template-columns: 1fr; gap: var(--space-7); } }

/* CTA band */
.cta-band { background: var(--dark); color: var(--text-on-dark); padding-block: clamp(3.5rem, 7vw, 5.5rem); position: relative; }
.cta-band::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-7); flex-wrap: wrap; }
.cta-band h2 { color: var(--ivory); max-width: 22ch; margin-bottom: var(--space-3); }
.cta-band p { color: var(--text-on-dark-muted); margin: 0; max-width: 56ch; }
.cta-band-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ---------- 10. Inner page components ---------- */
.narrow-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-8); }
.lead-text { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.65; color: var(--text); }
@media (max-width: 860px) { .narrow-split { grid-template-columns: 1fr; gap: var(--space-4); } }

.activity-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.activity-list li { border-top: 1px solid var(--forest); padding-top: var(--space-5); }
.activity-list p { font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.3; color: var(--dark); margin: 0; }
@media (max-width: 860px) { .activity-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .activity-list { grid-template-columns: 1fr; } }

.value-grid, .feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.feature-grid-3 { grid-template-columns: repeat(3, 1fr); }
.value-card, .feature { background: var(--white); border: 1px solid var(--line); padding: var(--space-6); border-radius: var(--radius); }
.section-soft .feature { background: var(--white); }
.feature .icon { width: 28px; height: 28px; color: var(--gold); margin-bottom: var(--space-5); }
.value-card h3, .feature h3 { font-size: 1.25rem; }
.value-card p, .feature p { color: var(--text-muted); margin: 0; font-size: .975rem; }
@media (max-width: 1023px) { .value-grid, .feature-grid, .feature-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .value-grid, .feature-grid, .feature-grid-3 { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.two-col p { color: var(--text-muted); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: var(--space-7); } }

.placeholder-card, .tbc { border: 1px dashed var(--sand); }
.placeholder-card { display: flex; gap: var(--space-4); padding: var(--space-5); background: var(--white); border-radius: var(--radius); margin-top: var(--space-5); }
.placeholder-card .icon { color: var(--sand); width: 28px; height: 28px; }
.placeholder-card p { margin: 0; }
.placeholder-status { font-weight: 600; color: var(--dark) !important; margin-bottom: 4px !important; }
.tbc { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .85rem; color: #6B5636; background: var(--warn-bg); }
.tbc .icon { width: 14px; height: 14px; }
.section-dark .tbc, .site-footer .tbc { color: var(--ivory); background: transparent; border-color: rgba(182, 154, 118, .7); }

.doc-list { display: grid; gap: 2px; margin-top: var(--space-5); }
.doc-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--white); border-inline-start: 2px solid var(--gold); }
.doc-list .icon { color: var(--forest); }

.spec-wrap { max-width: 920px; }
.spec-table { background: var(--white); border: 1px solid var(--line); margin-top: var(--space-5); }
.spec-table th, .spec-table td { text-align: start; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 34%; font-weight: 500; color: var(--text-muted); font-size: .95rem; }
.spec-table tr:last-child :is(th, td) { border-bottom: 0; }
.spec-note { font-size: .875rem; color: var(--text-muted); margin-top: var(--space-4); }
@media (max-width: 560px) { .spec-table th, .spec-table td { display: block; width: 100%; } .spec-table th { padding-bottom: 0; border-bottom: 0; } }

.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.model-card { padding: var(--space-7); border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); }
.model-card .icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: var(--space-5); }
.model-card p { color: var(--text-muted); margin: 0; }
@media (max-width: 700px) { .model-grid { grid-template-columns: 1fr; } }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cap-table { min-width: 560px; }
.cap-table th, .cap-table td { text-align: start; padding: 18px 16px; border-bottom: 1px solid var(--line-dark); }
.cap-table thead th { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-dark-muted); font-weight: 500; }
html[lang="fa"] .cap-table thead th, html[lang="zh-Hans"] .cap-table thead th { letter-spacing: 0; font-size: .9rem; }
.cap-table tbody th { font-family: var(--font-heading); font-weight: 500; font-size: 1.15rem; color: var(--ivory); }
.gold { color: var(--gold); font-family: "Playfair Display", Georgia, serif; font-size: 1.4rem; font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-7) var(--space-5); counter-reset: step; }
.step { border-top: 1px solid var(--line-strong); padding-top: var(--space-5); position: relative; }
.step::before { content: ""; position: absolute; top: -4px; inset-inline-start: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.step p { color: var(--text-muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.inco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.inco-card { background: var(--white); border: 1px solid var(--line); padding: var(--space-6); border-radius: var(--radius); }
.inco-code { font-family: "Playfair Display", Georgia, serif; font-size: 2.5rem; color: var(--forest); line-height: 1; margin-bottom: var(--space-3); }
.inco-card h3 { font-family: "Inter", sans-serif; font-size: .95rem; font-weight: 600; color: var(--deep); }
.inco-card p { font-size: .95rem; color: var(--text-muted); margin: 0; }
@media (max-width: 1023px) { .inco-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .inco-grid { grid-template-columns: 1fr; } }

.buyer-list { display: grid; gap: 2px; margin-top: var(--space-5); }
.buyer-list li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--bg-soft); }
.buyer-list .icon { color: var(--gold); }
.lang-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-5); }
.lang-badges li { padding: 10px 18px; border: 1px solid var(--forest); color: var(--forest); border-radius: var(--radius); font-weight: 500; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: var(--space-6); color: var(--text-muted); font-size: .95rem; }
.note .icon { color: var(--sand); margin-top: .2em; }

.evolve-inner { text-align: center; max-width: 760px; margin-inline: auto; }
.evolve-word { font-family: "Playfair Display", Georgia, serif; font-size: clamp(3rem, 9vw, 7rem); letter-spacing: .3em; color: var(--gold); margin: 0 0 var(--space-5); line-height: 1; padding-inline-start: .3em; }
.evolve-inner .lead { margin-inline: auto; }

/* Products catalog */
.catalog-tabs { position: sticky; top: var(--header-h); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.catalog-tabs ul { display: flex; gap: var(--space-5); overflow-x: auto; scrollbar-width: none; }
.catalog-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 16px 0; white-space: nowrap; color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; border-bottom: 2px solid transparent; }
.catalog-tabs a:hover, .catalog-tabs a.is-active { border-color: var(--gold); color: var(--forest); }
.catalog-tabs .icon { color: var(--gold); }
.catalog-section + .catalog-section { margin-top: var(--section-y); }
.catalog-head { display: flex; gap: var(--space-5); align-items: flex-start; margin-bottom: var(--space-7); max-width: 760px; }
.catalog-head .category-icon { margin: 6px 0 0; }
.catalog-head p { color: var(--text-muted); margin: 0; }
.catalog-head h2 { margin-bottom: var(--space-3); }

/* Product detail */
.product-hero { padding-block: clamp(2rem, 4vw, 3.5rem) var(--section-y); }
.product-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.gallery-frame { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); }
.gallery-frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery-thumbs button { width: 84px; height: 84px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: none; opacity: .7; transition: opacity var(--dur), border-color var(--dur); }
.gallery-thumbs button[aria-pressed="true"], .gallery-thumbs button:hover { opacity: 1; border-color: var(--forest); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.image-note { font-size: .8rem; color: var(--text-muted); margin-top: var(--space-3); }
.product-info { position: sticky; top: calc(var(--header-h) + 24px); }
.product-info h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-5) 0; }
.chip-list li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .875rem; background: var(--white); }
.chip-list .icon { color: var(--gold); width: 16px; height: 16px; }
.prose p { color: var(--text-muted); }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--line); }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } .product-info { position: static; } .gallery-frame { aspect-ratio: 4 / 3; } }

/* Insights */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.article-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.article-card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.article-card-body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }
.article-card h2 { font-size: 1.4rem; }
.article-card p { color: var(--text-muted); flex: 1; font-size: .975rem; }
@media (max-width: 1023px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .article-grid { grid-template-columns: 1fr; } }
.article-head { max-width: 860px; padding-block: clamp(2rem, 5vw, 4rem) var(--space-7); }
.article-media { margin-bottom: var(--space-8); }
.article-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
.article-body { max-width: 760px; padding-bottom: var(--section-y); }
.article-body p { font-size: 1.125rem; color: var(--text); }
.article-back { margin-top: var(--space-6); }

/* ---------- 11. Forms ---------- */
.rfq-layout { display: grid; grid-template-columns: 1fr 340px; gap: var(--space-7); align-items: start; }
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: var(--space-7); align-items: start; }
@media (max-width: 1023px) { .rfq-layout, .contact-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(1.5rem, 4vw, 3rem); }
fieldset { border: 0; margin: 0 0 var(--space-7); padding: 0; min-width: 0; }
legend { font-family: var(--font-heading); font-size: 1.35rem; color: var(--dark); padding: 0 0 var(--space-3); margin-bottom: var(--space-5); width: 100%; border-bottom: 1px solid var(--line); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field-full, .field-grid > .field:has(textarea) { grid-column: 1 / -1; }
.field-pair { display: grid; grid-template-columns: 1fr 150px; gap: var(--space-3); }
@media (max-width: 680px) { .field-grid { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .field-pair { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 8px; color: var(--dark); }
.req { color: var(--error); margin-inline-start: 2px; }
.opt { color: var(--text-muted); font-weight: 400; font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 400 1rem/1.4 var(--font-body); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); transition: border-color var(--dur), background-color var(--dur), box-shadow var(--dur);
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23183D32' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 40px; }
[dir="rtl"] .field select { background-position: left 14px center; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sand); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); background: var(--white); box-shadow: 0 0 0 3px rgba(197, 164, 109, .35); }
.field [aria-invalid="true"] { border-color: var(--error); background: #FDF7F6; }
.field-help { font-size: .825rem; color: var(--text-muted); margin: 6px 0 0; }
.field-error { font-size: .85rem; color: var(--error); margin: 6px 0 0; font-weight: 500; }
.field-check { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin-bottom: var(--space-5); }
.field-check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--forest); appearance: auto; -webkit-appearance: checkbox; flex: none; }
.field-check label { flex: 1; font-weight: 400; margin: 0; }
.field-check .field-error { flex-basis: 100%; }
.form-actions { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.form-privacy { font-size: .85rem; color: var(--text-muted); margin: 0; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-summary { border: 1px solid var(--error); border-inline-start-width: 4px; background: #FDF7F6; padding: var(--space-5); margin-bottom: var(--space-6); border-radius: var(--radius); }
html .form-summary h2 { font-family: var(--font-body); font-size: 1rem; line-height: 1.4; font-weight: 600; color: var(--error); margin-bottom: var(--space-3); }
.form-summary ul { list-style: disc; padding-inline-start: 1.2em; }
.form-summary a { color: var(--error); }
.form-result { display: flex; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--forest); border-inline-start-width: 4px; background: #F2F6F3; margin-bottom: var(--space-6); border-radius: var(--radius); }
.form-result .icon { width: 28px; height: 28px; color: var(--forest); }
html .form-result h2 { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.4; font-weight: 600; margin-bottom: 6px; }
.form-result p { margin: 0 0 var(--space-3); color: var(--text-muted); }
.form-result-warn { border-color: #9A7432; background: var(--warn-bg); }
.form-result-warn .icon { color: #9A7432; }
.form-result-error { border-color: var(--error); background: #FDF7F6; }
.form-result-error .icon { color: var(--error); }
.form-result > div { min-width: 0; flex: 1; }
.form-copy { white-space: pre-wrap; word-break: break-word; font: .85rem/1.6 ui-monospace, Consolas, monospace; background: var(--white); border: 1px solid var(--line); padding: var(--space-4); max-height: 260px; overflow: auto; margin: 0 0 var(--space-3); unicode-bidi: plaintext; }

.rfq-aside { display: grid; gap: var(--space-5); position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 1023px) { .rfq-aside { position: static; } }
.aside-card { background: var(--white); border: 1px solid var(--line); padding: var(--space-6); border-radius: var(--radius-md); margin-bottom: var(--space-5); }
.rfq-aside .aside-card { margin-bottom: 0; }
.aside-dark { background: var(--forest); border-color: var(--forest); color: var(--text-on-dark); }
.aside-dark h2 { color: var(--ivory); }
.aside-dark p { color: var(--text-on-dark-muted); }
.aside-dark .stat-label { margin-bottom: 0; }
.mini-steps { display: grid; gap: var(--space-5); }
.mini-steps li { display: flex; gap: var(--space-4); }
.mini-steps .num { margin: 0; }
.mini-steps h3 { font-size: 1.05rem; margin-bottom: 4px; }
.mini-steps p { margin: 0; font-size: .925rem; color: var(--text-muted); }
.contact-list { display: grid; gap: var(--space-5); margin-top: var(--space-5); }
.contact-list li { display: flex; gap: var(--space-4); }
.contact-list .icon { color: var(--gold); margin-top: 4px; }
.contact-list p { margin: 0; }
.contact-label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
html[lang="fa"] .contact-label, html[lang="zh-Hans"] .contact-label { letter-spacing: 0; font-size: .9rem; }

/* Credits */
.credit-table { min-width: 720px; background: var(--white); border: 1px solid var(--line); font-size: .9rem; }
.credit-table th, .credit-table td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.credit-table thead th { background: var(--bg-soft); font-weight: 600; }
.credit-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius); }

/* ---------- 12. Footer ---------- */
.site-footer { background: var(--dark); color: var(--text-on-dark-muted); padding-top: clamp(3.5rem, 7vw, 6rem); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: var(--space-7); padding-bottom: var(--space-8); }
.footer-tagline { font-family: "Playfair Display", var(--font-heading); font-style: italic; color: var(--ivory); font-size: 1.15rem; margin: var(--space-5) 0 var(--space-3); }
html[lang="fa"] .footer-tagline, html[lang="zh-Hans"] .footer-tagline { font-family: var(--font-heading); font-style: normal; }
.footer-about { max-width: 34ch; }
.footer-title { font-family: var(--font-body); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: var(--space-5); }
html[lang="fa"] .footer-title, html[lang="zh-Hans"] .footer-title { letter-spacing: 0; font-size: .9rem; }
.footer-title-spaced { margin-top: var(--space-6); }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: var(--text-on-dark-muted); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--ivory); text-decoration: underline; }
.footer-langs a[aria-current="true"] { color: var(--ivory); }
.footer-contact { display: grid; gap: 14px; margin-bottom: var(--space-5); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 3px; }
.footer-contact li > span { display: grid; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.footer-contact-label { font-size: .78rem; letter-spacing: .04em; color: var(--text-on-dark-muted); opacity: .85; }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-block: var(--space-5); border-top: 1px solid var(--line-dark); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text-on-dark-muted); }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 13. Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 14. Print ---------- */
@media print { .site-header, .site-footer, .cta-band { display: none; } body { background: #fff; } }

/* ---------- 15. Persian numerals ---------- */
html[lang="fa"] :is(.stat-number, .gold, .num, .inco-code) { font-family: var(--font-heading); }
html[lang="fa"] .stat-number { font-weight: 600; }


/* ---------- 16. Identity system: KAZEROUNI lotus emblem + pattern (see /brand/) ---------- */
/* Primary logo is never altered. The lotus is the complementary emblem: aged gold, decorative, used with restraint.
   Owner 23 Nov 2026: the layered lotus of the homepage reference replaces Lotus v2 (assets/brand/identity/v3/).
   It is wide (about 1.44 : 1), so each placement sets a width only and the height follows the drawing. */
.lotus { display: inline-block; color: var(--gold); line-height: 0; flex: none; }
.lotus svg { width: 100%; height: auto; display: block; }
.brand { gap: 14px; }
.brand-divider { width: 1px; height: 34px; background: var(--line-strong); }
.header-lotus { width: 38px; color: var(--bronze); }
@media (max-width: 640px) { .brand-divider, .header-lotus { display: none; } }
.heritage-lotus { width: 60px; margin-bottom: var(--space-4); color: var(--bronze); }
.footer-lotus { width: 40px; }
.evolve-lotus { width: 92px; margin-bottom: var(--space-5); }
.footer-tagline { display: flex; align-items: center; gap: 12px; }

/* Section divider: rule - lotus - rule */
.ornament { display: flex; align-items: center; gap: 16px; color: var(--gold); margin-bottom: var(--space-6); }
.ornament span { flex: 1; height: 1px; background: currentColor; opacity: .5; }
.ornament svg { width: 40px; height: auto; flex: none; }
.ornament-section { max-width: 320px; margin-inline: 0; }
.catalog-section .ornament-section { margin-bottom: var(--space-5); }
.ornament-light span { opacity: .45; }

/* Brand pattern: subtle ground on the darkest surfaces only */
.site-footer, .supply-band { background-image: url("/assets/brand/identity/v3/kazerouni-lotus-ref-pattern.svg"); background-size: 96px 96px; background-blend-mode: normal; }
.site-footer { background-color: var(--dark); position: relative; }
.site-footer::before, .supply-band::before { content: ""; position: absolute; inset: 0; background: inherit; background-image: none; opacity: .93; pointer-events: none; }
.site-footer > *, .supply-band > * { position: relative; }
.supply-band { position: relative; overflow: hidden; background-color: var(--forest); }
.supply-band .capacity-stat { border-inline-start: 1px solid rgba(197, 164, 109, .45); }
.cta-band-text { display: flex; gap: var(--space-5); align-items: flex-start; }

/* EXW presentation */
.exw-code { font-family: "Playfair Display", Georgia, serif; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; color: var(--forest); margin: 0 0 var(--space-2); letter-spacing: .04em; }
.aside-dark .exw-code { color: var(--gold); }
.exw-name { font-weight: 600; color: var(--deep); margin-bottom: var(--space-3); }
.exw-text { color: var(--text-muted); margin: 0; font-size: .975rem; }
.trade-terms { text-align: start; }
.exw-head { display: flex; gap: var(--space-6); align-items: flex-start; margin-bottom: var(--space-7); max-width: 820px; }
.exw-head h2 { margin-bottom: var(--space-3); }
.inco-grid .inco-card h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--dark); }
.field-label-static { font-weight: 500; font-size: .95rem; margin-bottom: 8px; color: var(--dark); }
.exw-pill { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px; margin: 0; background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.exw-pill strong { font-family: "Playfair Display", Georgia, serif; font-size: 1.2rem; color: var(--forest); }
.exw-pill span { color: var(--text-muted); font-size: .95rem; }
@media (max-width: 640px) { .cta-lotus { display: none; } .exw-head { flex-direction: column; gap: var(--space-4); } }

.header-cta { white-space: nowrap; }
@media (max-width: 1360px) { .brand-divider, .header-lotus { display: none; } }

/* ---------- 18. Offices & focus-markets map (Global Markets, Contact, footer) ---------- */
/* Static dot grid (tools/build_map.py; Iran + Oman highlighted) + SVG routes/markers + HTML labels.
   Geography never mirrors in RTL. Light variant in sections, dark variant in the footer. */
.office-map { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; margin-top: var(--space-6); }
.map-figure { position: relative; margin: 0; aspect-ratio: 1080 / 552; direction: ltr; }
.map-dots, .map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-route { fill: none; stroke: var(--gold); stroke-width: 2; opacity: .35; }
.map-flow { fill: none; stroke: var(--bronze); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 6 94; animation: map-flow 4.5s linear infinite; }
@keyframes map-flow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.map-market { fill: var(--bg); stroke: var(--forest); stroke-width: 3; }
.section-soft .map-market { fill: var(--bg-soft); }
.map-market-dot { fill: var(--forest); }
.map-office { fill: var(--forest); stroke: var(--bg); stroke-width: 2.5; }
.map-hq { fill: var(--gold); stroke: var(--forest); stroke-width: 3.5; }
.map-pulse { fill: var(--gold); opacity: .45; transform-box: fill-box; transform-origin: center; animation: map-pulse 2.4s ease-out infinite; }
@keyframes map-pulse { from { transform: scale(1); opacity: .5; } to { transform: scale(3); opacity: 0; } }
.map-labels { position: absolute; inset: 0; pointer-events: none; }
.map-label { position: absolute; white-space: nowrap; font-size: .82rem; font-weight: 500; line-height: 1.25; color: var(--text);
  background: color-mix(in srgb, var(--bg) 92%, transparent); padding: 2px 8px; border-radius: var(--radius); unicode-bidi: plaintext;
  box-shadow: 0 1px 2px rgba(16, 43, 36, .08); }
.section-soft .map-label { background: color-mix(in srgb, var(--bg-soft) 92%, transparent); }
.map-label-hq { font-weight: 700; color: var(--text-on-dark); background: var(--forest) !important; }
.map-label-market { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--forest); }
.map-country { background: none !important; box-shadow: none; transform: translate(-50%, -50%); font-family: var(--font-heading);
  font-size: 1.05rem; letter-spacing: .25em; text-transform: uppercase; color: var(--forest); opacity: .55; }
html[lang="fa"] .map-country, html[lang^="zh"] .map-country { letter-spacing: 0; }
.map-side-n { transform: translate(-50%, calc(-100% - 16px)); }
.map-side-w { transform: translate(calc(-100% - 18px), -50%); }
.map-side-e { transform: translate(16px, -50%); }
.map-side-s { transform: translate(-50%, 14px); }
.map-legend { display: grid; gap: var(--space-5); }
.map-legend-title { font-size: 1rem; margin: 0 0 var(--space-2); color: var(--forest); }
.map-legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.map-legend li { display: flex; gap: 10px; align-items: baseline; color: var(--text); font-size: .95rem; }
.map-key { flex: none; width: 11px; height: 11px; border-radius: 50%; transform: translateY(1px); }
.map-key-hq { background: var(--gold); box-shadow: 0 0 0 2px var(--forest); }
.map-key-office { background: var(--forest); width: 9px; height: 9px; }
.map-key-market { border: 2.5px solid var(--forest); }
.map-note { margin: 0; font-size: .85rem; color: var(--text-muted); border-top: 1px solid var(--line); padding-top: var(--space-3); }

/* Footer (dark) variant */
.footer-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: var(--space-7); align-items: center;
  padding-bottom: var(--space-7); margin-bottom: var(--space-7); border-bottom: 1px solid var(--line-dark); }
.footer-map-title { font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--white); margin: var(--space-2) 0 var(--space-4); text-wrap: balance; }
.footer-map-link { color: var(--gold); }
.office-map-dark { display: block; margin: 0; }
.office-map-dark .map-route { opacity: .45; }
.office-map-dark .map-flow { stroke: var(--gold); }
.office-map-dark .map-market { fill: var(--dark); stroke: var(--ivory); }
.office-map-dark .map-market-dot { fill: var(--ivory); }
.office-map-dark .map-office { fill: var(--ivory); stroke: var(--dark); }
.office-map-dark .map-hq { stroke: var(--ivory); }
.office-map-dark .map-label { color: var(--text-on-dark); background: rgba(16, 43, 36, .82); box-shadow: none; }
.office-map-dark .map-label-hq { color: var(--dark); background: var(--gold) !important; }
.office-map-dark .map-label-market { color: var(--ivory); }
.office-map-dark .map-country { color: var(--gold); opacity: .7; background: none; }
.map-keyline { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .85rem; color: var(--text-on-dark-muted); }
.map-keyline li { display: flex; gap: 8px; align-items: center; }
.office-map-dark .map-key-office { background: var(--ivory); }
.office-map-dark .map-key-market { border-color: var(--ivory); }
.office-map-dark .map-key-hq { box-shadow: 0 0 0 2px var(--ivory); }

@media (max-width: 1023px) {
  .office-map { grid-template-columns: 1fr; } .map-legend { grid-template-columns: 1fr 1fr; } .map-note { grid-column: 1 / -1; }
  .footer-map { grid-template-columns: 1fr; gap: var(--space-5); }
}
@media (max-width: 639px) {
  .map-label { font-size: .6rem; padding: 1px 4px; }
  .map-label-market { font-size: .68rem; }
  .map-label-office { display: none; } /* offices are listed in the legend */
  .map-country { font-size: .7rem; letter-spacing: .15em; }
  .map-mside-s { transform: translate(-50%, 9px); }
  .map-legend { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .map-pulse { animation: none; opacity: 0; } .map-flow { animation: none; stroke-dasharray: none; opacity: .5; } }

/* ---------- 19. Homepage "reference" (HOME-REF, 23 Nov 2026) ---------- */
/* Owner decision 23 Nov 2026: the homepage reproduces the owner's reference image (public/reference/8ED1B976-...PNG,
   1211 x 1299) with its own copy and pictures (cut into assets/img/ref/). Every size below is the value measured on the
   reference at 1211 px, multiplied by one unit --u (= 1px at a 1211 px viewport), so the page scales proportionally
   from 960 to 1600 px and stays pixel-faithful at 1211. Phones and small tablets (< 960 px) get their own stacked
   layout at the end. Scoped to body.home-ref / .hr-*; inner pages are untouched. Logical properties mirror RTL. */
.home-ref {
  --u: clamp(.79px, calc(100vw / 1211), 1.32px);
  --hr-ivory: #FAF2E5;          /* reference ground (warmer than Persian Ivory, measured) */
  --hr-ink: #0F2A20;            /* headings, measured #06281D-#0B2A1E */
  --hr-text: #24261F;           /* body copy, measured #22201B */
  --hr-eyebrow: #7C5D3A;        /* reference #906E4B darkened to 5.3:1 on the ivory */
  --hr-gold-a: #DDBF86; --hr-gold-b: #C9A25F; --hr-gold-c: #B98F4E;
  /* Fonts (owner 23 Nov 2026): back to the site's own pair, as before HOME-REF - Playfair Display 500 for headings,
     eyebrows, the product line and card names; Inter (var(--font-body)) for body copy, nav and buttons. No Georgia. */
  --hr-serif: "Playfair Display", "Times New Roman", serif;
  --hr-body: var(--font-body);   /* Inter; Vazirmatn in fa, Noto Sans SC in zh (unchanged) */
  --hr-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hr-ease: cubic-bezier(.16, 1, .3, 1);
  background: var(--hr-ivory);
}
html[lang="fa"] .home-ref { --hr-serif: "Estedad", "Vazirmatn", Tahoma, sans-serif; --hr-sans: "Vazirmatn", Tahoma, sans-serif; }
html[lang="zh-Hans"] .home-ref { --hr-serif: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }

/* Header: transparent over the hero; logo left, nav centred, language pill, gold pill CTA */
.home-ref .site-header { position: fixed; inset-inline: 0; top: 0; background: transparent; backdrop-filter: none; border-color: transparent;
  transition: background-color .4s ease, box-shadow .4s ease, border-color .4s ease; }
.home-ref .site-header.is-scrolled,
.home-ref .site-header:has(.menu-toggle[aria-expanded="true"]) { background: rgba(250, 242, 229, .95); backdrop-filter: saturate(1.2) blur(12px);
  border-color: rgba(197, 164, 109, .35); box-shadow: 0 10px 30px -22px rgba(16, 43, 36, .5); }
.home-ref .site-header > .container { max-width: calc(1211 * var(--u)); padding-inline: calc(53 * var(--u)) calc(18 * var(--u)); }
.home-ref .header-inner { min-height: calc(100 * var(--u)); gap: calc(16 * var(--u)); transition: min-height .4s var(--hr-ease); }
.home-ref .site-header.is-scrolled .header-inner { min-height: calc(76 * var(--u)); }
.home-ref .brand-divider, .home-ref .header-lotus { display: none; }
.home-ref .brand-logo { height: calc(59 * var(--u)); }
.home-ref .site-header.is-scrolled .brand-logo { height: calc(48 * var(--u)); }
.home-ref .nav-desktop { margin-inline: auto; }
.home-ref .nav-desktop ul { gap: calc(17 * var(--u)); }
.home-ref .nav-desktop a { font: 500 max(12px, calc(12.5 * var(--u)))/1.2 var(--hr-sans); color: #1B2420; padding: calc(10 * var(--u)) 0;
  text-shadow: 0 0 10px rgba(250, 244, 232, .85), 0 0 3px rgba(250, 244, 232, .6); }
.home-ref .site-header.is-scrolled .nav-desktop a { text-shadow: none; }
.home-ref .nav-desktop a::after { bottom: 0; height: 2px; }
.home-ref .header-actions { gap: calc(12 * var(--u)); }
.home-ref .lang-toggle { min-height: calc(38 * var(--u)); padding: 0 calc(11 * var(--u)); border-radius: 999px; font: 600 max(12px, calc(12.5 * var(--u))) var(--hr-sans);
  color: #1B2420; background: rgba(255, 255, 255, .28); border: 1px solid rgba(255, 255, 255, .55); }
.home-ref .lang-toggle .icon { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.home-ref .header-cta { min-height: calc(34 * var(--u)); padding: 0 calc(16 * var(--u)) 0 calc(18 * var(--u)); gap: calc(6 * var(--u));
  border-radius: 999px; border: 1px solid #B48C4F; font: 600 max(11.5px, calc(11.5 * var(--u)))/1 var(--hr-sans); color: #1B1A12;
  background: linear-gradient(180deg, var(--hr-gold-a) 0%, var(--hr-gold-b) 55%, var(--hr-gold-c) 100%);
  box-shadow: 0 6px 14px -8px rgba(110, 80, 40, .8), inset 0 1px 0 rgba(255, 255, 255, .45); transition: filter .2s ease, transform .16s ease; }
.home-ref .header-cta .icon { width: 1.15em; height: 1.15em; }
.home-ref .header-cta:hover { color: #1B1A12; filter: brightness(1.05); }
.home-ref .header-cta:active { transform: scale(.97); }
.home-ref .menu-toggle { background: rgba(250, 242, 229, .7); border-color: rgba(16, 43, 36, .2); }
@media (min-width: 1180px) {
  .home-ref .nav-desktop { display: block; }
  .home-ref .menu-toggle { display: none; }
  .home-ref .header-actions { margin-inline-start: 0; }
}
@media (max-width: 1379px) {
  html[lang="ru"] .home-ref .nav-desktop { display: none; }
  html[lang="ru"] .home-ref .menu-toggle { display: inline-flex; }
  html[lang="ru"] .home-ref .header-actions { margin-inline-start: auto; }
}

.hr { overflow-x: clip; color: var(--hr-text); }
.hr-wrap { width: min(calc(1100 * var(--u)), 100% - 32px); margin-inline: auto; }

/* Shared: eyebrows with gold rules, gold pill buttons, headings */
.hr-eyebrow { display: flex; align-items: center; margin: 0; font: 500 calc(14 * var(--u))/1.4 var(--hr-serif); color: var(--hr-eyebrow); letter-spacing: .005em; }
.hr-eyebrow::before, .hr-eyebrow::after { content: ""; flex: none; height: 1px; }
.hr-eyebrow-hero { gap: calc(17 * var(--u)); margin-inline-start: calc(-23 * var(--u)); font-size: calc(15 * var(--u)); color: #2B2216; }
.hr-eyebrow-hero::before { width: calc(60 * var(--u)); background: linear-gradient(90deg, rgba(197, 164, 109, .35), #C5A46D); }
.hr-eyebrow-hero::after { width: calc(64 * var(--u)); background: linear-gradient(90deg, #C5A46D, rgba(197, 164, 109, .35)); }
.hr-eyebrow-trail { gap: calc(22 * var(--u)); }
.hr-eyebrow-trail::before { display: none; }
.hr-eyebrow-trail::after { width: calc(72 * var(--u)); background: linear-gradient(90deg, #C5A46D, rgba(197, 164, 109, .3)); }
.hr-eyebrow-ruled { justify-content: center; gap: calc(26 * var(--u)); }
.hr-eyebrow-ruled::before { width: calc(106 * var(--u)); background: linear-gradient(90deg, rgba(197, 164, 109, .25), #C5A46D); }
.hr-eyebrow-ruled::after { width: calc(86 * var(--u)); background: linear-gradient(90deg, #C5A46D, rgba(197, 164, 109, .25)); }
[dir="rtl"] .hr-eyebrow::before, [dir="rtl"] .hr-eyebrow::after { transform: scaleX(-1); }

.hr-btn { display: inline-flex; align-items: center; justify-content: center; gap: calc(7 * var(--u)); min-height: calc(37 * var(--u)); padding: 0 calc(22 * var(--u));
  border: 1px solid #B48C4F; border-radius: 999px; font: 600 max(12.5px, calc(13 * var(--u)))/1.1 var(--hr-sans); color: #1B1A12; text-decoration: none;
  background: linear-gradient(180deg, var(--hr-gold-a) 0%, var(--hr-gold-b) 55%, var(--hr-gold-c) 100%);
  box-shadow: 0 8px 16px -10px rgba(110, 80, 40, .85), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: filter .2s ease, box-shadow .25s ease, transform .16s ease; }
.hr-btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--hr-ease); }
.hr-btn:hover { color: #1B1A12; filter: brightness(1.05); box-shadow: 0 12px 20px -10px rgba(110, 80, 40, .9), inset 0 1px 0 rgba(255, 255, 255, .55); }
.hr-btn:active { transform: scale(.97); }
.hr-btn-sm { min-height: calc(34 * var(--u)); padding: 0 calc(18 * var(--u)); font-size: max(12px, calc(12.5 * var(--u))); }
@media (hover: hover) and (pointer: fine) {
  .hr-btn:hover .icon-arrow, .home-ref .header-cta:hover .icon-arrow { transform: translateX(3px); }
  [dir="rtl"] .hr-btn:hover .icon-arrow, [dir="rtl"] .home-ref .header-cta:hover .icon-arrow { transform: scaleX(-1) translateX(3px); }
}
.hr h1, .hr h2 { font-family: var(--hr-serif); font-weight: 500; color: var(--hr-ink); letter-spacing: 0; text-wrap: initial; }

/* 1. Hero: the reference picture (with its green swoosh) at the reference ratio, copy on the hazy left */
.hr-hero { position: relative; isolation: isolate; height: calc(553 * var(--u)); background: #E9DCC6; }
.hr-hero-visual { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hr-hero-visual picture { display: contents; }
.hr-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
[dir="rtl"] .hr-hero-img { transform: scaleX(-1); }
.hr-hero-inner { height: 100%; }
.hr-hero-text { padding-top: calc(131 * var(--u)); padding-inline-start: calc(14 * var(--u)); max-width: calc(480 * var(--u)); }
.hr-title { margin: calc(-1 * var(--u)) 0 0; }
.hr-brand { display: block; font-weight: 500; font-size: calc(72 * var(--u)); line-height: calc(71 * var(--u)); margin-inline-start: calc(-2 * var(--u)); color: #0B2A1F; }
.hr-subtitle { display: block; font-weight: 500; font-size: calc(37.5 * var(--u)); line-height: calc(46 * var(--u)); white-space: nowrap; color: #0B2A1F; }
html[lang="ru"] .hr-subtitle { font-size: calc(29 * var(--u)); line-height: calc(42 * var(--u)); }
.hr-line { margin: calc(11 * var(--u)) 0 0; font: 500 calc(19 * var(--u))/calc(26 * var(--u)) var(--hr-serif); color: #14261E; }
.hr-nw { white-space: nowrap; }
.hr-dot { padding-inline: .1em; }
.hr-lead { margin: calc(20 * var(--u)) 0 0; max-width: calc(322 * var(--u)); font: 400 max(13px, calc(14 * var(--u)))/calc(20.5 * var(--u)) var(--hr-body); color: var(--hr-text); }
.hr-hero .hr-btn { margin-top: calc(25 * var(--u)); min-height: calc(36 * var(--u)); padding-inline: calc(22 * var(--u)) calc(20 * var(--u)); font-size: max(12.5px, calc(12.8 * var(--u))); }

/* 2. Band: four facts, gold line icons, hairline gold dividers */
.hr-band { position: relative; z-index: 1; height: calc(75 * var(--u)); color: #F3EBD8;
  background: radial-gradient(ellipse 70% 160% at 50% 50%, #082C1F 0%, #0C3123 55%, #123A2A 100%);
  border-top: 1px solid rgba(197, 164, 109, .28); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06); }
.hr-band .hr-wrap { height: 100%; }
.hr-band-list { height: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hr-band-item { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: calc(16 * var(--u)); padding-inline-start: calc(45 * var(--u)); }
.hr-band-item + .hr-band-item::before { content: ""; position: absolute; inset-inline-start: 0; top: calc(22 * var(--u)); bottom: calc(20 * var(--u)); width: 1px;
  background: linear-gradient(180deg, rgba(197, 164, 109, 0), rgba(197, 164, 109, .75) 30%, rgba(197, 164, 109, .75) 70%, rgba(197, 164, 109, 0)); }
.hr-band-icon { flex: none; display: grid; place-items: center; color: #C9A867; }
.hr-band-png { width: calc(var(--w) * var(--u)); height: calc(55 * var(--u)); }
.hr-band-svg { width: calc(42 * var(--u)); height: calc(42 * var(--u)); }
.hr-icon-handshake, .hr-icon-handshake .hr-band-svg { width: calc(48 * var(--u)); height: calc(48 * var(--u)); }
.hr-icon-lotus, .hr-icon-lotus .hr-band-svg { width: calc(52 * var(--u)); height: calc(38 * var(--u)); }
.hr-band-copy { display: grid; gap: calc(2 * var(--u)); min-width: 0; }
.hr-band-copy strong { font: 500 calc(14 * var(--u))/1.3 var(--hr-serif); color: #F7EFDD; white-space: nowrap; }
html[lang="fa"] .hr-band-copy strong, html[lang="zh-Hans"] .hr-band-copy strong { font-weight: 600; }
.hr-band-copy span { font: 400 max(11px, calc(11.2 * var(--u)))/1.35 var(--hr-sans); color: #D9D6C4; white-space: nowrap; }

/* Ivory ground for About + Products, with the faint Persian pattern in the corners (as in the reference) */
.hr-ground { position: relative; isolation: isolate; background: var(--hr-ivory); }
.hr-ground::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/img/home/ornament-pattern.svg") 0 0 / calc(120 * var(--u)) calc(120 * var(--u)); opacity: .14;
  -webkit-mask-image: radial-gradient(ellipse 22% 26% at 0% 4%, #000 15%, transparent 100%), radial-gradient(ellipse 14% 22% at 0% 92%, #000 10%, transparent 100%);
          mask-image: radial-gradient(ellipse 22% 26% at 0% 4%, #000 15%, transparent 100%), radial-gradient(ellipse 14% 22% at 0% 92%, #000 10%, transparent 100%); }
[dir="rtl"] .hr-ground::before { transform: scaleX(-1); }

/* 3. About: arched photo with a thin gold frame line, text, faint lotus + ruins at the end edge */
.hr-about { position: relative; padding-top: calc(32 * var(--u)); }
.hr-about-deco { position: absolute; z-index: -1; inset-inline-end: 0; top: calc(26 * var(--u)); width: calc(351 * var(--u)); line-height: 0; pointer-events: none; }
.hr-about-deco picture { display: contents; }
.hr-about-deco-img { width: 100%; height: auto; }
[dir="rtl"] .hr-about-deco-img { transform: scaleX(-1); }
.hr-about-grid { display: grid; grid-template-columns: calc(492 * var(--u)) minmax(0, 1fr); column-gap: calc(52 * var(--u)); align-items: center;
  position: relative; inset-inline-start: calc(-15 * var(--u)); }
.hr-arch { height: calc(218 * var(--u)); padding: calc(4 * var(--u)); border: 1px solid #D2B47E;
  border-start-start-radius: calc(72 * var(--u)) calc(98 * var(--u)); border-start-end-radius: calc(122 * var(--u)) calc(124 * var(--u));
  border-end-start-radius: 2px; border-end-end-radius: 2px; }
.hr-arch-frame { width: 100%; height: 100%; overflow: hidden; background: #E9DFC9;
  border-start-start-radius: calc(68 * var(--u)) calc(94 * var(--u)); border-start-end-radius: calc(118 * var(--u)) calc(120 * var(--u));
  border-end-start-radius: 1px; border-end-end-radius: 1px; }
.hr-arch-frame picture { display: contents; }
.hr-arch-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hr-about-text { padding-top: 0; }
.hr-about-text h2 { font-weight: 500; margin: calc(9 * var(--u)) 0 0; font-size: calc(29 * var(--u)); line-height: calc(31.5 * var(--u)); }
.hr-l { display: block; }
.hr-about-p { margin: calc(15 * var(--u)) 0 0; max-width: calc(380 * var(--u)); font: 400 max(13px, calc(13.4 * var(--u)))/calc(19.5 * var(--u)) var(--hr-body); /* 13.4: Inter is wider than the serif; keeps the reference 3 lines */ color: var(--hr-text); }
.hr-about-text .hr-btn { margin-top: calc(8 * var(--u)); }

/* 4. Products: centred head, one row of four image cards with a circled arrow */
.hr-products { position: relative; padding-top: calc(25 * var(--u)); padding-bottom: calc(30 * var(--u)); }
.hr-products::before { content: ""; position: absolute; z-index: -1; inset-inline-end: 0; top: calc(2 * var(--u)); width: calc(271 * var(--u)); height: calc(88 * var(--u));
  background: url("/assets/img/ref/pattern-ivory.png") 0 0 / 100% 100% no-repeat; pointer-events: none; }
[dir="rtl"] .hr-products::before { transform: scaleX(-1); }
.hr-products-head { text-align: center; }
.hr-products-head h2 { font-weight: 500; margin: calc(4 * var(--u)) 0 0; font-size: calc(31 * var(--u)); line-height: calc(40 * var(--u)); }
.hr-cards { list-style: none; margin: calc(10 * var(--u)) calc(-1 * var(--u)) 0 calc(9 * var(--u)); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(13 * var(--u)); }
.hr-card a { position: relative; display: block; height: calc(147 * var(--u)); overflow: hidden; border-radius: calc(8 * var(--u)); color: #fff; text-decoration: none;
  background: #1A2A20; box-shadow: 0 8px 16px -12px rgba(16, 30, 22, .55); transition: transform .35s var(--hr-ease), box-shadow .35s var(--hr-ease); }
.hr-card picture { display: contents; }
.hr-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--hr-ease); }
.hr-card a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 14, 10, .45) 0%, rgba(10, 14, 10, 0) 38%); }
.hr-card-name { position: absolute; z-index: 1; inset-inline-start: calc(15 * var(--u)); bottom: calc(14 * var(--u)); inset-inline-end: calc(46 * var(--u));
  font: 500 calc(15.5 * var(--u))/1.2 var(--hr-serif); color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
html[lang="fa"] .hr-card-name, html[lang="zh-Hans"] .hr-card-name { font-weight: 600; }
.hr-card-go { position: absolute; z-index: 1; inset-inline-end: calc(13 * var(--u)); bottom: calc(12 * var(--u)); display: grid; place-items: center;
  width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .92); color: #fff;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.hr-card-go .icon { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.hr-card a:focus-visible { outline: 2px solid #C5A46D; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .hr-card a:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -16px rgba(16, 30, 22, .85); }
  .hr-card a:hover .hr-card-img { transform: scale(1.03); }
  .hr-card a:hover .hr-card-go { background: #C5A46D; border-color: #C5A46D; color: #102B24; }
}

/* 5. CTA band: the caravan picture, centred copy, gold button at the end; then the Persian ornament strip */
.hr-cta { position: relative; isolation: isolate; height: calc(103 * var(--u)); background: #0A3020; color: #F6EEDB; }
.hr-cta-visual { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hr-cta-visual picture { display: contents; }
.hr-cta-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
[dir="rtl"] .hr-cta-img { transform: scaleX(-1); }
.hr-cta-grid { position: relative; height: 100%; }
.hr-cta-text { position: absolute; inset-inline: 0; top: calc(27 * var(--u)); text-align: center; }
.hr-cta h2 { font-weight: 500; margin: 0; font-size: calc(20.8 * var(--u)); line-height: calc(26 * var(--u)); color: #F6EEDB; }
.hr-cta-text p { margin: calc(4 * var(--u)) 0 0; font: 400 max(12.5px, calc(12.9 * var(--u)))/1.4 var(--hr-body); color: #EDE9DC; }
.hr-cta-actions { position: absolute; inset-inline-end: calc(61 * var(--u)); top: calc(37 * var(--u)); }
.hr-cta .hr-btn { min-height: calc(37 * var(--u)); padding-inline: calc(22 * var(--u)) calc(20 * var(--u)); font-size: max(13px, calc(13.5 * var(--u))); }
.hr-ornament { height: calc(33 * var(--u)); background-color: #08261A; background-repeat: repeat-x; background-position: calc(94 * var(--u)) 0; background-size: auto 100%; }

/* Motion: soft reveals on desktop fine pointers only (JS adds .hr-motion); everything is visible without it */
.hr-motion [data-rv].rv { opacity: 0; transform: translate3d(0, 16px, 0); }
.hr-motion [data-rv].rv.rv-in { opacity: 1; transform: none;
  transition: opacity .8s var(--hr-ease) var(--rv-d, 0ms), transform 1s var(--hr-ease) var(--rv-d, 0ms); }
.hr-motion .hr-hero-text > * { animation: hr-rise .9s var(--hr-ease) both; }
.hr-motion .hr-hero-text > :nth-child(2) { animation-delay: .06s; }
.hr-motion .hr-hero-text > :nth-child(3) { animation-delay: .12s; }
.hr-motion .hr-hero-text > :nth-child(4) { animation-delay: .16s; }
.hr-motion .hr-hero-text > :nth-child(5) { animation-delay: .2s; }
@keyframes hr-rise { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
@media print { .hr [data-rv] { opacity: 1 !important; transform: none !important; } }

/* Small tablets and phones (< 960 px): the same sections, stacked */
@media (max-width: 959px) {
  .home-ref { --u: 1px; }
  .home-ref .site-header > .container { padding-inline: 16px; }
  .home-ref .header-inner { min-height: 68px; }
  .home-ref .site-header.is-scrolled .header-inner { min-height: 60px; }
  .home-ref .brand-logo, .home-ref .site-header.is-scrolled .brand-logo { height: 42px; }
  .home-ref .header-actions { gap: 8px; }
  .home-ref .lang-toggle { min-height: 44px; }
  .hr-wrap { width: calc(100% - 32px); }

  .hr-hero { height: auto; display: flex; flex-direction: column; padding-top: 68px;
    background: linear-gradient(180deg, #F2E6D3 0%, #F4E9D8 55%, #EADFCB 100%); }
  .hr-hero-visual { position: relative; order: 2; inset: auto; z-index: 0; aspect-ratio: 911 / 553; margin-top: -18px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
  .hr-hero-inner { order: 1; height: auto; }
  .hr-hero-text { padding: 26px 0 0; max-width: none; }
  .hr-eyebrow-hero { margin-inline-start: 0; font-size: 14px; gap: 12px; }
  .hr-eyebrow-hero::before { width: 28px; }
  .hr-eyebrow-hero::after { width: 40px; }
  .hr-title { margin-top: 8px; }
  .hr-brand { font-size: 56px; line-height: 1.05; }
  .hr-subtitle { font-size: 27px; line-height: 1.25; white-space: normal; }
  .hr-line { font-size: 16px; line-height: 1.5; margin-top: 10px; }
  .hr-lead { font-size: 15px; line-height: 1.55; margin-top: 14px; max-width: 34ch; }
  .hr-hero .hr-btn { margin-top: 20px; min-height: 46px; padding-inline: 24px; font-size: 14px; }

  .hr-band { height: auto; }
  .hr-band-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hr-band-item { justify-content: flex-start; gap: 10px; padding: 16px 10px; }
  .hr-band-png { width: calc(var(--w) * .78px); height: 43px; }
  .hr-band-item:nth-child(3)::before { display: none; }
  .hr-band-item + .hr-band-item::before { top: 18px; bottom: 18px; }
  .hr-band-item:nth-child(n+3) { border-top: 1px solid rgba(197, 164, 109, .28); }
  .hr-band-icon, .hr-band-svg { width: 34px; height: 34px; }
  .hr-icon-handshake, .hr-icon-handshake .hr-band-svg { width: 38px; height: 38px; }
  .hr-icon-lotus, .hr-icon-lotus .hr-band-svg { width: 42px; height: 30px; }
  .hr-band-copy strong { font-size: 14px; white-space: normal; }
  .hr-band-copy span { font-size: 12px; white-space: normal; }

  .hr-about { padding-top: 28px; }
  .hr-about-deco { top: auto; bottom: -10px; width: 52%; opacity: .55; }
  .hr-about-grid { grid-template-columns: 1fr; row-gap: 22px; inset-inline-start: 0; }
  .hr-arch { height: auto; aspect-ratio: 484 / 230; }
  .hr-about-text h2 { font-size: 27px; line-height: 1.2; }
  .hr-about-p { font-size: 15px; line-height: 1.6; max-width: 40ch; }
  .hr-about-text .hr-btn { margin-top: 18px; min-height: 44px; padding-inline: 20px; font-size: 14px; }

  .hr-products { padding-top: 34px; }
  .hr-products-head h2 { font-size: 27px; line-height: 1.3; }
  .hr-eyebrow-ruled::before, .hr-eyebrow-ruled::after { width: 56px; }
  .hr-eyebrow-ruled { gap: 16px; font-size: 15px; }
  .hr-eyebrow-trail { font-size: 15px; }
  .hr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
  .hr-card a { height: 128px; border-radius: 8px; }
  .hr-card-name { font-size: 15px; inset-inline-start: 12px; bottom: 12px; inset-inline-end: 42px; }
  .hr-card-go { width: 26px; height: 26px; inset-inline-end: 10px; bottom: 10px; }
  .hr-card-go .icon { width: 13px; height: 13px; }

  .hr-cta { height: auto; padding: 0 0 26px; background: #0A3020; }
  .hr-cta-visual { position: relative; z-index: 0; height: 104px; inset: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .hr-cta-img { object-position: 0 50%; }
  .hr-cta-grid { height: auto; display: grid; gap: 18px; text-align: center; margin-top: 4px; }
  .hr-cta-text, .hr-cta-actions { position: static; }
  .hr-cta h2 { font-size: 24px; line-height: 1.3; }
  .hr-cta-text p { font-size: 15px; margin-top: 6px; }
  .hr-cta .hr-btn { min-height: 46px; padding-inline: 28px; font-size: 15px; }
  .hr-ornament { height: 28px; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .hr-band-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hr-band-item { flex-direction: column; text-align: center; justify-content: center; gap: 8px; }
  .hr-band-item:nth-child(3)::before { display: block; }
  .hr-band-item:nth-child(n+3) { border-top: 0; }
  .hr-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 20. Story sections (24 Nov 2026) ---------- */
/* Owner request 24 Nov 2026: the six sections of the second reference (public/reference/2D7F6CAE-...png) on the inner
   pages: About (About, Heritage, Mission), Products, Global Markets, and "Partner with Kazerouni" as the closing band.
   Pictures from tools/photo/ref/extract_story.py (text removed, 4x); copy in locales story.*. Text on the start side,
   picture on the end side fading into the reference ground; the green and gold swoosh closes each section. */
.st, .st-partner {
  --st-serif: "Playfair Display", "Times New Roman", serif;
  --st-ink: #0F2A20; --st-text: #24261F; --st-eyebrow: #7C5D3A;
  --st-gold-a: #DDBF86; --st-gold-b: #C9A25F; --st-gold-c: #B98F4E;
  --st-ease: cubic-bezier(.16, 1, .3, 1);
}
html[lang="fa"] :is(.st, .st-partner) { --st-serif: "Estedad", "Vazirmatn", Tahoma, sans-serif; }
html[lang="zh-Hans"] :is(.st, .st-partner) { --st-serif: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }

.st { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(540px, 46vw, 680px); padding: 64px 0 clamp(96px, 9vw, 136px);
  background: linear-gradient(180deg, var(--st-a, #E6E3DA) 0%, var(--st-b, #F4E9D6) 55%, var(--st-c, #F7EBD8) 100%); }
.st-visual { position: absolute; z-index: -1; top: 0; bottom: 0; inset-inline-end: 0; width: var(--st-w, 54%); }
.st-visual picture { display: contents; }
.st-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--st-pos, 50% 50%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--st-fade, 34%));
          mask-image: linear-gradient(to right, transparent 0, #000 var(--st-fade, 34%)); }
[dir="rtl"] .st-img { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 var(--st-fade, 34%));
                              mask-image: linear-gradient(to left, transparent 0, #000 var(--st-fade, 34%)); }
/* RTL: mirror the pictures so their soft (text-removed) side still faces the copy; never the world map */
[dir="rtl"] .st:not(.st-global) .st-img { transform: scaleX(-1); }
@media (min-width: 900px) {
  [dir="rtl"] .st:not(.st-global) .st-img { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--st-fade, 34%));
                                                    mask-image: linear-gradient(to right, transparent 0, #000 var(--st-fade, 34%)); }
}
.st-inner { width: 100%; }
.st-text { max-width: 480px; }
.st .breadcrumbs { margin-bottom: 22px; }
.st-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 17px/1.3 var(--st-serif); color: var(--st-eyebrow); }
.st-eyebrow::before { content: ""; flex: none; width: 18px; height: 1px; background: linear-gradient(90deg, rgba(197, 164, 109, .4), #C5A46D); }
[dir="rtl"] .st-eyebrow::before { transform: scaleX(-1); }
.st-title { margin: 0; font: 500 clamp(34px, 3.5vw, 50px)/1.1 var(--st-serif); color: var(--st-ink); letter-spacing: 0; text-wrap: initial; }
.st-l { display: block; }
.st-sub { margin: 14px 0 0; font: 500 clamp(17px, 1.4vw, 20px)/1.4 var(--st-serif); color: var(--st-eyebrow); }
.st-lead { margin: 18px 0 0; max-width: 440px; font: 400 16px/1.65 var(--font-body); color: var(--st-text); }
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-top: 28px; padding: 0 26px;
  border: 1px solid #B48C4F; border-radius: 999px; font: 600 14px/1.1 var(--font-body); color: #1B1A12; text-decoration: none;
  background: linear-gradient(180deg, var(--st-gold-a) 0%, var(--st-gold-b) 55%, var(--st-gold-c) 100%);
  box-shadow: 0 10px 18px -12px rgba(110, 80, 40, .9), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: filter .2s ease, box-shadow .25s ease, transform .16s ease; }
.st-btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--st-ease); }
.st-btn:hover { color: #1B1A12; filter: brightness(1.05); }
.st-btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .st-btn:hover .icon-arrow, .st-link:hover .icon-arrow { transform: translateX(3px); }
  [dir="rtl"] .st-btn:hover .icon-arrow, [dir="rtl"] .st-link:hover .icon-arrow { transform: scaleX(-1) translateX(3px); }
}
.st-points { display: flex; gap: 34px; margin: 30px 0 0; padding: 0; list-style: none; }
.st-points li { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 120px; text-align: center;
  font: 500 15px/1.3 var(--font-body); color: #1F2A22; }
.st-point-icon { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; color: #A87C3F;
  background: radial-gradient(circle, rgba(240, 224, 196, .95), rgba(230, 210, 176, .7)); box-shadow: inset 0 0 0 1px rgba(197, 164, 109, .35); }
.st-icon { width: 34px; height: 34px; }
.st-wave { position: absolute; z-index: 0; inset-inline: 0; bottom: -1px; width: 100%; height: clamp(56px, 7.2vw, 108px); pointer-events: none; }
.st-wave-fill { fill: #123526; }
.st-wave-line { fill: none; stroke: #C9A25F; stroke-width: 3; vector-effect: non-scaling-stroke; }
[dir="rtl"] .st-wave { transform: scaleX(-1); }
.st-lotus { position: absolute; z-index: 1; inset-inline-start: clamp(18px, 3vw, 44px); bottom: clamp(8px, 1.2vw, 18px); width: clamp(34px, 3.4vw, 50px); color: #C5A46D; opacity: .9; }
.st-lotus svg { width: 100%; height: auto; }

/* per section: ground colours matched to each picture's start edge, picture width and focus */
.st-about    { --st-a: #E6E4E0; --st-b: #FAF2E8; --st-c: #F6E9D8; --st-pos: 60% 62%; }
.st-heritage { --st-a: #F6F0E8; --st-b: #FDF5EA; --st-c: #F8ECDC; --st-pos: 55% 45%; }
.st-mission .st-text { max-width: 560px; }
.st-mission  { --st-a: #E7E4DF; --st-b: #FAF0E4; --st-c: #F8EBDA; --st-pos: 60% 40%; }
.st-products { --st-a: #FDF3E5; --st-b: #FEF6E8; --st-c: #FBEEDD; --st-w: 62%; --st-fade: 26%; --st-pos: 50% 60%; }
.st-global   { --st-a: #E3E0D8; --st-b: #F4E8D6; --st-c: #F1E3CD; --st-pos: 55% 55%; }

/* closing band: Partner with Kazerouni (dark green, gold, ruins at the end edge) */
.st-partner { position: relative; isolation: isolate; overflow: hidden; padding: 92px 0 clamp(150px, 15vw, 210px); text-align: center; color: #F3EBD7;
  background: radial-gradient(120% 90% at 50% 20%, #1C4634 0%, #133829 55%, #0E2E21 100%); }
.st-partner::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .07;
  background: url("/assets/brand/identity/v3/kazerouni-lotus-ref-pattern.svg") 0 0 / 96px 96px; }
.st-partner-visual { position: absolute; z-index: -1; inset-inline-end: 0; bottom: 0; width: min(40%, 520px); }
.st-partner-visual picture { display: contents; }
.st-partner-visual .st-img { height: auto; -webkit-mask-image: radial-gradient(75% 80% at 62% 62%, #000 52%, transparent 82%);
  mask-image: radial-gradient(75% 80% at 62% 62%, #000 52%, transparent 82%); }
.st-partner-inner { position: relative; max-width: 760px; }
.st-partner .st-eyebrow { justify-content: center; color: #D9BB7C; }
.st-partner .st-eyebrow::before { display: none; }
.st-partner .st-title { color: #EFD9A6; font-size: clamp(32px, 3.3vw, 48px); }
.st-partner .st-lead { margin-inline: auto; max-width: 540px; color: #E6E1D2; }
.st-partner-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; margin-top: 28px; }
.st-partner-actions .st-btn { margin-top: 0; }
.st-link { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1.2 var(--font-body); color: #EAD7A8; text-underline-offset: .25em; }
.st-link:hover { color: #FFF3D6; }
.st-link .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--st-ease); }
.st-partner-curve { position: absolute; z-index: -1; inset-inline: 0; bottom: clamp(20px, 3vw, 44px); width: 100%; height: clamp(80px, 10vw, 150px); pointer-events: none; }
.st-partner-curve path { fill: none; stroke: #C9A25F; stroke-width: 3; vector-effect: non-scaling-stroke; }
[dir="rtl"] .st-partner-curve { transform: scaleX(-1); }
.st-partner-lotus { position: absolute; inset-inline-start: 50%; bottom: clamp(14px, 2vw, 30px); width: clamp(46px, 4.4vw, 66px); color: #C9A25F; transform: translateX(-50%); }
[dir="rtl"] .st-partner-lotus { transform: translateX(50%); }
.st-partner-lotus svg { width: 100%; height: auto; }
.footer-no-map .footer-grid { padding-top: 56px; }

/* Phones and small tablets: text first, then the picture fading in from the top, swoosh at the bottom */
@media (max-width: 899px) {
  .st { flex-direction: column; align-items: stretch; min-height: 0; padding: 36px 0 0; }
  .st-inner { order: 1; }
  .st-text { max-width: none; }
  .st-visual { position: relative; z-index: -1; order: 2; width: 100%; margin-top: -8px; aspect-ratio: 1 / 1; max-height: 520px; }
  .st-products .st-visual { aspect-ratio: 1916 / 1408; }
  .st-img, [dir="rtl"] .st-img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%);
                                         mask-image: linear-gradient(to bottom, transparent 0, #000 24%); }
  .st-title { font-size: clamp(30px, 8.4vw, 38px); }
  .st-lead { font-size: 15.5px; }
  .st-points { justify-content: space-between; gap: 12px; }
  .st-points li { flex: 1 1 0; font-size: 14px; }
  .st-point-icon { width: 58px; height: 58px; }
  .st-wave { height: 60px; }
  .st-partner { padding: 64px 0 230px; }
  .st-partner-visual { width: 74%; max-width: 360px; }
  .st-partner-actions { flex-direction: column; }
}
@media print { .st-visual, .st-wave, .st-lotus, .st-partner-visual, .st-partner-curve { display: none; } }
