/* =====================================================================
   Tabsi Travel — Trust & Authority design system
   Navy ink · warm gold · glass surfaces · iOS-style progressive blur
   ===================================================================== */

/* Shabnam (Persian) is linked from <head> (index.html) rather than @import-ed here,
   so it loads in parallel with this file instead of behind it. Vazirmatn is the fallback. */

:root {
  /* Color tokens */
  --ink-950: #060d1f;
  --ink-900: #0a1428;
  --ink-800: #10203f;
  --ink-700: #1e3a8a;
  --ink-600: #27499f;
  --gold-500: #c8963e;
  --gold-400: #dfb163;
  --gold-300: #ecc98b;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --fg: #0f172a;
  --fg-muted: #46536b;
  --border: #dfe5ee;
  --ring: #1e3a8a;

  /* Typography */
  --font-head: "Bricolage Grotesque", "Noto Sans Armenian", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-body: "Onest", "Noto Sans Armenian", "Noto Sans Devanagari", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1200px;
  --nav-h: 76px;

  --shadow-sm: 0 1px 2px rgba(10, 20, 40, .05), 0 4px 12px rgba(10, 20, 40, .05);
  --shadow-md: 0 2px 6px rgba(10, 20, 40, .06), 0 14px 34px rgba(10, 20, 40, .10);
  --shadow-lg: 0 8px 24px rgba(10, 20, 40, .12), 0 32px 64px rgba(10, 20, 40, .16);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* Per-language font stacks */
html[lang="fa"] {
  --font-head: "Shabnam", "Vazirmatn", system-ui, sans-serif;
  --font-body: "Shabnam", "Vazirmatn", system-ui, sans-serif;
}
html[lang="hy"] {
  --font-head: "Noto Sans Armenian", system-ui, sans-serif;
  --font-body: "Noto Sans Armenian", system-ui, sans-serif;
}
html[lang="hi"] {
  --font-head: "Noto Sans Devanagari", system-ui, sans-serif;
  --font-body: "Noto Sans Devanagari", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* No CSS smooth-scroll: Lenis owns scrolling (double smoothing feels laggy) */
html { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
/* <picture> wrappers (WebP sources) are transparent to layout: every rule that
   targets an img keeps working unchanged */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd, dt, figure, blockquote { margin: 0; padding: 0; }
li { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

::selection { background: var(--gold-400); color: var(--ink-950); }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
html[data-dark] :focus-visible, .hero :focus-visible, .banner :focus-visible { outline-color: var(--gold-400); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

/* =========================== Preloader =========================== */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink-950);
  display: grid; place-items: center;
  transition: opacity .6s var(--ease-out), visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; place-items: center; gap: 22px; }
.loader__logo { width: 96px; height: 96px; object-fit: contain; animation: loaderPulse 1.4s ease-in-out infinite; }
@keyframes loaderPulse { 50% { transform: scale(1.06); opacity: .85; } }
.loader__bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; border-radius: 3px; background: var(--gold-400); animation: loaderSlide 1.1s ease-in-out infinite; }
@keyframes loaderSlide { 0% { transform: translateX(-160px); } 100% { transform: translateX(160px); } }
html[dir="rtl"] .loader__bar span { animation-name: loaderSlideR; }
@keyframes loaderSlideR { 0% { transform: translateX(160px); } 100% { transform: translateX(-160px); } }

/* ================= iOS-style progressive blur (nav) ================= */
.nav-blur {
  position: fixed; inset-inline: 0; top: 0; height: 140px; z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.nav-blur.is-on { opacity: 1; }
.nav-blur > div { position: absolute; inset: 0; }
/* stacked blur layers with gradient masks = progressive depth blur (kept lean: 3 passes) */
.nav-blur > div:nth-child(1) { backdrop-filter: blur(2px);  -webkit-backdrop-filter: blur(2px);  mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 84%); -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 84%); }
.nav-blur > div:nth-child(2) { backdrop-filter: blur(6px);  -webkit-backdrop-filter: blur(6px);  mask-image: linear-gradient(to bottom, black 0%, black 30%, transparent 58%); -webkit-mask-image: linear-gradient(to bottom, black 0%, black 30%, transparent 58%); }
.nav-blur > div:nth-child(3) { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); mask-image: linear-gradient(to bottom, black 0%, black 14%, transparent 36%); -webkit-mask-image: linear-gradient(to bottom, black 0%, black 14%, transparent 36%); }
.nav-blur > div:nth-child(4) { background: linear-gradient(to bottom, rgba(6,13,31,.42), rgba(6,13,31,.16) 55%, transparent); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 110;
  pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
  transform: scaleX(0); transform-origin: left center;
  will-change: transform;
}
html[dir="rtl"] .scroll-progress span { transform-origin: right center; }

/* =========================== Navigation =========================== */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: clamp(16px, 3vw, 36px);
  color: #fff;
}
.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
/* Bare brand mark — no plate, no background. The logo sits directly on the
   page; a soft drop shadow is what keeps it legible over the video hero. */
.nav__brand img {
  width: 64px; height: 64px;   /* fits inside the 76px bar */
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(6, 13, 31, .45));
  transition: transform .35s var(--ease-out), filter .3s;
}
.nav__brand:hover img {
  transform: scale(1.06) rotate(-3deg);
  filter: drop-shadow(0 4px 12px rgba(6, 13, 31, .5));
}
html[dir="rtl"] .nav__brand:hover img { transform: scale(1.06) rotate(3deg); }
.nav__brandname { font-family: var(--font-body); font-weight: 800; letter-spacing: .06em; font-size: 18.5px; }
/* the footer mark carries the brand, so it sits a size larger */
.footer__brand .nav__brand img { width: 96px; height: 96px; }
.footer__brand .nav__brandname { font-size: 20px; }
.nav__brandname em { font-style: normal; color: var(--gold-400); }

.nav__links { display: flex; gap: clamp(10px, 1.6vw, 26px); }
.nav__links a {
  position: relative; font-weight: 600; font-size: 14.5px; opacity: .92; padding: 8px 2px;
  transition: opacity .2s;
}
.nav__links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--gold-400); transform: scaleX(0); transform-origin: center;
  transition: transform .3s var(--ease-out);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-weight: 700; font-size: 13.5px; letter-spacing: .04em;
  transition: background .25s, border-color .25s;
}
.lang__btn:hover { background: rgba(255,255,255,.16); }
.lang__btn svg { width: 17px; height: 17px; }
.lang__chev { transition: transform .3s var(--ease-out); }
.lang.is-open .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  min-width: 168px; padding: 8px;
  border-radius: 16px;
  background: rgba(12, 22, 44, .82);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97);
  transform-origin: top;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu li {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; padding: 8px 14px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px; cursor: pointer;
  transition: background .2s;
}
.lang__menu li:hover { background: rgba(255,255,255,.10); }
.lang__menu li[aria-selected="true"] { color: var(--gold-300); }
.lang__menu li[aria-selected="true"]::after { content: "✓"; font-size: 13px; }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 24px;
  border-radius: 999px; font-weight: 700; font-size: 15px;
  cursor: pointer; overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s;
  will-change: transform;
}
.btn--lg { min-height: 56px; padding: 16px 32px; font-size: 16px; }
.btn--gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--ink-950); box-shadow: 0 8px 24px rgba(200, 150, 62, .35); }
.btn--gold::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
  transform: translateX(-130%);
}
.btn--gold:hover::before { animation: sheen .8s var(--ease-out); }
@keyframes sheen { to { transform: translateX(130%); } }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(200, 150, 62, .45); }
.btn--glass {
  background: rgba(255,255,255,.10); color: #fff;
  border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn--glass:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn--ink { background: var(--ink-800); color: #fff; box-shadow: var(--shadow-md); }
.btn--ink:hover { background: var(--ink-700); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn .i-arrow { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.btn:hover .i-arrow { transform: translateX(4px); }
html[dir="rtl"] .btn .i-arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .i-arrow { transform: scaleX(-1) translateX(4px); }

.nav__cta { min-height: 44px; padding: 10px 20px; font-size: 14px; }

/* Burger */
.nav__burger {
  display: none; position: relative; width: 46px; height: 46px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav__burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.nav__burger span:nth-child(1) { top: 18px; }
.nav__burger span:nth-child(2) { top: 26px; }
.nav__burger.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(6, 13, 31, .72);
  backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease-out), visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: grid; gap: 8px; text-align: center; }
.mobile-menu nav > a {
  color: #fff; font-family: var(--font-head); font-size: clamp(26px, 6vw, 36px); font-weight: 600;
  padding: 8px 20px; opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.mobile-menu.is-open nav > a { opacity: 1; transform: none; }
.mobile-menu nav > a:nth-child(1) { transition-delay: .05s; }
.mobile-menu nav > a:nth-child(2) { transition-delay: .1s; }
.mobile-menu nav > a:nth-child(3) { transition-delay: .15s; }
.mobile-menu nav > a:nth-child(4) { transition-delay: .2s; }
.mobile-menu nav > a:nth-child(5) { transition-delay: .25s; }
.mobile-menu nav > a:nth-child(6) { transition-delay: .3s; }
.mobile-menu nav > a.btn { font-family: var(--font-body); font-size: 16px; margin-top: 18px; transition-delay: .35s; }

/* =========================== Hero =========================== */
/* Scroll scene, pinless: the outer section is tall (its extra height IS the
   scrub distance) and the inner wrapper stays on screen via position:sticky.
   No ScrollTrigger pinning anywhere — no spacer divs, no reparenting, no
   fixed-position fallbacks — so layout is identical from first paint and
   anchors, refreshes and smooth-scroll can never disagree. */
.hero {
  position: relative;
  /* 100svh on screen + 85svh of scrub per card transition (3 transitions) */
  height: calc(100svh + 255svh);
  color: #fff;
}
.hero__sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: clip;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--ink-950); }
.hero__bg video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
[data-parallax], [data-float] { will-change: transform; }
/* Transparent layer over the time-lapse: keeps text legible at all times */
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--ink-950) 0%, rgba(6,13,31,.52) 26%, rgba(6,13,31,.34) 55%, rgba(6,13,31,.5) 100%),
    radial-gradient(120% 90% at 20% 80%, rgba(10, 20, 40, .5), transparent 60%);
}

/* Card deck: each message rises from the bottom, holds, and hands off to the next */
.hero__content { position: absolute; inset: 0; z-index: 1; }
.hcard {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding: calc(var(--nav-h) + 24px) clamp(20px, 4vw, 40px) 110px;
  opacity: 0; visibility: hidden;
}
.hcard--first { opacity: 1; visibility: visible; }
.hcard__title {
  font-size: clamp(28px, 4vw, 50px); font-weight: 700; letter-spacing: -.01em;
  line-height: 1.12;
  color: #fff; max-width: 19ch;
  text-shadow: 0 2px 30px rgba(6, 13, 31, .45);
}
.hcard__desc {
  margin-top: 20px; max-width: 52ch;
  font-size: clamp(16px, 1.6vw, 19.5px);
  color: rgba(255,255,255,.88);
}
.hcard__chips { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
/* Solid tint, not backdrop blur: blurring over a playing video re-renders
   every video frame and stutters both the video and the scroll */
.chip {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 22px; border-radius: 18px;
  background: rgba(10, 20, 40, .45);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 12.5px; color: rgba(255,255,255,.82); font-weight: 600;
}
.chip .stat__v { font-size: 26px; }

/* Deck dots */
.hcard-dots {
  position: absolute; z-index: 2;
  bottom: 92px; inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
}
html[dir="rtl"] .hcard-dots { transform: translateX(50%); }
.hcard-dots button {
  width: 30px; height: 30px; padding: 0;
  display: grid; place-items: center;
  cursor: pointer;
}
.hcard-dots button::after {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.38);
  transition: background .3s, width .3s var(--ease-out);
}
.hcard-dots button:hover::after { background: rgba(255,255,255,.7); }
.hcard-dots button.is-active::after { width: 26px; background: var(--gold-400); }
html:not(.has-motion) .hcard-dots { display: none; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(10, 20, 40, .4);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
}
.hero__badge svg { width: 16px; height: 16px; color: var(--gold-300); }
.hero__title {
  margin-top: 24px;
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.12;
  max-width: 21ch;
  text-shadow: 0 2px 30px rgba(6, 13, 31, .4);
}
.hero__title .w { display: inline-block; }
/* Interactive headline: words respond to the cursor */
@media (hover: hover) {
  .hero__title .w { transition: transform .3s var(--ease-out), color .3s; cursor: default; }
  .hero__title .w:hover { transform: translateY(-4px); color: var(--gold-300); }
}
.hero__subtitle {
  margin-top: 24px; max-width: 58ch;
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,255,255,.86);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.stat__v {
  font-family: var(--font-head); font-size: clamp(26px, 3vw, 40px); font-weight: 600;
  color: var(--gold-300); font-variant-numeric: tabular-nums;
}

.hero__scroll {
  position: absolute; bottom: 26px; inset-inline-start: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  color: rgba(255,255,255,.72); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
html[dir="rtl"] .hero__scroll { transform: translateX(50%); }
.hero__scrollline { width: 1.5px; height: 44px; background: rgba(255,255,255,.3); overflow: hidden; position: relative; }
.hero__scrollline::after {
  content: ""; position: absolute; inset-inline: 0; top: -100%; height: 100%;
  background: var(--gold-400); animation: scrollHint 1.8s var(--ease-out) infinite;
}
@keyframes scrollHint { 60%, 100% { top: 100%; } }

/* =========================== Marquee =========================== */
.marquee {
  position: relative; z-index: 2;
  background: var(--ink-900); color: rgba(255,255,255,.85);
  border-block: 1px solid rgba(255,255,255,.08);
  padding-block: 16px; overflow: clip;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee__track { display: flex; white-space: nowrap; width: max-content; }
.marquee__track span {
  font-family: var(--font-head); font-size: 17px; letter-spacing: .04em; font-weight: 500;
  padding-inline-end: 8px;
}

/* =========================== Sections =========================== */
.section { padding-block: clamp(80px, 11vh, 130px); position: relative; }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vh, 64px); }
.section__title { font-size: clamp(30px, 4vw, 48px); font-weight: 700; letter-spacing: -.015em; }
.section__subtitle { margin-top: 16px; font-size: clamp(15.5px, 1.4vw, 18px); color: var(--fg-muted); max-width: 62ch; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-500);
}

/* Brand keywords in titles: gold by default.
   Darker gold on light sections (contrast), luminous gold on dark ones. */
.kw {
  background-image: linear-gradient(115deg, #a97c2c, #8a6420);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: none;
}
.hero .kw, .pagehead .kw, .dest .kw, .testi .kw, .banner .kw, .now .kw {
  background-image: linear-gradient(115deg, var(--gold-300), var(--gold-400));
}
@media (hover: hover) {
  .hero__title .w.kw:hover { color: transparent; filter: brightness(1.18); }
}

/* Reveal initial states (JS animates in; no-JS stays visible) */
html.has-motion [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(10px); }
html.has-motion [data-stagger] > * { opacity: 0; transform: translateY(30px); filter: blur(10px); }

/* =========================== Services =========================== */
.services { background: var(--bg); }

/* ---------- Instagram-style feed ---------- */
.news { background: var(--bg); }
.feed-wrap { display: grid; grid-template-columns: minmax(0, 470px); justify-content: center; gap: 32px; }
.feed { min-width: 0; display: grid; gap: 18px; }
.feed-side, .feed-left { display: none; }
@media (min-width: 1080px) {
  .feed-wrap { grid-template-columns: 470px 300px; gap: 44px; align-items: start; }
  .feed-side { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 24px); }
}
@media (min-width: 1180px) {
  .feed-wrap { grid-template-columns: 220px 470px 300px; gap: 40px; }
  .feed-left { display: block; position: sticky; top: calc(var(--nav-h) + 24px); }
}
/* left rail — Instagram desktop navigation */
.ig-nav { display: grid; gap: 4px; }
.ig-nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px;
  font-size: 15px; font-weight: 500; color: var(--fg);
  transition: background .2s, transform .2s var(--ease-out);
}
.ig-nav a:hover { background: var(--surface); transform: translateX(3px); }
html[dir="rtl"] .ig-nav a:hover { transform: translateX(-3px); }
.ig-nav svg { width: 24px; height: 24px; flex-shrink: 0; }
.ig-avatar--sm { width: 28px; height: 28px; padding: 1.5px; }
/* highlights */
.highlights { display: grid; gap: 4px; }
.highlights__label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); padding-inline: 6px; }
/* right rail extras */
.suggest, .msgcard { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.suggest__label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 8px; }
.suggest li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; border-top: 1px solid var(--border); }
.suggest li:first-child { border-top: 0; }
.suggest li a { font-size: 12.5px; font-weight: 700; color: #0095f6; }
/* ---- message card: a live DM desk ---- */
.msgcard { display: grid; gap: 10px; padding: 18px; }
.msgcard__head { display: flex; align-items: center; gap: 8px; }
.msgcard__label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); }
/* breathing "we're here" dot */
.msgcard__live { width: 9px; height: 9px; border-radius: 50%; background: #2bd576; flex-shrink: 0; position: relative; }
.msgcard__live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(43, 213, 118, .55);
  animation: livePulse 2.2s var(--ease-out) infinite;
}
@keyframes livePulse { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(1.45); opacity: 0; } }

/* incoming chat bubble with typing dots */
.msgcard__bubble {
  width: fit-content; display: flex; align-items: center; gap: 5px;
  padding: 11px 14px; border-radius: 16px 16px 16px 4px;
  background: var(--bg); border: 1px solid var(--border);
}
html[dir="rtl"] .msgcard__bubble { border-radius: 16px 16px 4px 16px; }
.msgcard__bubble i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6bb; animation: typing 1.25s ease-in-out infinite; }
.msgcard__bubble i:nth-child(2) { animation-delay: .16s; }
.msgcard__bubble i:nth-child(3) { animation-delay: .32s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-5px); opacity: 1; } }
.msgcard__hours { font-size: 12px; color: var(--fg-muted); margin-bottom: 4px; }

/* brand channel rows */
.chan {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 11px 14px;
  border-radius: 16px; color: #fff;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.chan--wa { background: linear-gradient(135deg, #25d366, #0f9d58); box-shadow: 0 6px 18px rgba(37, 211, 102, .30); }
.chan--tg { background: linear-gradient(135deg, #37aee2, #1c92d2); box-shadow: 0 6px 18px rgba(34, 158, 217, .30); }
.chan:hover { transform: translateY(-3px); }
.chan--wa:hover { box-shadow: 0 12px 28px rgba(37, 211, 102, .42); }
.chan--tg:hover { box-shadow: 0 12px 28px rgba(34, 158, 217, .42); }
.chan:active { transform: scale(.97); }
/* light sweep on hover */
.chan::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.38) 50%, transparent 62%);
  transform: translateX(-130%);
}
.chan:hover::before { animation: sheen .85s var(--ease-out); }
.chan__icon {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 12px;
  background: rgba(255,255,255,.18);
  transition: transform .35s var(--ease-out), background .3s;
}
.chan__icon svg { width: 22px; height: 22px; }
.chan:hover .chan__icon { transform: scale(1.08) rotate(-6deg); background: rgba(255,255,255,.26); }
html[dir="rtl"] .chan:hover .chan__icon { transform: scale(1.08) rotate(6deg); }
.chan__txt { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.25; }
.chan__txt b { font-size: 15px; font-weight: 700; }
.chan__txt small { font-size: 12px; opacity: .88; unicode-bidi: isolate; }
.chan__go { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; transition: transform .3s var(--ease-out); }
.chan:hover .chan__go { transform: translateX(4px); }
html[dir="rtl"] .chan__go { transform: scaleX(-1); }
html[dir="rtl"] .chan:hover .chan__go { transform: scaleX(-1) translateX(4px); }
/* post extras */
.post__type { position: absolute; top: 12px; inset-inline-end: 12px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.post__type svg { width: 22px; height: 22px; }
.post__time { font-size: 11.5px; color: var(--fg-muted); letter-spacing: .06em; text-transform: uppercase; }

/* stories rail */
.stories {
  display: flex; gap: 14px;
  padding: 6px 6px 12px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.stories::-webkit-scrollbar { display: none; }
.story {
  flex: 0 0 auto; width: 74px; scroll-snap-align: start;
  display: grid; justify-items: center; gap: 7px;
  cursor: pointer; padding: 0;
  transition: transform .3s var(--ease-out);
}
.story:hover { transform: translateY(-3px); }
.story:active { transform: scale(.94); }
.ig-ring {
  width: 66px; height: 66px; border-radius: 50%; padding: 3px;
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
  transition: background .3s, box-shadow .3s, transform .3s var(--ease-out);
}
.ig-ring > span {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  border: 2.5px solid var(--surface); overflow: hidden; background: #e6ebf3;
}
.ig-ring img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story.is-seen .ig-ring { background: #d6dbe4; }
.story.is-active .ig-ring { box-shadow: 0 0 0 3px rgba(238, 42, 123, .28); transform: scale(1.06); }
.story__label {
  font-size: 11.5px; color: var(--fg-muted); max-width: 74px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.story.is-active .story__label { color: var(--fg); font-weight: 600; }

/* avatars */
.ig-avatar {
  display: block; width: 38px; height: 38px; border-radius: 50%; padding: 2px; flex-shrink: 0;
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
}
.ig-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid #fff; display: block; }
.ig-avatar--lg { width: 68px; height: 68px; padding: 3px; }
.ig-name { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14px; direction: ltr; unicode-bidi: isolate; }
.ig-name svg { width: 15px; height: 15px; color: #0095f6; flex-shrink: 0; }

/* post */
.posts { display: grid; gap: 22px; }
.post {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post__head { display: flex; align-items: center; gap: 11px; padding: 12px 14px; }
.post__who { flex: 1; min-width: 0; line-height: 1.3; }
.post__loc { font-size: 12.5px; color: var(--fg-muted); }
.post__more {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  color: var(--fg); transition: background .2s;
}
.post__more:hover { background: var(--bg); }
.post__more svg { width: 22px; height: 22px; }

.post__media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; cursor: pointer;
  background: linear-gradient(110deg, #e6ebf3 30%, #f3f6fa 45%, #e6ebf3 60%);
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
@keyframes shimmer { to { background-position: -120% 0; } }
.post__media.is-loaded { animation: none; background: var(--ink-900); }
.post__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transform: scale(1.02);
  transition: opacity .55s ease, transform 1.2s var(--ease-out);
}
.post__media.is-loaded img { opacity: 1; transform: none; }
.post__media:hover img { transform: scale(1.035); }
.post__heart { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.post__heart svg {
  width: 104px; height: 104px; color: #fff;
  filter: drop-shadow(0 8px 26px rgba(0,0,0,.4));
  opacity: 0; transform: scale(.4);
}
.post__heart.is-burst svg { animation: heartBurst .95s cubic-bezier(.2, .9, .3, 1.15) forwards; }
@keyframes heartBurst {
  0%   { opacity: 0; transform: scale(.35) rotate(-8deg); }
  16%  { opacity: 1; transform: scale(1.18) rotate(2deg); }
  30%  { transform: scale(.94) rotate(0); }
  44%  { transform: scale(1.02); }
  76%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.25); }
}

.post__actions { display: flex; align-items: center; gap: 2px; padding: 6px 8px 0; }
.post__actions button, .post__actions a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 10px; color: var(--fg); transition: transform .2s var(--ease-out), background .2s;
}
.post__actions button:hover, .post__actions a:hover { background: var(--bg); }
.post__actions button:active, .post__actions a:active { transform: scale(.84); }
.post__actions svg { width: 25px; height: 25px; }
.post__actions .spacer { flex: 1; }
.post__actions .is-on svg { fill: currentColor; }
.post__actions .like.is-on { color: #ff3040; }
.post__actions .like.is-on svg { animation: likePop .5s cubic-bezier(.2, .9, .3, 1.5); }
.post__actions .save.is-on { color: var(--fg); }
@keyframes likePop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 65% { transform: scale(.92); } 100% { transform: scale(1); } }

.post__body { padding: 4px 16px 16px; display: grid; gap: 7px; font-size: 14.5px; }
.post__status { font-size: 13px; font-weight: 700; min-height: 1.3em; color: var(--fg); }
.post__caption { line-height: 1.6; }
.post__caption > b { font-weight: 700; margin-inline-end: 6px; direction: ltr; unicode-bidi: isolate; }
.post__title { font-weight: 600; }
.post__text { margin-top: 4px; color: var(--fg); }
.post.is-collapsed .post__text {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post__toggle { color: var(--fg-muted); font-size: 14px; padding: 2px 0; cursor: pointer; }
.post__toggle:hover { color: var(--fg); }
.post__tags { color: #00376b; font-size: 13.5px; direction: ltr; unicode-bidi: isolate; text-align: start; }
.post__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--fg-muted); letter-spacing: .06em; text-transform: uppercase;
}
.post__meta svg { width: 14px; height: 14px; }
.post__meta strong { color: var(--fg); font-weight: 700; letter-spacing: 0; text-transform: none; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.post__open { font-size: 12.5px; color: var(--fg-muted); width: fit-content; transition: color .2s; }
.post__open:hover { color: var(--ink-700); }

/* Instagram-blue button */
.btn--ig { background: #0095f6; color: #fff; min-height: 40px; padding: 8px 18px; font-size: 14px; width: 100%; margin-top: 16px; }
.btn--ig:hover { background: #1877f2; transform: translateY(-1px); }

/* side panel */
.profile { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-sm); }
.profile__top { display: flex; align-items: center; gap: 14px; }
.profile__who { min-width: 0; display: grid; gap: 3px; }
.profile__bio { font-size: 13px; color: var(--fg-muted); line-height: 1.45; }
.profile__stats { display: flex; gap: 22px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.profile__stats div { display: grid; line-height: 1.2; }
.profile__stats strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.profile__stats span { font-size: 12px; color: var(--fg-muted); }
.profile__asof { margin-top: 10px; font-size: 11px; color: var(--fg-muted); opacity: .8; }

.now {
  background: linear-gradient(140deg, var(--ink-900), var(--ink-800) 60%, var(--ink-700));
  color: #fff; border-radius: 18px; padding: 20px; display: grid; gap: 10px;
  box-shadow: var(--shadow-md);
}
.now__label { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); }
.now__title { font-size: 20px; font-weight: 700; line-height: 1.25; min-height: 2.5em; transition: opacity .25s; }
.now.is-switching .now__title { opacity: 0; }
.now__time { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255,255,255,.78); }
.now__time svg { width: 15px; height: 15px; color: var(--gold-300); }
.now .btn { margin-top: 6px; width: 100%; }

@media (max-width: 640px) {
  .feed-wrap { gap: 24px; }
  .post { border-radius: 14px; }
  .post__body { padding-inline: 14px; }
}


/* ---------- story viewer (highlights) ---------- */
.viewer { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; }
.viewer[hidden] { display: none; }
.viewer__backdrop { position: absolute; inset: 0; background: rgba(4, 8, 20, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.viewer__card {
  position: relative; width: min(430px, 100vw); height: min(92svh, calc(min(430px, 100vw) * 16 / 9));
  border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: viewerIn .35s var(--ease-out);
}
@keyframes viewerIn { from { opacity: 0; transform: scale(.94) translateY(12px); } }
@media (max-width: 480px) { .viewer__card { width: 100vw; height: 100svh; border-radius: 0; } }
.viewer__bars { position: absolute; top: 10px; inset-inline: 10px; z-index: 3; display: flex; gap: 4px; }
.viewer__bars span { flex: 1; height: 2.5px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.viewer__bars span i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left center; }
html[dir="rtl"] .viewer__bars span i { transform-origin: right center; }
.viewer__bars span.is-done i { transform: scaleX(1); }
.viewer__bars span.is-active i { transition: transform linear; }
.viewer__head {
  position: absolute; top: 22px; inset-inline: 14px; z-index: 3;
  display: flex; align-items: center; gap: 10px; color: #fff;
}
.viewer__who { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.viewer__who b { direction: ltr; unicode-bidi: isolate; }
.viewer__who span { color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__close { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; border-radius: 50%; }
.viewer__close svg { width: 22px; height: 22px; }
.viewer__media { position: absolute; inset: 0; }
.viewer__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewer__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 22%, transparent 78%, rgba(0,0,0,.6)); pointer-events: none; }
.viewer__zone { position: absolute; top: 60px; bottom: 60px; width: 40%; z-index: 2; cursor: pointer; }
.viewer__zone--prev { inset-inline-start: 0; }
.viewer__zone--next { inset-inline-end: 0; width: 60%; }
.viewer__open {
  position: absolute; bottom: 18px; inset-inline: 0; z-index: 3; text-align: center;
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  padding: 10px; opacity: .9;
}
.viewer__open:hover { opacity: 1; text-decoration: underline; }

/* ---------- feed: loading states, carousel, video, pager ---------- */
/* JS toggles these with the hidden attribute; their display rules must not win over it */
.pager[hidden], .highlights[hidden], .profile__stats[hidden], .viewer__sound[hidden], .viewer__media img[hidden], .viewer__media video[hidden], .post__toggle[hidden] { display: none; }
.feed__state {
  display: grid; justify-items: center; gap: 10px; text-align: center; padding: 44px 20px;
  color: var(--fg-muted); background: var(--surface); border: 1px dashed var(--border); border-radius: 16px;
}
.feed__state svg { width: 36px; height: 36px; color: var(--ink-700); opacity: .7; }
.feed__state p { font-size: 15px; }
.post.is-skeleton .ig-avatar { background: #e6ebf3; }
.post.is-skeleton .sk { display: block; height: 11px; border-radius: 6px; background: #e6ebf3; }
.post.is-skeleton .post__body { padding-top: 14px; }
/* carousel — native scroll-snap does the swipe; arrows, dots and the counter follow it */
.carousel {
  display: flex; height: 100%;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel__item { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel__item img, .carousel__item video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ink-900); }
.post__media .carousel__item img { opacity: 0; transform: scale(1.02); transition: opacity .55s ease, transform 1.2s var(--ease-out); }
.post__media.is-loaded .carousel__item img { opacity: 1; transform: none; }
.post__media.is-carousel:hover img { transform: none; }
.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--ink-900); box-shadow: 0 2px 8px rgba(0,0,0,.25);
  opacity: 0; transition: opacity .2s, background .2s;
}
.carousel__nav--prev { inset-inline-start: 10px; }
.carousel__nav--next { inset-inline-end: 10px; }
.carousel__nav svg { width: 18px; height: 18px; }
.carousel__nav--next svg { transform: rotate(180deg); }
html[dir="rtl"] .carousel__nav--prev svg { transform: rotate(180deg); }
html[dir="rtl"] .carousel__nav--next svg { transform: none; }
.post__media.is-carousel:hover .carousel__nav, .carousel__nav:focus-visible { opacity: 1; }
.carousel__nav:hover { background: #fff; }
.carousel__nav[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .carousel__nav { display: none; } }
.carousel__count {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; pointer-events: none;
  padding: 3px 9px; border-radius: 999px; background: rgba(6,13,31,.7); color: #fff;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr;
}
.carousel__dots { position: absolute; bottom: 10px; inset-inline: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.carousel__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .2s, transform .2s; }
.carousel__dots i.is-on { background: #fff; transform: scale(1.2); }
/* video: autoplay muted; tap the speaker for sound */
.carousel__item--video video { cursor: pointer; }
.post__play {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  color: #fff; opacity: .92; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); transition: opacity .25s;
}
.post__play svg { width: 58px; height: 58px; }
.carousel__item--video.is-playing .post__play { opacity: 0; }
.post__sound {
  position: absolute; bottom: 12px; inset-inline-end: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(6,13,31,.7); color: #fff; transition: transform .2s var(--ease-out), background .2s;
}
.post__sound:hover { background: rgba(6,13,31,.85); }
.post__sound:active { transform: scale(.9); }
.post__sound svg { width: 17px; height: 17px; }
.post__sound .i-on, .post__sound[aria-pressed="true"] .i-off { display: none; }
.post__sound[aria-pressed="true"] .i-on { display: block; }
.post__text { white-space: pre-line; }
/* pager */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding-top: 6px; }
.pager__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.pager a, .pager__btn {
  min-width: 44px; height: 44px; padding: 0 12px; display: inline-grid; place-items: center;
  border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--fg-muted); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); font-variant-numeric: tabular-nums;
  transition: background .2s, color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.pager a:hover, .pager__btn:hover { color: var(--fg); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pager a[aria-current="page"] {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--ink-950);
  border-color: transparent; box-shadow: 0 6px 16px rgba(200,150,62,.3);
}
.pager__btn[disabled] { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.pager__btn svg { width: 18px; height: 18px; }
.pager__next svg { transform: rotate(180deg); }
html[dir="rtl"] .pager__prev svg { transform: rotate(180deg); }
html[dir="rtl"] .pager__next svg { transform: none; }
.pager__gap { color: var(--fg-muted); padding: 0 2px; }
/* story viewer: video items, captions, sound */
.viewer__media video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.viewer__caption {
  position: absolute; bottom: 56px; inset-inline: 18px; z-index: 3; text-align: center;
  color: #fff; font-size: 15px; line-height: 1.5; white-space: pre-line; text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.viewer__caption:empty { display: none; }
.viewer__sound { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; border-radius: 50%; }
.viewer__sound svg { width: 20px; height: 20px; }
.viewer__sound .i-on, .viewer__sound[aria-pressed="true"] .i-off { display: none; }
.viewer__sound[aria-pressed="true"] .i-on { display: block; }

/* ---------- Services: scroll-synced stacked slider (sticky scene) ---------- */
.services {
  position: relative; padding-block: 0;
  /* 100svh on screen + 55svh of scrub per slide transition (6 transitions) */
  height: calc(100svh + 330svh);
}
.services__sticky {
  position: sticky; top: 0; height: 100svh; overflow: clip;
  display: grid; grid-template-rows: auto 1fr;
  padding-block: clamp(44px, 6vh, 76px);
  gap: clamp(12px, 2.5vh, 28px);
  background: var(--bg);
}
.services .section__head { margin-bottom: 0; }
/* The heading is what competes with the cards for height: a long translation
   wrapping to three lines used to steal ~110px from every card. Give it a
   wider measure, cap it at two lines, and ease the scale for the wordier
   languages — the cards' own image:text ratio is never touched. */
.services .section__head { max-width: 1000px; }
.services .section__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html[lang="hy"] .services .section__title,
html[lang="hi"] .services .section__title { font-size: clamp(24px, 3vw, 38px); }
html[lang="en"] .services .section__title { font-size: clamp(26px, 3.4vw, 42px); }
.services .section__subtitle {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* dynamic graph backdrop (canvas) — content layers above it */
.plexus { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.services__sticky > .container, .services__sticky > .stack { position: relative; z-index: 1; }
.stack { position: relative; min-height: 0; display: grid; grid-template-rows: 1fr auto auto; gap: 12px; }
.stack__stage { position: relative; min-height: 0; }
.slide {
  position: absolute; top: 50%; left: 50%;
  /* ~70% of the screen on phones, capped for larger viewports */
  width: clamp(240px, 70vw, 400px);
  height: min(100%, 660px);
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  will-change: transform, opacity, filter;
  cursor: pointer;
}
.slide.is-active { cursor: default; box-shadow: var(--shadow-lg); border-color: rgba(200, 150, 62, .55); }
.slide__media { flex: 0 0 56%; overflow: hidden; background: var(--ink-900); }
.slide__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.slide.is-active .slide__media img { transform: scale(1.04); }
.slide__body { flex: 1; min-height: 0; padding: clamp(14px, 2vw, 22px); display: flex; flex-direction: column; gap: 7px; }
.slide__n { font-family: var(--font-head); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; color: var(--gold-500); }
.slide h3 { font-size: clamp(17px, 1.7vw, 22px); font-weight: 700; line-height: 1.2; }
.slide p { font-size: 13.5px; line-height: 1.5; color: var(--fg-muted); display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; flex: 1 1 0; min-height: 0; }
.slide__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.slide__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-700); font-variant-numeric: tabular-nums; }
.slide__meta svg { width: 14px; height: 14px; }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: 13.5px; }
.stack__nav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.stack__arrow {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--fg);
  transition: transform .25s var(--ease-out), background .25s, border-color .25s;
}
.stack__arrow:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); transform: scale(1.06); }
.stack__arrow svg { width: 20px; height: 20px; }
html[dir="rtl"] .stack__arrow svg { transform: scaleX(-1); }
.stack__dots { display: flex; gap: 6px; }
.stack__dots button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; }
.stack__dots button::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #c9d2e0; transition: width .3s var(--ease-out), background .3s; }
.stack__dots button.is-active::after { width: 26px; background: var(--gold-500); }
.stack__hint { text-align: center; font-size: 11.5px; color: var(--fg-muted); letter-spacing: .1em; text-transform: uppercase; }
/* static / reduced-motion fallback: a plain responsive grid */
html:not(.has-motion) .services { height: auto; }
html:not(.has-motion) .services__sticky { position: static; height: auto; min-height: 0; display: block; }
html:not(.has-motion) .stack { display: block; }
html:not(.has-motion) .stack__stage { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
html:not(.has-motion) .slide { position: static; width: auto; height: auto; transform: none !important; opacity: 1 !important; filter: none !important; }
html:not(.has-motion) .slide__media { flex-basis: auto; aspect-ratio: 4 / 3; }
html:not(.has-motion) .stack__nav, html:not(.has-motion) .stack__hint { display: none; }

/* =========================== Why Armenia =========================== */
.why { background: var(--surface); }
.why__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.why__media { position: relative; }
.why__imgmain { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.why__imgmain img { aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; }
.why__imgfloat {
  position: absolute; bottom: -34px; inset-inline-end: -26px; width: 56%;
  border-radius: var(--radius); overflow: hidden;
  border: 6px solid var(--surface);
  box-shadow: var(--shadow-lg);
}
.why__imgfloat img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.why__imgfloat figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 26px 14px 10px;
  background: linear-gradient(to top, rgba(6,13,31,.85), transparent);
  color: #fff; font-size: 11.5px; letter-spacing: .02em;
}
.routes { display: grid; gap: 14px; margin-top: 36px; }
.route {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.route:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); border-color: #cdd7e6; }
html[dir="rtl"] .route:hover { transform: translateX(-6px); }
.route__n {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--gold-500); padding-top: 3px; font-variant-numeric: tabular-nums;
}
.route h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.route p { font-size: 14.5px; color: var(--fg-muted); }

/* =========================== Destinations =========================== */
/* Sticky scene: the section's height is set from JS (one viewport + the
   horizontal pan distance); the sticky wrapper is the full-screen frame —
   header on the first row, the card track fills every remaining pixel. */
.dest {
  position: relative;
  background: var(--ink-950); color: #fff;
  padding-block: 0;
  min-height: 100svh;
}
.dest__sticky {
  position: sticky; top: 0; height: 100svh; overflow: clip;
  display: grid;
  grid-template-rows: auto 1fr;
  padding-block: clamp(56px, 8vh, 96px);
  gap: clamp(20px, 3.5vh, 40px);
}
.dest .section__head { margin-bottom: 0; }

/* Galaxy backdrop (canvas): sits behind the content, fades into the
   neighbouring sections top and bottom so it reads as deep space. */
.galaxy {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  display: block; pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.dest__sticky > .container, .dest__sticky > .dest__viewport { position: relative; z-index: 1; }
.dest .section__title { color: #fff; }
.dest .section__subtitle { color: rgba(255,255,255,.68); }
/* min-width: 0 is essential — as a grid item the viewport would otherwise
   inflate to the track's max-content width and, in RTL, overflow off the
   left edge before the pan even starts. The track follows the page
   direction: it starts from the right in RTL and the pan reveals leftward. */
.dest__viewport { position: relative; min-height: 0; min-width: 0; }
.dest__track {
  display: flex; align-items: center;
  height: 100%;
  gap: clamp(14px, 1.6vw, 22px);
  padding-inline: max(calc((100vw - var(--container)) / 2 + clamp(20px, 4vw, 40px)), 20px);
  width: max-content;
  will-change: transform;
}
.dcard {
  position: relative;
  /* height fills the row it is given (capped), width follows a 3:5 portrait —
     so cards scale with the screen instead of leaving slack above and below */
  height: min(100%, 640px);
  aspect-ratio: 3 / 5;
  width: auto;
  max-width: 76vw;
  min-width: 240px;
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.2vw, 28px);
  display: flex; flex-direction: column; justify-content: flex-end;
  background:
    linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.02) 55%),
    var(--ink-900);
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  transition: transform .45s var(--ease-out), border-color .45s;
  flex-shrink: 0;
}
.dcard:hover { transform: translateY(-8px); border-color: rgba(223,177,99,.5); }
.dcard__img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
}
/* Per-card crop anchor: pulls the visible window higher up the photo */
.dcard__img--top { object-position: center 34%; }
.dcard--photo:hover .dcard__img { transform: scale(1.06); }
.dcard--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(6,13,31,.92) 18%, rgba(6,13,31,.34) 55%, rgba(6,13,31,.18));
}
.dcard > * { position: relative; z-index: 1; }
.dcard > .dcard__img { position: absolute; z-index: 0; }
.dcard__code {
  position: absolute; top: clamp(14px, 1.6vw, 20px); inset-inline-end: clamp(18px, 2vw, 24px); z-index: 1;
  font-family: var(--font-head); font-size: clamp(36px, 3.6vw, 48px); font-weight: 700;
  color: rgba(255,255,255,.14);
  letter-spacing: .02em;
}
.dcard__tag {
  position: absolute; top: clamp(18px, 2vw, 24px); inset-inline-start: clamp(18px, 2vw, 24px); z-index: 1;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.dcard h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; margin-bottom: 8px; }
.dcard p { font-size: clamp(13.5px, 1.1vw, 14.5px); color: rgba(255,255,255,.78); max-width: 30ch; }


/* =========================== Process =========================== */
.process { background: var(--bg); }
.process__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.process__intro { position: sticky; top: calc(var(--nav-h) + 24px); }
.process__img { margin-top: 36px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.process__img img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

.timeline { position: relative; display: grid; gap: 14px; padding-inline-start: 44px; }
html[dir="rtl"] .timeline { padding-inline-start: 44px; }
.timeline__line {
  position: absolute; top: 30px; bottom: 30px; inset-inline-start: 13px;
  width: 2px; background: var(--border); border-radius: 2px;
}
.timeline__line span { display: block; width: 100%; height: 0%; background: linear-gradient(var(--gold-400), var(--ink-700)); border-radius: 2px; }
.tstep {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, box-shadow .3s;
}
.tstep:hover { border-color: #cdd7e6; box-shadow: var(--shadow-md); }
.tstep__dot {
  position: absolute; top: 30px; inset-inline-start: -38px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--ink-700);
  box-shadow: 0 0 0 5px var(--bg);
  transition: background .3s, border-color .3s, transform .3s;
}
.tstep.is-active .tstep__dot { background: var(--gold-400); border-color: var(--gold-500); transform: scale(1.15); }
.tstep h3 { font-size: 19px; font-weight: 600; margin-bottom: 7px; }
.tstep p { font-size: 14.5px; color: var(--fg-muted); }

/* =========================== Desks (India / Germany) =========================== */
.desk--india { background: var(--surface); }
.desk--germany { background: var(--bg); }
.desk__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.desk__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.desk__media img { aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.checklist { display: grid; gap: 13px; margin-block: 30px 34px; }
.checklist li { display: flex; align-items: center; gap: 13px; font-weight: 600; font-size: 15.5px; }
.checklist svg {
  width: 26px; height: 26px; padding: 5px; flex-shrink: 0;
  border-radius: 50%; background: rgba(200, 150, 62, .14); color: var(--gold-500);
}

/* =========================== Testimonials =========================== */
.testi { background: var(--ink-900); color: #fff; }
.testi .section__title { color: #fff; }
.testi .section__subtitle { color: rgba(255,255,255,.68); }
.testi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard {
  display: flex; flex-direction: column; gap: 18px;
  padding: 30px 28px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .4s var(--ease-out), border-color .4s, background .4s;
}
.tcard:hover { transform: translateY(-6px); border-color: rgba(223,177,99,.45); background: rgba(255,255,255,.075); }
.tcard__stars { display: flex; gap: 3px; color: var(--gold-400); }
.tcard__stars svg { width: 17px; height: 17px; }
.tcard blockquote { font-size: 15px; line-height: 1.75; color: rgba(255,255,255,.88); flex: 1; }
.tcard figcaption { display: grid; gap: 2px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.tcard strong { font-size: 15px; }
.tcard figcaption span { font-size: 13px; color: rgba(255,255,255,.6); }

/* =========================== FAQ =========================== */
.faq { background: var(--bg); }
.faq__wrap { max-width: 860px; }
.faq__list { display: grid; gap: 14px; }
.qa {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.qa[open] { border-color: #cdd7e6; box-shadow: var(--shadow-md); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 17.5px;
  min-height: 44px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg {
  width: 22px; height: 22px; flex-shrink: 0; color: var(--ink-700);
  transition: transform .35s var(--ease-out);
}
.qa[open] summary svg { transform: rotate(45deg); }
.qa__a { padding: 0 26px; overflow: hidden; }
.qa__a p { padding-bottom: 24px; color: var(--fg-muted); font-size: 15px; max-width: 68ch; }

/* =========================== Contact =========================== */
.contact { background: var(--surface); }
.cwrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 2.4vw, 32px); align-items: stretch; }
@media (max-width: 960px) { .cwrap { grid-template-columns: 1fr; } }

/* ---- map card ---- */
.cmap {
  position: relative; overflow: hidden;
  border-radius: 30px;
  min-height: clamp(360px, 52vh, 560px);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  transition: box-shadow .4s var(--ease-out);
}
.cmap:hover { box-shadow: var(--shadow-lg); }
.cmap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: saturate(.92) contrast(1.02); }
/* Interactive marker: its tip sits exactly on the map centre (the office).
   The widget's own placemark is switched off, so this is the only pin —
   and unlike a static one, it is clickable. */
.cmap__mark {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0; z-index: 3;
  color: #fff;
}
.cmap__pinicon {
  position: absolute; left: -17px; bottom: 0; width: 34px; height: 45px;
  filter: drop-shadow(0 6px 12px rgba(6, 13, 31, .45));
  transform-origin: 50% 100%;
  animation: pinDrop .7s var(--ease-out) both;
  transition: transform .3s var(--ease-out), filter .3s;
}
@keyframes pinDrop { from { transform: translateY(-26px) scale(.7); opacity: 0; } }
.cmap__mark:hover .cmap__pinicon, .cmap__mark:focus-visible .cmap__pinicon {
  transform: scale(1.14) translateY(-2px);
  filter: drop-shadow(0 10px 18px rgba(232, 25, 44, .45));
}
/* ground pulse under the tip */
.cmap__ring {
  position: absolute; left: -20px; top: -20px; width: 40px; height: 40px;
  border-radius: 50%; border: 2px solid rgba(232, 25, 44, .65);
  animation: markPulse 2.2s var(--ease-out) infinite;
}
@keyframes markPulse { 0% { transform: scale(.28); opacity: .95; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
/* label chip that appears on hover / keyboard focus */
.cmap__tip {
  position: absolute; bottom: 54px; left: 50%;
  transform: translate(-50%, 6px);
  display: grid; gap: 1px; width: max-content; max-width: 230px;
  padding: 9px 14px; border-radius: 14px;
  background: rgba(10, 20, 40, .92);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(6, 13, 31, .4);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), visibility .28s;
}
.cmap__tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: rgba(10, 20, 40, .92);
}
.cmap__tip b { font-size: 13px; font-weight: 700; letter-spacing: .02em; direction: ltr; }
.cmap__tip small { font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.cmap__mark:hover .cmap__tip, .cmap__mark:focus-visible .cmap__tip {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}

.cmap__attr {
  position: absolute; top: 10px; inset-inline-start: 12px; z-index: 2;
  font-size: 10.5px; letter-spacing: .02em;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(255,255,255,.8); color: var(--fg-muted);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color .2s, background .2s;
}
.cmap__attr:hover { color: var(--fg); background: rgba(255,255,255,.95); }
/* preview builds swap the map iframe for a still image */
.cmap__static { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.92); }
/* floating address bar over the map */
.cmap__foot {
  position: absolute; inset-inline: 14px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 20px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(6, 13, 31, .18);
}
.cmap__addr { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cmap__addr > svg { width: 22px; height: 22px; color: var(--ink-700); flex-shrink: 0; }
.cmap__addr span { display: grid; gap: 1px; min-width: 0; }
.cmap__addr b { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); }
.cmap__addr small { font-size: 13.5px; font-weight: 600; color: var(--fg); line-height: 1.35; }

/* ---- channel panel ---- */
.cpanel {
  display: grid; gap: 10px; align-content: start;
  padding: clamp(18px, 2vw, 24px);
  border-radius: 30px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.cpanel__head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }

.crow {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 13px;
  min-height: 66px; padding: 12px 15px;
  border-radius: 18px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s, border-color .3s;
}
.crow--wa { background: linear-gradient(135deg, #25d366, #0f9d58); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .28); }
.crow--tg { background: linear-gradient(135deg, #37aee2, #1c92d2); color: #fff; box-shadow: 0 6px 18px rgba(34, 158, 217, .28); }
/* YouTube: brand red, one step deeper than #FF0000 so white text stays readable */
.crow--yt { background: linear-gradient(135deg, #ef2d26, #c8161c); color: #fff; box-shadow: 0 6px 18px rgba(220, 32, 28, .28); }
.crow--call, .crow--mail, .crow--hours {
  background: var(--surface); color: var(--fg); border: 1px solid var(--border);
}
a.crow:hover { transform: translateY(-3px); }
.crow--wa:hover { box-shadow: 0 12px 28px rgba(37, 211, 102, .40); }
.crow--tg:hover { box-shadow: 0 12px 28px rgba(34, 158, 217, .40); }
.crow--yt:hover { box-shadow: 0 12px 28px rgba(220, 32, 28, .40); }
.crow--call:hover, .crow--mail:hover { box-shadow: var(--shadow-md); border-color: #cdd7e6; }
a.crow:active { transform: scale(.98); }
.crow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.35) 50%, transparent 62%);
  transform: translateX(-130%);
}
a.crow:hover::before { animation: sheen .85s var(--ease-out); }
.crow__icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 13px;
  transition: transform .35s var(--ease-out), background .3s;
}
.crow--wa .crow__icon, .crow--tg .crow__icon, .crow--yt .crow__icon { background: rgba(255,255,255,.2); }
.crow--call .crow__icon, .crow--mail .crow__icon, .crow--hours .crow__icon {
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900)); color: #fff;
}
.crow__icon svg { width: 22px; height: 22px; }
a.crow:hover .crow__icon { transform: scale(1.09) rotate(-6deg); }
html[dir="rtl"] a.crow:hover .crow__icon { transform: scale(1.09) rotate(6deg); }
.crow__txt { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.3; }
.crow__txt b { font-size: 15px; font-weight: 700; }
.crow__txt small { font-size: 12.5px; opacity: .88; unicode-bidi: isolate; overflow-wrap: anywhere; }
.crow--call .crow__txt small, .crow--mail .crow__txt small, .crow--hours .crow__txt small { color: var(--fg-muted); opacity: 1; }
.crow .chan__go { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; transition: transform .3s var(--ease-out); }
a.crow:hover .chan__go { transform: translateX(4px); }
html[dir="rtl"] .crow .chan__go { transform: scaleX(-1); }
html[dir="rtl"] a.crow:hover .chan__go { transform: scaleX(-1) translateX(4px); }

@media (max-width: 640px) {
  .cmap { border-radius: 24px; min-height: 320px; }
  .cpanel { border-radius: 24px; }
  .cmap__foot { inset-inline: 10px; bottom: 10px; padding: 12px 13px; border-radius: 16px; }
  .cmap__foot .btn { width: 100%; }
}

/* =========================== Banner =========================== */
.banner { position: relative; padding-block: clamp(100px, 16vh, 170px); color: #fff; overflow: clip; text-align: center; }
.banner__bg { position: absolute; inset: 0; }
.banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.banner__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(6,13,31,.78), rgba(6,13,31,.82));
}
.banner__content { position: relative; display: grid; justify-items: center; gap: 18px; }
.banner h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 600; max-width: 20ch; }
.banner p { color: rgba(255,255,255,.8); font-size: clamp(15.5px, 1.5vw, 18px); max-width: 52ch; }
.banner .btn { margin-top: 14px; }

/* =========================== Footer =========================== */
.footer { background: var(--ink-950); color: rgba(255,255,255,.75); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.3fr; gap: clamp(30px, 4vw, 60px);
  padding-block: clamp(60px, 8vh, 90px) 40px;
}
.footer__brand p { margin-top: 18px; font-size: 14.5px; max-width: 34ch; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.8);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.footer__social a:hover { background: var(--gold-400); color: var(--ink-950); border-color: var(--gold-400); transform: translateY(-3px); }
.footer__social svg { width: 19px; height: 19px; }
.footer__col { display: grid; gap: 11px; align-content: start; }
.footer__col h3 { color: #fff; font-family: var(--font-body); font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.footer__col a { font-size: 14.5px; transition: color .2s; width: fit-content; }
.footer__col a:hover { color: var(--gold-300); }
.footer__col p { font-size: 14.5px; }
.footer__addr-latin { font-size: 13px; color: rgba(255,255,255,.5); margin-top: -4px; }
.footer__disclaimer { font-size: 13px !important; line-height: 1.7; color: rgba(255,255,255,.55); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px; text-align: center; font-size: 13.5px; color: rgba(255,255,255,.5); }

/* =========================== Page header (sub-pages) ===========================
   Stands in for the video hero on /services/, /faq/, /contact/ … (generated by
   scripts/build-pages.mjs). Dark like the hero so the fixed white nav keeps its
   contrast; the H1 reuses the hero's word-split intro (#heroTitle). */
.pagehead {
  position: relative; overflow: clip; color: #fff; background: var(--ink-950);
  padding: calc(var(--nav-h) + clamp(56px, 9vh, 104px)) 0 clamp(56px, 8vh, 92px);
}
.pagehead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 90% at 88% 0%, rgba(200,150,62,.26), transparent 62%),
    radial-gradient(55% 70% at 8% 100%, rgba(39,73,159,.55), transparent 60%);
}
.pagehead__inner { position: relative; display: grid; gap: 16px; max-width: 840px; }
.pagehead .eyebrow { color: var(--gold-300); margin-bottom: 0; }
.pagehead__title { font-size: clamp(32px, 5vw, 60px); font-weight: 700; letter-spacing: -.015em; }
.pagehead__title .w { display: inline-block; }
.pagehead__lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: rgba(255,255,255,.78); max-width: 62ch; }
.pagehead__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.6); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "›"; opacity: .5; }
html[dir="rtl"] .crumbs li + li::before { content: "‹"; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--gold-300); }
.crumbs [aria-current="page"] { color: rgba(255,255,255,.9); }

/* =========================== Responsive =========================== */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__cta { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .why__grid, .desk__grid, .process__grid { grid-template-columns: 1fr; }
  .desk__grid--flip .desk__body { order: 1; }
  .desk__grid--flip .desk__media { order: 0; }
  .process__intro { position: static; }
  .testi__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .why__imgfloat { inset-inline-end: 6px; bottom: -24px; }
  .nav__brand img { width: 58px; height: 58px; }
  .nav__brandname { font-size: 16px; }
  .hcard { padding-bottom: 96px; }
  .hcard__chips { gap: 10px; }
  .chip { padding: 11px 16px; }
  .chip .stat__v { font-size: 21px; }
  /* wider service cards on phones; the body gets enough room for the
     full description instead of clipping it to a couple of lines. The
     section header is trimmed so that height goes to the cards — languages
     with longer headings (Armenian) need it. */
  .services__sticky { padding-block: clamp(40px, 5vh, 64px); }
  .services .section__title { font-size: 26px; }
  .services .section__subtitle {
    font-size: 13.5px; margin-top: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .slide { width: min(70vw, 320px); height: min(98%, 620px); }
  .slide__media { flex-basis: 50%; }   /* unchanged ratio — height does the work */
  /* slightly tighter type on phones (size only — the image:text split
     stays at 50%), which buys roughly two more lines for long languages */
  .slide p { -webkit-line-clamp: 9; font-size: 13px; line-height: 1.45; }
  .slide__body { gap: 6px; padding: 16px; }
  .slide h3 { font-size: 19px; }
}

/* Small or short phones (e.g. 360x740) with a long-worded language: give the
   text a wider measure and a tighter scale so nothing is cut off. */
/* Small or short phones: a wider card means fewer text lines — the
   image-to-text split stays exactly the same. */
@media (max-width: 640px) and (max-height: 800px) {
  .slide { width: min(84vw, 344px); }
  .slide__body { padding: 14px; gap: 5px; }
}

/* The destinations track is scroll-driven at every width — phones pan it
   with vertical scrolling exactly like desktop. Only when motion is off
   (reduced-motion or no JS) does it fall back to a native side swipe. */
html:not(.has-motion) .dest__viewport {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
html:not(.has-motion) .dest__viewport::-webkit-scrollbar { display: none; }
html:not(.has-motion) .dcard { scroll-snap-align: center; height: min(78svh, 640px); }

/* static / reduced-motion: scenes collapse to single screens */
html:not(.has-motion) .hero { height: auto; min-height: 100svh; }
html:not(.has-motion) .hero__sticky { position: relative; }
html:not(.has-motion) .dest { height: auto !important; }
html:not(.has-motion) .dest__sticky { position: static; height: auto; min-height: 100svh; }

/* =========================== Reduced motion =========================== */
/* ---------- WhatsApp sticky button (all screen sizes) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wa-fab {
  position: fixed; z-index: 150; /* above content and the nav (100), under the mobile menu (200) and the story viewer (300) */
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: 16px;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  opacity: 0; transform: translateY(24px) scale(.9);
  transition: opacity .45s ease, transform .5s var(--ease-out);
}
.wa-fab.is-in { opacity: 1; transform: none; }
html[dir="ltr"] .wa-fab { right: max(16px, env(safe-area-inset-right, 0px)); }
html[dir="rtl"] .wa-fab { left: max(16px, env(safe-area-inset-left, 0px)); }
.wa-fab__disc {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #25d366, #0f9d58);
  box-shadow: 0 10px 28px rgba(37, 211, 102, .38), 0 2px 6px rgba(6, 13, 31, .18);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.wa-fab__icon { width: 30px; height: 30px; }
.wa-fab:hover .wa-fab__disc { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(37, 211, 102, .46), 0 2px 6px rgba(6, 13, 31, .2); }
.wa-fab:active .wa-fab__disc { transform: scale(.94); transition-duration: .1s; }
.wa-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 50%; }
.wa-fab:focus-visible .wa-fab__disc { box-shadow: 0 0 0 5px rgba(37, 211, 102, .55), 0 10px 28px rgba(37, 211, 102, .38); }
/* the halo: two soft rings breathing outward on transform/opacity only; hidden under the disc at rest */
.wa-fab__pulse, .wa-fab__pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: rgba(37, 211, 102, .55);
  animation: waPulse 2.6s cubic-bezier(.2, .7, .3, 1) infinite;
}
.wa-fab__pulse::after { background: rgba(37, 211, 102, .35); animation-delay: .8s; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.8); opacity: 0; } }
@media (min-width: 1080px) {
  .wa-fab { bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
  html[dir="ltr"] .wa-fab { right: 26px; }
  html[dir="rtl"] .wa-fab { left: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.has-motion [data-reveal], html.has-motion [data-stagger] > * { opacity: 1; transform: none; filter: none; }
  .hero__bg img { animation: none; transform: none; }
  .wa-fab__pulse, .wa-fab__pulse::after { display: none; }
}
