/* ==========================================================================
   Aria — corporate site
   Direction: industrial editorial. Warm paper + logo navy, hairline rules,
   a mono "spec sheet" voice for labels, and the 45° chamfer from the logo
   mark as the one recurring shape. Colour comes from the materials we trade.
   Layout uses logical properties so FA/AR (RTL) mirror for free.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Geist"; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-mono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-mono-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url(../fonts/vazirmatn-400.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-display: swap; src: url(../fonts/vazirmatn-500.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap; src: url(../fonts/vazirmatn-700.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-weight: 800; font-display: swap; src: url(../fonts/vazirmatn-800.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ---------- Tokens ---------- */
:root {
  /* light surfaces */
  --paper: #f3f1ec;
  --paper-2: #e9e5dd;
  --card: #fbfaf7;
  --rule: #d6d0c5;
  --rule-strong: #0e2034;

  /* ink = logo navy */
  --ink: #0e2034;
  --ink-2: #4a5566;
  --ink-3: #7c8492;

  /* dark surfaces */
  --night: #0a1826;
  --on-night: #eceef1;
  --on-night-2: #a3adba;
  --on-night-3: #6f7b8b;
  --rule-night: rgba(236, 238, 241, .14);

  /* group brand */
  --detal: #e94f27;
  --detal-deep: #c63b16;

  --danger: #b42318;
  --success: #17703b;

  --font: "Geist", "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", "Vazirmatn", ui-monospace, "SF Mono", Menlo, monospace;
  --track-display: -0.04em;
  --track-head: -0.03em;
  --track-mono: .08em;
  --mono-case: uppercase;

  --wrap: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

:root[lang="fa"], :root[lang="ar"] {
  --font: "Vazirmatn", "Geist", Tahoma, sans-serif;
  /* not Geist Mono: Vazirmatn's subset has no space glyph, so spaces would fall back to mono width */
  --mono: "Vazirmatn", "Geist", Tahoma, sans-serif;
  /* letter-spacing and upper-casing don't apply to Arabic script */
  --track-display: 0;
  --track-head: 0;
  --track-mono: 0;
  --mono-case: none;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:root[lang="fa"] body, :root[lang="ar"] body { line-height: 1.85; }

h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.3vw, 60px); line-height: 1.04; letter-spacing: var(--track-head); }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
:root[lang="fa"] :is(h1, h2, h3), :root[lang="ar"] :is(h1, h2, h3) { font-weight: 800; letter-spacing: 0; }
:root[lang="fa"] h2, :root[lang="ar"] h2 { line-height: 1.4; font-size: clamp(28px, 3.6vw, 50px); }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }

.mono { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: var(--track-mono); text-transform: var(--mono-case); }
:root[lang="fa"] .mono, :root[lang="ar"] .mono { font-size: 14px; font-weight: 500; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; 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: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* The chamfer — the 45° cut from the logo mark, on the top inline-end corner. */
.btn, .fig-frame, .contact-form, .tile img, .org-parent, .org-children img, .step-mark {
  clip-path: polygon(0 0, calc(100% - var(--cut, 12px)) 0, 100% var(--cut, 12px), 100% 100%, 0 100%);
}
[dir="rtl"] :is(.btn, .fig-frame, .contact-form, .tile img, .org-parent, .org-children img, .step-mark) {
  clip-path: polygon(var(--cut, 12px) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut, 12px));
}

/* ---------- Buttons & links ---------- */
.btn {
  --cut: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 24px;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1;
  border: 0; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; --cut: 10px; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 16px; --cut: 14px; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #1d3653; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-detal { background: var(--detal); color: #fff; }
.btn-detal:hover { background: var(--detal-deep); }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .arrow:not(.arrow-ext) { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow:not(.arrow-ext) { transform: scaleX(-1) translateX(4px); }

.link-light {
  color: var(--on-night); font-size: 15px; font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 4px; transition: background-size .3s var(--ease);
}
[dir="rtl"] .link-light { background-position: 100% 100%; }
.link-light:hover { background-size: 0 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--on-night);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-solid {
  color: var(--ink);
  background: rgba(243, 241, 236, .88);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { color: inherit; flex-shrink: 0; }
.brand-logo { height: 34px; width: auto; aspect-ratio: 1170 / 486; fill: currentColor; }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  display: block; padding: 8px 14px;
  font-size: 14.5px; font-weight: 500; text-decoration: none; color: inherit; opacity: .78;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-langs, .nav-cta { display: none; }

.header-end { display: flex; align-items: center; gap: 20px; }
.header-langs { display: flex; align-items: center; gap: 2px; }
.lang-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .04em;
  text-decoration: none; color: inherit; opacity: .55; transition: opacity .2s;
}
.lang-link:lang(fa), .lang-link:lang(ar) { font-family: "Vazirmatn", sans-serif; font-size: 15px; letter-spacing: 0; }
.lang-link:hover { opacity: 1; }
.lang-link[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.lang-link .lang-long { display: none; }
.site-header:not(.is-solid) .header-cta { background: var(--paper); color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 1180px) { .header-cta { display: none; } }
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .brand-logo { height: 28px; }
  .header-langs { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px;
    width: 44px; height: 44px; margin-inline-end: -10px; background: none; border: 0; color: inherit; cursor: pointer;
  }
  .nav-toggle .bar { width: 22px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-4.25px) rotate(-45deg); }
  .header-end { margin-inline-start: auto; }
  .site-header.nav-open { color: var(--ink); background: var(--paper); box-shadow: 0 1px 0 var(--rule); }

  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    display: flex; flex-direction: column; justify-content: flex-start;
    padding: 8px var(--gutter) 32px; overflow-y: auto;
    background: var(--paper); color: var(--ink);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { padding: 18px 0; font-size: 26px; letter-spacing: var(--track-head); opacity: 1; border-bottom: 1px solid var(--rule); }
  .nav-langs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 28px; border: 1px solid var(--rule); }
  .nav-langs .lang-link { height: 52px; opacity: 1; font-family: var(--font); font-size: 14px; letter-spacing: 0; text-decoration: none; }
  .nav-langs .lang-link + .lang-link { border-inline-start: 1px solid var(--rule); }
  .nav-langs .lang-link .lang-short { display: none; }
  .nav-langs .lang-link .lang-long { display: inline; }
  .nav-langs .lang-link[aria-current] { background: var(--ink); color: var(--paper); }
  .nav-cta { display: flex; margin-top: 16px; min-height: 56px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  overflow: hidden; overflow: clip; /* clip: can't be scrolled programmatically */
  background:
    radial-gradient(1100px 620px at 78% 8%, rgba(56, 92, 135, .35), transparent 62%),
    linear-gradient(180deg, var(--night) 0%, #0b1b2b 100%);
  color: var(--on-night);
}
[dir="rtl"] .hero { background: radial-gradient(1100px 620px at 22% 8%, rgba(56, 92, 135, .35), transparent 62%), linear-gradient(180deg, var(--night) 0%, #0b1b2b 100%); }

.hero-guides {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: repeat(5, 1fr);
  pointer-events: none;
}
.hero-guides span { border-inline-start: 1px solid rgba(236, 238, 241, .05); }
.hero-guides span:nth-child(5) { border-inline-end: 1px solid rgba(236, 238, 241, .05); }

.hero-mark {
  position: absolute; z-index: -1;
  inset-inline-end: -4%; top: -6%;
  height: 118%; width: auto; aspect-ratio: 260.5 / 494.5;
  fill: none; stroke: rgba(236, 238, 241, .16); stroke-width: .55;
  stroke-dasharray: 2600; stroke-dashoffset: 2600;
  animation: draw 3.2s .2s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-body { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 92px)); }
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--on-night-2); }
.hero-kicker::before { content: ""; width: 9px; height: 9px; background: var(--on-night-2); clip-path: polygon(0 0, 55% 0, 100% 45%, 100% 100%, 0 100%); }
[dir="rtl"] .hero-kicker::before { clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%, 0 45%); }

.hero-title {
  margin-top: 24px; max-width: 20ch;
  font-size: clamp(44px, 6.6vw, 104px); line-height: .96; letter-spacing: var(--track-display); font-weight: 500;
  color: #fff;
}
.hero-title em { font-style: normal; color: var(--on-night-2); }
:root[lang="fa"] .hero-title, :root[lang="ar"] .hero-title { max-width: 22ch; font-size: clamp(36px, 5.2vw, 80px); line-height: 1.28; font-weight: 800; }
:root[lang="tr"] .hero-title { max-width: 18ch; }

.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 64px;
  margin-top: clamp(28px, 4vw, 48px);
}
.hero-lead { max-width: 560px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--on-night-2); }
:root[lang="fa"] .hero-lead, :root[lang="ar"] .hero-lead { line-height: 1.95; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* load-in */
.hero-kicker, .hero-title, .hero-foot, .tiles { animation: rise 1s var(--ease) both; }
.hero-title { animation-delay: .08s; }
.hero-foot { animation-delay: .22s; }
.tiles { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* business tiles — five columns on desktop, image stacked above the text */
.tiles {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--rule-night);
}
.tiles li + li { border-inline-start: 1px solid var(--rule-night); }
.tile {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; align-content: start;
  padding: 28px 22px 30px; height: 100%;
  text-decoration: none; color: inherit;
  transition: background-color .3s var(--ease);
}
.tiles li:first-child .tile { padding-inline-start: 0; }
.tile:hover { background: rgba(236, 238, 241, .04); }
.tile img { --cut: 12px; width: 64px; height: 64px; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile-num { position: absolute; top: 14px; inset-inline-end: 18px; color: var(--on-night-3); font-size: 11.5px; }
.tile-text { display: grid; gap: 4px; }
.tile-text strong { font-size: 17px; font-weight: 500; color: #fff; }
.tile-text span { font-size: 14px; line-height: 1.4; color: var(--on-night-2); }
:root[lang="fa"] .tile-text strong, :root[lang="ar"] .tile-text strong { font-weight: 700; }

@media (max-width: 1100px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { grid-template-columns: 76px minmax(0, 1fr); align-items: center; padding: 28px 24px 32px; }
  .tile img { width: 76px; height: 76px; }
  .tiles li:nth-child(odd) { border-inline-start: 0; }
  .tiles li:nth-child(odd) .tile { padding-inline-start: 0; }
  .tiles li:nth-child(n+3) { border-top: 1px solid var(--rule-night); }
  .tiles li:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero-mark { height: 70%; top: auto; bottom: 22%; inset-inline-end: -28%; }
  .hero-guides { grid-template-columns: repeat(2, 1fr); }
  .hero-guides span:nth-child(n+3) { display: none; }
  .hero-guides span:nth-child(2) { border-inline-end: 1px solid rgba(236, 238, 241, .05); }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .tiles li + li { border-inline-start: 0; border-top: 1px solid var(--rule-night); }
  .tile, .tiles li:nth-child(odd) .tile { padding: 18px 0; grid-template-columns: 60px minmax(0, 1fr); }
  .tile img { width: 60px; height: 60px; }
  .tile-num { top: 50%; transform: translateY(-50%); inset-inline-end: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-actions .link-light { margin-inline: auto; }
}

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--paper); }
.ticker-track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
[dir="rtl"] .ticker-track { animation-name: ticker-rtl; }
.ticker-list { display: flex; flex-shrink: 0; }
.ticker-list li {
  display: flex; align-items: center; gap: 28px; padding-inline-end: 28px; height: 64px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: var(--track-mono); text-transform: var(--mono-case);
  white-space: nowrap; color: var(--ink-2);
}
:root[lang="fa"] .ticker-list li, :root[lang="ar"] .ticker-list li { font-size: 15px; }
.ticker-list li::after { content: ""; width: 7px; height: 7px; background: var(--ink); opacity: .35; clip-path: polygon(0 0, 55% 0, 100% 45%, 100% 100%, 0 100%); }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-rtl { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(88px, 11vw, 168px); }
.section-tight-top { padding-top: clamp(32px, 4vw, 56px); }
.section-paper2 { background: var(--paper-2); }
.section-dark { background: var(--night); color: var(--on-night); }

.sec-grid {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px 40px;
  padding-top: 24px; border-top: 1px solid var(--rule-strong);
}
.section-dark .sec-grid { border-top-color: var(--rule-night); }
.sec-head { margin-bottom: clamp(48px, 6vw, 88px); }
.sec-label { display: flex; gap: 14px; color: var(--ink-2); padding-top: 6px; }
.sec-label span { color: var(--ink-3); }
.section-dark .sec-label { color: var(--on-night-2); }
.section-dark .sec-label span { color: var(--on-night-3); }
.sec-lead { margin-top: 22px; max-width: 640px; font-size: 18px; color: var(--ink-2); }
.section-dark .sec-lead { color: var(--on-night-2); }
.section-dark h2 { color: #fff; }

@media (max-width: 860px) {
  .sec-grid { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.statement {
  font-size: clamp(26px, 3.15vw, 46px); line-height: 1.16; letter-spacing: -0.025em; font-weight: 500;
}
.statement span { color: var(--ink-3); }
:root[lang="fa"] .statement, :root[lang="ar"] .statement { font-size: clamp(22px, 2.6vw, 38px); line-height: 1.7; font-weight: 700; }

.principles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: clamp(64px, 8vw, 120px);
  margin-inline-start: calc(25% + 10px);
}
.principles li { padding-top: 20px; border-top: 1px solid var(--rule); }
.principles .mono { color: var(--ink-3); }
.principles h3 { margin: 28px 0 10px; font-size: 19px; font-weight: 600; }
:root[lang="fa"] .principles h3, :root[lang="ar"] .principles h3 { font-weight: 700; }
.principles p { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 1100px) { .principles { margin-inline-start: 0; } }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } .principles h3 { margin-top: 14px; } }

/* ---------- What we trade ---------- */
.line {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px;
  align-items: center;
  padding-block: clamp(48px, 6vw, 96px);
  border-top: 1px solid var(--rule);
}
.line-copy { grid-column: 1 / span 5; grid-row: 1; }
.line-fig  { grid-column: 7 / span 6; grid-row: 1; margin: 0; }
.line:nth-of-type(even) .line-copy { grid-column: 8 / span 5; }
.line:nth-of-type(even) .line-fig  { grid-column: 1 / span 6; }

.line-tag { display: flex; gap: 14px; color: var(--ink-2); }
.line-tag span { color: var(--ink-3); }
.line h3 { margin: 22px 0 18px; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; letter-spacing: var(--track-head); }
:root[lang="fa"] .line h3, :root[lang="ar"] .line h3 { line-height: 1.4; font-size: clamp(28px, 3vw, 44px); }
.line-text { color: var(--ink-2); max-width: 520px; }
.line-sub { margin-top: 32px; margin-bottom: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink); }

.spec { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.spec li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
  font-size: 15px; font-weight: 500;
}
.spec li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; background: var(--ink); clip-path: polygon(0 0, 55% 0, 100% 45%, 100% 100%, 0 100%); }
[dir="rtl"] .spec li::before { clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%, 0 45%); }
.spec-dark li { border-bottom-color: var(--rule-night); }
.spec-dark li::before { background: var(--on-night-2); }

.fig-frame { --cut: 40px; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.fig-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.line:hover .fig-frame img { transform: scale(1.035); }
.line-fig figcaption { margin-top: 14px; color: var(--ink-3); font-size: 12px; }

.line-detal .btn { margin-top: 32px; }
.line-detal .spec { margin-top: 28px; }
.line-detal .spec li::before { background: var(--detal); }

@media (max-width: 900px) {
  .line { grid-template-columns: 1fr; gap: 28px; }
  .line .line-copy, .line .line-fig, .line:nth-of-type(even) .line-copy, .line:nth-of-type(even) .line-fig { grid-column: 1; }
  .line .line-fig { grid-row: 1; }
  .line .line-copy { grid-row: 2; }
  .fig-frame { --cut: 28px; }
}
@media (max-width: 520px) { .spec { grid-template-columns: 1fr; } }

/* ---------- Markets ---------- */
.markets { display: grid; grid-template-columns: 1fr 1fr; }
.market { padding-inline-end: clamp(24px, 4vw, 64px); }
.market + .market { padding-inline: clamp(24px, 4vw, 64px) 0; border-inline-start: 1px solid var(--rule-night); }
.market-word {
  font-size: clamp(48px, 6.4vw, 104px); line-height: .95; letter-spacing: var(--track-display); font-weight: 500;
  color: rgba(236, 238, 241, .22);
}
:root[lang="fa"] .market-word, :root[lang="ar"] .market-word { font-weight: 800; line-height: 1.3; }
.market h3 { margin: 28px 0 12px; font-size: 24px; color: #fff; }
.market > p { color: var(--on-night-2); max-width: 460px; }
.market .spec { margin-top: 28px; grid-template-columns: 1fr; }
@media (max-width: 860px) {
  .markets { grid-template-columns: 1fr; gap: 56px; }
  .market, .market + .market { padding-inline: 0; border-inline-start: 0; }
}

/* ---------- How we work ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-strong); }
.step { position: relative; padding: 36px 32px 0 0; }
[dir="rtl"] .step { padding: 36px 0 0 32px; }
.step-mark { --cut: 6px; position: absolute; top: -8px; inset-inline-start: 0; width: 15px; height: 15px; background: var(--ink); }
.step .mono { color: var(--ink-3); }
.step h3 { margin: 40px 0 12px; font-size: 24px; }
.step p { color: var(--ink-2); font-size: 15.5px; max-width: 280px; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; border-top: 0; }
  .step { border-top: 1px solid var(--rule-strong); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; row-gap: 40px; }
  .step h3 { margin-top: 18px; }
}

/* ---------- Group ---------- */
.org { display: grid; justify-items: center; --org-line: #b9b1a4; }
.org-parent {
  --cut: 16px;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 28px; background: var(--ink); color: var(--paper);
  font-size: 17px; font-weight: 500;
}
.org-parent svg { height: 36px; width: auto; aspect-ratio: 252.5 / 486.5; fill: currentColor; }
.org-stem { width: 1px; height: 36px; background: var(--org-line); }
.org-children {
  position: relative; width: 100%; max-width: 1140px; padding-top: 36px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
}
/* spans from the centre of the first child to the centre of the last: half a column in from each side */
.org-children::before { content: ""; position: absolute; top: 0; left: calc((100% - 64px) / 10); right: calc((100% - 64px) / 10); height: 1px; background: var(--org-line); }
.org-children li {
  position: relative; display: grid; justify-items: center; gap: 14px; text-align: center;
  padding: 20px 12px 22px; background: var(--card); border: 1px solid var(--rule);
  font-size: 15px; font-weight: 500; line-height: 1.35;
}
.org-children li::before { content: ""; position: absolute; top: -37px; left: 50%; width: 1px; height: 36px; background: var(--org-line); }
.org-children img { --cut: 10px; width: 64px; height: 64px; object-fit: cover; }
.org-children .org-detal { border-color: var(--detal); }
.org-detal strong { color: var(--detal-deep); font-weight: 600; }

@media (max-width: 680px) {
  .org { justify-items: start; }
  .org-stem { margin-inline-start: 34px; }
  .org-children { grid-template-columns: 1fr; gap: 10px; padding-top: 10px; padding-inline-start: 68px; }
  .org-children::before { top: 0; bottom: 42px; left: auto; right: auto; inset-inline-start: 34px; width: 1px; height: auto; }
  .org-children li { grid-template-columns: 48px minmax(0, 1fr); justify-items: start; align-items: center; text-align: start; padding: 14px 16px; }
  .org-children li::before { top: 50%; left: auto; inset-inline-start: -35px; width: 34px; height: 1px; }
  .org-children img { width: 48px; height: 48px; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact-copy { padding-top: 24px; border-top: 1px solid var(--rule-strong); }
.contact-title { margin: 28px 0 0; font-size: clamp(40px, 5.2vw, 76px); line-height: 1; letter-spacing: var(--track-display); }
:root[lang="fa"] .contact-title, :root[lang="ar"] .contact-title { line-height: 1.35; font-size: clamp(34px, 4.4vw, 62px); }
.contact-copy .spec { grid-template-columns: 1fr; }
.contact-note { margin-top: 28px; font-size: 14.5px; color: var(--ink-3); }

.contact-form {
  --cut: 36px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; }
.req { color: var(--ink-3); }
.opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b7b0a3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14, 32, 52, .1); }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, .08); }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; inset-inline-end: 18px; top: 50%;
  width: 7px; height: 7px; margin-top: -6px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); /* physical: always points down */
  transform: rotate(45deg); pointer-events: none;
}
.select-wrap select { padding-inline-end: 44px; cursor: pointer; }
.select-wrap select:invalid { color: var(--ink-3); }

.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha:empty { display: none; }
/* Score-based reCAPTCHA: the floating badge is hidden and replaced by the notice Google requires. */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-notice { font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.recaptcha-notice a { color: var(--ink-2); text-underline-offset: 3px; }
.captcha { min-height: 78px; max-width: 100%; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.form-privacy { flex: 1 1 220px; font-size: 13.5px; color: var(--ink-3); }

.spinner { display: none; width: 16px; height: 16px; border: 1.5px solid rgba(243, 241, 236, .35); border-top-color: var(--paper); border-radius: 50%; animation: spin .8s linear infinite; }
.is-sending .spinner { display: inline-block; }
.is-sending [data-submit] { pointer-events: none; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status:empty { display: none; }
.form-status { padding: 14px 16px; font-size: 15px; font-weight: 500; border-inline-start: 3px solid currentColor; }
.form-status.is-error { background: #fbeceb; color: var(--danger); }
.form-status.is-success { background: #e9f3ec; color: var(--success); }
.contact-form.is-done :is(.form-row, .field, .captcha, .form-foot, .recaptcha-notice) { display: none; }
.contact-form.is-done .form-status { padding: 32px 24px; font-size: 18px; }

@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}
/* the reCAPTCHA widget is a fixed 304px; scale it on narrow phones so it never forces overflow */
@media (max-width: 420px) {
  .contact-form { padding: 20px; --cut: 24px; }
  .captcha { min-height: 0; height: 72px; }
  .captcha > * { transform: scale(.9); transform-origin: 0 0; }
  [dir="rtl"] .captcha > * { transform-origin: 100% 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-2); padding-top: clamp(64px, 8vw, 112px); }
.footer-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-bottom: 64px; }
.footer-logo { width: 220px; height: auto; aspect-ratio: 769.28 / 486.5; fill: var(--on-night); margin-bottom: 28px; }
.footer-brand p { max-width: 340px; font-size: 15px; }
.footer-heading { margin-bottom: 16px; color: var(--on-night-3); }
.footer-heading:not(:first-child) { margin-top: 32px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: var(--on-night); text-decoration: none; transition: opacity .2s; }
.site-footer a:hover { opacity: .7; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-lang { font-size: 14.5px; opacity: .65; }
.footer-lang .lang-short { display: none; }
.footer-lang[aria-current] { opacity: 1; text-decoration: underline !important; text-underline-offset: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 24px 32px; border-top: 1px solid var(--rule-night); font-size: 13.5px; color: var(--on-night-3); }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-kicker, .hero-title, .hero-foot, .tiles { animation: none; }
  .hero-mark { animation: none; stroke-dashoffset: 0; }
  .ticker-track { animation: none; }
  .tile:hover img, .line:hover .fig-frame img { transform: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100dvh; display: grid; place-items: center; text-align: center; background: var(--night); color: var(--on-night); padding: 24px; }
.notfound svg { height: 120px; width: auto; aspect-ratio: 252.5 / 486.5; margin: 0 auto 28px; fill: none; stroke: var(--on-night-2); stroke-width: 2; }
.notfound h1 { font-size: 72px; letter-spacing: -0.04em; color: #fff; }
.notfound p { margin: 8px 0 32px; color: var(--on-night-2); }
.notfound nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.notfound .btn-ghost-light { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 1px var(--rule-night); }
.btn-accent { background: var(--paper); color: var(--ink); }
