/* 📘 شرح للدراسة:
   تصميم الموقع كله. الترتيب: 1) :root المتغيرات (الألوان، الخطوط، الاستدارات) ← غيّر الهوية من هنا
   2) القواعد العامة body/h1/p ← 3) الأزرار .btn ← 4) الهيدر .site-header ← 5) الواجهة .hero و .lift-stage
   6) الخدمات .svc-* ← 7) الحاسبة .calc ← 8) الباقات .plan ← 9) المعرض والتواصل والفوتر
   10) @media للهاتف (max-width) ← 11) "v8 cinema" مقدمة الباب ← 12) html.lite وضع الهواتف الضعيفة. الدرس المبسط: learn/02.
*/
/* ═══════════════════════════════════════════════════════════════
   SALAASA TECH — Site Stylesheet v5.0
   Brand (locked): Navy #0a0f1c · Gold #d9a93e · Electric Blue #2f8fe6
   Fonts: Cairo / Tajawal (AR) · Inter (FR/EN)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --navy: #0a0f1c;
  --navy-2: #0d1426;
  --navy-3: #121b33;
  --navy-4: #18233f;
  --gold: #d9a93e;
  --gold-hi: #f2cf7a;
  --gold-lo: #9c6f1c;
  --blue: #2a6fe6;
  --blue-hi: #7db2ff;
  --royal: #1747b5;
  --grad-royal: linear-gradient(180deg, #8dbbff 0%, #3a7cf2 45%, #1f56c9 100%);
  --font-brand: "Cinzel", "Trajan Pro", Georgia, serif;
  --success: #22c55e;
  --danger: #ef4444;

  --bg: var(--navy);
  --bg-2: var(--navy-2);
  --surface: rgba(18, 27, 51, 0.62);
  --surface-solid: #111a30;
  --line: rgba(217, 169, 62, 0.16);
  --line-soft: rgba(148, 163, 184, 0.12);
  --text: #eef2f8;
  --text-2: #b9c3d6;
  --muted: #8b97ad;
  --on-gold: #0a0f1c;

  --grad-gold: linear-gradient(135deg, #f6d98a 0%, #d9a93e 45%, #a8781f 100%);
  --grad-blue: linear-gradient(135deg, #7db2ff 0%, #2a6fe6 55%, #1747b5 100%);
  --grad-text: linear-gradient(100deg, #f6d98a 0%, #d9a93e 40%, #7cc4ff 100%);

  --font-ar: "Cairo", "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-ar-body: "Tajawal", "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-lat: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-head: var(--font-ar);
  --font-body: var(--font-ar-body);
  --font-num: "Inter", system-ui, sans-serif;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --shadow-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(0,0,0,.35);
  --shadow-2: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 60px rgba(0,0,0,.45);
  --glow-gold: 0 0 0 1px rgba(217,169,62,.35), 0 12px 40px rgba(217,169,62,.18);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --header-h: 72px;
}

:root[data-theme="light"] {
  --bg: #f6f3ec;
  --bg-2: #efe9dc;
  --surface: rgba(255,255,255,.78);
  --surface-solid: #ffffff;
  --line: rgba(156, 111, 28, .22);
  --line-soft: rgba(10, 15, 28, .1);
  --text: #0a0f1c;
  --text-2: #33405a;
  --muted: #5d6981;
  --grad-text: linear-gradient(100deg, #8a5f12 0%, #b98a2c 45%, #1f6fc0 100%);
  --shadow-1: 0 10px 30px rgba(10,15,28,.08);
  --shadow-2: 0 24px 60px rgba(10,15,28,.12);
}

[lang="fr"], [lang="en"] { --font-head: var(--font-lat); --font-body: var(--font-lat); }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.75;
  overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[lang="fr"] body, [lang="en"] body { font-size: 16px; line-height: 1.65; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; color: var(--text-2); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(217,169,62,.35); color: inherit; }

/* grain + ambient */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(47,143,230,.16), transparent 60%),
    radial-gradient(800px 600px at -10% 20%, rgba(217,169,62,.10), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(47,143,230,.08), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 9998; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
:root[data-theme="light"] body::after { opacity: .05; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.015) 20%, rgba(255,255,255,.015) 80%, transparent); }
:root[data-theme="light"] .section--alt { background: linear-gradient(180deg, transparent, rgba(10,15,28,.025) 20%, rgba(10,15,28,.025) 80%, transparent); }

/* ── Section header with floor display ── */
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.floor-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 6px 14px 6px 6px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: rgba(217,169,62,.06);
  font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .02em;
}
.floor-chip .led {
  font-family: var(--font-num); font-weight: 800; font-size: 12px; letter-spacing: .12em;
  padding: 3px 9px; border-radius: var(--r-pill); color: #ffb648; background: #1a0f02;
  box-shadow: inset 0 0 8px rgba(255,140,0,.35), 0 0 12px rgba(255,170,60,.25);
  text-shadow: 0 0 6px rgba(255,170,60,.8); direction: ltr;
}
:root[data-theme="light"] .floor-chip .led { background: #0a0f1c; }
:root[data-theme="light"] .hero-badge, :root[data-theme="light"] .floor-chip { color: var(--gold-lo); }
:root[data-theme="light"] .grad-text, :root[data-theme="light"] .sec-title .grad { -webkit-text-fill-color: transparent; }
.sec-title { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; color: var(--text); }
.sec-title .grad, .grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); }

/* ── Buttons ── */
.btn {
  --bh: 52px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 26px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 16px; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--grad-gold); color: var(--on-gold); box-shadow: 0 10px 30px rgba(217,169,62,.28), inset 0 1px 0 rgba(255,255,255,.45); }
.btn--gold:hover { box-shadow: 0 16px 44px rgba(217,169,62,.42), inset 0 1px 0 rgba(255,255,255,.5); transform: translateY(-2px); }
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn--gold:hover::after { transform: translateX(120%); }
.btn--ghost { border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(217,169,62,.55); background: rgba(217,169,62,.08); transform: translateY(-2px); }
.btn--wa { background: #1faa59; color: #fff; box-shadow: 0 10px 30px rgba(31,170,89,.28); }
.btn--wa:hover { background: #18934c; transform: translateY(-2px); }
.btn--blue { background: var(--grad-blue); color: #fff; box-shadow: 0 10px 30px rgba(47,143,230,.3); }
.btn--sm { --bh: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ── Header ── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 900; height: var(--header-h);
  transition: background-color .35s var(--ease), border-color .35s, height .35s var(--ease), box-shadow .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); border-color: var(--line-soft); --header-h: 64px; height: 64px;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 50px; height: 42px; filter: drop-shadow(0 4px 14px rgba(217,169,62,.35)); transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; direction: ltr; text-align: start; }
.brand-name b { font-family: var(--font-brand); font-weight: 800; font-size: 19px; letter-spacing: .07em; background: var(--grad-royal); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgba(0,0,0,.35)); }
.brand-name small { font-family: var(--font-brand); font-weight: 600; font-size: 8.6px; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; margin-top: 3px; }
:root[data-theme="light"] .brand-name b { background: linear-gradient(180deg, #2a64d8, #12399a); -webkit-background-clip: text; background-clip: text; filter: none; }
:root[data-theme="light"] .brand-name small { color: var(--gold-lo); }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a {
  position: relative; white-space: nowrap; padding: 8px 11px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 600; color: var(--text-2);
  transition: color .2s, background-color .2s;
}
.nav a:hover, .nav a.active { color: var(--text); background: rgba(217,169,62,.08); }
.nav a.active::after { content: ""; position: absolute; inset-inline: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad-gold); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--line-soft); background: rgba(255,255,255,.03); }
.lang-switch button { min-width: 38px; height: 32px; padding: 0 8px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; color: var(--muted); font-family: var(--font-lat); transition: all .25s var(--ease); }
.lang-switch button[data-lang="ar"] { font-family: var(--font-ar); }
.lang-switch button.on { background: var(--grad-gold); color: var(--on-gold); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-soft); background: rgba(255,255,255,.03); color: var(--text-2); transition: all .25s; }
.icon-btn:hover { color: var(--gold); border-color: var(--line); }
.icon-btn svg { width: 19px; height: 19px; }
.burger { display: none; }
.header-cta { display: inline-flex; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 950; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; padding: 90px var(--gutter) 32px; gap: 6px;
  clip-path: circle(0% at calc(100% - 40px) 36px); transition: clip-path .6s var(--ease-io); visibility: hidden; overflow-y: auto;
}
[dir="rtl"] .mobile-menu { clip-path: circle(0% at 40px 36px); }
.mobile-menu.open { clip-path: circle(150% at 50% 0); visibility: visible; }
.mobile-menu a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-size: 20px; font-weight: 700; border-bottom: 1px solid var(--line-soft); opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .4s var(--ease); }
.mobile-menu a .led { font-family: var(--font-num); font-size: 12px; color: var(--gold); letter-spacing: .12em; direction: ltr; }
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(1){transition-delay:.12s}.mobile-menu.open a:nth-child(2){transition-delay:.16s}.mobile-menu.open a:nth-child(3){transition-delay:.2s}.mobile-menu.open a:nth-child(4){transition-delay:.24s}.mobile-menu.open a:nth-child(5){transition-delay:.28s}.mobile-menu.open a:nth-child(6){transition-delay:.32s}.mobile-menu.open a:nth-child(7){transition-delay:.36s}.mobile-menu.open a:nth-child(8){transition-delay:.4s}.mobile-menu.open a:nth-child(9){transition-delay:.44s}
.mobile-close { position: absolute; top: 16px; inset-inline-end: var(--gutter); }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 1000; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad-text); }
[dir="rtl"] .progress { transform-origin: 100% 50%; }

/* ── Elevator rail (scroll-spy) ── */
.rail {
  position: fixed; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); z-index: 800;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: var(--r-pill);
  border: 1px solid var(--line-soft); background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.rail.show { opacity: 1; pointer-events: auto; }
.rail-display { font-family: var(--font-num); font-size: 11px; font-weight: 800; color: #ffb648; text-shadow: 0 0 6px rgba(255,170,60,.8); background: #1a0f02; border-radius: 6px; padding: 2px 6px; margin-bottom: 6px; letter-spacing: .1em; min-width: 30px; text-align: center; }
.rail-arrow { width: 14px; height: 10px; color: var(--muted); transition: color .2s; }
.rail-arrow.up.on, .rail-arrow.down.on { color: var(--gold); }
.rail a { position: relative; width: 26px; height: 22px; display: grid; place-items: center; }
.rail a i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .5; transition: all .3s var(--ease); }
.rail a.active i { width: 10px; height: 10px; opacity: 1; background: var(--gold); box-shadow: 0 0 10px rgba(217,169,62,.8); }
.rail a span { position: absolute; inset-inline-start: 34px; white-space: nowrap; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-solid); border: 1px solid var(--line); color: var(--text); opacity: 0; transform: translateX(6px); pointer-events: none; transition: all .25s var(--ease); }
.rail a span { transform: translateX(-6px); } [dir="rtl"] .rail a span { transform: translateX(6px); }
.rail a:hover span { opacity: 1; transform: none; }

/* ── Hero ── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 24px); padding-bottom: 64px; overflow: hidden; isolation: isolate; }
#circuitCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 220px; z-index: -1; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: var(--r-pill); border: 1px solid var(--line); background: rgba(217,169,62,.06); font-size: 14px; font-weight: 700; color: var(--gold-hi); margin-bottom: 22px; }
.hero-badge .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(34,197,94,.15); }
.hero-badge .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 80%,100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }
.hero h1 { font-size: clamp(40px, 6.6vw, 84px); font-weight: 900; line-height: 1.12; margin-bottom: 18px; }
[lang="ar"] .hero h1 { line-height: 1.3; }
[lang="fr"] .hero h1, [lang="en"] .hero h1 { font-size: clamp(36px, 5vw, 68px); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .15s; }
@keyframes rise { to { transform: none; } }
.typer { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em; font-size: clamp(18px, 2.2vw, 26px); font-weight: 700; color: var(--text); margin-bottom: 18px; min-height: 1.6em; }
.typer .word { color: var(--gold); position: relative; }
.typer .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--gold); margin-inline-start: 2px; vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { font-size: clamp(16px, 1.5vw, 19px); max-width: 620px; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; max-width: 640px; }
.proof { padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line-soft); background: var(--surface); backdrop-filter: blur(10px); }
.proof b { display: block; font-size: 15px; color: var(--text); font-weight: 800; }
.proof small { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
.proof svg { width: 22px; height: 22px; color: var(--gold); margin-bottom: 8px; }

/* hero elevator visual */
.lift-stage { position: relative; aspect-ratio: 4/5; max-width: 460px; margin-inline: auto; width: 100%; }
.lift-frame { position: absolute; inset: 0; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(18,27,51,.85), rgba(10,15,28,.9)); box-shadow: var(--shadow-2), inset 0 0 60px rgba(47,143,230,.08); overflow: hidden; }
:root[data-theme="light"] .lift-frame { background: linear-gradient(180deg, #121b33, #0a0f1c); }
.lift-frame::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 59px, rgba(217,169,62,.08) 59px 60px), repeating-linear-gradient(90deg, transparent 0 59px, rgba(47,143,230,.05) 59px 60px); }
.lift-shaft { position: absolute; top: 9%; bottom: 9%; inset-inline-start: 50%; width: 46%; transform: translateX(-50%); border-inline: 2px solid rgba(217,169,62,.25); }
[dir="rtl"] .lift-shaft { transform: translateX(50%); }
.lift-rail { position: absolute; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, rgba(124,196,255,.0), rgba(124,196,255,.6), rgba(124,196,255,0)); }
.lift-rail.l { inset-inline-start: 10%; } .lift-rail.r { inset-inline-end: 10%; }
.lift-cable { position: absolute; top: 0; inset-inline-start: 50%; width: 2px; background: linear-gradient(180deg, #8b97ad, #475569); height: var(--cable, 10%); transition: height 2.2s var(--ease-io); }
.lift-car { position: absolute; inset-inline: 6%; height: 30%; top: var(--car, 0%); transition: top 2.2s var(--ease-io); border-radius: 10px; background: linear-gradient(180deg, #1e2a48, #121b33); border: 1px solid rgba(217,169,62,.55); box-shadow: 0 0 40px rgba(47,143,230,.25), inset 0 0 20px rgba(0,0,0,.5); overflow: hidden; }
.lift-car::before { content: ""; position: absolute; inset: 8px 10px auto; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--blue-hi), transparent); box-shadow: 0 0 14px var(--blue); }
.lift-door { position: absolute; top: 16px; bottom: 6px; width: calc(50% - 7px); background: linear-gradient(90deg, #2a3656, #3a4870 50%, #2a3656); transition: transform 1s var(--ease-io); }
.lift-door.l { left: 6px; border-right: 1px solid rgba(0,0,0,.5); } .lift-door.r { right: 6px; border-left: 1px solid rgba(255,255,255,.08); }
.lift-car.open .lift-door.l { transform: translateX(-88%); } .lift-car.open .lift-door.r { transform: translateX(88%); }
.lift-car .inside { position: absolute; inset: 16px 6px 6px; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, rgba(242,207,122,.35), rgba(217,169,62,.05) 70%); }
.lift-car .inside img { width: 46%; filter: drop-shadow(0 6px 16px rgba(217,169,62,.5)); }
.lift-floors { position: absolute; top: 9%; bottom: 9%; inset-inline-start: 6%; width: 18%; display: flex; flex-direction: column; justify-content: space-between; }
.lift-floors span { font-family: var(--font-num); font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .1em; display: flex; align-items: center; gap: 6px; direction: ltr; justify-content: flex-start; transition: color .3s; }
.lift-floors span::before { content: ""; width: 14px; height: 1px; background: currentColor; opacity: .5; }
.lift-floors span.on { color: var(--gold-hi); text-shadow: 0 0 8px rgba(217,169,62,.7); }
.lift-panel { position: absolute; inset-inline-end: 6%; top: 50%; transform: translateY(-50%); width: 16%; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 14px 0; border-radius: 14px; border: 1px solid var(--line); background: rgba(10,15,28,.7); }
.lift-display { font-family: var(--font-num); font-weight: 800; font-size: 22px; color: #ffb648; text-shadow: 0 0 10px rgba(255,170,60,.9); background: #160c01; border-radius: 8px; width: 78%; text-align: center; padding: 4px 0; direction: ltr; }
.lift-dir { width: 18px; height: 18px; color: #ffb648; opacity: .25; transition: opacity .3s; }
.lift-dir.on { opacity: 1; filter: drop-shadow(0 0 6px rgba(255,170,60,.9)); }
.lift-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(217,169,62,.5); font-family: var(--font-num); font-size: 12px; font-weight: 800; color: var(--gold-hi); background: radial-gradient(circle, #1e2a48, #0d1426); transition: all .25s; }
.lift-btn:hover, .lift-btn.lit { background: radial-gradient(circle, #f6d98a, #d9a93e); color: #0a0f1c; box-shadow: 0 0 14px rgba(217,169,62,.8); }
.lift-caption { position: absolute; inset-inline: 0; bottom: -46px; text-align: center; font-size: 13px; color: var(--muted); }
.hero-scroll { position: absolute; bottom: 22px; inset-inline-start: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); letter-spacing: .1em; }
[dir="rtl"] .hero-scroll { transform: translateX(50%); }
.hero-scroll i { width: 22px; height: 36px; border: 2px solid var(--line); border-radius: 12px; position: relative; }
.hero-scroll i::after { content: ""; position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* marquee */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line-soft); background: rgba(255,255,255,.015); padding-block: 18px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
[dir="rtl"] .marquee-track { animation-name: marqueeRtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.marquee-item svg { width: 22px; height: 22px; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marqueeRtl { to { transform: translateX(50%); } }

/* ── Cards ── */
.card {
  position: relative; border-radius: var(--r-lg); border: 1px solid var(--line-soft); background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-1);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease); overflow: hidden;
}
.card.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(217,169,62,.14), transparent 45%);
}
.card.spot:hover::before { opacity: 1; }
.card:hover { border-color: rgba(217,169,62,.38); box-shadow: var(--shadow-2), 0 0 0 1px rgba(217,169,62,.1); }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.icon-box { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(217,169,62,.18), rgba(217,169,62,.04)); border: 1px solid rgba(217,169,62,.3); color: var(--gold-hi); margin-bottom: 18px; }
.icon-box svg { width: 26px; height: 26px; }
.icon-box.blue { background: linear-gradient(145deg, rgba(47,143,230,.2), rgba(47,143,230,.04)); border-color: rgba(47,143,230,.35); color: var(--blue-hi); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; border: 1px solid var(--line-soft); color: var(--text-2); background: rgba(255,255,255,.03); }
.tag.gold { color: var(--gold-hi); border-color: rgba(217,169,62,.35); background: rgba(217,169,62,.08); }
.tag.blue { color: var(--blue-hi); border-color: rgba(47,143,230,.35); background: rgba(47,143,230,.08); }
.tag.green { color: #4ade80; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }

/* about */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-visual { position: relative; }
.about-visual .ph { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/5; box-shadow: var(--shadow-2); }
.about-visual .ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease); }
.about-visual.in .ph img { transform: scale(1); }
.about-visual .ph2 { position: absolute; width: 46%; aspect-ratio: 1; inset-inline-end: -4%; bottom: -8%; border-radius: var(--r-lg); overflow: hidden; border: 4px solid var(--bg); box-shadow: var(--shadow-2); }
.about-visual .ph2 img { width: 100%; height: 100%; object-fit: cover; }
.diploma { position: absolute; inset-inline-start: 14px; top: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow-2); display: flex; gap: 12px; align-items: center; max-width: 250px; animation: floaty 6s ease-in-out infinite; }
.diploma svg { width: 34px; height: 34px; color: var(--gold); flex: none; }
.diploma b { font-size: 14px; display: block; line-height: 1.35; }
.diploma small { font-size: 12px; color: var(--muted); }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.values { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 26px; }
.value { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); }
.value svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 3px; }
.value b { display: block; font-size: 15.5px; }
.value span { font-size: 14px; color: var(--muted); line-height: 1.5; display: block; }
.mission { margin-top: 22px; padding: 18px 20px; border-inline-start: 3px solid var(--gold); border-radius: 0 var(--r-md) var(--r-md) 0; background: linear-gradient(90deg, rgba(217,169,62,.08), transparent); font-size: 17px; font-weight: 600; color: var(--text); }
[dir="rtl"] .mission { border-radius: var(--r-md) 0 0 var(--r-md); background: linear-gradient(270deg, rgba(217,169,62,.08), transparent); }

/* services */
.svc-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: var(--r-pill); border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); margin-bottom: 32px; }
.svc-tabs button { padding: 10px 18px; border-radius: var(--r-pill); font-weight: 700; font-size: 14.5px; color: var(--text-2); transition: all .3s var(--ease); }
.svc-tabs button.on { background: var(--grad-gold); color: var(--on-gold); box-shadow: 0 8px 24px rgba(217,169,62,.25); }
.svc-card { display: flex; flex-direction: column; min-height: 100%; }
.svc-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc-card:hover .svc-media img { transform: scale(1.07); }
.svc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,15,28,0) 35%, rgba(10,15,28,.92)); }
.svc-media .icon-box { position: absolute; z-index: 2; bottom: 0; inset-inline-start: 22px; margin: 0; transform: translateY(40%); background: var(--surface-solid); }
.svc-media .tags { position: absolute; z-index: 2; top: 14px; inset-inline-start: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.svc-media .tags .tag { background: rgba(10,15,28,.7); backdrop-filter: blur(6px); }
.svc-body { padding: 36px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-size: 21px; margin-bottom: 8px; }
.svc-body p { font-size: 15px; margin-bottom: 14px; }
.svc-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; }
.svc-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.svc-list li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: rgba(217,169,62,.15) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9a93e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>") center/10px no-repeat; }
.svc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px dashed var(--line-soft); }
.svc-foot .from { font-size: 13px; color: var(--muted); line-height: 1.3; }
.svc-foot .from b { display: block; font-size: 17px; color: var(--gold-hi); font-family: var(--font-num); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--gold); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
[dir="rtl"] .link-arrow svg, [dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.link-arrow:hover svg { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }
.svc-panel[hidden] { display: none; }

/* audience */
.aud-card { padding: 28px; }
.aud-card h3 { font-size: 22px; }
.aud-card .pain { font-size: 14.5px; color: var(--muted); padding: 12px 14px; border-radius: var(--r-sm); background: rgba(239,68,68,.06); border: 1px dashed rgba(239,68,68,.25); margin-bottom: 14px; }
.aud-card .pain b { color: #fca5a5; }
.aud-card .fix { font-size: 15px; color: var(--text-2); }
.aud-card .fix b { color: var(--gold-hi); }

/* calculator */
.calc { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; align-items: start; }
.calc-steps { padding: clamp(18px, 3vw, 30px); }
.step { margin-bottom: 26px; }
.step:last-child { margin-bottom: 0; }
.step-h { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16.5px; margin-bottom: 12px; }
.step-h .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-num); font-size: 13px; background: var(--grad-gold); color: var(--on-gold); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.025); font-size: 14.5px; font-weight: 600; color: var(--text-2); transition: all .25s var(--ease); text-align: start; }
.chip:hover { border-color: rgba(217,169,62,.4); color: var(--text); }
.chip.on { border-color: var(--gold); background: rgba(217,169,62,.12); color: var(--text); box-shadow: inset 0 0 0 1px rgba(217,169,62,.4); }
.chip svg { width: 18px; height: 18px; color: var(--gold); }
.chip small { font-size: 12px; color: var(--muted); font-family: var(--font-num); }
.chip[disabled] { opacity: .4; cursor: not-allowed; }
.svc-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.svc-chips .chip { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--gold); height: 28px; }
.range-row output { min-width: 64px; text-align: center; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); font-family: var(--font-num); font-weight: 800; color: var(--gold-hi); }
.calc-result { position: sticky; top: calc(var(--header-h) + 16px); padding: 26px; background: linear-gradient(160deg, rgba(217,169,62,.12), rgba(47,143,230,.06) 60%, var(--surface)); border-color: rgba(217,169,62,.35); }
.calc-result .label { font-size: 13.5px; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
.calc-total { font-family: var(--font-num); font-size: clamp(34px, 4vw, 46px); font-weight: 900; line-height: 1.1; margin: 6px 0 4px; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; text-align: start; }
[dir="rtl"] .calc-total { text-align: right; }
.calc-total small { font-size: 16px; -webkit-text-fill-color: var(--muted); }
.calc-range { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.calc-break { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px dashed var(--line-soft); }
.calc-break li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14px; color: var(--text-2); }
.calc-break li b { font-family: var(--font-num); color: var(--text); white-space: nowrap; }
.market-bar { position: relative; height: 10px; border-radius: 10px; background: linear-gradient(90deg, rgba(34,197,94,.5), rgba(217,169,62,.6), rgba(239,68,68,.5)); margin: 10px 0 6px; }
[dir="rtl"] .market-bar { background: linear-gradient(270deg, rgba(34,197,94,.5), rgba(217,169,62,.6), rgba(239,68,68,.5)); }
.market-bar i { position: absolute; top: 50%; width: 16px; height: 16px; margin-inline-start: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); transform: translateY(-50%); inset-inline-start: var(--pos, 50%); transition: inset-inline-start .6s var(--ease); box-shadow: 0 0 10px rgba(217,169,62,.7); }
.market-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-family: var(--font-num); }
.calc-note { font-size: 13px; color: var(--muted); line-height: 1.6; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); margin: 14px 0; }
.calc-actions { display: grid; gap: 10px; }
.calc-src { font-size: 12px; color: var(--muted); margin-top: 12px; }
.calc-src a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.mode-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-pill); border: 1px solid var(--line-soft); margin-bottom: 18px; }
.mode-switch button { padding: 8px 14px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.mode-switch button.on { background: rgba(217,169,62,.15); color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(217,169,62,.4); }
.pro-only { display: none; }
.calc.pro .pro-only { display: block; }
.calc.pro li.pro-only { display: flex; }

/* plans */
.plan { padding: 30px 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(217,169,62,.55); background: linear-gradient(180deg, rgba(217,169,62,.1), var(--surface) 40%); box-shadow: var(--glow-gold); transform: translateY(-10px); }
.plan .ribbon { position: absolute; top: 16px; left: auto; right: auto; inset-inline-end: 16px; transform: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.35); z-index: 2; }
.plan.featured h3 { max-width: calc(100% - 150px); }
.plan h3 { font-size: 22px; margin-bottom: 2px; }
.plan .sub { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.plan .price { font-family: var(--font-num); font-size: 38px; font-weight: 900; color: var(--text); direction: ltr; text-align: start; line-height: 1; }
[dir="rtl"] .plan .price { text-align: right; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan .per { font-size: 13px; color: var(--muted); margin: 6px 0 20px; }
.plan .svc-list { margin-bottom: 22px; }
.plan .svc-list li.no { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(139,151,173,.5); }
.plan .svc-list li.no::before { background: rgba(139,151,173,.12) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b97ad' stroke-width='3.5' stroke-linecap='round'><path d='M6 6l12 12M18 6L6 18'/></svg>") center/9px no-repeat; }
.plan .btn { margin-top: auto; }
.saving { margin-top: 28px; padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.saving .big { font-family: var(--font-num); font-size: clamp(30px, 4vw, 44px); font-weight: 900; color: var(--success); direction: ltr; }
.notice { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid rgba(245,158,11,.3); background: rgba(245,158,11,.06); font-size: 14.5px; color: var(--text-2); display: flex; gap: 12px; }
.notice svg { width: 22px; height: 22px; color: #f59e0b; flex: none; margin-top: 2px; }

/* digital services */
.dig-card { padding: 26px; display: flex; flex-direction: column; }
.dig-card h3 { font-size: 19px; margin-bottom: 6px; }
.dig-card p { font-size: 14.5px; }
.dig-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.dig-card.soon { border-style: dashed; border-color: rgba(217,169,62,.45); background: repeating-linear-gradient(135deg, rgba(217,169,62,.04) 0 12px, transparent 12px 24px), var(--surface); }
.income-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 26px; }
.income { padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); text-align: center; }
.income b { display: block; font-size: 15px; color: var(--text); }
.income span { font-size: 13px; color: var(--muted); }
.income svg { width: 24px; height: 24px; color: var(--blue-hi); margin: 0 auto 8px; }

/* lab — GRAFCET simulator */
.lab { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.lab-sim { padding: 24px; display: grid; grid-template-columns: 1fr 120px; gap: 18px; }
.sim-shaft { position: relative; height: 380px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, #0d1426, #0a0f1c); overflow: hidden; }
.sim-level { position: absolute; inset-inline: 0; height: 25%; border-top: 1px dashed rgba(217,169,62,.18); display: flex; align-items: center; padding-inline: 12px; font-family: var(--font-num); font-size: 12px; color: var(--muted); direction: ltr; justify-content: flex-start; }
.sim-car { position: absolute; inset-inline-start: 50%; width: 40%; height: calc(25% - 10px); margin-inline-start: -20%; border-radius: 8px; border: 1.5px solid var(--gold); background: linear-gradient(180deg, #1e2a48, #121b33); box-shadow: 0 0 20px rgba(47,143,230,.3); transition: bottom var(--t, 1.4s) linear; overflow: hidden; }
.sim-car .d { position: absolute; top: 4px; bottom: 4px; width: calc(50% - 4px); background: #3a4870; transition: transform .7s var(--ease-io); }
.sim-car .d.l { left: 3px; } .sim-car .d.r { right: 3px; }
.sim-car.open .d.l { transform: translateX(-90%); } .sim-car.open .d.r { transform: translateX(90%); }
.sim-panel { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.sim-panel .lift-display { width: 100%; font-size: 26px; }
.sim-calls { display: grid; gap: 8px; }
.sim-calls .lift-btn { width: 100%; height: 42px; border-radius: 12px; font-size: 15px; }
.sim-io { font-family: var(--font-num); font-size: 11.5px; color: var(--muted); direction: ltr; text-align: left; line-height: 1.7; padding: 10px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid var(--line-soft); }
.sim-io b { color: var(--success); } .sim-io i { font-style: normal; color: #64748b; }
.grafcet { padding: 24px; }
.grafcet svg { width: 100%; height: auto; direction: ltr; }
.gf-step rect { fill: #121b33; stroke: rgba(217,169,62,.45); stroke-width: 1.5; transition: all .3s; }
.gf-step text { fill: var(--text-2); font: 700 12px var(--font-num); }
.gf-step.on rect { fill: rgba(217,169,62,.22); stroke: var(--gold); filter: drop-shadow(0 0 8px rgba(217,169,62,.7)); }
.gf-step.on text { fill: var(--gold-hi); }
.gf-act rect { fill: rgba(47,143,230,.08); stroke: rgba(47,143,230,.4); }
.gf-act text { fill: var(--blue-hi); font: 600 11px var(--font-num); }
.gf-line { stroke: rgba(148,163,184,.4); stroke-width: 1.5; fill: none; }
.gf-trans { stroke: var(--text-2); stroke-width: 2.5; }
.gf-cond { fill: var(--muted); font: 500 10.5px var(--font-num); }
:root[data-theme="light"] .gf-step rect { fill: #fff; }
.std-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.std { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); }
.std b { font-family: var(--font-num); color: var(--gold-hi); font-size: 14px; direction: ltr; display: inline-block; }
.std span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* gallery */
.gallery { columns: 4 240px; column-gap: 14px; }
.g-item { break-inside: avoid; margin-bottom: 14px; position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-soft); cursor: zoom-in; display: block; width: 100%; padding: 0; background: none; }
.g-item img { width: 100%; height: auto; transition: transform .9s var(--ease), filter .5s; filter: saturate(.92); }
.g-item:hover img { transform: scale(1.06); filter: saturate(1.08); }
.g-item figcaption { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(180deg, transparent, rgba(10,15,28,.92)); text-align: start; transform: translateY(30%); opacity: .0; transition: all .4s var(--ease); }
.g-item:hover figcaption, .g-item:focus-visible figcaption { transform: none; opacity: 1; }
.g-item .real { position: absolute; top: 10px; inset-inline-start: 10px; }
.lightbox { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; background: rgba(5,8,15,.92); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(1000px, 100%); max-height: 88vh; display: flex; flex-direction: column; gap: 10px; transform: scale(.94); transition: transform .45s var(--ease); }
.lightbox.open figure { transform: none; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 14px; }
.lightbox figcaption { text-align: center; color: #e2e8f0; font-weight: 600; }
.lightbox .icon-btn { position: absolute; top: 18px; inset-inline-end: 18px; color: #fff; }
.lightbox .nav-l, .lightbox .nav-r { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; }
.lightbox .nav-l { inset-inline-start: 18px; } .lightbox .nav-r { inset-inline-end: 18px; }
.lightbox .nav-l svg { transform: scaleX(-1); } [dir="rtl"] .lightbox .nav-l svg { transform: none; } [dir="rtl"] .lightbox .nav-r svg { transform: scaleX(-1); }

/* safety */
.safety { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sos-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sos-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); transition: border-color .3s, background-color .3s; }
.sos-steps li:hover { border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.04); }
.sos-steps li::before { content: counter(s); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-family: var(--font-num); font-weight: 900; font-size: 18px; color: #fff; background: linear-gradient(145deg, #ef4444, #b91c1c); box-shadow: 0 6px 18px rgba(239,68,68,.3); }
.sos-steps b { display: block; font-size: 16px; }
.sos-steps span { font-size: 14px; color: var(--muted); line-height: 1.55; display: block; }
.sos-card { padding: 28px; background: linear-gradient(160deg, rgba(239,68,68,.12), var(--surface) 55%); border-color: rgba(239,68,68,.3); }
.sos-card h3 { font-size: 24px; }

/* process — floor line */
.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.process::before { content: ""; position: absolute; top: 34px; inset-inline: 12%; height: 2px; background: var(--line-soft); }
.process .fill { position: absolute; top: 34px; inset-inline-start: 12%; height: 2px; width: 0; background: var(--grad-gold); box-shadow: 0 0 12px rgba(217,169,62,.6); transition: width 1.8s var(--ease); }
.process.in .fill { width: 76%; }
.p-step { position: relative; text-align: center; padding: 0 8px; }
.p-step .flr { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; font-family: var(--font-num); font-weight: 900; font-size: 20px; color: #ffb648; text-shadow: 0 0 10px rgba(255,170,60,.8); background: #120a01; border: 1px solid rgba(217,169,62,.45); box-shadow: 0 0 0 6px var(--bg), 0 10px 30px rgba(0,0,0,.4); position: relative; z-index: 1; direction: ltr; }
.p-step h3 { font-size: 18px; margin-bottom: 6px; }
.p-step p { font-size: 14.5px; }

/* documents showcase */
.docs-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.doc-tile { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.doc-thumb { aspect-ratio: 1/1.414; border-radius: 10px; background: #fff; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .5s var(--ease); }
.doc-tile:hover .doc-thumb { transform: translateY(-6px) rotate(-1deg); }
.doc-thumb .hd { height: 16%; background: linear-gradient(135deg, #0a0f1c, #18233f); display: flex; align-items: center; gap: 6px; padding: 0 9%; }
.doc-thumb .hd img { width: 20%; }
.doc-thumb .hd i { flex: 1; height: 5px; border-radius: 3px; background: var(--gold); opacity: .8; }
.doc-thumb .ln { height: 4px; border-radius: 3px; background: #dbe1ea; margin: 7% 9% 0; }
.doc-thumb .ln.s { width: 45%; } .doc-thumb .ln.g { background: #d9a93e; width: 30%; }
.doc-thumb .tb { margin: 8% 9% 0; height: 26%; border-radius: 4px; background: repeating-linear-gradient(180deg, #eef2f7 0 12%, #fff 12% 24%); border: 1px solid #e2e8f0; }
.doc-thumb.poster { background: linear-gradient(160deg, #0a0f1c, #18233f); }
.doc-thumb.poster .big { position: absolute; inset: 22% 12% auto; height: 22%; border-radius: 6px; background: linear-gradient(90deg, #ef4444, #f87171); }
.doc-thumb.poster .ln { background: rgba(255,255,255,.25); }
.doc-tile h3 { font-size: 16px; margin: 0; }
.doc-tile p { font-size: 13px; margin: 0; color: var(--muted); }

/* referral */
.ref { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: center; }
.ref-steps { display: grid; gap: 12px; margin-top: 20px; }
.ref-step { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); }
.ref-step .n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(47,143,230,.14); color: var(--blue-hi); font-family: var(--font-num); font-weight: 800; flex: none; }
.ref-card { padding: 28px; text-align: center; background: linear-gradient(160deg, rgba(47,143,230,.12), var(--surface) 60%); }
.code-input { display: flex; gap: 8px; margin-top: 16px; }
.code-input input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.2); font-family: var(--font-num); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; direction: ltr; text-align: center; }
.ref-result { margin-top: 12px; font-size: 14px; min-height: 22px; }

/* blog + faq */
.post { display: flex; flex-direction: column; text-align: start; width: 100%; padding: 0; }
.post .svc-media { aspect-ratio: 16/9; }
.post .body { padding: 20px 22px 24px; }
.post time { font-size: 13px; color: var(--gold); font-weight: 700; }
.post h3 { font-size: 18.5px; margin: 6px 0 8px; }
.post p { font-size: 14.5px; margin: 0; }
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); border: 1px solid var(--line-soft); background: var(--surface); transition: border-color .3s; }
.faq details[open] { border-color: rgba(217,169,62,.4); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: transform .35s var(--ease), background-color .3s; }
.faq summary i::before { content: "+"; font-style: normal; font-weight: 700; color: var(--gold); font-family: var(--font-num); }
.faq details[open] summary i { transform: rotate(45deg); background: rgba(217,169,62,.12); }
.faq .ans { padding: 0 20px 18px; color: var(--text-2); font-size: 15px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; background: rgba(5,8,15,.8); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { width: min(760px, 100%); max-height: 88vh; overflow: auto; border-radius: var(--r-lg); background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow-2); transform: translateY(20px) scale(.98); transition: transform .45s var(--ease); }
.modal.open .modal-box { transform: none; }
.modal-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--surface-solid); border-bottom: 1px solid var(--line-soft); z-index: 2; }
.modal-head h3 { margin: 0; font-size: 19px; }
.modal-body { padding: 22px; }
.modal-body h4 { font-size: 17px; margin-top: 18px; color: var(--gold-hi); }
.modal-body ul { padding-inline-start: 20px; color: var(--text-2); }

/* forms */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.18); color: var(--text); transition: border-color .25s, box-shadow .25s; font-size: 15.5px; }
:root[data-theme="light"] .field input, :root[data-theme="light"] .field select, :root[data-theme="light"] .field textarea { background: #fff; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9a93e' stroke-width='2.5' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-size: 18px; background-position: left 14px center; padding-inline-end: 42px; }
[dir="ltr"] .field select { background-position: right 14px center; }
.field select option { background: var(--surface-solid); color: var(--text); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,169,62,.15); }
.field .err { display: none; font-size: 13px; color: #fca5a5; margin-top: 5px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; }
.toggle input { appearance: none; width: 46px; height: 26px; border-radius: 26px; background: rgba(148,163,184,.3); position: relative; transition: background-color .25s; cursor: pointer; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: inset-inline-start .25s var(--ease); }
.toggle input:checked { background: var(--danger); }
.toggle input:checked::after { inset-inline-start: 23px; }
.form-ok { display: none; text-align: center; padding: 30px 10px; }
.form-ok.show { display: block; animation: pop .6s var(--ease); }
.form-ok svg { width: 64px; height: 64px; color: var(--success); margin: 0 auto 12px; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; }
.c-info { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.c-line { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); transition: border-color .25s, transform .25s var(--ease); }
a.c-line:hover { border-color: rgba(217,169,62,.45); transform: translateX(-3px); }
[dir="ltr"] a.c-line:hover { transform: translateX(3px); }
.c-line .icon-box { margin: 0; width: 46px; height: 46px; flex: none; }
.c-line small { display: block; font-size: 12.5px; color: var(--muted); }
.c-line b { font-size: 15.5px; }
.map-box { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-soft); aspect-ratio: 16/10; background: radial-gradient(circle at 50% 50%, rgba(217,169,62,.15), transparent 60%), #0d1426; display: grid; place-items: center; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box .radar { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(217,169,62,.35); animation: radar 3s var(--ease) infinite; }
.map-box .radar:nth-child(2) { animation-delay: 1s; } .map-box .radar:nth-child(3) { animation-delay: 2s; }
@keyframes radar { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.map-box button { position: relative; z-index: 2; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }

/* footer */
.footer { padding: 64px 0 120px; border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, transparent, rgba(0,0,0,.25)); }
:root[data-theme="light"] .footer { background: linear-gradient(180deg, transparent, rgba(10,15,28,.04)); }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { font-size: 15px; color: var(--gold); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer ul a { font-size: 14.5px; color: var(--text-2); transition: color .2s; }
.footer ul a:hover { color: var(--gold-hi); }
.f-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.qr { width: 116px; height: 116px; border-radius: 14px; background: #fff; padding: 8px; }

/* mobile action bar + fab */
.action-bar { position: fixed; inset: auto 0 0; z-index: 850; display: none; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line-soft); }
.action-bar a { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 14px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line-soft); background: rgba(255,255,255,.03); }
.action-bar a svg { width: 20px; height: 20px; }
.action-bar a.wa { background: #1faa59; border-color: #1faa59; color: #fff; }
.action-bar a.quote { background: var(--grad-gold); color: var(--on-gold); border-color: transparent; }
.fab-stack { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 850; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.4); transition: transform .3s var(--ease); position: relative; }
.fab:hover { transform: scale(1.08) translateY(-2px); }
.fab svg { width: 28px; height: 28px; }
.fab.wa { background: #1faa59; }
.fab.wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1faa59; animation: fabPulse 2.4s infinite; }
@keyframes fabPulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.fab.bot { background: var(--grad-gold); color: var(--on-gold); }

/* assistant */
.assistant { position: fixed; bottom: 100px; inset-inline-end: 24px; z-index: 1050; width: min(380px, calc(100vw - 32px)); max-height: min(560px, 72vh); display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow-2); transform: translateY(20px) scale(.96); transform-origin: bottom right; opacity: 0; visibility: hidden; transition: all .35s var(--ease); }
[dir="rtl"] .assistant { transform-origin: bottom left; }
.assistant.open { transform: none; opacity: 1; visibility: visible; }
.as-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.as-head img { width: 40px; height: 34px; object-fit: contain; }
.as-head b { display: block; font-size: 15px; }
.as-head small { font-size: 12px; color: var(--success); }
.as-head .icon-btn { margin-inline-start: auto; width: 34px; height: 34px; }
.as-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.6; animation: pop .35s var(--ease); white-space: pre-line; }
.msg.bot { background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); align-self: flex-start; border-start-start-radius: 4px; }
.msg.me { background: rgba(217,169,62,.15); border: 1px solid rgba(217,169,62,.3); align-self: flex-end; border-start-end-radius: 4px; }
.as-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 14px; border-top: 1px solid var(--line-soft); }
.as-quick button { padding: 7px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); transition: all .2s; }
.as-quick button:hover { background: rgba(217,169,62,.1); color: var(--text); }

/* reveal animations */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.l { transform: translateX(-40px); } .rv.r { transform: translateX(40px); }
[dir="rtl"] .rv.l { transform: translateX(40px); } [dir="rtl"] .rv.r { transform: translateX(-40px); }
.rv.z { transform: scale(.92); }
.rv.in, [dir] .rv.in { opacity: 1; transform: none; }
.counter { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.banner-top { display: none; position: relative; z-index: 901; padding: 8px 44px; text-align: center; font-size: 14px; font-weight: 600; background: var(--grad-gold); color: var(--on-gold); }
.banner-top.show { display: block; }

/* lang fade */
body.lang-swap main, body.lang-swap .site-header .nav { animation: langFade .5s var(--ease); }
@keyframes langFade { from { opacity: .2; filter: blur(4px); } }

/* ── Responsive ── */
@media (min-width: 1241px) and (max-width: 1500px) { .header-cta { display: none; } }
@media (max-width: 1240px) {
  .nav { display: none; }
  .header-cta { display: none !important; }
  .burger { display: grid; }
  .header-tools { margin-inline-start: auto; }
  .rail { display: none; }
}
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .calc, .lab, .safety, .ref, .contact-grid { grid-template-columns: 1fr; }
  .g-4, .docs-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .calc-result { position: relative; top: 0; }
  .lift-stage { max-width: 380px; }
  .about-visual { max-width: 560px; margin-inline: auto; }
  .about-visual .ph2 { inset-inline-end: 0; }
  .plan.featured { transform: none; }
  .income-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .header-cta, .theme-btn { display: none; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 28px); }
  .hero-proof { grid-template-columns: 1fr; }
  .proof { display: flex; gap: 12px; align-items: center; }
  .proof svg { margin: 0; flex: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-scroll { display: none; }
  .lift-stage { max-width: 320px; }
  .values, .std-list { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .process::before, .process .fill { display: none; }
  .lab-sim { grid-template-columns: 1fr 96px; padding: 16px; }
  .sim-shaft { height: 320px; }
  .form .row { grid-template-columns: 1fr; }
  .saving { grid-template-columns: 1fr; text-align: center; }
  .f-grid { grid-template-columns: 1fr; }
  .action-bar { display: grid; }
  .fab-stack { display: none; }
  .assistant { bottom: 84px; inset-inline-end: 16px; }
  .footer { padding-bottom: 110px; }
  .about-visual { margin-bottom: 30px; }
  .diploma { inset-inline-start: 0; top: auto; bottom: -24px; }
  .brand-name small { display: none; }
  .svc-tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; border-radius: 18px; scrollbar-width: none; }
  .svc-tabs button { flex: none; }
}
@media (max-width: 480px) {
  .header-tools { gap: 6px; }
  .header-tools .icon-btn { width: 36px; height: 36px; }
  .header-tools > a.icon-btn { display: grid; border-color: rgba(217,169,62,.45); color: var(--gold); }   /* account icon stays visible on phones */
  .brand-name small { display: none; }
  .lang-switch button { min-width: 34px; padding: 0 6px; }
  .brand-name b { font-size: 15.5px; letter-spacing: .06em; }
  .about-visual .ph2 { inset-inline-end: 0; width: 42%; }
  .header-inner { gap: 10px; }
  .brand img { width: 44px; height: 36px; }
}
@media (max-width: 380px) {
  .lang-switch button { min-width: 32px; padding: 0 5px; }
  .brand-name b { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv, [dir] .rv { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  #circuitCanvas { display: none; }
}
@media print {
  .site-header, .rail, .action-bar, .fab-stack, .assistant, #circuitCanvas, .progress { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ═════════ v5.1 additions ═════════ */
/* intro: elevator doors open on the brand (once per session, CSS-only timeline) */
.intro { display: none; }
.intro-on .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 5000; pointer-events: none; animation: introOut .5s 1.75s forwards; }
.intro-door { position: absolute; top: 0; bottom: 0; width: 50.5%; background: linear-gradient(90deg, #0b1424, #13213b 70%, #0e1a2e); box-shadow: inset 0 0 80px rgba(0,0,0,.6); }
.intro-door.l { left: 0; border-right: 1px solid rgba(217,169,62,.6); animation: doorL 1s 1.05s cubic-bezier(.65,0,.35,1) forwards; }
.intro-door.r { right: 0; border-left: 1px solid rgba(217,169,62,.6); animation: doorR 1s 1.05s cubic-bezier(.65,0,.35,1) forwards; background: linear-gradient(270deg, #0b1424, #13213b 70%, #0e1a2e); }
.intro-door::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, #f2cf7a, transparent); }
.intro-door.l::after { right: 0; } .intro-door.r::after { left: 0; }
.intro-core { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; animation: coreIn .8s .1s cubic-bezier(.22,1,.36,1) both, coreOut .35s 1s forwards; }
.intro-core img { width: 132px; height: auto; filter: drop-shadow(0 12px 40px rgba(42,111,230,.45)); }
.intro-core b { font-family: var(--font-brand); font-weight: 800; font-size: 34px; letter-spacing: .08em; background: var(--grad-royal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-core small { font-family: var(--font-brand); font-size: 11px; letter-spacing: .28em; color: var(--gold); text-transform: uppercase; }
.intro-led { margin-top: 10px; font-family: var(--font-num); font-weight: 800; font-size: 13px; letter-spacing: .14em; color: #ffb648; text-shadow: 0 0 8px rgba(255,170,60,.8); background: #160c01; padding: 4px 12px; border-radius: 8px; direction: ltr; }
.intro-led i { font-style: normal; display: inline-block; animation: blink .5s steps(1) infinite; }
@keyframes coreIn { from { opacity: 0; transform: scale(.88); filter: blur(6px); } }
@keyframes coreOut { to { opacity: 0; transform: scale(1.06); } }
@keyframes doorL { to { transform: translateX(-102%); } }
@keyframes doorR { to { transform: translateX(102%); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
.intro-on .hero h1 .line > span { animation-delay: 1.45s; }
.intro-on .hero h1 .line:nth-child(2) > span { animation-delay: 1.6s; }

/* logo arrow shimmer in header */
.brand { position: relative; }
.brand img { transition: transform .5s var(--ease), filter .5s; }
.brand:hover img { filter: drop-shadow(0 6px 18px rgba(42,111,230,.55)); }
.tagline-gold { margin-top: 14px; font-family: var(--font-brand); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.linkish { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; padding: 0; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.consent { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.6; }

.privacy h4 { color: var(--gold-hi); font-size: 16px; margin: 16px 0 6px; }
.privacy p, .privacy li { font-size: 15px; color: var(--text-2); }

/* ═════════ v5.2 — animated logo ═════════ */
/* v5.3 — official raster logo with light effects */
.st-logo { position: relative; display: block; width: 100%; aspect-ratio: 720 / 589; isolation: isolate; }
.st-logo img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.st-logo i { position: absolute; pointer-events: none; }
.st-logo .st-shine { inset: 0; -webkit-mask: url(../img/logo-mark.webp) center / contain no-repeat; mask: url(../img/logo-mark.webp) center / contain no-repeat;
  background: linear-gradient(115deg, transparent 38%, rgba(255,244,214,.0) 42%, rgba(255,244,214,.75) 50%, rgba(255,244,214,0) 58%, transparent 62%) 0 0 / 300% 100% no-repeat;
  mix-blend-mode: screen; animation: stShine 5.5s cubic-bezier(.45,0,.2,1) infinite 1.2s; background-position: 120% 0; }
.st-logo .st-pulse { left: 6%; top: 60%; width: 44%; height: 22%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90,170,255,.85), rgba(42,111,230,.35) 55%, transparent);
  filter: blur(6px); mix-blend-mode: screen; opacity: .25; animation: stPulse 3.4s ease-in-out infinite; }
.st-logo .st-spark { right: 2%; top: 3%; width: 13%; aspect-ratio: 1; opacity: 0;
  background: radial-gradient(closest-side, #fff 0, rgba(255,236,170,.9) 18%, rgba(242,207,122,0) 60%),
              linear-gradient(0deg, transparent 47%, rgba(255,240,190,.95) 50%, transparent 53%),
              linear-gradient(90deg, transparent 47%, rgba(255,240,190,.95) 50%, transparent 53%);
  mix-blend-mode: screen; animation: stSpark 5.5s ease-out infinite 1.2s; }
@keyframes stShine { 0% { background-position: 120% 0; } 45%, 100% { background-position: -20% 0; } }
@keyframes stPulse { 0%, 100% { opacity: .18; transform: scale(.92); } 50% { opacity: .7; transform: scale(1.06); } }
@keyframes stSpark { 0%, 34% { opacity: 0; transform: scale(.3) rotate(0); } 42% { opacity: 1; transform: scale(1) rotate(45deg); } 56%, 100% { opacity: 0; transform: scale(.4) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .st-logo i { animation: none !important; opacity: 0 !important; } }
img[src*="logo-mark"] { object-fit: contain; }
.intro-logo { display: block; width: 170px; filter: drop-shadow(0 14px 40px rgba(42,111,230,.45)); }
.lift-car .inside .lift-logo { display: block; width: 62%; filter: drop-shadow(0 6px 16px rgba(217,169,62,.5)); }

/* founder note — personal touch */
.founder { background: radial-gradient(600px 300px at 20% 50%, rgba(42,111,230,.12), transparent 70%); }
.founder-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.founder-emblem { max-width: 300px; width: 100%; margin-inline: auto; filter: drop-shadow(0 24px 60px rgba(42,111,230,.35)); animation: floaty 7s ease-in-out infinite; }
.founder-quote { margin: 0; }
.founder-quote blockquote { margin: 0 0 22px; font-family: var(--font-head); font-size: clamp(20px, 2.3vw, 28px); line-height: 1.7; font-weight: 700; color: var(--text); position: relative; padding-inline-start: 22px; border-inline-start: 3px solid; border-image: linear-gradient(180deg, var(--gold), var(--blue)) 1; }
[lang="fr"] .founder-quote blockquote, [lang="en"] .founder-quote blockquote { line-height: 1.5; font-weight: 600; }
.founder-quote figcaption { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.founder-quote .sig { font-family: var(--font-brand); font-size: 26px; letter-spacing: .06em; background: var(--grad-royal); -webkit-background-clip: text; background-clip: text; color: transparent; align-self: flex-start; }
.founder-quote .role { font-size: 14px; color: var(--muted); }
.principles { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.principles li { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(217,169,62,.05); font-size: 14.5px; font-weight: 700; }
.principles b { font-family: var(--font-num); font-size: 11px; letter-spacing: .1em; color: #ffb648; background: #160c01; border-radius: 999px; padding: 3px 8px; direction: ltr; }

/* gallery filters + protection */
.g-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: -18px auto 28px; }
.g-filters button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-soft); font-weight: 700; font-size: 14px; color: var(--text-2); transition: all .3s var(--ease); }
.g-filters button.on { background: var(--grad-gold); color: var(--on-gold); border-color: transparent; }
.g-item.hide { display: none; }
.protect img, .svc-media img, .about-visual img, .lightbox img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.g-item::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.g-item figcaption { z-index: 2; }
.lightbox figure { position: relative; }
.lightbox figure::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.lightbox figcaption { position: relative; z-index: 3; }

/* finer motion */
.sec-title .grad { position: relative; }
.sec-title .grad::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -.08em; height: 3px; width: 100%; border-radius: 3px; background: var(--grad-text); transform: scaleX(0); transform-origin: var(--o, left); transition: transform 1.2s .35s var(--ease); opacity: .8; }
[dir="rtl"] .sec-title .grad::after { --o: right; }
.sec-title.in .grad::after { transform: scaleX(1); }
.svc-card, .dig-card, .plan { transform-style: preserve-3d; will-change: transform; }
.svc-media img { transform: scale(1.02); }
.svc-card.rv.in .svc-media img { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.1) translate(-1.5%, -1%); } }
.svc-card:hover .svc-media img { animation-play-state: paused; }
@media (max-width: 860px) { .founder-grid { grid-template-columns: 1fr; text-align: start; } .founder-emblem { max-width: 200px; } }
@media (prefers-reduced-motion: reduce) { .svc-card .svc-media img { animation: none !important; } .founder-emblem { animation: none; } }

/* ═══ v6 — calculator: categories, elevator groups, inclusions ═══ */
.calc-cats { display: flex; gap: 6px; padding: 5px; margin-bottom: 12px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); overflow-x: auto; scrollbar-width: none; }
.calc-cats::-webkit-scrollbar { display: none; }
.calc-cats button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .25s var(--ease), color .25s; }
.calc-cats button svg { width: 18px; height: 18px; color: var(--gold); }
.calc-cats button.on { background: var(--grad-gold); color: #1a1205; }
.calc-cats button.on svg { color: #1a1205; }
.groups { display: grid; gap: 8px; }
.grp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.025); animation: grpIn .35s var(--ease); }
@keyframes grpIn { from { opacity: 0; transform: translateY(6px); } }
.grp-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(217,169,62,.14); color: var(--gold-hi); font-size: 13px; }
.grp-x { font-style: normal; color: var(--muted); font-weight: 700; }
.grp-del { margin-inline-start: auto; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); border: 1px solid var(--line-soft); }
.grp-del:hover { color: #f87171; border-color: rgba(248,113,113,.4); }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 36px; height: 38px; border-radius: 10px; border: 1px solid var(--line); color: var(--gold-hi); font-size: 18px; font-weight: 700; line-height: 1; }
.stepper button:hover { border-color: var(--gold); background: rgba(217,169,62,.1); }
.stepper input { width: 52px; height: 38px; text-align: center; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.18); color: var(--text); font-weight: 800; font-size: 16px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper span { font-size: 13px; color: var(--text-2); margin-inline-start: 2px; }
.grp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.grp-sum { font-size: 14px; color: var(--text-2); }
.grp-sum b { color: var(--gold-hi); font-size: 17px; }
.inc-list { list-style: none; margin: 12px 0 0; padding: 12px 14px; display: grid; gap: 6px; border-radius: 12px; background: rgba(42,111,230,.06); border: 1px solid rgba(42,111,230,.18); }
.inc-list li { position: relative; padding-inline-start: 22px; font-size: 14px; color: var(--text-2); }
.inc-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--gold); font-weight: 800; }
.inc-list--res { margin: 0 0 14px; }
.market-legend b { color: var(--gold-hi); font-family: inherit; font-weight: 700; font-size: 12px; text-align: center; }
.calc-sub { font-size: 13px; color: var(--muted); }
#calcPro li.study { display: block; }
#calcPro li.study p { margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: var(--text-2); }
@media (max-width: 480px) { .grp-row { padding: 10px; } .stepper input { width: 46px; } .grp-del { margin-inline-start: 0; } }
.fleet-cta { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-top: 18px; border-color: rgba(217,169,62,.35); background: linear-gradient(110deg, rgba(217,169,62,.08), rgba(42,111,230,.06)); transition: transform .3s var(--ease), border-color .3s; }
.fleet-cta:hover { transform: translateY(-2px); border-color: var(--gold); }
.fleet-cta > svg:first-child { width: 34px; height: 34px; flex: none; color: var(--gold); }
.fleet-cta div { display: grid; gap: 4px; flex: 1; }
.fleet-cta b { font-size: 17px; }
.fleet-cta span { font-size: 14px; color: var(--text-2); }
.fleet-cta .arr { width: 22px; height: 22px; flex: none; color: var(--gold-hi); }
[dir="rtl"] .fleet-cta .arr { transform: scaleX(-1); }
.calc-break b, #calcPro b, .market-legend span { unicode-bidi: plaintext; }
@media (max-width: 560px) {
  .grp-row { display: grid; grid-template-columns: auto 1fr auto; }
  .grp-row .grp-x { display: none; }
  .grp-row .stepper:nth-of-type(2) { grid-column: 2; }
  .grp-row .grp-del { grid-column: 3; grid-row: 1; }
}
.chip small { unicode-bidi: isolate; direction: ltr; }

/* ═══ v6 — GRAFCET elevator simulator ═══ */
.sim { display: grid; grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: stretch; margin-top: 8px; }
.sim .card { padding: 18px; }
.sim-cop { display: flex; flex-direction: column; gap: 14px; background: linear-gradient(160deg, #1b2438, #0f1626 60%, #141c30); }
.cop-disp { display: flex; align-items: center; justify-content: center; gap: 10px; height: 74px; border-radius: 12px; background: #05070d; border: 1px solid #222c44; box-shadow: inset 0 0 18px rgba(0,0,0,.8); font-family: "Courier New", ui-monospace, monospace; }
.cop-disp b { font-size: 40px; font-weight: 700; color: #ffb547; text-shadow: 0 0 12px rgba(255,170,60,.7); min-width: 1.4em; text-align: center; }
.sim.is-fault .cop-disp b { color: #ff5a5a; text-shadow: 0 0 14px rgba(255,80,80,.8); animation: copBlink 1s steps(2) infinite; }
@keyframes copBlink { 50% { opacity: .25; } }
.cop-arrow { width: 0; height: 0; border-inline: 9px solid transparent; opacity: .15; border-bottom: 13px solid #ffb547; }
.cop-arrow.up { opacity: 1; animation: copUp .9s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255,170,60,.8)); }
.cop-arrow.dn { opacity: 1; transform: rotate(180deg); animation: copDn .9s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255,170,60,.8)); }
@keyframes copUp { 50% { transform: translateY(-4px); } }
@keyframes copDn { 0%, 100% { transform: rotate(180deg); } 50% { transform: rotate(180deg) translateY(-4px); } }
.cop-label { font-size: 12px; color: var(--muted); text-align: center; letter-spacing: .04em; }
.cop-btns { display: grid; gap: 10px; justify-items: center; }
.cop-btns button { width: 54px; height: 54px; border-radius: 50%; font: 700 18px/1 var(--font-num); color: #cfd8ea; background: radial-gradient(circle at 35% 30%, #3a4560, #1a2236 70%); border: 2px solid #4a5677; box-shadow: 0 4px 10px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12); transition: transform .15s, box-shadow .3s, border-color .3s, color .3s; }
.cop-btns button:hover { border-color: var(--gold); }
.cop-btns button:active { transform: scale(.94); }
.cop-btns button.lit { color: #1a1205; border-color: #ffd27a; background: radial-gradient(circle at 35% 30%, #ffe6a6, #e0a83e 70%); box-shadow: 0 0 0 4px rgba(217,169,62,.18), 0 0 22px rgba(255,190,80,.65); }
.cop-tools { display: grid; gap: 8px; }
.cop-tools button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--text-2); background: rgba(255,255,255,.03); transition: .25s; }
.cop-tools button svg { width: 16px; height: 16px; }
.cop-tools button:hover { border-color: var(--gold); color: var(--text); }
#simAuto.on { border-color: var(--blue); color: #fff; background: rgba(42,111,230,.25); }
#simFault.on { border-color: #ef4444; color: #fff; background: rgba(239,68,68,.22); }
.cop-speed { display: flex; align-items: baseline; justify-content: center; gap: 6px; font-family: var(--font-num); color: var(--muted); font-size: 12px; }
.cop-speed b { color: #7fc4ff; font-size: 20px; }

.sim-bld { display: flex; flex-direction: column; padding: 14px !important; background: linear-gradient(180deg, #0c1322, #0a0f1c); }
.bld-machine { position: relative; height: 46px; border-radius: 10px 10px 0 0; background: repeating-linear-gradient(135deg, #151d30 0 8px, #121a2b 8px 16px); border: 1px solid #243150; display: flex; align-items: center; justify-content: center; gap: 10px; }
.bld-machine .sheave { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #8fa3c7; border-top-color: var(--gold); border-bottom-color: var(--gold); box-shadow: 0 0 0 3px #1c2740, 0 0 14px rgba(217,169,62,.25); }
.bld-m { font: 600 10px/1 var(--font-num); letter-spacing: .08em; color: #7f8db0; }
.bld { position: relative; flex: 1; min-height: 400px; border-inline: 1px solid #243150; background: linear-gradient(90deg, #0d1527, #101a30 50%, #0d1527); overflow: hidden; }
.bld-pit { height: 22px; border-radius: 0 0 10px 10px; border: 1px solid #243150; border-top: 3px solid #2b3a5f; background: #0a0f1c; font: 600 9px/18px var(--font-num); letter-spacing: .1em; color: #56648a; text-align: center; }
.bld-floor { position: absolute; inset-inline: 0; height: 20%; border-bottom: 3px solid #26355a; z-index: 3; pointer-events: none; }
.bld-floor[data-f="0"] { bottom: 0; } .bld-floor[data-f="1"] { bottom: 20%; } .bld-floor[data-f="2"] { bottom: 40%; } .bld-floor[data-f="3"] { bottom: 60%; } .bld-floor[data-f="4"] { bottom: 80%; }
.fl-lbl { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font: 700 12px/1 var(--font-num); color: #8392b5; letter-spacing: .06em; }
.fl-sens { position: absolute; left: 12px; top: calc(50% + 12px); width: 8px; height: 8px; border-radius: 50%; background: #233052; transition: background .2s, box-shadow .2s; }
.bld-floor.here .fl-lbl { color: var(--gold-hi); }
.bld-floor.here .fl-sens { background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.ldoor { position: absolute; left: 50%; bottom: 0; width: 34%; height: 84%; transform: translateX(-50%); display: flex; overflow: hidden; border: 2px solid rgba(143,163,199,.55); border-bottom: 0; border-radius: 3px 3px 0 0; }
.ldoor i { flex: 1; background: linear-gradient(90deg, rgba(110,130,170,.42), rgba(190,206,235,.5) 45%, rgba(110,130,170,.42)); backdrop-filter: blur(1.5px); transition: transform .08s linear; }
.ldoor i:first-child { border-right: 1px solid #2c3855; }
.bld-floor { --d: 0; }
.bld-floor.here { --d: var(--door); }
.ldoor i:first-child { transform: translateX(calc(var(--d) * -98%)); }
.ldoor i:last-child { transform: translateX(calc(var(--d) * 98%)); }
.shaft-in { position: absolute; left: 50%; top: 0; bottom: 0; width: 40%; transform: translateX(-50%); z-index: 2; background: linear-gradient(90deg, rgba(42,111,230,.05), rgba(42,111,230,.12), rgba(42,111,230,.05)); border-inline: 2px solid #1f2b47; }
.cab { position: absolute; left: 6%; right: 6%; bottom: calc(var(--pos) * 20% + 1%); height: 17.5%; border-radius: 4px; overflow: hidden; border: 2px solid var(--gold); background: radial-gradient(120% 90% at 50% 0%, #fff4d6, #e9cf96 45%, #b48a45); box-shadow: 0 0 24px rgba(217,169,62,.25); }
.cab-light { position: absolute; top: 3px; left: 20%; right: 20%; height: 3px; border-radius: 3px; background: #fff; box-shadow: 0 0 10px #fff; }
.cab-logo { position: absolute; left: 50%; top: 54%; width: 46%; transform: translate(-50%, -50%); filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.cab-doors { position: absolute; inset: 0; display: flex; }
.cab-doors i { flex: 1; background: linear-gradient(90deg, #2f3b5c, #4a5a86 50%, #2f3b5c); transition: transform .08s linear; }
.cab-doors i:first-child { transform: translateX(calc(var(--door) * -100%)); border-right: 1px solid #1d2640; }
.cab-doors i:last-child { transform: translateX(calc(var(--door) * 100%)); }
.cw { position: absolute; right: -1px; width: 12%; height: 15%; bottom: calc((4 - var(--pos)) * 20% + 2%); background: repeating-linear-gradient(0deg, #556487 0 5px, #3d4a6a 5px 10px); border-radius: 2px; }
.rope { position: absolute; top: 0; width: 2px; background: linear-gradient(#8fa3c7, #5d6c90); }
.rope-car { left: calc(50% - 1px); height: calc(100% - (var(--pos) * 20% + 18.5%)); }
.rope-cw { right: calc(6% - 1px); height: calc(100% - ((4 - var(--pos)) * 20% + 17%)); }

.sim-logic { display: grid; gap: 14px; align-content: start; }
.gf { width: 100%; height: auto; color: #7f8db0; font-family: var(--font-num); }
.gf-l { fill: none; stroke: #4b5a7e; stroke-width: 1.6; }
.gf-fault { stroke: rgba(239,68,68,.55); stroke-dasharray: 4 4; }
.gf-t line { stroke: #cbd5e1; stroke-width: 2.4; }
.gf-t text { font-size: 10px; fill: #9aa8c7; }
.gf-t text.sm { font-size: 8.6px; }
.gf-s rect { fill: #121b31; stroke: #6b7aa0; stroke-width: 1.6; transition: fill .3s, stroke .3s; }
.gf-s rect.in { fill: none; }
.gf-s text { font-size: 14px; font-weight: 700; fill: #cbd5e1; text-anchor: middle; }
.gf-s.on rect { fill: rgba(217,169,62,.22); stroke: var(--gold); filter: drop-shadow(0 0 6px rgba(217,169,62,.7)); }
.gf-s.on text { fill: var(--gold-hi); }
.gf-s.fault.on rect { fill: rgba(239,68,68,.25); stroke: #ef4444; filter: drop-shadow(0 0 6px rgba(239,68,68,.8)); }
.gf-a rect { fill: rgba(42,111,230,.08); stroke: rgba(125,178,255,.4); stroke-width: 1; }
.gf-a text { font-size: 9.5px; fill: #9cc4ff; text-anchor: middle; letter-spacing: .02em; }
.gf-a.fault rect { stroke: rgba(239,68,68,.45); fill: rgba(239,68,68,.06); } .gf-a.fault text { fill: #fca5a5; }
.sim-io { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sim-io h4, .sim-log h4 { font-size: 13px; margin: 0 0 8px; color: var(--text-2); }
.sim-io ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sim-io li { display: flex; align-items: center; gap: 7px; font: 600 11.5px/1.5 var(--font-num); color: #6b7aa0; }
.sim-io li i { width: 9px; height: 9px; border-radius: 50%; background: #233052; flex: none; transition: .2s; }
.sim-io li.on { color: #d1fae5; } .sim-io li.on i { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.sim-io li.val { color: #cbd5e1; } .sim-io li.val i { background: #ffb547; box-shadow: 0 0 8px rgba(255,181,71,.7); }
.sim-io li b { color: #ffb547; }
.sim-log ol { list-style: none; margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.28); font: 500 11.5px/1.75 var(--font-num); color: #9aa8c7; min-height: 120px; }
.sim-log li { animation: grpIn .3s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-log li span { color: #56648a; margin-right: 6px; } .sim-log li b { color: #fca5a5; } .sim-log li i { color: #7f8db0; }
@media (max-width: 1100px) { .sim { grid-template-columns: 170px minmax(0, 1fr); } .sim-logic { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sim-logic .sim-log { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .sim { grid-template-columns: 112px minmax(0, 1fr); gap: 10px; }
  .sim .card { padding: 12px; }
  .cop-disp { height: 60px; } .cop-disp b { font-size: 32px; }
  .cop-btns button { width: 48px; height: 48px; }
  .cop-tools button span { font-size: 11px; }
  .bld { min-height: 360px; }
  .ldoor, .shaft-in { width: 52%; }
  .sim-logic { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cop-arrow.up, .cop-arrow.dn, .sim.is-fault .cop-disp b { animation: none; } }

/* ═══ v6 — discover tiles + reading window ═══ */
.dis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dis-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; min-height: 196px; overflow: hidden; transition: transform .45s var(--ease), border-color .35s, box-shadow .45s; }
.dis-card::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(217,169,62,.16), transparent); transition: transform .6s var(--ease); pointer-events: none; }
.dis-card:hover { transform: translateY(-4px); border-color: rgba(217,169,62,.45); box-shadow: 0 22px 50px rgba(0,0,0,.35); }
.dis-card:hover::after { transform: scale(1.35); }
.dis-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(217,169,62,.12); border: 1px solid rgba(217,169,62,.3); color: var(--gold); margin-bottom: 4px; }
.dis-ico svg { width: 24px; height: 24px; }
.dis-ico--red { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); color: #f87171; }
.dis-card b { font-size: 18px; line-height: 1.4; }
.dis-card > span:not(.dis-ico) { color: var(--text-2); font-size: 14.5px; line-height: 1.7; flex: 1; }
.dis-card em { display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--gold-hi); }
.dis-card em svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
[dir="rtl"] .dis-card em svg { transform: scaleX(-1); }
.dis-card:hover em svg { transform: translateX(4px); }
[dir="rtl"] .dis-card:hover em svg { transform: scaleX(-1) translateX(4px); }
.dis-card--hot { border-color: rgba(42,111,230,.4); background: linear-gradient(160deg, rgba(42,111,230,.12), transparent 60%), var(--card, rgba(255,255,255,.03)); }
.dis-card--hot .dis-ico { background: rgba(42,111,230,.16); border-color: rgba(125,178,255,.4); color: #9cc4ff; }
@media (max-width: 980px) { .dis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dis-grid { grid-template-columns: 1fr; gap: 10px; } .dis-card { min-height: 0; padding: 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; } .dis-card .dis-ico { grid-row: span 3; } .dis-card em { grid-column: 2; } }

.rwin { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 3vh 3vw; background: rgba(5,8,16,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }
.rwin.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.rwin-panel { position: relative; width: min(1180px, 100%); max-height: 94vh; display: flex; flex-direction: column; border-radius: 26px; border: 1px solid rgba(217,169,62,.28); background: var(--bg, #0a0f1c); box-shadow: 0 40px 120px rgba(0,0,0,.6); overflow: hidden; transform: translateY(28px) scale(.98); transition: transform .5s var(--ease); }
.rwin.open .rwin-panel { transform: none; }
.rwin-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(18,27,51,.9), rgba(10,15,28,.6)); }
.rwin-head img { width: 34px; height: auto; }
.rwin-head b { flex: 1; font-size: 17px; }
.rwin-grip { display: none; }
.rwin-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.rwin-body > .section { padding-block: clamp(36px, 5vw, 64px); background: none; }
.rwin-body > .section + .section { border-top: 1px solid var(--line-soft); }
.rwin-body .rv { opacity: 1 !important; transform: none !important; }
body.rwin-on { overflow: hidden; }
@media (max-width: 760px) {
  .rwin { align-items: flex-end; padding: 0; }
  .rwin-panel { max-height: 92vh; border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .45s cubic-bezier(.22,1,.36,1); }
  .rwin-grip { display: block; position: absolute; top: 6px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(148,163,184,.45); }
  .rwin-head { padding-top: 18px; }
}
.rwin-store { display: none !important; }
[data-theme="light"] .rwin-panel { background: #f6f7fb; }
[data-theme="light"] .rwin-head { background: linear-gradient(180deg, #fff, #f6f7fb); }

.mm-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line-soft); }
.mm-sub a { font-size: 15px !important; padding: 10px 12px !important; border-radius: 12px; background: rgba(255,255,255,.03); }

.g-item.more { display: none; }
.g-more { display: flex; justify-content: center; margin-top: 18px; }
.g-more .n { color: var(--gold-hi); }
@media (max-width: 560px) { .gallery { columns: 2; column-gap: 8px; } .g-item { margin-bottom: 8px; } .g-item figcaption { font-size: 12px; padding: 22px 10px 8px; } }
/* v6 fixes */
.sec-title .grad, .grad-text { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (max-width: 700px) { .section { padding-block: 56px; } .section--tight { padding-block: 44px; } .sec-head { margin-bottom: 28px; } }
.lift-car .inside { justify-items: center; align-items: center; }
.lift-car .inside .lift-logo { margin-inline: auto; }
/* v6 — mobile: services and plans become swipeable carousels (shorter page) */
.car-dots { display: none; }
@media (max-width: 700px) {
  .svc-panel .grid, #plansGrid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 6px 16px 10px; scrollbar-width: none; }
  .svc-panel .grid::-webkit-scrollbar, #plansGrid::-webkit-scrollbar { display: none; }
  .svc-panel .grid > *, #plansGrid > * { scroll-snap-align: center; }
  #plansGrid .plan.featured { transform: none; }
  .car-dots { display: flex; justify-content: center; gap: 7px; margin-top: 6px; }
  .car-dots i { width: 7px; height: 7px; border-radius: 7px; background: rgba(148,163,184,.35); transition: width .3s var(--ease), background .3s; }
  .car-dots i.on { width: 22px; background: var(--gold); }
}
.st-logo > img { width: 100% !important; height: 100% !important; }

/* ═══ v6.1 — "there are choices here" cues ═══ */
.calc-hint { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; font-size: 13.5px; color: var(--gold-hi); transition: opacity .5s var(--ease), max-height .5s var(--ease), margin .5s; max-height: 60px; overflow: hidden; }
.calc.touched .calc-hint { opacity: 0; max-height: 0; margin: 0; }
.calc-hint .tap { position: relative; width: 22px; height: 22px; flex: none; }
.calc-hint .tap::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--gold); }
.calc-hint .tap::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: tapRing 1.6s ease-out infinite; }
@keyframes tapRing { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.opt-n { margin-inline-start: auto; font-size: 12px; font-weight: 600; color: var(--muted); padding: 3px 10px; border-radius: 99px; border: 1px dashed rgba(217,169,62,.35); }
.calc:not(.touched) .step-h .n { position: relative; }
.calc:not(.touched) .step-h .n::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(217,169,62,.6); animation: tapRing 2s ease-out infinite; }
.chip { overflow: hidden; }
.calc.wave .chip:not(.on)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(242,207,122,.28) 50%, transparent 70%); transform: translateX(-120%); animation: chipWave 1.1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms); pointer-events: none; }
[dir="rtl"] .calc.wave .chip:not(.on)::after { transform: translateX(120%); animation-name: chipWaveR; }
@keyframes chipWave { to { transform: translateX(120%); } }
@keyframes chipWaveR { to { transform: translateX(-120%); } }
.chip:not(.on):hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.chip { transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s; }
@media (max-width: 560px) {
  .calc-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .calc-cats button { flex-direction: column; gap: 4px; min-height: 64px; padding: 8px 4px; font-size: 12px; white-space: normal; line-height: 1.3; text-align: center; }
  .svc-tabs { display: grid !important; grid-template-columns: 1fr 1fr; overflow: visible !important; }
  .svc-tabs button { font-size: 13px; padding: 10px 8px; white-space: normal; }
}
/* swipe hint on mobile carousels */
.swipe-wrap { position: relative; }
.swipe-hand { position: absolute; z-index: 5; top: 38%; left: 50%; width: 54px; height: 54px; margin-left: -27px; border-radius: 50%; background: rgba(10,15,28,.72); border: 1px solid rgba(217,169,62,.6); display: grid; place-items: center; pointer-events: none; opacity: 0; backdrop-filter: blur(6px); }
.swipe-hand::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.swipe-hand.go { animation: swipeHand 2.4s var(--ease) forwards; }
@keyframes swipeHand { 0% { opacity: 0; transform: translateX(40px); } 15% { opacity: 1; } 55% { transform: translateX(-40px); opacity: 1; } 70% { transform: translateX(-40px); opacity: 1; } 100% { opacity: 0; transform: translateX(-40px); } }
[dir="rtl"] .swipe-hand.go { animation-name: swipeHandR; }
@keyframes swipeHandR { 0% { opacity: 0; transform: translateX(-40px); } 15% { opacity: 1; } 55% { transform: translateX(40px); opacity: 1; } 70% { transform: translateX(40px); opacity: 1; } 100% { opacity: 0; transform: translateX(40px); } }

/* ═══ v6.1 — motion graphics ═══ */
.aurora { position: absolute; inset: -10% -10% 0; z-index: -2; pointer-events: none; filter: blur(60px); opacity: .75; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -6vw; top: 8%; background: radial-gradient(closest-side, rgba(42,111,230,.55), transparent); animation: aur1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 36vw; height: 36vw; right: -4vw; top: 30%; background: radial-gradient(closest-side, rgba(217,169,62,.38), transparent); animation: aur2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 35%; bottom: -8%; background: radial-gradient(closest-side, rgba(125,178,255,.3), transparent); animation: aur3 30s ease-in-out infinite alternate; }
@keyframes aur1 { to { transform: translate(14vw, 8vh) scale(1.2); } }
@keyframes aur2 { to { transform: translate(-12vw, -6vh) scale(.85); } }
@keyframes aur3 { to { transform: translate(-8vw, -10vh) scale(1.25); } }
:root[data-theme="light"] .aurora { opacity: .35; }
.sec-title.split > span { display: inline-block; opacity: 0; transform: translateY(.45em) scale(.98); filter: blur(10px); transition: opacity .9s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--k, 0) * 140ms + 120ms); }
.sec-title.split.in > span, .rwin-body .sec-title.split > span { opacity: 1; transform: none; filter: none; }
.floor-chip .led.flick { animation: ledFlick .5s steps(4) 1; }
@keyframes ledFlick { 0%, 50% { opacity: .3; } 25%, 75%, 100% { opacity: 1; } }
.btn--gold { will-change: transform; }
.btn--gold .spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff3c4; box-shadow: 0 0 10px #ffd27a; pointer-events: none; animation: spark .7s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .aurora i, .calc-hint .tap::after, .calc:not(.touched) .step-h .n::after, .swipe-hand.go { animation: none !important; }
  .sec-title.split > span { opacity: 1; transform: none; filter: none; transition: none; }
}
.btn--gold { position: relative; }
.peek > * { animation: peekX 1.6s cubic-bezier(.45,0,.25,1); }
[dir="rtl"] .peek > * { animation-name: peekXR; }
@keyframes peekX { 40%, 55% { transform: translateX(-56px); } }
@keyframes peekXR { 40%, 55% { transform: translateX(56px); } }

/* ═════════ v7.3 typography ═════════ */
html[lang="ar"] .hero h1, html[lang="ar"] .sec-title { font-family: "Reem Kufi", var(--font-head); font-weight: 700; letter-spacing: 0; }
html[lang="ar"] .hero h1 { line-height: 1.3; }

/* calculator: estimate disclaimer (v7.2) */
.calc-disclaimer { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 10px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(90deg, rgba(233,196,106,.14), rgba(233,196,106,.05)); border: 1px solid rgba(233,196,106,.45); }
.calc-disclaimer svg { width: 22px; height: 22px; flex: none; color: var(--gold-hi, #f2cf7a); margin-top: 3px; }
.calc-disclaimer p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--text, #e8edf7); }
.calc-disclaimer b { color: var(--gold-hi, #f2cf7a); }
html[dir="rtl"] .tagline-gold { text-align: right; }

/* ═════════ v8 cinema: elevator-door intro + light reveal ═════════ */
html.sti-pre::after { content: ""; position: fixed; inset: 0; z-index: 10002; background: #05070c; }
html.sti-lock, html.sti-lock body { overflow: hidden; }
#stIntro { position: fixed; inset: 0; z-index: 10001; cursor: pointer; contain: strict; transition: opacity .5s ease; }
#stIntro.open { pointer-events: none; }
#stIntro.gone { opacity: 0; }
.std-lobby { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 45%, #1a1f2b, #05070c 75%); }
#stIntro.open .std-lobby { opacity: 0; transition: opacity .7s .35s; }
/* doors */
.std-doors { position: absolute; inset: 7vh 0 0; perspective: 1400px; }
.std-panel { position: absolute; top: 0; bottom: 0; width: 50.1%; overflow: hidden; will-change: transform;
  transition: transform 1.05s cubic-bezier(.7,0,.2,1);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, rgba(0,0,0,.05) 1px 3px),
    linear-gradient(90deg, #2b313c, #8b94a3 30%, #d3d9e2 50%, #7d8696 72%, #353b47); }
.std-panel.l { left: 0; box-shadow: inset -2px 0 0 rgba(233,196,106,.9), inset 0 0 80px rgba(0,0,0,.35); }
.std-panel.r { right: 0; box-shadow: inset 2px 0 0 rgba(233,196,106,.9), inset 0 0 80px rgba(0,0,0,.35); }
#stIntro.open .std-panel.l { transform: translate3d(-101%,0,0); }
#stIntro.open .std-panel.r { transform: translate3d(101%,0,0); }
#stIntro.fast .std-panel { transition-duration: .45s; }
.std-emb { position: absolute; top: 0; bottom: 0; width: 200%; display: grid; place-content: center; justify-items: center; gap: 10px; padding-bottom: 7vh; }
.std-panel.l .std-emb { left: 0; } .std-panel.r .std-emb { right: 0; }
.std-emb img { width: min(230px, 46vw); height: auto; filter: drop-shadow(0 2px 0 rgba(255,255,255,.35)) drop-shadow(0 12px 24px rgba(0,0,0,.45)); }
.std-emb b { font-family: var(--font-brand, Cinzel), serif; font-weight: 700; font-size: clamp(22px, 5.2vw, 40px); letter-spacing: .14em; direction: ltr;
  background: linear-gradient(100deg,#5d3a0e,#c9962f 28%,#fff1c1 46%,#c9962f 64%,#5d3a0e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.std-emb small { font-size: clamp(12px, 3.2vw, 16px); color: #1d1608; font-weight: 700; opacity: .7; letter-spacing: .02em; }
html[lang="ar"] .std-emb small { font-family: "Cairo", var(--font-ar); }
/* specular light travelling across the brushed steel */
.std-spec { position: absolute; inset: -10% -60%; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.28) 50%, transparent 58%); transform: translateX(-40%); animation: stdSpec 1.6s .15s cubic-bezier(.4,0,.2,1) both paused; pointer-events: none; }
@keyframes stdSpec { to { transform: translateX(40%); } }
/* lintel + floor indicator */
.std-frame { position: absolute; left: 0; right: 0; top: 0; height: 7vh; min-height: 52px; display: grid; place-items: center;
  background: linear-gradient(180deg, #1b202a, #0b0e14); box-shadow: 0 1px 0 rgba(233,196,106,.5), 0 10px 30px rgba(0,0,0,.6); z-index: 2; }
.std-ind { display: flex; gap: 12px; align-items: center; padding: 6px 18px; border-radius: 8px; background: #020305; box-shadow: 0 0 0 1px rgba(233,196,106,.55);
  font: 800 clamp(18px, 4.6vw, 24px)/1 "Inter", sans-serif; color: #ffb648; text-shadow: 0 0 12px rgba(255,170,60,.85); direction: ltr; min-width: 104px; justify-content: center; }
.std-arrow { font-style: normal; font-size: .62em; animation: stdBlink .6s steps(2) infinite; }
#stIntro.arrive .std-arrow { animation: none; opacity: 0; }
#stIntro.arrive .std-ind { color: #fff1c1; text-shadow: 0 0 16px rgba(255,214,140,1); }
@keyframes stdBlink { 50% { opacity: .25; } }
#stIntro.open .std-frame { transform: translateY(-100%); transition: transform .7s .45s cubic-bezier(.7,0,.2,1); }
/* seam light + spill when the doors part */
.std-seam { position: absolute; left: 50%; top: 7vh; bottom: 0; width: 2px; margin-left: -1px; background: #fff6d6; opacity: 0; box-shadow: 0 0 26px 6px rgba(255,214,140,.85); transition: opacity .25s; }
#stIntro.arrive .std-seam { opacity: 1; }
#stIntro.open .std-seam { opacity: 0; transition-delay: .15s; }
.std-spill { position: absolute; inset: 0; background: radial-gradient(35% 60% at 50% 55%, rgba(255,226,170,.45), transparent 70%); opacity: 0; pointer-events: none; }
#stIntro.open .std-spill { animation: stdSpill 1.1s ease-out both; }
@keyframes stdSpill { 0% { opacity: 0; transform: scaleX(.2); } 35% { opacity: 1; } 100% { opacity: 0; transform: scaleX(1.6); } }
.sti-skip { position: absolute; z-index: 3; bottom: max(22px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); min-height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid rgba(233,196,106,.55); background: rgba(5,7,12,.55); color: #f6e7bf; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
#stIntro.open .sti-skip { opacity: 0; transition: opacity .2s; }
/* the site behind: a short camera push-in */
html.sti-run .hero > .container { transform: scale(1.06); opacity: .4; }
html.sti-reveal .hero > .container { transform: none; opacity: 1; transition: transform 1.3s cubic-bezier(.2,.7,.2,1), opacity .9s ease; }

/* gold light passes over accent words twice, then rests */
.sec-title .grad { background-size: 250% 100% !important; animation: goldShine 3.2s ease-in-out .8s 2 both; }
.hero h1 .line > span.grad-text { background-size: 250% 100% !important; animation: rise 1.1s var(--ease) .15s forwards, goldShine 3.2s ease-in-out 1.1s 2 both; }
html.sti-run .hero h1 .line > span { animation-play-state: paused; }
@keyframes goldShine { 0% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
/* section titles: a soft light wipe on arrival */
.sec-title.rv.in { animation: titleIn 1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes titleIn { from { opacity: 0; letter-spacing: .04em; filter: blur(6px); } to { opacity: 1; letter-spacing: 0; filter: none; } }

/* weak phones / data saver: same look, far less GPU work */
html.lite body::after { display: none; }
html.lite .svc-card.rv.in .svc-media img { animation: none !important; }
html.lite .std-spec, html.lite .std-spill { display: none; }
html.lite .sec-title.rv.in { animation: none; }
html.lite .sec-title .grad, html.lite .hero h1 .line > span { animation: none !important; transform: none !important; }
html.lite .rv { transition-duration: .5s; transform: translateY(16px); }
html.lite .rv.in { transform: none; }
html.lite .card, html.lite .site-header, html.lite .action-bar, html.lite .proof, html.lite .btn--ghost { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.lite .site-header { background: rgba(7,10,18,.97); }
html.lite #stIntro .std-panel { transition-duration: .8s; }
@media (prefers-reduced-motion: reduce) { #stIntro { display: none !important; } html.sti-pre::after { display: none; } }
#stIntro.go .std-spec { animation-play-state: running; }
/* hero never waits for scripts behind the doors or on weak phones */
html.sti-run .hero .rv, html.sti-reveal .hero .rv, html.lite .hero .rv { opacity: 1; transform: none; transition: none; }
.std-emb small { color: #120d04; opacity: .82; font-weight: 800; }
#stIntro.auto { animation: stdAutoOut .3s 1.2s forwards; }
#stIntro.auto .std-panel.l { animation: stdOpenL .8s cubic-bezier(.7,0,.2,1) .55s forwards; }
#stIntro.auto .std-panel.r { animation: stdOpenR .8s cubic-bezier(.7,0,.2,1) .55s forwards; }
#stIntro.auto .std-lobby, #stIntro.auto .std-frame { animation: stdAutoOut .4s .75s forwards; }
#stIntro.auto .std-seam { animation: stdAutoOut .2s .6s forwards; }
@keyframes stdOpenL { to { transform: translate3d(-101%,0,0); } }
@keyframes stdOpenR { to { transform: translate3d(101%,0,0); } }
@keyframes stdAutoOut { to { opacity: 0; } }

/* ── v8.1 precision layer: calibration rulers, seam alignment lock, status LED ── */
#stIntro { --lk: .2s; }
#stIntro.auto { --lk: 0s; }
.std-ruler { position: absolute; left: 0; right: 0; height: 14px; z-index: 2; pointer-events: none; opacity: .9; transform: scaleX(0);
  background:
    repeating-linear-gradient(90deg, rgba(233,196,106,.85) 0 1px, transparent 1px 50px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(233,196,106,.45) 0 1px, transparent 1px 10px) 0 0 / 100% 6px no-repeat; }
.std-ruler.t { top: calc(7vh + 2px); }
.std-ruler.b { bottom: 0; transform-origin: center; background-position: 0 100%, 0 100%; }
.std-ruler.b { background:
    repeating-linear-gradient(90deg, rgba(233,196,106,.85) 0 1px, transparent 1px 50px) 0 100% / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(233,196,106,.45) 0 1px, transparent 1px 10px) 0 100% / 100% 6px no-repeat; }
#stIntro.go .std-ruler, #stIntro.auto .std-ruler { animation: stdRule .7s cubic-bezier(.2,.7,.2,1) forwards; }
#stIntro.open .std-ruler { opacity: 0; transition: opacity .25s; }
@keyframes stdRule { to { transform: scaleX(1); } }
/* two registration brackets travel to the seam and lock = "calibrated" */
.std-lock { position: absolute; left: 50%; top: 74%; width: 0; height: 0; z-index: 2; pointer-events: none; }
.std-lock i { position: absolute; top: -26px; width: 18px; height: 52px; border: 2px solid #f3d27a; filter: drop-shadow(0 0 6px rgba(255,200,110,.8)); opacity: 0; }
.std-lock i.a { right: 6px; border-left: 0; transform: translateX(-34vw); }
.std-lock i.b { left: 6px; border-right: 0; transform: translateX(34vw); }
.std-lock span { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #f3d27a; opacity: 0; transform: scale(2.4); }
.std-lock span::before, .std-lock span::after { content: ""; position: absolute; background: #f3d27a; }
.std-lock span::before { left: 50%; top: -10px; bottom: -10px; width: 1px; margin-left: -.5px; }
.std-lock span::after { top: 50%; left: -10px; right: -10px; height: 1px; margin-top: -.5px; }
#stIntro.go .std-lock i, #stIntro.auto .std-lock i { animation: stdLockIn .55s cubic-bezier(.65,0,.25,1) var(--lk) forwards; }
#stIntro.go .std-lock span, #stIntro.auto .std-lock span { animation: stdLockSnap .3s cubic-bezier(.3,1.6,.5,1) calc(var(--lk) + .5s) forwards; }
@keyframes stdLockIn { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 1; transform: translateX(0); } }
@keyframes stdLockSnap { to { opacity: 1; transform: scale(1); } }
#stIntro.open .std-lock { opacity: 0; transition: opacity .2s; }
/* status LED in the indicator: amber RUN → green OK */
.std-st { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 4px; padding-inline-start: 12px; border-inline-start: 1px solid rgba(233,196,106,.35); font: 800 11px/1 "Inter", sans-serif; letter-spacing: .12em; color: #ffcf7a; text-shadow: none; }
.std-st em { font-style: normal; min-width: 26px; }
.std-led { width: 8px; height: 8px; border-radius: 50%; background: #ffb648; box-shadow: 0 0 8px #ffb648; animation: stdBlink .5s steps(2) infinite; }
#stIntro.arrive .std-led { background: #39e58c; box-shadow: 0 0 10px #39e58c; animation: none; }
#stIntro.arrive .std-st { color: #8ff5bd; }
/* PLC scan line running along the lintel */
.std-scan { position: absolute; left: 0; bottom: 0; height: 2px; width: 22%; background: linear-gradient(90deg, transparent, #f3d27a, transparent); animation: stdScan 1.1s linear infinite; }
#stIntro.arrive .std-scan { animation: none; width: 100%; background: linear-gradient(90deg, transparent, rgba(57,229,140,.8), transparent); }
@keyframes stdScan { from { transform: translateX(-100%); } to { transform: translateX(460%); } }
html.lite .std-scan { display: none; }
#stIntro.auto .std-lock, #stIntro.auto .std-ruler { animation: stdAutoOut .2s .55s forwards; }
#stIntro.auto .std-ruler { animation: stdRule .5s cubic-bezier(.2,.7,.2,1) forwards, stdAutoOut .2s .55s forwards; }
#stIntro.auto .std-lock i { animation-duration: .4s; }
#stIntro.auto .std-lock span { animation-delay: .32s; }
.map-box .map-open { position: absolute; z-index: 3; bottom: 10px; inset-inline-end: 10px; background: rgba(7,10,18,.85); }
@media (max-width: 400px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand-name b { font-size: 13px; letter-spacing: .03em; }
  .lang-switch { padding: 2px; }
  .lang-switch button { min-width: 28px; height: 32px; padding: 0 3px; font-size: 12px; }
}
@media (max-width: 370px) { .brand-name { display: none; } }
