/* ==========================================================================
   RahAsa Holding — ره‌آسا هولدینگ
   ========================================================================== */

@font-face { font-family: "IRANSansX"; src: url("../fonts/IRANSansX-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("../fonts/IRANSansX-Regular.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("../fonts/IRANSansX-Bold.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/InterTight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #f3f1e9;
  --bg-2: #ebe8de;
  --paper: #faf9f5;
  --ink: #141413;
  --ink-2: #3d3d3a;
  --muted: #6f6e68;
  --line: rgba(20, 20, 19, .11);
  --jade: #00543c;
  --jade-2: #00775a;
  --jade-3: #7fd6b9;
  --jade-ink: #032a1f;
  --night: #0e1311;
  --night-2: #151b18;
  --white: #fff;

  --font: "IRANSansX", "Inter Tight", system-ui, sans-serif;
  --font-display: var(--font);
  --font-latin: "Inter Tight", system-ui, sans-serif;

  --radius: 28px;
  --radius-sm: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --section-y: clamp(88px, 12vw, 168px);
}

.lang-en {
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.lang-en body, body.lang-en { line-height: 1.6; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--jade); color: #fff; }
:focus-visible { outline: 2px solid var(--jade-2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: none; padding-inline: clamp(16px, 3vw, 44px); }
.section { padding-block: var(--section-y); position: relative; }

.skip { position: fixed; inset-inline-start: 16px; top: -100px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 16px; }

/* ----- Type ----- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--jade); margin-bottom: 22px;
}
.lang-fa .kicker, .lang-ar .kicker { letter-spacing: 0; font-size: 14.5px; }
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.kicker--light { color: var(--jade-3); }

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.12;
  letter-spacing: -.025em;
  max-width: 17ch;
  text-wrap: balance;
}
.lang-fa .h2, .lang-ar .h2 { letter-spacing: -.01em; line-height: 1.32; }
.h2--xl { font-size: clamp(38px, 6.4vw, 96px); max-width: 15ch; }
.h2--light { color: #fff; }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 46ch; line-height: 1.75; }
.lead--light { color: rgba(255, 255, 255, .78); }

.section-head {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head .lead { justify-self: end; }

/* ----- Buttons ----- */
.btn {
  --bh: 54px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding-inline: 28px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap;
  background: var(--ink); color: #fff;
  transition: transform .5s var(--ease), background-color .3s, color .3s, box-shadow .4s;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit;
  background: var(--jade); transform: scale(0, 1); transform-origin: var(--origin, left);
  transition: transform .6s var(--ease);
}
[dir="rtl"] .btn::before { --origin: right; }
.btn:hover::before { transform: scale(1, 1); }
.btn .arr { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
[dir="rtl"] .arr { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
.btn--sm { --bh: 44px; padding-inline: 20px; font-size: 14.5px; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: #fff; }
.btn--glass {
  background: rgba(255, 255, 255, .1); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.btn--glass::before { background: rgba(255, 255, 255, .16); }
.btn--jade { background: var(--jade); }
.btn--jade::before { background: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost::before { background: var(--bg-2); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--jade); }
.link-arrow .arr { width: 18px; transition: transform .4s var(--ease); }
.link-arrow:hover .arr { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .arr { transform: scaleX(-1) translateX(4px); }

/* ----- Logo ----- */
.mark { fill: currentColor; overflow: visible; }
.wordmark { fill: currentColor; }
.wordmark-en { font-family: var(--font-latin); font-weight: 700; letter-spacing: -.03em; font-size: 23px; line-height: 1; }
.wordmark-en span { font-weight: 400; opacity: .82; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--jade); }
.brand__mark { width: 40px; height: 41px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; line-height: 1; }
.brand__text .wordmark { height: 23px; width: auto; display: block; }
.brand__text .wordmark-en { font-size: 22px; }
.brand__text small { font-size: 11px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; opacity: .78; padding-inline-start: 1px; }
.lang-fa .brand__text small, .lang-ar .brand__text small { letter-spacing: 0; font-size: 12px; font-weight: 500; }
.brand .stripe { transition: transform .6s var(--ease); }
.brand:hover .s1 { transform: translateX(-4px); }
.brand:hover .s2 { transform: translateX(-2px); transition-delay: .05s; }
.brand:hover .s3 { transform: translateX(0); }

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: var(--bg); color: var(--jade);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-io) .1s;
}
.is-ready .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__inner { display: grid; justify-items: center; gap: 28px; }
.loader__mark { width: 84px; height: 87px; }
.loader__mark .stripe { animation: stripeLoop 1.6s var(--ease-io) infinite; clip-path: inset(0 100% 0 0); }
.loader__mark .s2 { animation-delay: .12s; }
.loader__mark .s3 { animation-delay: .24s; }
.loader__bar { width: 120px; height: 2px; background: rgba(0, 84, 60, .15); border-radius: 2px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; background: var(--jade); border-radius: inherit; animation: loaderBar 1.2s var(--ease-io) infinite; }
@keyframes stripeLoop {
  0% { clip-path: inset(0 100% 0 0); }
  45%, 60% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}
@keyframes loaderBar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: #fff;
  transition: background-color .5s, color .5s, transform .6s var(--ease), box-shadow .5s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(243, 241, 233, .78);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
  transition: opacity .5s;
}
.site-header.is-scrolled::before { opacity: 1; background: rgba(10, 16, 14, .38); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.site-header.is-solid { color: var(--ink); }
.site-header.is-solid::before { opacity: 1; background: rgba(243, 241, 233, .8); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .brand { color: #fff; transition: color .5s; }
.site-header.is-solid .brand { color: var(--jade); }
.header__row { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav { margin-inline: auto; }
.nav ul { display: flex; gap: 6px; }
.nav a {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; opacity: .86; transition: opacity .3s, background-color .3s;
}
.nav a:hover, .nav a.is-current { opacity: 1; background: rgba(255, 255, 255, .12); }
.site-header.is-solid .nav a:hover, .site-header.is-solid .nav a.is-current { background: rgba(20, 20, 19, .06); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.btn--header { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header.is-solid .btn--header { background: var(--ink); box-shadow: none; }

.lang__quick {
  display: inline-flex; align-items: center; height: 36px; padding-inline: 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); transition: background-color .3s, box-shadow .3s;
}
.lang__quick:lang(fa) { font-family: "IRANSansX", system-ui, sans-serif; }
.lang__quick:hover { background: rgba(255, 255, 255, .12); }
.site-header.is-solid .lang__quick { box-shadow: inset 0 0 0 1px rgba(20, 20, 19, .2); }
.site-header.is-solid .lang__quick:hover { background: rgba(20, 20, 19, .06); }
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px; height: 44px; padding-inline: 14px; border-radius: 999px;
  font-family: var(--font-latin); font-weight: 600; font-size: 13.5px; letter-spacing: .04em;
  transition: background-color .3s;
}
.lang__btn:hover, .lang.is-open .lang__btn { background: rgba(255, 255, 255, .12); }
.site-header.is-solid .lang__btn:hover, .site-header.is-solid .lang.is-open .lang__btn { background: rgba(20, 20, 19, .06); }
.lang__btn svg { width: 18px; height: 18px; }
.lang__menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 190px;
  padding: 8px; border-radius: 18px; background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top;
  transition: opacity .25s, transform .35s var(--ease), visibility .25s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu a, .mmenu__langs a, .footer__langs a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 15px; }
.lang__menu a:hover { background: var(--bg); }
.lang__menu a[aria-current] { color: var(--jade); font-weight: 600; }
.lang__menu .code, .mmenu__langs .code { font-family: var(--font-latin); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; width: 26px; opacity: .55; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.burger span { position: absolute; inset-inline-start: 12px; width: 20px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 90; background: var(--night); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  clip-path: circle(0 at calc(100% - 40px) 38px);
  transition: clip-path .8s var(--ease-io);
}
[dir="rtl"] .mmenu { clip-path: circle(0 at 40px 38px); }
.menu-open .mmenu { clip-path: circle(150% at calc(100% - 40px) 38px); }
[dir="rtl"].menu-open .mmenu, .menu-open [dir="rtl"] .mmenu { clip-path: circle(150% at 40px 38px); }
.menu-open .site-header { color: #fff; }
.menu-open .site-header::before { opacity: 0; }
.menu-open .site-header .brand { color: #fff; }
.mmenu li { overflow: hidden; }
.mmenu nav a {
  display: block; font-size: clamp(36px, 10vw, 56px); font-weight: 700; line-height: 1.35;
  transform: translateY(105%); transition: transform .8s var(--ease) calc(.15s + var(--i) * .06s);
}
.menu-open .mmenu nav a { transform: none; }
.mmenu__foot { display: grid; gap: 18px; }
.mmenu__langs { display: flex; gap: 6px; flex-wrap: wrap; }
.mmenu__langs a { background: rgba(255, 255, 255, .06); }
.mmenu__langs a[aria-current] { background: var(--jade); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px;
  color: #fff; overflow: hidden; background: var(--night);
  display: flex; flex-direction: column; justify-content: center;
}
.hero__media { position: absolute; inset: 0; }
.hero__poster, .hero__video, .hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__poster { transform: scale(1.04); filter: saturate(.92) contrast(1.04); }
.hero__video { opacity: 0; transition: opacity 1.4s var(--ease), transform 1.6s var(--ease), filter 1.4s; transform: scale(1.06); filter: blur(8px) saturate(.9); }
.hero__video.is-active { opacity: 1; transform: scale(1); filter: blur(0) saturate(.95) contrast(1.04); }
.hero__gl { opacity: 0; transition: opacity 1.2s var(--ease); }
.has-gl .hero__gl { opacity: 1; }
.has-gl .hero__video { visibility: hidden; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 45%, rgba(8, 14, 12, .05) 0%, rgba(8, 14, 12, .35) 70%, rgba(8, 14, 12, .65) 100%),
    linear-gradient(180deg, rgba(8, 14, 12, .5) 0%, rgba(8, 14, 12, 0) 26%, rgba(8, 14, 12, 0) 52%, rgba(8, 14, 12, .72) 100%);
}
.hero__grain {
  position: absolute; inset: -50%; opacity: .11; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
.has-gl .hero__grain { display: none; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(4%, -8%); }
  60% { transform: translate(-8%, -2%); } 80% { transform: translate(6%, 6%); } 100% { transform: translate(0, 0); }
}

.hero__content {
  position: relative; z-index: 2; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding-top: calc(var(--header-h) * .6);
}
.hero__logo { margin-bottom: clamp(22px, 3vh, 36px); }
.hero__logo { position: relative; --mx: 0; --my: 0; }
.hero__logo::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 260%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.6);
  background: radial-gradient(circle, rgba(127, 214, 185, .38) 0%, rgba(0, 119, 90, .12) 35%, rgba(0, 119, 90, 0) 65%);
  opacity: 0; pointer-events: none; z-index: -1;
}
.is-ready .hero__logo::before { animation: glowIn 1.6s var(--ease) .9s forwards, glowPulse 5.2s ease-in-out 2.5s infinite; }
@keyframes glowIn { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes glowPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.hero__mark { width: clamp(72px, 7.4vw, 112px); height: auto; aspect-ratio: 492 / 508; fill: #fff; overflow: visible; filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .35)); }
.hero__mark .lay { transform: translate(calc(var(--mx) * var(--d)), calc(var(--my) * var(--d))); transition: transform 1s var(--ease); }
.hero__mark .dot { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.is-ready .hero__mark .dot { animation: dotIn .9s cubic-bezier(.34, 1.56, .64, 1) 1.15s forwards, dotBeat 2.6s ease-in-out 2.4s infinite; }
.hero__mark .ring { fill: none; stroke: #7fd6b9; stroke-width: 2; transform-box: fill-box; transform-origin: center; opacity: 0; }
.is-ready .hero__mark .ring { animation: ring 2.6s ease-out 2.4s infinite; }
@keyframes dotIn { to { transform: scale(1); } }
@keyframes dotBeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.22); } 24% { transform: scale(1); } }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(3.2); } }
.hero__mark .l1 { --d: 16px; }
.hero__mark .l2 { --d: 9px; }
.hero__mark .l3 { --d: 3px; }
/* middle stripe turns over on its long axis every few seconds */
.hero__mark .spin { transform-box: fill-box; transform-origin: center; }
.is-ready .hero__mark .l2 .spin { animation: stripeSpin 4.8s cubic-bezier(.65, 0, .35, 1) 2.6s infinite; }
@keyframes stripeSpin { 0%, 55% { transform: perspective(600px) rotateX(0); } 100% { transform: perspective(600px) rotateX(360deg); } }
.brand__mark path:nth-child(2) { transform-box: fill-box; transform-origin: center; animation: stripeSpin 6s cubic-bezier(.65, 0, .35, 1) 3s infinite; }
.hero__mark .stripe, .hero__mark .sheen { clip-path: inset(0 100% 0 0); }
.hero__mark .flow { opacity: 0; }
.is-ready .hero__mark .flow { animation: stripeEnter 1.3s var(--ease) forwards, stripeFlow 4.8s ease-in-out 2s infinite; }
.is-ready .hero__mark .stripe, .is-ready .hero__mark .sheen { animation: stripeIn 1.3s var(--ease-io) forwards; }
.is-ready .hero__mark .l1 .flow, .is-ready .hero__mark .s1 { animation-delay: .2s, 2s; }
.is-ready .hero__mark .l2 .flow, .is-ready .hero__mark .s2 { animation-delay: .36s, 2.25s; }
.is-ready .hero__mark .l3 .flow, .is-ready .hero__mark .s3 { animation-delay: .52s, 2.5s; }
@keyframes stripeEnter { from { opacity: 0; transform: translateX(-46px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero__leak { position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: screen; opacity: .55;
  background:
    radial-gradient(30% 40% at 20% 30%, rgba(255, 176, 102, .55), transparent 70%),
    radial-gradient(28% 36% at 80% 70%, rgba(110, 230, 180, .45), transparent 70%),
    radial-gradient(18% 60% at 60% 10%, rgba(255, 236, 200, .3), transparent 70%);
  animation: leak 16s ease-in-out infinite alternate; }
@keyframes leak {
  0% { transform: translate(-6%, -2%) rotate(0deg) scale(1); opacity: .35; }
  50% { transform: translate(5%, 4%) rotate(8deg) scale(1.1); opacity: .65; }
  100% { transform: translate(-2%, 6%) rotate(-6deg) scale(1.05); opacity: .45; }
}
.hero__bars { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero__bars::before, .hero__bars::after { content: ""; position: absolute; inset-inline: 0; height: 0; background: #050807; z-index: 1; transition: height 1.6s var(--ease-io) .2s; }
.hero__bars::before { top: 0; } .hero__bars::after { bottom: 0; }
.is-loading .hero__bars::before, .is-loading .hero__bars::after { height: 50%; }
@keyframes stripeIn { to { clip-path: inset(0 0 0 0); } }
@keyframes stripeFlow { 0%, 100% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(-6px); opacity: 1; } }

.hero__eyebrow {
  font-size: clamp(15px, 1.4vw, 19px); font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82); margin-bottom: 18px;
}
.lang-fa .hero__eyebrow, .lang-ar .hero__eyebrow { letter-spacing: .02em; font-size: clamp(18px, 1.75vw, 25px); font-weight: 600; }
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 6.6vw, 128px); line-height: 1.05; letter-spacing: -.035em;
  max-width: none; white-space: nowrap;
  text-shadow: 0 8px 60px rgba(0, 0, 0, .25);
}
.hero__line { display: inline-block; white-space: nowrap; }
.lang-fa .hero__title, .lang-ar .hero__title { font-weight: 700; line-height: 1.3; letter-spacing: -.01em; font-size: clamp(30px, 7.4vw, 140px); -webkit-text-stroke: .018em #fff; paint-order: stroke fill; }
.w, .mw, .aw { display: inline-block; }
.w { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: top; }
.w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: left bottom; }
.is-ready .w > span { transform: none; transition: transform 1.3s var(--ease) calc(.45s + var(--i) * .09s); }
.hero__sub { max-width: none; margin-top: clamp(18px, 2.4vh, 28px); font-size: clamp(16px, 1.35vw, 20px); color: rgba(255, 255, 255, .86); text-wrap: balance; }
.hero__sub > span { display: block; }
@media (min-width: 760px) { .hero__sub > span { white-space: nowrap; } }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: clamp(26px, 3.6vh, 40px); }

.reveal-up { opacity: 0; transform: translateY(18px); }
.is-ready .reveal-up { opacity: 1; transform: none; transition: opacity 1s var(--ease) calc(var(--d, 0s) + .5s), transform 1.2s var(--ease) calc(var(--d, 0s) + .5s); }

.hero__bar {
  position: absolute; inset: auto 0 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-bottom: clamp(20px, 3.5vh, 36px);
  max-width: none;
}
.chapters { display: flex; gap: 28px; }
.chapter { display: grid; grid-template-columns: auto auto; column-gap: 10px; row-gap: 8px; align-items: baseline; opacity: .55; transition: opacity .6s; }
.chapter.is-active { opacity: 1; }
.chapter__n { font-family: var(--font-latin); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.chapter__t { font-size: 13.5px; }
.chapter__line { grid-column: 1 / -1; width: 120px; height: 2px; background: rgba(255, 255, 255, .25); border-radius: 2px; overflow: hidden; }
.chapter__line i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(var(--p, 0)); transform-origin: left; }
[dir="rtl"] .chapter__line i { transform-origin: right; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(20px, 3.5vh, 36px); }
.lang-fa .scroll-cue, .lang-ar .scroll-cue { letter-spacing: 0; }
.scroll-cue i { width: 1.5px; height: 44px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; border-radius: 2px; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero__toggle { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); transition: background-color .3s; }
.hero__toggle:hover { background: rgba(255, 255, 255, .14); }
.hero__toggle svg { width: 18px; height: 18px; }
.hero__toggle .i-play, .is-paused .hero__toggle .i-pause { display: none; }
.is-paused .hero__toggle .i-play { display: block; }

/* ==========================================================================
   Products — a checkerboard on cream: one text cell, one photo cell per product
   ========================================================================== */
.products { background: var(--bg); color: var(--ink); }
.products .container--wide { max-width: 1720px; }
.products .kicker { color: var(--jade); }
.p-icon { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; }
.p-icon svg { width: 100%; height: 100%; }
.p-icon--studio { background: #fff; border-radius: 13px; box-shadow: inset 0 0 0 1px var(--line); padding: 8px 7px; }
.f-icon { width: 54px; height: 54px; color: var(--jade); overflow: visible; }

.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--radius); overflow: hidden; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pair > * { min-width: 0; }
/* checkerboard: every other row starts with the photo */
.pair:nth-child(4n+3) .pair__img, .pair:nth-child(4n+4) .pair__img { order: -1; }

/* Text cells: pencil-lead graphite and deep burnt brown; green on hover.
   Nothing here changes size on hover, so the board never moves under the pointer. */
.pair__text {
  --cell: #45261a;
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--cell); color: #f3efe6;
  transition: background-color .5s ease;
}
.pair:hover .pair__text, .pair:focus-within .pair__text { background: var(--jade); }

.pair__face, .pair__info {
  position: absolute; inset: 0; padding: clamp(24px, 2.6vw, 44px);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: opacity .45s ease, transform .6s var(--ease);
}
.pair__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pair__top .pair__badge { flex-shrink: 0; margin-top: .5em; }
.pair__top .pair__n { flex-shrink: 0; }
.pair__text .f-icon { width: clamp(48px, 3.8vw, 66px); height: auto; aspect-ratio: 1; color: #efe7d8; }
.pair--core .pair__text .f-icon { aspect-ratio: 100 / 82; width: clamp(58px, 4.6vw, 78px); }
.pair__n { font-family: var(--font-latin); font-size: clamp(30px, 2.6vw, 46px); font-weight: 300; line-height: 1; letter-spacing: -.02em; color: rgba(243, 239, 230, .5); }
.pair__badge { font-size: 12.5px; font-weight: 600; color: #efe7d8; padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(243, 239, 230, .35); }
.pair h3 { font-size: clamp(24px, 2.2vw, 38px); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; color: #fff; }

/* the info layer: small and quiet, only on hover */
.pair__info { justify-content: flex-end; gap: 6px; opacity: 0; transform: translateY(14px); pointer-events: none; }
.pair__name { font-family: var(--font-latin); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.pair__title { font-size: clamp(17px, 1.3vw, 20px); font-weight: 700; color: #fff; }
.pair__desc { font-size: 13px; line-height: 1.75; color: rgba(255, 255, 255, .82); max-width: 34ch; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pair__order { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; align-self: flex-start; font-size: 13.5px; font-weight: 600; color: #fff; padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); transition: background-color .3s, color .3s; }
.pair__order:hover { background: #fff; color: var(--jade); }
.pair__order .arr { width: 16px; height: 16px; }
.pair:hover .pair__face, .pair:focus-within .pair__face { opacity: 0; transform: translateY(-14px); }
.pair:hover .pair__info, .pair:focus-within .pair__info { opacity: 1; transform: none; pointer-events: auto; transition-delay: .08s; }

.pair__img { position: relative; margin: 0; overflow: hidden; background: #1d1c1a; }
.pair__img picture { position: absolute; inset: 0; }
.pair__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.pair:hover .pair__img img { transform: scale(1.09); }
/* dark halo over the photo, with the product's English name on it */
.pair__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, rgba(10, 10, 9, .15) 0%, rgba(10, 10, 9, .55) 70%, rgba(10, 10, 9, .8) 100%),
    linear-gradient(180deg, rgba(10, 10, 9, 0) 45%, rgba(10, 10, 9, .6) 100%);
  transition: opacity .6s ease;
}
.pair:hover .pair__img::after { opacity: .75; }
.pair__cap {
  position: absolute; z-index: 1; inset: auto clamp(22px, 2.4vw, 40px) clamp(20px, 2.2vw, 36px);
  font-family: var(--font-latin); font-weight: 700; font-size: clamp(22px, 2.1vw, 36px); line-height: 1.05; letter-spacing: -.02em;
  color: #fff; text-align: left; text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

/* reveal on scroll: opacity and a short rise only */
.pair > * { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1s var(--ease); }
.pair > :last-child { transition-delay: .12s; }
.pair.is-in > * { opacity: 1; transform: none; }
.pair.is-in > .pair__text { transition: opacity .9s ease, transform 1s var(--ease), background-color .5s ease; }

/* touch screens have no hover: show the small info instead of the face */
@media (hover: none) {
  .pair__face { opacity: 0; }
  .pair__info { opacity: 1; transform: none; pointer-events: auto; }
}

/* the ask box takes a whole pair */
.pair--ask { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 2.4vw, 36px); align-items: start; padding: clamp(24px, 2.6vw, 44px); background: var(--jade); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.ask__mark { display: none; }
.ask__intro h3 { font-size: clamp(22px, 1.8vw, 30px); line-height: 1.35; margin: 12px 0 10px; color: #fff; }
.ask__intro > p:last-child { color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.75; }
.pair--ask .kicker { color: var(--jade-3); }

.qform { display: grid; gap: 10px; position: relative; }
.qform .field-row { gap: 10px; }
.qform .field label { max-width: calc(100% - 34px); overflow: hidden; text-overflow: ellipsis; }
.qform .field input { height: 54px; }
.qform .field textarea { height: 92px; min-height: 0; padding-top: 24px; }
.qform .btn { justify-self: start; }
.qform .form__error { min-height: 0; margin: 0; }
.qform.is-sent > :not([data-qdone]) { visibility: hidden; }
.qform__done { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; border-radius: var(--radius-sm); }
.qform__done svg { width: 46px; height: 46px; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.qform__done strong { font-size: 20px; }
.pair--ask .field input, .pair--ask .field textarea { background: rgba(255, 255, 255, .96); }
.pair--ask .form__error { color: #ffd9cf; }

/* order dialog */
.dialog-open { overflow: hidden; }
.odlg { border: 0; padding: 0; background: none; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); color: var(--ink); overflow: visible; }
.odlg::backdrop { background: rgba(10, 16, 14, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.odlg[open] { animation: dlgIn .5s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.odlg__card { position: relative; background: var(--paper); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .5); max-height: calc(100vh - 32px); overflow: auto; }
.odlg__close { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background-color .3s; }
.odlg__close:hover { background: var(--bg-2); }
.odlg__close svg { width: 18px; height: 18px; }
.odlg__head { display: flex; align-items: center; gap: 16px; padding-inline-end: 40px; }
.odlg__icon { width: 60px; height: 60px; flex-shrink: 0; display: grid; place-items: center; border-radius: 18px; background: var(--bg); }
.odlg__icon .f-icon { width: 38px; height: 38px; color: var(--jade); }
.odlg__kicker { font-size: 13px; color: var(--jade); font-weight: 600; }
.odlg__head h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.3; }
.odlg__lead { color: var(--muted); font-size: 15px; margin: 14px 0 20px; }
.odlg .qform .btn { background: var(--jade); color: #fff; justify-self: stretch; }
.odlg .qform .btn::before { background: var(--ink); }
.odlg .qform__done { background: var(--paper); color: var(--ink); }
.odlg .qform__done svg { background: rgba(0, 84, 60, .12); color: var(--jade); }

@media (max-width: 1100px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .pair:nth-child(4n+3) .pair__img, .pair:nth-child(4n+4) .pair__img { order: 0; }
  .pair:nth-child(even) .pair__img { order: -1; }
  .pair__text { aspect-ratio: auto; }
  .pair > * { min-height: 360px; }
  .pair--ask > * { min-height: 0; }
}
@media (max-width: 640px) {
  .pair, .pair--ask { grid-template-columns: minmax(0, 1fr); }
  .pair .pair__img, .pair:nth-child(n) .pair__img { order: -1; min-height: 0; aspect-ratio: 16 / 11; }
  .pair__text { min-height: 300px; }
}

/* ==========================================================================
   Tiers
   ========================================================================== */
.tiers { background: var(--paper); color: var(--ink); }
.tier { color: #fff; }
.tiers .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.tiers .lead { color: var(--ink-2); }
.tiers .kicker { color: var(--jade); }
.tiers__row { display: flex; gap: 12px; height: clamp(540px, 76vh, 780px); }
.tier {
  position: relative; flex: 1; min-width: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: flex 1s var(--ease);
  isolation: isolate;
}
.tier.is-open { flex: 3.4; cursor: default; }
.tier__bg { position: absolute; inset: 0; z-index: -2; }
.tier__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease), filter 1s; filter: saturate(.85) brightness(.85); }
.tier.is-open .tier__bg img { transform: scale(1.02); filter: saturate(1) brightness(1); }
.tier__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 14, 12, .15) 0%, rgba(8, 14, 12, 0) 40%, rgba(8, 14, 12, .3) 100%); transition: background .8s; }
.tier:not(.is-open) .tier__shade { background: rgba(8, 14, 12, .3); }
.tier__collapsed { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 28px 0; transition: opacity .5s; }
.tier.is-open .tier__collapsed { opacity: 0; pointer-events: none; }
.tier__num { font-family: var(--font-latin); font-size: 13px; font-weight: 600; letter-spacing: .08em; opacity: .7; }
.tier__collapsed .tier__num, .tier__vlabel { background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 999px; padding: 6px 10px; opacity: 1; }
.tier__vlabel { padding: 16px 8px; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-latin); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; white-space: nowrap; }
.tier__content {
  position: absolute; inset: auto 16px 16px; padding: clamp(22px, 2.6vw, 36px);
  max-width: 620px; border-radius: 22px;
  background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .7s var(--ease);
  pointer-events: none;
}
.tier.is-open .tier__content { opacity: 1; transform: none; transition-delay: .35s; pointer-events: auto; }
.tier__label { display: inline-flex; gap: 10px; align-items: center; font-family: var(--font-latin); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); margin-bottom: 18px; }
.tier h3 { font-size: clamp(26px, 3vw, 44px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; max-width: 18ch; }
.tier__ex { color: var(--jade-3); font-size: 15px; margin-top: 10px; }
.tier__desc { color: rgba(255, 255, 255, .82); margin-top: 14px; font-size: 16px; max-width: 54ch; }
.tier__mods-label { margin-top: 20px; font-size: 12.5px; opacity: .6; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 24px; }
.chips li { font-family: var(--font-latin); font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }

/* ==========================================================================
   Approach
   ========================================================================== */
.approach { padding-bottom: calc(var(--section-y) * .8); }
.approach__visual { position: relative; border-radius: clamp(24px, 3vw, 40px); overflow: hidden; height: clamp(520px, 84vh, 860px); color: #fff; isolation: isolate; }
.approach__visual img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; will-change: transform; }
.approach__visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 14, 12, .55) 0%, rgba(8, 14, 12, .1) 40%, rgba(8, 14, 12, .7) 100%); }
.approach__overlay {
  position: absolute; top: clamp(16px, 3vw, 40px); inset-inline-start: clamp(16px, 3vw, 40px); max-width: min(760px, calc(100% - 32px));
  padding: clamp(24px, 3.4vw, 48px); border-radius: 26px; display: flex; flex-direction: column;
  background: rgba(0, 0, 0, .38); -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.approach__overlay .lead { margin-top: 20px; }
.aw { overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.aw > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease) calc(var(--i) * .07s + .2s); }
.is-in .aw > span { transform: none; }
.approach__road { position: absolute; inset: auto 0 8%; width: 100%; height: 110px; overflow: visible; }
.approach__road path { fill: none; stroke: var(--jade-3); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: var(--road, 1); filter: drop-shadow(0 0 12px rgba(127, 214, 185, .8)); vector-effect: non-scaling-stroke; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 40px); margin-top: clamp(40px, 5vw, 64px); counter-reset: s; }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.step::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 0; height: 2px; background: var(--jade); transition: width 1.2s var(--ease) calc(var(--d) + .3s); }
.step.is-in::before { width: 100%; }
.step__n { font-family: var(--font-latin); font-size: 13px; font-weight: 700; color: var(--jade); letter-spacing: .06em; }
.step h3 { font-size: clamp(21px, 2vw, 28px); margin: 10px 0 8px; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: radial-gradient(90% 80% at 100% 0%, #00543c 0%, rgba(0, 84, 60, 0) 60%), linear-gradient(170deg, #032a1f 0%, #02221a 60%, #011a14 100%); color: #fff; overflow: hidden; }
.contact__bg { position: absolute; inset-inline-end: -8vw; top: 50%; transform: translateY(-50%); width: 64vw; max-width: 900px; opacity: .06; pointer-events: none; }
.contact__mark { width: 100%; height: auto; }
.contact__mark .stripe { animation: stripeFlow 9s ease-in-out infinite; }
.contact__mark .s2 { animation-delay: -3s; }
.contact__mark .s3 { animation-delay: -6s; }
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.contact__intro .lead { margin-top: 22px; }
.contact__points { display: grid; gap: 12px; margin-top: 32px; }
.contact__points li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: rgba(255, 255, 255, .88); }
.contact__points svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(127, 214, 185, .16); color: var(--jade-3); flex-shrink: 0; }
.contact__mail { display: inline-block; margin-top: 36px; font-family: var(--font-latin); font-size: clamp(20px, 2vw, 26px); font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 4px; transition: border-color .3s, color .3s; }
.contact__mail:hover { color: var(--jade-3); border-color: var(--jade-3); }

.formcard { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 48px); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .6); position: relative; overflow: hidden; }
.form__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.form__step { font-size: 13.5px; color: var(--muted); }
.form__step b { color: var(--ink); font-family: var(--font-latin); }
.form__progress { flex: 1; max-width: 200px; height: 4px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.form__progress i { display: block; height: 100%; width: 33.33%; background: var(--jade); border-radius: inherit; transition: width .7s var(--ease); }
.fstep { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.fstep.is-active { display: grid; gap: 16px; animation: stepIn .6s var(--ease); }
.fstep.is-back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-24px); } }
[dir="rtl"] .fstep.is-active { animation-name: stepInBack; }
[dir="rtl"] .fstep.is-back { animation-name: stepIn; }
.fstep legend { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; padding: 0; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 16px 8px; min-height: 60px; outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 130px; padding-top: 28px; line-height: 1.7; }
.field input:hover, .field textarea:hover { border-color: rgba(20, 20, 19, .25); }
.field input:focus, .field textarea:focus { border-color: var(--jade); box-shadow: 0 0 0 4px rgba(0, 84, 60, .12); }
.field label { position: absolute; inset-inline-start: 17px; top: 19px; color: var(--muted); font-size: 16px; pointer-events: none; transform-origin: var(--lo, left) top; transition: transform .35s var(--ease), color .3s; white-space: nowrap; }
[dir="rtl"] .field label { --lo: right; }
.field label em { font-style: normal; font-size: .85em; opacity: .7; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.76); color: var(--jade); }
.field input[dir="ltr"] { text-align: left; }
[dir="rtl"] .field input[dir="ltr"]:placeholder-shown { text-align: right; }
.field .hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; padding-inline: 4px; line-height: 1.6; }
.err { display: block; font-size: 12.5px; color: #b4442c; padding-inline: 4px; margin-top: 4px; min-height: 0; }
.err:empty { display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d0694f; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qlabel { font-weight: 600; font-size: 15.5px; margin-top: 4px; }
.qlabel small { font-weight: 400; color: var(--muted); margin-inline-start: 6px; font-size: 13px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile input, .pill input, .consent input { position: absolute; opacity: 0; pointer-events: none; }
.tile__box { display: grid; gap: 4px; height: 100%; padding: 16px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .3s, background-color .3s, transform .4s var(--ease); }
.tile__box:hover { transform: translateY(-2px); }
.tile__box strong { font-family: var(--font-latin); font-size: 15.5px; }
.tile__box small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.tile__bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-bottom: 8px; }
.tile__bars i { width: 6px; border-radius: 2px; background: var(--bg-2); }
.tile__bars i:nth-child(1) { height: 40%; }
.tile__bars i:nth-child(2) { height: 70%; }
.tile__bars i:nth-child(3) { height: 100%; }
.tile__bars[data-level="1"] i:nth-child(1), .tile__bars[data-level="2"] i:nth-child(-n+2), .tile__bars[data-level="3"] i { background: var(--jade-2); }
.tile input:checked + .tile__box { box-shadow: inset 0 0 0 2px var(--jade); background: #f0f8f4; }
.tile input:focus-visible + .tile__box, .pill input:focus-visible + span, .pill input:focus-visible ~ span, .consent input:focus-visible + .box { outline: 2px solid var(--jade-2); outline-offset: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 14.5px; transition: box-shadow .3s, background-color .3s, color .3s; user-select: none; }
.pill:hover { box-shadow: inset 0 0 0 1px rgba(20, 20, 19, .3); }
.pill--icon { padding-inline-start: 7px; }
.pill .p-icon { width: 26px; height: 26px; }
.pill .p-icon--studio { padding: 4px 3px; border-radius: 8px; }
.pill:has(input:checked) { background: var(--jade); color: #fff; box-shadow: none; }
.pills--modules { gap: 8px; }
.consent { position: relative; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent .box { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px rgba(20, 20, 19, .3); display: grid; place-items: center; color: #fff; transition: background-color .3s, box-shadow .3s; flex-shrink: 0; }
.consent .box svg { width: 16px; opacity: 0; transition: opacity .2s; }
.consent input:checked + .box { background: var(--jade); box-shadow: none; }
.consent input:checked + .box svg { opacity: 1; }
.form__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.form__nav [data-next], .form__nav [data-submit] { margin-inline-start: auto; }
.form__error { color: #b4442c; font-size: 14px; margin-top: 12px; }
.form__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__done { text-align: center; padding: clamp(32px, 6vw, 72px) 0; display: grid; justify-items: center; gap: 12px; outline: none; }
.done__mark { width: 84px; color: var(--jade); margin-bottom: 12px; }
.done__mark .mark { width: 100%; height: auto; }
.done__mark .stripe { clip-path: inset(0 100% 0 0); animation: stripeIn 1.1s var(--ease-io) forwards; }
.done__mark .s2 { animation-delay: .12s; }
.done__mark .s3 { animation-delay: .24s; }
.form__done h3 { font-size: clamp(26px, 2.6vw, 34px); }
.form__done p { color: var(--muted); max-width: 36ch; margin-bottom: 16px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--night); color: #e9e7df; padding-top: clamp(64px, 8vw, 110px); overflow: hidden; position: relative; isolation: isolate; }
.footer > .container { position: relative; z-index: 1; }
/* a soft, blurred city at dusk behind the giant wordmark */
.footer__bg { position: absolute; z-index: 0; inset: auto 0 0; height: 78%; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 100%); }
.footer__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; filter: blur(5px) saturate(.9) brightness(.55); transform: scale(1.06); opacity: .75; }
.footer__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 19, 17, .2) 0%, rgba(14, 19, 17, .55) 100%); }
.footer__top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.footer .brand { color: #fff; }
.footer__brand p { margin-top: 18px; color: rgba(255, 255, 255, .6); font-size: 16px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer h4 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 16px; }
.lang-fa .footer h4, .lang-ar .footer h4 { letter-spacing: 0; font-size: 14px; }
.footer ul { display: grid; gap: 8px; }
.footer li a, .footer li { font-size: 15px; color: rgba(255, 255, 255, .78); transition: color .3s; }
.footer li a:hover { color: var(--jade-3); }
.footer__langs { display: flex; gap: 4px; margin-top: 18px; flex-wrap: wrap; }
.footer__langs a { padding: 6px 10px; font-size: 13.5px; color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .05); }
.footer__langs a .code { display: none; }
.footer__langs a[aria-current] { background: var(--jade); color: #fff; }
.footer__giant { margin-top: clamp(56px, 8vw, 120px); color: rgba(255, 255, 255, .05); line-height: .8; position: relative; }
.footer__giant svg { width: 100%; height: clamp(160px, 24vw, 380px); fill: currentColor; }
.footer__giant span { display: block; font-family: var(--font-latin); font-weight: 800; font-size: 25vw; letter-spacing: -.07em; text-align: center; line-height: .78; white-space: nowrap; }
.footer__giant { background: linear-gradient(90deg, rgba(127, 214, 185, 0) 0%, rgba(127, 214, 185, .6) 50%, rgba(127, 214, 185, 0) 100%) no-repeat; background-size: 40% 100%; background-position: var(--sx, -40%) 0; -webkit-background-clip: text; background-clip: text; }
.footer__giant svg { fill: rgba(255, 255, 255, .12); transition: fill 1.2s; }
.footer__giant:hover svg { fill: rgba(127, 214, 185, .14); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: clamp(20px, 3vw, 40px); font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.to-top { display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
.to-top:hover { color: #fff; }
.to-top svg { width: 16px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-clip { clip-path: inset(8% 6% 8% 6% round 40px); transition: clip-path 1.5s var(--ease); }
.reveal-clip.is-in { clip-path: inset(0 0 0 0 round 0px); }
.approach__visual.reveal-clip.is-in { clip-path: inset(0 0 0 0 round clamp(24px, 3vw, 40px)); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__actions { margin-inline-start: auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__intro { position: static; }
}

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head .lead { justify-self: start; }
  .tiers__row { flex-direction: column; height: auto; }
  .tier, .tier.is-open { flex: none; min-height: 560px; cursor: default; }
  .tier__collapsed { display: none; }
  .tier .tier__content { opacity: 1; transform: none; pointer-events: auto; }
  .tier .tier__shade { background: rgba(8, 14, 12, .15) !important; }
  .tier .tier__bg img { transform: none; filter: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .chapters { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .btn--header { display: none; }
  .hero__cta .btn { width: 100%; }
  .hero__cta { width: 100%; max-width: 360px; }
  .ticks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .tile__box { grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
  .tile__bars { grid-row: span 2; margin: 0; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__toggle { position: absolute; inset-inline-end: var(--gutter); bottom: clamp(20px, 3.5vh, 36px); }
}

@media (max-height: 820px) { .scroll-cue { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-up { opacity: 1; transform: none; }
  .reveal-clip { clip-path: none; }
  .w > span, .aw > span { transform: none; }
  .mw > span { opacity: 1; }
}

