/* ==========================================================================
   SPACE UP — website styles
   Themes: dark · light · sand · blueprint · auto   |   LTR + RTL
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --accent: #c8643c;
  --accent-2: color-mix(in oklab, var(--accent) 72%, #ffffff);
  --accent-soft: color-mix(in oklab, var(--accent) 16%, transparent);
  --on-accent: #ffffff;
  --wa: #25d366;

  --font-display: 'Archivo Variable', 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --track-eyebrow: .2em;
  --case-eyebrow: uppercase;
  --lh-title: 1.02;
  --lh-body: 1.65;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --wrap: 1380px;
  --gutter: clamp(16px, 4vw, 56px);
  /* header grows with the logo size chosen in the admin panel */
  --hdr-h: max(78px, calc(var(--logo-h, 46px) + 28px));
  --hdr-h-hero: max(78px, calc(var(--logo-h-hero, var(--logo-h, 46px)) + 28px));
  --sec-pad: clamp(76px, 9vw, 136px);
}

/* dark (default) */
:root,
[data-theme="dark"],
[data-theme="auto"] {
  --bg: #0e0d0c;
  --bg-2: #141311;
  --surface: #1a1917;
  --surface-2: #23211e;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --text: #f3efe8;
  --text-2: #b9b3a8;
  --text-3: #8a847a;
  --glass: rgba(16, 15, 13, .62);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .75);
  --logo-filter: invert(1) brightness(1.15);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f4f0;
  --bg-2: #eeebe5;
  --surface: #ffffff;
  --surface-2: #f2efe9;
  --line: rgba(22, 19, 15, .1);
  --line-2: rgba(22, 19, 15, .19);
  --text: #171512;
  --text-2: #57524b;
  --text-3: #8b857d;
  --glass: rgba(250, 248, 245, .78);
  --shadow: 0 30px 70px -32px rgba(40, 28, 15, .3);
  --logo-filter: none;
  color-scheme: light;
}
[data-theme="sand"] {
  --bg: #ece3d5;
  --bg-2: #e3d7c5;
  --surface: #f5eee3;
  --surface-2: #eadfcd;
  --line: rgba(64, 42, 20, .12);
  --line-2: rgba(64, 42, 20, .22);
  --text: #2b2117;
  --text-2: #6b5a47;
  --text-3: #95836d;
  --glass: rgba(240, 232, 220, .8);
  --shadow: 0 30px 70px -32px rgba(70, 45, 20, .32);
  --logo-filter: none;
  color-scheme: light;
}
[data-theme="blueprint"] {
  --bg: #0c2041;
  --bg-2: #0f264c;
  --surface: #12305a;
  --surface-2: #173a6a;
  --line: rgba(168, 202, 255, .14);
  --line-2: rgba(168, 202, 255, .27);
  --text: #eaf2ff;
  --text-2: #a8c0e6;
  --text-3: #7894c0;
  --glass: rgba(12, 32, 65, .7);
  --shadow: 0 30px 70px -30px rgba(0, 8, 25, .7);
  --logo-filter: invert(1) brightness(1.2);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  [data-theme="auto"] {
    --bg: #f6f4f0; --bg-2: #eeebe5; --surface: #ffffff; --surface-2: #f2efe9;
    --line: rgba(22, 19, 15, .1); --line-2: rgba(22, 19, 15, .19);
    --text: #171512; --text-2: #57524b; --text-3: #8b857d;
    --glass: rgba(250, 248, 245, .78); --shadow: 0 30px 70px -32px rgba(40, 28, 15, .3);
    --logo-filter: none; color-scheme: light;
  }
}

/* language-specific typography */
:lang(bn) { --font-display: 'Anek Bangla Variable', 'Archivo Variable', sans-serif; --font-body: 'Anek Bangla Variable', 'Inter Variable', sans-serif; --font-serif: 'Anek Bangla Variable', serif; --font-hand: 'Anek Bangla Variable', cursive; --track-eyebrow: .02em; --case-eyebrow: none; --lh-title: 1.22; --lh-body: 1.75; }
:lang(hi) { --font-display: 'Anek Devanagari Variable', 'Archivo Variable', sans-serif; --font-body: 'Anek Devanagari Variable', 'Inter Variable', sans-serif; --font-serif: 'Anek Devanagari Variable', serif; --font-hand: 'Kalam', cursive; --track-eyebrow: .02em; --case-eyebrow: none; --lh-title: 1.22; --lh-body: 1.75; }
:lang(ar) { --font-display: 'Readex Pro Variable', sans-serif; --font-body: 'Readex Pro Variable', sans-serif; --font-serif: 'Readex Pro Variable', serif; --font-hand: 'Readex Pro Variable', sans-serif; --track-eyebrow: 0; --case-eyebrow: none; --lh-title: 1.25; --lh-body: 1.8; }
:lang(zh) { --font-display: 'Noto Sans SC Variable', 'Archivo Variable', sans-serif; --font-body: 'Noto Sans SC Variable', 'Inter Variable', sans-serif; --font-serif: 'Noto Sans SC Variable', serif; --font-hand: 'Noto Sans SC Variable', sans-serif; --track-eyebrow: .12em; --case-eyebrow: none; --lh-title: 1.2; --lh-body: 1.8; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--hdr-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
[data-theme="blueprint"] body {
  background-image:
    linear-gradient(rgba(168, 202, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 202, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .ic-arrow-right, [dir="rtl"] .ic-arrow-left, [dir="rtl"] .ic-arrow-up-right,
[dir="rtl"] .ic-chevron-right, [dir="rtl"] .ic-chevron-left { transform: scaleX(-1); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; inset-inline-start: 16px; top: -80px; z-index: 200;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; font-stretch: 118%;
  letter-spacing: var(--track-eyebrow); text-transform: var(--case-eyebrow);
  color: var(--accent-2);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .7; }
:lang(bn) .eyebrow, :lang(hi) .eyebrow, :lang(ar) .eyebrow, :lang(zh) .eyebrow { font-size: 14px; }
.sec__title, .page-hero__title, .hero__title, .contact__title, .project__title, .process__title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.028em;
  line-height: var(--lh-title);
  text-wrap: balance;
}
:lang(bn) .sec__title, :lang(hi) .sec__title, :lang(ar) .sec__title, :lang(zh) .sec__title,
:lang(bn) .hero__title, :lang(hi) .hero__title, :lang(ar) .hero__title, :lang(zh) .hero__title { letter-spacing: 0; }
.sec__title { font-size: clamp(2.1rem, 4.6vw, 4.3rem); }
.sec__title--xl { font-size: clamp(2.4rem, 5.6vw, 5.4rem); }
.sec__title--sm { font-size: clamp(1.6rem, 2.6vw, 2.4rem); margin-bottom: 28px; }
.sec__title sup, .sec__title--sm sup { font-size: .45em; color: var(--text-3); vertical-align: super; margin-inline-start: 6px; font-weight: 400; }
.sec__title em, .page-hero__title em, .hero__title em, .contact__title em, .process__title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  color: var(--accent-2);
}
.sec__lead { font-size: clamp(1.02rem, 1.25vw, 1.18rem); color: var(--text-2); max-width: 46ch; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  padding-bottom: 4px; border-bottom: 1px solid var(--line-2);
  transition: gap .3s var(--ease), border-color .3s;
}
.link-arrow:hover { gap: 16px; border-color: var(--accent); color: var(--accent-2); }

/* ---------- buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .005em; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background-color .3s, border-color .3s, color .3s, box-shadow .35s;
  position: relative; isolation: isolate; overflow: hidden;
}
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover .ic-arrow-right, .btn:hover .ic-arrow-up-right { transform: translateX(3px); }
[dir="rtl"] .btn:hover .ic-arrow-right, [dir="rtl"] .btn:hover .ic-arrow-up-right { transform: scaleX(-1) translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 16px; }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 30px -12px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn--accent:hover { background: color-mix(in oklab, var(--accent) 88%, #fff); box-shadow: 0 18px 40px -14px color-mix(in oklab, var(--accent) 80%, transparent); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: var(--surface-2); }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.btn--glass:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .5); }
.btn--wa .ic-whatsapp { color: var(--wa); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--text-3); }
.icon-btn--sm { width: 34px; height: 34px; }
.icon-btn--sm .ic { width: 16px; height: 16px; }
.spin-hover { transition: transform .8s var(--ease); }
.icon-btn:hover .spin-hover { transform: rotate(120deg); }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset-inline: 0; top: 0; z-index: 70; width: 100%; /* a fixed box without a width grows to its content — never wider than the screen */
  height: var(--hdr-h);
  transition: transform .5s var(--ease), background-color .4s, border-color .4s, color .4s, height .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.is-solid { background: var(--glass); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
.hdr.is-hidden { transform: translateY(-105%); }
.hdr.is-over { color: #fff; }
.hdr__in {
  height: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 28px; min-width: 0;
}
.hdr__logo { display: flex; align-items: center; flex: none; height: 100%; }
.logo { height: var(--logo-h, 46px); width: auto; transition: filter .4s, opacity .3s, height .45s var(--ease); }
/* over the hero animation the logo can be bigger (Admin → 1 · Hero animation → Logo on the animation); it shrinks smoothly on scroll */
.hdr.is-hero { height: var(--hdr-h-hero); }
.hdr.is-hero .logo { height: var(--logo-h-hero, var(--logo-h, 46px)); }
html.menu-open .hdr.is-hero { height: var(--hdr-h); }
html.menu-open .hdr.is-hero .logo { height: var(--logo-h, 46px); }
.hdr.is-init, .hdr.is-init .logo { transition: none !important; }
.hdr__logo .logo { transform: translate(var(--logo-x, 0px), var(--logo-y, 0px)); }
/* logo in the middle of the menu bar (Admin → Logo & header → Position: Center) */
.hdr[data-logo-pos="center"] .hdr__in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.hdr[data-logo-pos="center"] .hdr__logo { grid-column: 2; grid-row: 1; justify-self: center; }
.hdr[data-logo-pos="center"] .hdr__nav { grid-column: 1; grid-row: 1; margin: 0; justify-self: start; }
.hdr[data-logo-pos="center"] .hdr__actions { grid-column: 3; grid-row: 1; justify-self: end; }
.logo--auto { filter: var(--logo-filter); }
.hdr.is-over .logo--auto, .ftr .logo--auto { filter: invert(1) brightness(1.15); }
.logo--dark { display: none; }
[data-theme="dark"] .logo--light, [data-theme="blueprint"] .logo--light { display: none; }
[data-theme="dark"] .logo--dark, [data-theme="blueprint"] .logo--dark { display: block; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.hdr__nav { display: flex; gap: 6px; margin-inline: auto; }
.hdr__nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; letter-spacing: .01em;
  transition: background-color .3s, color .3s;
}
.hdr__nav a::after {
  content: ''; position: absolute; inset-inline: 14px; bottom: 6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .4s var(--ease);
}
[dir="rtl"] .hdr__nav a::after { --origin: right; }
.hdr__nav a:hover::after, .hdr__nav a[aria-current]::after { transform: scaleX(1); }
.hdr__actions { display: flex; align-items: center; gap: 10px; }
.hdr.is-over .icon-btn { border-color: rgba(255, 255, 255, .3); }
.hdr.is-over .icon-btn:hover { background: rgba(255, 255, 255, .14); }
.hdr__burger { display: none; }

/* mobile nav */
.mnav {
  position: fixed; inset: 0; z-index: 65;
  background: var(--bg);
  padding: calc(var(--hdr-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 28px;
  overflow-y: auto;
  animation: fadeIn .35s var(--ease-out);
}
.mnav__links { display: flex; flex-direction: column; }
.mnav__links a {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 500; letter-spacing: -.02em;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  animation: slideUp .5s var(--ease-out) both;
}
.mnav__links a:nth-child(2) { animation-delay: .04s; } .mnav__links a:nth-child(3) { animation-delay: .08s; }
.mnav__links a:nth-child(4) { animation-delay: .12s; } .mnav__links a:nth-child(5) { animation-delay: .16s; }
.mnav__cta { align-self: flex-start; }
.mnav__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mnav__quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 14px; font-weight: 600; }
.mnav__quick .ic-whatsapp { color: var(--wa); }
html.menu-open .hdr { color: var(--text); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.menu-open .hdr .logo--auto { filter: var(--logo-filter); }

/* ---------- settings popover ---------- */
.settings {
  position: fixed; z-index: 80;
  top: calc(var(--hdr-h) - 6px); inset-inline-end: var(--gutter);
  width: min(340px, calc(100vw - 32px));
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .04);
  padding: 18px;
  transform-origin: top right;
  animation: popIn .35s var(--ease-out);
}
[dir="rtl"] .settings { transform-origin: top left; }
.settings__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.settings__head p { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.settings__group { padding: 14px 0; border-top: 1px solid var(--line); }
.settings__label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
:lang(bn) .settings__label, :lang(hi) .settings__label, :lang(ar) .settings__label { letter-spacing: 0; text-transform: none; font-size: 13px; }
.settings__label .ic { width: 16px; height: 16px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.swatch {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 6px 10px; border-radius: 14px; border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600;
  transition: border-color .3s, background-color .3s;
}
.swatch:hover { background: var(--surface-2); }
.swatch[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.swatch__chip { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.swatch__chip::after { content: ''; position: absolute; inset: 50% 0 0 0; background: var(--accent); }
.swatch__chip--dark { background: #0e0d0c; }
.swatch__chip--light { background: #f6f4f0; }
.swatch__chip--sand { background: #e3d7c5; }
.swatch__chip--blueprint { background: #0c2041; }
.swatch__chip--auto { background: linear-gradient(90deg, #0e0d0c 50%, #f6f4f0 50%); }
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.langs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: background-color .3s, border-color .3s; }
.langs a:hover { background: var(--surface-2); }
.langs a.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.settings__toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; cursor: pointer; }
.settings__toggle input { position: absolute; opacity: 0; pointer-events: none; }
.settings__toggle i { width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; transition: background-color .3s; flex: none; }
.settings__toggle i::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.settings__toggle input:checked + i { background: var(--accent); }
.settings__toggle input:checked + i::after { transform: translateX(18px); }
[dir="rtl"] .settings__toggle input:checked + i::after { transform: translateX(-18px); }
.settings__toggle input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- floating contact ---------- */
/* the box is click-through: only its buttons catch clicks (its empty area used to block cards and links behind it) */
.fab { position: fixed; z-index: 60; inset-inline-end: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.fab > *, .fab__row > *, .fab__more { pointer-events: auto; }
.fab__row { pointer-events: none; }
.fab__wa {
  position: relative; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .65), 0 4px 10px rgba(0, 0, 0, .18);
  transition: transform .35s var(--ease);
}
.fab__wa .ic { width: 32px; height: 32px; }
.fab__wa::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa);
  animation: ring 2.6s var(--ease-out) infinite;
}
.fab__wa:hover { transform: scale(1.07); }
/* floating appointment button — same size as the WhatsApp button, accent colour */
.fab__appt {
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--accent); color: #fff;
  box-shadow: 0 14px 34px -10px rgba(200, 100, 60, .65), 0 4px 10px rgba(0, 0, 0, .18);
  transition: transform .35s var(--ease);
}
.fab__appt .ic { width: 30px; height: 30px; }
.fab__appt:hover { transform: scale(1.07); }
.fab__tip {
  position: absolute; inset-inline-end: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(8px);
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
[dir="rtl"] .fab__tip { transform: translateY(-50%) translateX(-8px); }
.fab__wa:hover .fab__tip, .fab__wa:focus-visible .fab__tip { opacity: 1; transform: translateY(-50%); }
.fab__chat ~ .fab__wa .fab__tip { display: none; } /* the chat button sits where the tip would show */
.fab__toggle {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); margin-inline-end: 8px;
  transition: transform .4s var(--ease), background-color .3s;
}
.fab__toggle[aria-expanded="true"] { transform: rotate(45deg); background: var(--text); color: var(--bg); }
.fab__more { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-inline-end: 8px; }
.fab__more:not(.is-open) { display: none; }
.fab__mini {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); font-size: 14px; font-weight: 600;
  animation: slideUp .35s var(--ease-out) both;
}
.fab__mini:nth-child(2) { animation-delay: .05s; } .fab__mini:nth-child(3) { animation-delay: .1s; }
.fab__mini .ic { color: var(--accent); }
.fab__mini:hover { border-color: var(--accent); }
.fab__row { display: flex; align-items: center; gap: 12px; }

/* ---------- chat assistant: button, greeting, panel ---------- */
.fab__chat { position: relative; }
.chatl {
  display: inline-flex; align-items: center; gap: 12px; height: 62px; padding: 0 22px 0 8px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer; font: inherit; text-align: start;
  box-shadow: 0 14px 34px -12px color-mix(in oklab, var(--accent) 80%, transparent), 0 4px 10px rgba(0, 0, 0, .18);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.chatl:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px color-mix(in oklab, var(--accent) 85%, transparent), 0 4px 12px rgba(0, 0, 0, .2); }
.chatl__av, .chatp__av { position: relative; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.chatl__av { width: 46px; height: 46px; }
.chatl__av .ic { width: 24px; height: 24px; }
.chatl__dot, .chatp__dot { position: absolute; inset-inline-end: 0; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #2bd46b; border: 2px solid var(--accent); }
.chatl__dot::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #2bd46b; animation: ring 2.4s var(--ease-out) infinite; }
.chatl__txt { display: grid; line-height: 1.2; }
.chatl__txt b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.chatl__txt small { font-size: 12px; font-weight: 500; opacity: .88; white-space: nowrap; }
.chatl__short { display: none; }
.chatg {
  position: absolute; bottom: calc(100% + 14px); inset-inline-end: 0; width: max-content; max-width: min(290px, calc(100vw - 110px));
  background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: 18px 18px 6px 18px;
  box-shadow: var(--shadow); animation: slideUp .45s var(--ease-out) both;
}
[dir="rtl"] .chatg { border-radius: 18px 18px 18px 6px; }
.chatg[hidden] { display: none; }
.chatg__body { display: block; width: 100%; padding: 14px 18px 14px 16px; font: inherit; font-size: 14px; line-height: 1.5; text-align: start; color: inherit; background: none; border: 0; cursor: pointer; }
.chatg__body b { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; font-size: 12.5px; color: var(--text-2); }
.chatg__body b i { width: 7px; height: 7px; border-radius: 50%; background: #2bd46b; box-shadow: 0 0 0 3px rgba(43, 212, 107, .22); }
.chatg__x { position: absolute; top: -10px; inset-inline-start: -10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--text-2); border: 1px solid var(--line-2); cursor: pointer; }
.chatg__x .ic { width: 14px; height: 14px; }
.chat-open .fab { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }

.chatp {
  position: fixed; z-index: 90; inset-inline-end: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px);
  width: min(400px, calc(100vw - 28px)); height: min(660px, calc(100vh - 40px)); height: min(660px, calc(100dvh - 40px));
  display: flex; flex-direction: column; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6), 0 8px 24px rgba(0, 0, 0, .16);
  opacity: 0; transform: translateY(16px) scale(.98); transform-origin: 100% 100%;
  transition: opacity .25s var(--ease), transform .3s var(--ease-out);
}
[dir="rtl"] .chatp { transform-origin: 0 100%; }
.chatp.is-open { opacity: 1; transform: none; }
.chatp[hidden] { display: none; }
.chatp .ic { width: 20px; height: 20px; }
.chatp__head { display: flex; align-items: center; gap: 12px; padding: 14px 10px 14px 16px; background: var(--accent); color: var(--on-accent); }
.chatp__av { width: 42px; height: 42px; }
.chatp__av img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: #fff; padding: 5px; }
.chatp__who { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.chatp__who b { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatp__who small { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .92; }
.chatp__who small i { width: 7px; height: 7px; border-radius: 50%; background: #2bd46b; box-shadow: 0 0 0 3px rgba(43, 212, 107, .3); }
.chatp__icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: inherit; background: transparent; border: 0; cursor: pointer; transition: background-color .2s, color .2s; }
.chatp__head .chatp__icon:hover { background: rgba(255, 255, 255, .16); }
.chatp__log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.chatm { max-width: 86%; display: grid; gap: 8px; justify-items: start; }
.chatm--bot, .chatm--staff { align-self: flex-start; }
.chatm--me { align-self: flex-end; justify-items: end; }
.chatm.is-new { animation: chatIn .35s var(--ease-out) both; }
@keyframes chatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chatm__text { padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.chatm--bot .chatm__text, .chatm--staff .chatm__text { background: var(--surface); border: 1px solid var(--line); border-end-start-radius: 6px; }
.chatm--staff .chatm__text { border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); }
.chatm--me .chatm__text { background: var(--accent); color: var(--on-accent); border-end-end-radius: 6px; }
.chatm__text p { margin: 0; }
.chatm__text p + p, .chatm__text p + ul, .chatm__text ul + p { margin-top: 7px; }
.chatm__text ul { margin: 6px 0 0; padding-inline-start: 18px; }
.chatm__text li { margin: 3px 0; }
.chatm__text strong { font-weight: 700; }
.chatm__who { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); padding-inline-start: 4px; }
.chatm__links, .chatm__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chatm__btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.2; background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); transition: border-color .2s, filter .2s; }
.chatp .chatm__btn .ic { width: 16px; height: 16px; color: var(--accent); }
.chatm__btn:hover { border-color: var(--accent); }
.chatm__btn--whatsapp { background: var(--wa); color: #fff; border-color: transparent; }
.chatm__btn--inquiry { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.chatp .chatm__btn--whatsapp .ic, .chatp .chatm__btn--inquiry .ic { color: inherit; }
.chatm__btn--whatsapp:hover, .chatm__btn--inquiry:hover { border-color: transparent; filter: brightness(1.06); }
.chatp__chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 2px 14px 10px; }
.chatp__chips[hidden] { display: none; }
.chatp__chip { padding: 7px 12px; border-radius: 999px; font: inherit; font-size: 13px; line-height: 1.3; text-align: start; background: transparent; color: var(--text); border: 1px solid color-mix(in oklab, var(--accent) 55%, var(--line-2)); cursor: pointer; transition: background-color .2s; }
.chatp__chip:hover { background: var(--accent-soft); }
.chatm__dots { display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; border-end-start-radius: 6px; }
.chatm__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: chatDot 1.2s infinite ease-in-out; }
.chatm__dots i:nth-child(2) { animation-delay: .15s; }
.chatm__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.chatm__img { display: block; max-width: 220px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); }
.chatm__img img { display: block; width: 100%; height: auto; max-height: 240px; object-fit: cover; }
.chatm__file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.chatm__file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatm__prog { display: block; width: 170px; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.chatm__prog i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .2s; }
.chatm__sub { font-size: 12px; color: var(--text-3); }
.chatm.is-error .chatm__sub { color: #e5484d; }
.chatm--form { align-self: stretch; max-width: 100%; justify-items: stretch; }
.chatc { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid color-mix(in oklab, var(--wa) 55%, var(--line-2)); animation: chatIn .35s var(--ease-out) both; }
.chatc__lbl { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.chatp .chatc__lbl .ic { width: 18px; height: 18px; color: var(--wa); }
.chatc__in { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 15px; }
.chatc__in:focus { outline: none; border-color: var(--wa); box-shadow: 0 0 0 3px rgba(37, 211, 102, .2); }
.chatc__err { margin: 0; font-size: 12.5px; color: #e5484d; }
.chatc__row { display: flex; gap: 8px; }
.chatc__ok { flex: 1; padding: 10px 14px; border-radius: 10px; font: inherit; font-weight: 700; background: var(--wa); color: #fff; border: 0; cursor: pointer; }
.chatc__ok:disabled { opacity: .6; cursor: default; }
.chatc__skip { padding: 10px 14px; border-radius: 10px; font: inherit; background: transparent; color: var(--text-2); border: 1px solid var(--line-2); cursor: pointer; }
.chatp__form { display: flex; align-items: flex-end; gap: 4px; margin: 0 10px; padding: 5px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color .2s; }
.chatp__form:focus-within { border-color: color-mix(in oklab, var(--accent) 60%, var(--line-2)); }
.chatp__input { flex: 1; min-width: 0; max-height: 120px; resize: none; padding: 9px 6px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; line-height: 1.45; outline: none; }
.chatp__input::placeholder { color: var(--text-3); }
.chatp__attach { color: var(--text-2); }
.chatp__attach:hover { color: var(--accent); background: var(--surface-2); }
.chatp__send { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer; transition: transform .2s; }
.chatp__send:hover { transform: scale(1.06); }
[dir="rtl"] .chatp__send .ic { transform: scaleX(-1); }
.chatp__note { margin: 0; padding: 8px 16px 12px; font-size: 11.5px; line-height: 1.45; text-align: center; color: var(--text-3); }
.chatp__note a { color: var(--accent-2); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) {
  /* chat launcher becomes a round icon button like the other floating buttons */
  .chatl { width: 48px; height: 48px; padding: 0; border-radius: 50%; }
  .chatl__av { width: 48px; height: 48px; }
  .chatl__txt { display: none; }
  .chatp { inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(24px); }
  .chatp__head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .chatp__input { font-size: 16px; }
  .chat-open body { overflow: hidden; }
}

/* ---------- sections ---------- */
.sec { position: relative; padding-block: var(--sec-pad); }
.sec--tight { padding-block: clamp(48px, 7vw, 96px); }
.sec__head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec__head--split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; gap: 40px 64px; }
.sec__head--split .sec__aside { display: grid; gap: 22px; justify-items: start; }
.sec__head--center { text-align: center; justify-items: center; }
.sec__head--center .eyebrow::after { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .7; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal], .reduce-motion [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   HERO — scroll-driven video
   ========================================================================== */
.hero {
  position: relative;
  height: calc(100vh + var(--units, 7) * var(--unit-vh, 85) * 1vh);
  height: calc(100svh + var(--units, 7) * var(--unit-vh, 85) * 1svh);
  background: #0b0a09;
  color: #fff;
}
.hero--static, .reduce-motion .hero { height: 100vh; height: 100svh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__still, .hero__still img, .hero__video, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__still { opacity: 0; transition: opacity .9s var(--ease); }
.hero__still.is-on { opacity: 1; }
.hero__video { opacity: 0; transition: opacity .6s var(--ease); }
.hero.has-video .hero__video { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 7, 6, .55) 0%, rgba(8, 7, 6, 0) 22%),
    linear-gradient(0deg, rgba(8, 7, 6, .78) 0%, rgba(8, 7, 6, .25) 38%, rgba(8, 7, 6, 0) 60%),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .35) 100%);
}
[dir="rtl"] .hero__shade { transform: scaleX(-1); }
.hero__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: none; padding-inline: var(--gutter); }
.hero__grid i { border-inline-start: 1px solid rgba(255, 255, 255, .07); }
.hero__grid i:last-child { border-inline-end: 1px solid rgba(255, 255, 255, .07); }
.hero__chapters {
  position: absolute; inset-inline: var(--gutter); bottom: clamp(96px, 15vh, 170px);
  max-width: min(980px, calc(100% - 2 * var(--gutter)));
}
.hero__chapter { position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; pointer-events: none; }
.hero__chapter > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.hero__chapter.is-on { pointer-events: auto; }
.hero__chapter.is-on > * { opacity: 1; transform: none; }
.hero__chapter.is-on > :nth-child(2) { transition-delay: .07s; }
.hero__chapter.is-on > :nth-child(3) { transition-delay: .14s; }
.hero__chapter.is-on > :nth-child(4) { transition-delay: .21s; }
.hero--static .hero__chapter { position: relative; }
.hero__eyebrow { color: rgba(255, 255, 255, .85); }
.hero__eyebrow::before { display: none; }
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 35%, transparent); }
.hero__step { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .2em; color: rgba(255, 255, 255, .7); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.hero__title { font-size: clamp(2.7rem, 7vw, 7rem); line-height: .98; letter-spacing: -.04em; text-shadow: 0 2px 40px rgba(0, 0, 0, .25); }
:lang(bn) .hero__title, :lang(hi) .hero__title, :lang(ar) .hero__title, :lang(zh) .hero__title { line-height: 1.18; font-size: clamp(2.3rem, 5.8vw, 5.6rem); }
.hero__title em { color: #fff; }
.hero__text { margin-top: 22px; max-width: 560px; font-size: clamp(1rem, 1.35vw, 1.22rem); color: rgba(255, 255, 255, .86); text-shadow: 0 1px 20px rgba(0, 0, 0, .35); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__hud {
  position: absolute; top: calc(var(--hdr-h-hero, var(--hdr-h)) + 26px); inset-inline-end: var(--gutter);
  display: grid; gap: 6px; min-width: 170px; text-align: end;
  font-variant-numeric: tabular-nums; pointer-events: none;
  opacity: 0; transition: opacity .5s;
}
.hero__hud.is-on { opacity: 1; }
.hud__label { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
:lang(bn) .hud__label, :lang(hi) .hud__label, :lang(ar) .hud__label, :lang(zh) .hud__label { letter-spacing: .04em; font-size: 13px; }
.hud__value { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.hud__bar { height: 2px; background: rgba(255, 255, 255, .22); border-radius: 2px; overflow: hidden; }
.hud__bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .hud__bar i { transform-origin: right; }
.hero__nav {
  position: absolute; inset-inline-end: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; gap: 4px; justify-items: end;
}
.hero__nav button {
  display: flex; flex-direction: row-reverse; align-items: center; gap: 12px; padding: 6px 0;
  color: rgba(255, 255, 255, .55); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: color .3s;
}
:lang(bn) .hero__nav button, :lang(hi) .hero__nav button, :lang(ar) .hero__nav button, :lang(zh) .hero__nav button { letter-spacing: .02em; font-size: 13px; }
.hero__nav .n { font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; flex-direction: row-reverse; }
.hero__nav .n::after { content: ''; display: inline-block; width: 0; height: 1px; background: currentColor; margin-inline-end: 0; transition: width .4s var(--ease), margin .4s var(--ease); }
.hero__nav .l { opacity: 0; transform: translateX(6px); transition: opacity .35s, transform .35s var(--ease); }
[dir="rtl"] .hero__nav .l { transform: translateX(-6px); }
.hero__nav button:hover, .hero__nav button.is-on { color: #fff; }
.hero__nav button.is-on .l, .hero__nav button:hover .l { opacity: 1; transform: none; }
.hero__nav button.is-on .n::after { width: 22px; margin-inline-end: 8px; }
.hero__progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.hero__progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .hero__progress i { transform-origin: right; }
.hero__skip {
  position: absolute; bottom: 26px; inset-inline-start: var(--gutter);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24); color: #fff;
  font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .3s, opacity .4s;
}
.hero__skip:hover { background: rgba(255, 255, 255, .2); }
.hero__skip .ic { width: 16px; height: 16px; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .8);
  transition: opacity .5s;
}
.hero.is-scrolled .hero__scroll { opacity: 0; }
.mouse { width: 22px; height: 34px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 12px; position: relative; }
.mouse i { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s var(--ease) infinite; }
.hero__loader {
  position: absolute; top: calc(var(--hdr-h-hero, var(--hdr-h)) + 26px); inset-inline-start: var(--gutter);
  display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; letter-spacing: .06em; color: rgba(255, 255, 255, .75);
  transition: opacity .6s;
}
.hero__loader.is-done { opacity: 0; pointer-events: none; }
.hero__loader-bar { width: 90px; height: 2px; background: rgba(255, 255, 255, .2); border-radius: 2px; overflow: hidden; }
.hero__loader-bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .3s; }

/* ==========================================================================
   SHOWCASE — 3D curved gallery
   ========================================================================== */
.showcase { overflow: hidden; padding-bottom: clamp(40px, 6vw, 80px); }
.sc-stage {
  position: relative; height: clamp(560px, 90vh, 940px);
  perspective: 1000px; perspective-origin: 50% 46%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: grab;
}
.sc-stage.is-dragging { cursor: grabbing; }
.sc-scene { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.sc-card {
  pointer-events: auto;
  position: absolute; left: 50%; top: 50%;
  width: var(--cw, 260px); height: var(--ch, 330px);
  margin-left: calc(var(--cw, 260px) / -2); margin-top: calc(var(--ch, 330px) / -2);
  border-radius: 14px; overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7);
  transition: opacity .45s var(--ease), filter .45s var(--ease), box-shadow .45s;
  will-change: transform;
  backface-visibility: hidden;
}
.sc-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transform: scale(1.02); transition: transform .8s var(--ease); }
.sc-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.sc-stage.is-focus .sc-card { opacity: .28; filter: grayscale(.7) blur(1px); }
.sc-stage.is-focus .sc-card.is-hover { opacity: 1; filter: none; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9); }
.sc-card.is-hover img { transform: scale(1.08); }
.sc-caption {
  position: absolute; left: 50%; bottom: clamp(18px, 4vh, 40px); z-index: 5;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px);
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line-2); color: var(--text);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow);
  transition: opacity .35s, transform .45s var(--ease-out);
}
.sc-caption.is-on { opacity: 1; transform: translate(-50%, 0); }
.sc-caption__cat { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); white-space: nowrap; }
.sc-caption__title { font-family: var(--font-display); font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-caption__cta { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; white-space: nowrap; }
.sc-caption__cta .ic { width: 16px; height: 16px; }
.sc-hint { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); display: inline-flex; white-space: nowrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); z-index: 4; pointer-events: none; }
:lang(bn) .sc-hint, :lang(hi) .sc-hint, :lang(ar) .sc-hint, :lang(zh) .sc-hint { letter-spacing: .02em; text-transform: none; font-size: 13px; }
.sc-hint .ic { width: 16px; height: 16px; animation: nudge 2.4s var(--ease) infinite; }
.sc-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 3; background: linear-gradient(90deg, var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%); }
.sc-fallback { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding: 40px var(--gutter); position: relative; z-index: 2; }
.sc-fallback__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.sc-stage.is-ready .sc-fallback { display: none; }

/* ==========================================================================
   CATEGORIES — expanding panels
   ========================================================================== */
.cats__panels { display: flex; gap: 12px; height: clamp(480px, 72vh, 700px); }
.cat-panel {
  position: relative; flex: 1 1 0; min-width: 0;
  border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: var(--c, #333); color: #fff;
  transition: flex-grow .8s var(--ease-out), transform .5s var(--ease);
}
.cat-panel.is-active { flex-grow: 5.2; }
.cat-panel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease-out), filter .8s; filter: saturate(.75) brightness(.8); }
.cat-panel.is-active .cat-panel__img { transform: scale(1); filter: none; }
.cat-panel__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 7, 6, .82) 0%, rgba(8, 7, 6, .15) 50%, rgba(8, 7, 6, .25) 100%); }
.cat-panel__idx { position: absolute; top: 22px; inset-inline-start: 22px; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .14em; opacity: .85; }
.cat-panel__v {
  /* physical left: logical insets follow the element's own vertical writing mode */
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl; font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: .02em; white-space: nowrap;
  transition: opacity .4s;
}
:lang(zh) .cat-panel__v { transform: translateX(-50%); }
.cat-panel.is-active .cat-panel__v { opacity: 0; }
.cat-panel__body {
  position: absolute; inset-inline: 0; bottom: 0; padding: clamp(22px, 3vw, 40px);
  display: grid; gap: 12px; justify-items: start;
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .7s var(--ease-out);
}
.cat-panel.is-active .cat-panel__body { opacity: 1; transform: none; transition-delay: .25s; }
.cat-panel__count { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
:lang(bn) .cat-panel__count, :lang(hi) .cat-panel__count, :lang(ar) .cat-panel__count, :lang(zh) .cat-panel__count { letter-spacing: .02em; font-size: 14px; }
.cat-panel__title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.02; }
.cat-panel__desc { max-width: 46ch; color: rgba(255, 255, 255, .82); font-size: 15.5px; }
.cat-panel__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-panel__chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); font-size: 12.5px; font-weight: 500; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(255, 255, 255, .06); }
.cat-panel__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px 20px; border-radius: 999px; background: #fff; color: #111; font-weight: 600; font-size: 14px; transition: gap .3s var(--ease); }
.cat-panel:hover .cat-panel__cta { gap: 16px; }

/* ==========================================================================
   PROJECT CARDS & GRIDS
   ========================================================================== */
.feat-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(240px, 25vw, 380px); gap: clamp(18px, 2vw, 28px); }
.feat-grid .pcard { grid-column: span 4; }
.feat-grid .pcard--lg { grid-column: span 8; grid-row: span 2; }
.feat-grid .pcard--wide { grid-column: span 8; }
.pcard { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.feat-grid .pcard .pcard__media { flex: 1; min-height: 0; }
.pcard__media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__go {
  position: absolute; top: 14px; inset-inline-end: 14px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: #111;
  transform: scale(.6); opacity: 0; transition: transform .45s var(--ease), opacity .3s;
}
.pcard:hover .pcard__go, .pcard:focus-visible .pcard__go { transform: none; opacity: 1; }
.pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-top: 6px; }
:lang(bn) .pcard__meta, :lang(hi) .pcard__meta, :lang(ar) .pcard__meta, :lang(zh) .pcard__meta { letter-spacing: .02em; font-size: 13px; text-transform: none; }
.pcard__meta i { font-style: normal; opacity: .5; }
.pcard__title { font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.pcard--lg .pcard__title { font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
.pcard__loc { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.pcard__loc .ic { width: 15px; height: 15px; }

.pgrid { columns: 3 320px; column-gap: clamp(18px, 2vw, 28px); }
.pgrid .pcard { break-inside: avoid; margin-bottom: clamp(30px, 3vw, 44px); }
.pgrid .pcard__media { aspect-ratio: 4 / 3.2; }
.pgrid .pcard--tall .pcard__media { aspect-ratio: 4 / 5; }
.pgrid .pcard.is-hidden { display: none; }
.empty { color: var(--text-2); padding: 40px 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.subfilters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filters { margin-bottom: clamp(34px, 4vw, 52px); }
.filters:has(+ .subfilters) { margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 500;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip sup { font-size: 11px; color: var(--text-3); font-weight: 600; }
.chip:hover { border-color: var(--text-3); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.is-active sup { color: inherit; opacity: .6; }
.chip--sm { padding: 7px 14px; font-size: 13.5px; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { background: var(--bg-2); }
.services__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.services__intro { position: sticky; top: calc(var(--hdr-h) + 40px); display: grid; gap: 22px; justify-items: start; }
.svc-list { counter-reset: svc; border-top: 1px solid var(--line-2); }
.svc {
  position: relative; display: grid; grid-template-columns: 44px 56px minmax(0, 1fr) auto; gap: 18px; align-items: start;
  padding: 28px 8px; border-bottom: 1px solid var(--line-2);
  transition: background-color .4s, padding .4s var(--ease);
}
.svc::before { content: ''; position: absolute; inset-inline-start: 0; top: -1px; height: 1px; width: 0; background: var(--accent); transition: width .7s var(--ease-out); }
.svc:hover { background: color-mix(in oklab, var(--surface) 70%, transparent); padding-inline: 18px; }
.svc:hover::before { width: 100%; }
.svc__num { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--text-3); padding-top: 14px; font-variant-numeric: tabular-nums; }
.svc__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent-2); transition: transform .5s var(--ease), background-color .4s, color .4s; }
.svc__icon .ic { width: 26px; height: 26px; }
.svc:hover .svc__icon { background: var(--accent); color: var(--on-accent); transform: rotate(-6deg) scale(1.05); }
.svc__title { font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; padding-top: 10px; }
.svc__text { margin-top: 8px; color: var(--text-2); font-size: 15.5px; max-width: 54ch; }
.svc__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); margin-top: 6px; transition: background-color .3s, color .3s, transform .4s var(--ease), border-color .3s; }
.svc:hover .svc__go { background: var(--text); color: var(--bg); border-color: var(--text); transform: rotate(45deg); }

/* ==========================================================================
   WHY SPACE UP
   ========================================================================== */
.why__head { display: grid; gap: 26px; margin-bottom: clamp(50px, 7vw, 100px); }
.why__head .sec__title { max-width: 18ch; }
.why__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 64px; max-width: 1100px; }
.why__about { color: var(--text-2); font-size: 15.5px; }
.stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.stat { padding: clamp(26px, 3.5vw, 48px) clamp(14px, 2vw, 28px); display: grid; gap: 10px; }
.stat + .stat { border-inline-start: 1px solid var(--line-2); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.8rem, 6.4vw, 6rem); font-weight: 400; line-height: .95; letter-spacing: -.045em; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; }
.stat__suffix { color: var(--accent); font-weight: 500; }
.stat__label { color: var(--text-2); font-size: 15px; font-weight: 500; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.reason {
  position: relative; padding: clamp(26px, 3vw, 40px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 14px; align-content: start; overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.reason::after { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; inset-inline-end: -120px; top: -120px; background: radial-gradient(circle, var(--accent-soft), transparent 70%); opacity: 0; transition: opacity .6s; }
.reason:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.reason:hover::after { opacity: 1; }
.reason__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.reason__icon .ic { width: 26px; height: 26px; }
.reason__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.reason__text { color: var(--text-2); font-size: 15.5px; }

.why + .process-sec { padding-top: 0; }
.why:has(+ .process-sec) { padding-bottom: clamp(56px, 7vw, 100px); }
.process__head { margin-bottom: clamp(36px, 4vw, 56px); }
.process__title { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.process__track { position: relative; }
.process__line { position: absolute; top: 22px; inset-inline: 0; height: 1px; background: var(--line-2); }
.process__line i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .process__line i { transform-origin: right; }
.process__steps { display: grid; grid-template-columns: repeat(var(--cols, 7), minmax(0, 1fr)); gap: 34px 18px; position: relative; }
/* more steps than fit on one line → wrap; every step gets its own short line */
.process--multi .process__line { display: none; }
.process--multi .pstep { border-top: 1px solid var(--line-2); padding-top: 0; }
.process--multi .pstep__n { margin-top: -22px; }
.pstep { display: grid; gap: 10px; align-content: start; }
.pstep__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); font-family: var(--font-display); font-size: 13px; font-weight: 600; margin-bottom: 8px; transition: background-color .5s, color .5s, border-color .5s; }
.pstep.is-done .pstep__n { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pstep__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.pstep__text { color: var(--text-2); font-size: 14.5px; }

/* ==========================================================================
   TESTIMONIALS — pinned notes
   ========================================================================== */
.notes { background: var(--bg-2); overflow: hidden; }
.notes::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}
.notes__board { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(26px, 3vw, 44px); align-items: start; padding-top: 10px; }
.note {
  --paper: #fbf8f1; --ink: #2b2620;
  position: relative; padding: 30px 26px 24px; border-radius: 6px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 18px 36px -18px rgba(0, 0, 0, .45);
  transform: rotate(var(--r, 0deg));
  transition: transform .6s var(--ease), box-shadow .6s;
  cursor: grab; touch-action: pan-y;
}
.note[data-reveal] { transform: rotate(var(--r, 0deg)) translateY(34px); }
.note[data-reveal].is-in { transform: rotate(var(--r, 0deg)); }
.note:hover, .note.is-dragging { transform: rotate(0deg) translateY(-8px) scale(1.02) !important; box-shadow: 0 2px 2px rgba(0, 0, 0, .06), 0 34px 60px -24px rgba(0, 0, 0, .55); z-index: 3; }
.note.is-dragging { cursor: grabbing; transition: none; }
.note:nth-child(even) { margin-top: 28px; }
.note--yellow { --paper: #fbf1b8; }
.note--sand { --paper: #efe1cb; }
.note--mint { --paper: #dcefe3; }
.note--blue { --paper: #dde9fb; }
.note--rose { --paper: #f9e1e1; }
.note::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 26px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .04)); border-radius: 0 0 6px 6px; pointer-events: none; }
.note__pin { position: absolute; top: -10px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--accent) 40%, #fff), var(--accent) 55%, color-mix(in oklab, var(--accent) 60%, #000)); box-shadow: 0 6px 8px -2px rgba(0, 0, 0, .4); }
.note__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.note__photo { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex: none; border: 3px solid #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4); background: #ddd; }
.note__photo img { width: 100%; height: 100%; object-fit: cover; }
.note__photo--initials { display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.note__stars { display: flex; gap: 3px; }
.note__stars i { width: 14px; height: 14px; background: rgba(0, 0, 0, .15); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.note__stars i.on { background: #e0a400; }
.note__text { font-family: var(--font-hand); font-size: 1.55rem; line-height: 1.3; letter-spacing: .005em; }
:lang(bn) .note__text, :lang(ar) .note__text, :lang(zh) .note__text { font-size: 1.12rem; line-height: 1.7; }
:lang(hi) .note__text { font-size: 1.2rem; line-height: 1.7; }
.note__by { margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(0, 0, 0, .18); display: grid; gap: 2px; font-size: 14px; }
.note__by strong { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.note__by span { color: rgba(43, 38, 32, .7); }
.note__proj { font-size: 12.5px; }
.note__sample { position: absolute; top: 10px; inset-inline-end: 12px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(0, 0, 0, .35); }

/* ==========================================================================
   TRUSTED BY — the companies we have worked for (logo, type, details)
   ========================================================================== */
.trusted .sec__head { margin-bottom: clamp(28px, 3.4vw, 48px); }
/* compact cards: a square logo tile on the left, name + type on the right — many companies in little space */
.clients-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 14px); }
.ccl { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .45s var(--ease), box-shadow .45s; }
.ccl:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(0, 0, 0, .5); }
.ccl__logo { grid-row: 1 / span 4; width: 76px; height: 76px; display: grid; place-items: center; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.ccl__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .5s var(--ease); }
.ccl:hover .ccl__img { transform: scale(1.06); }
.ccl__mono { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 12px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .02em; color: var(--accent); background: var(--accent-soft); }
.ccl__name { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccl__type { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:lang(bn) .ccl__type, :lang(hi) .ccl__type, :lang(ar) .ccl__type, :lang(zh) .ccl__type { letter-spacing: .02em; text-transform: none; font-size: 12.5px; }
.ccl__text { font-size: 13px; color: var(--text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccl__links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.ccl__link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--text); transition: color .3s; }
.ccl__link .ic { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.ccl__link:hover { color: var(--accent-2); }
.ccl__link:hover .ic { transform: translateX(3px); }
[dir="rtl"] .ccl__link:hover .ic { transform: translateX(-3px); }

/* ==========================================================================
   ABOUT US — company details + team (click a person → profile popup)
   ========================================================================== */
.about { border-top: 1px solid var(--line); }
/* About us, kept short: team → short brief → our other companies */
.about .sec__head { margin-bottom: clamp(28px, 3.4vw, 44px); }
.about__brief { max-width: 68ch; margin-top: clamp(28px, 3.4vw, 44px); color: var(--text-2); font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.7; }
.team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: clamp(16px, 2vw, 26px) clamp(14px, 1.6vw, 22px); }
@media (min-width: 1100px) { .team__grid { grid-template-columns: repeat(min(var(--n, 6), 6), minmax(0, 1fr)); } }
.tm__btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 3px; width: 100%; }
.tm__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 16px; }
.tm__photo { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 10px; }
.tm__img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tm__btn:hover .tm__img { transform: scale(1.05); }
.tm__initials {
  position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--text-3);
  background: radial-gradient(120% 90% at 50% 8%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 72%);
}
.tm__initials .ic { width: 44%; height: 44%; opacity: .5; }
.tm__sample { position: absolute; top: 10px; inset-inline-start: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #f5d9a8; }
.tm__name { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; line-height: 1.25; margin-top: 2px; }
.tm__pos { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); line-height: 1.45; }
:lang(bn) .tm__pos, :lang(hi) .tm__pos, :lang(ar) .tm__pos, :lang(zh) .tm__pos { letter-spacing: .01em; text-transform: none; font-size: 13px; }
.tm__intro { font-size: 13.5px; color: var(--text-2); line-height: 1.5; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tm__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600; opacity: .7; transition: opacity .3s, gap .3s, color .3s; }
.tm__more .ic { width: 14px; height: 14px; }
.tm__btn:hover .tm__more, .tm__btn:focus-visible .tm__more { opacity: 1; gap: 9px; color: var(--accent-2); }
[dir="rtl"] .tm__more .ic { transform: scaleX(-1); }

/* profile popup (native <dialog>) */
.tmodal { padding: 0; border: 0; background: transparent; color: var(--text); width: min(980px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: visible; }
.tmodal::backdrop { background: rgba(8, 7, 6, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tmodal[open] { animation: tm-in .45s var(--ease); }
@keyframes tm-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.tmodal__box { position: relative; background: var(--bg); border: 1px solid var(--line-2); border-radius: 22px; max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .65); }
.tmodal__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; background: var(--bg); }
.tprof { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.tprof__photo { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); }
.tprof__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tprof__photo .tm__initials { font-size: 64px; }
.tprof__main { padding: clamp(26px, 3.4vw, 46px); display: grid; gap: 14px; align-content: start; }
.tprof__name { font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; margin-top: -4px; }
.tprof__intro { font-size: 16.5px; line-height: 1.55; }
.tprof__bio { color: var(--text-2); font-size: 15px; line-height: 1.7; display: grid; gap: 10px; }
.tprof__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.tprof__facts div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tprof__facts dt, .tprof__k { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
:lang(bn) .tprof__k, :lang(hi) .tprof__k, :lang(ar) .tprof__k, :lang(zh) .tprof__k, :lang(bn) .tprof__facts dt, :lang(hi) .tprof__facts dt, :lang(ar) .tprof__facts dt, :lang(zh) .tprof__facts dt { letter-spacing: .02em; text-transform: none; font-size: 12.5px; }
.tprof__facts dd { font-weight: 600; font-size: 14.5px; }
.tprof__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tprof__tags li { font-size: 13px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text-2); }
.tprof__contact { display: flex; flex-wrap: wrap; gap: 8px; }
.tprof__contact a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; transition: background-color .3s, color .3s, border-color .3s; }
.tprof__contact a:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.tprof__contact .ic { width: 16px; height: 16px; }
.tmodal__nav { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px; border-top: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tmodal__count { font-size: 13px; color: var(--text-3); min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; }
[dir="rtl"] .tmodal__nav .ic { transform: scaleX(-1); }
html.tmodal-open { overflow: hidden; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { color: #fff; overflow: hidden; background: #0b0a09; }
.contact__bg { position: absolute; inset: 0; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.06); }
.contact__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 7, 6, .92) 0%, rgba(8, 7, 6, .55) 60%, rgba(8, 7, 6, .35) 100%), linear-gradient(0deg, rgba(8, 7, 6, .7), transparent 50%); }
[dir="rtl"] .contact__bg::after { transform: scaleX(-1); }
.contact__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: end; }
.contact__main { display: grid; gap: 22px; }
.contact .eyebrow { color: var(--accent-2); }
.contact__title { font-size: clamp(2.4rem, 5.6vw, 5.4rem); max-width: 14ch; }
.contact__title em { color: var(--accent-2); }
.contact__text { color: rgba(255, 255, 255, .8); max-width: 52ch; font-size: 1.08rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ccard {
  display: grid; gap: 4px; align-content: start; padding: 20px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .3s, border-color .3s, transform .4s var(--ease);
}
a.ccard:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .3); transform: translateY(-3px); }
.ccard .ic { width: 22px; height: 22px; color: var(--accent-2); margin-bottom: 8px; }
.ccard__k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
:lang(bn) .ccard__k, :lang(hi) .ccard__k, :lang(ar) .ccard__k, :lang(zh) .ccard__k { letter-spacing: .02em; text-transform: none; font-size: 13px; }
.ccard__v { font-weight: 600; font-size: 15.5px; line-height: 1.45; word-break: break-word; }
.ccard__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent-2); }
.ccard__link .ic { width: 14px; height: 14px; margin: 0; transition: transform .3s var(--ease); }
.ccard--map { cursor: pointer; }
.ccard--map:hover .ccard__link .ic { transform: translate(2px, -2px); }
[dir="rtl"] .ccard--map:hover .ccard__link .ic { transform: translate(-2px, -2px); }
.contact__map { grid-column: 1 / -1; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); height: 340px; }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
/* the inquiry page reuses .ccard on normal backgrounds */
.inq-page__aside .ccard, .thanks__actions .ccard { background: var(--surface); border-color: var(--line); color: var(--text); -webkit-backdrop-filter: none; backdrop-filter: none; }
.inq-page__aside .ccard__k { color: var(--text-3); }
.inq-page__aside a.ccard:hover { background: var(--surface-2); border-color: var(--line-2); }
.inq-page__aside .ic-whatsapp { color: var(--wa) !important; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ftr { position: relative; background: #0a0908; color: #d9d4cb; padding-top: clamp(30px, 3.4vw, 46px); overflow: hidden; isolation: isolate; border-top: 1px solid rgba(255, 255, 255, .06); }
[data-theme="blueprint"] .ftr { background: #081732; }
/* "SPACE UP" as a faint watermark behind the footer text (not a separate block) */
.ftr__mark {
  position: absolute; z-index: -1; left: 50%; top: 44%; transform: translate(-50%, -50%);
  font-family: 'Archivo Variable', sans-serif; font-weight: 800; font-stretch: 125%;
  font-size: clamp(4rem, 15vw, 15rem); line-height: 1; letter-spacing: -.04em; text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .055);
  pointer-events: none; user-select: none;
}
/* link columns take exactly the width they need (no wrapped service names) — brand & contact share the rest */
.ftr__top { display: grid; grid-template-columns: minmax(200px, .9fr) auto auto minmax(220px, 1.1fr); gap: clamp(24px, 3vw, 44px); padding-bottom: clamp(24px, 2.6vw, 34px); position: relative; }
.ftr__brand { display: grid; gap: 14px; align-content: start; max-width: 340px; }
.ftr__brand p { color: #a39d93; font-size: 14px; line-height: 1.6; }
.ftr__logo .logo { height: var(--logo-h-f, 56px); }
.ftr__brand .ftr__tagline { font-family: var(--font-serif); font-style: italic; font-size: 19px; line-height: 1.3; color: var(--accent-2); margin-top: -4px; }
.ftr__h { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
:lang(bn) .ftr__h, :lang(hi) .ftr__h, :lang(ar) .ftr__h, :lang(zh) .ftr__h { letter-spacing: .02em; text-transform: none; font-size: 15px; }
.ftr__col ul { display: grid; gap: 7px 20px; }
.ftr__col--explore ul, .ftr__col--services ul { grid-template-columns: repeat(2, minmax(0, max-content)); }
.ftr__col a, .ftr__col span { color: #a39d93; font-size: 14px; transition: color .3s; }
.ftr__col a:hover { color: #fff; }
.ftr__contact li { display: flex; gap: 10px; align-items: flex-start; }
.ftr__contact .ic { width: 17px; height: 17px; margin-top: 3px; color: var(--accent-2); }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .15); color: #d9d4cb; transition: background-color .3s, color .3s, border-color .3s; }
.social a:hover { background: #fff; color: #111; border-color: #fff; }
.social .ic { width: 18px; height: 18px; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-block: 16px 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: #8f897f; position: relative; }
/* Space Up Group — our other companies: the last block of the footer, just above the copyright line */
.ftr__grp { position: relative; display: grid; grid-template-columns: minmax(190px, 250px) minmax(0, 1fr); gap: 16px clamp(24px, 3vw, 44px); align-items: center; padding-block: clamp(18px, 2.2vw, 26px); border-top: 1px solid rgba(255, 255, 255, .1); }
.ftr__grp-label { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; }
:lang(bn) .ftr__grp-label, :lang(hi) .ftr__grp-label, :lang(ar) .ftr__grp-label, :lang(zh) .ftr__grp-label { letter-spacing: .02em; text-transform: none; font-size: 13px; }
.ftr__grp-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: #fff; letter-spacing: -.01em; line-height: 1.25; }
.ftr__grp-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent-2); }
.ftr__grp-text { font-size: 12.5px; color: #8f897f; margin-top: 4px; line-height: 1.5; }
.ftr__cos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.fco { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 11px; padding: 9px 10px 9px 9px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .03); color: inherit; transition: border-color .3s, background-color .3s, transform .4s var(--ease); }
.fco--link:hover { border-color: var(--co); background: rgba(255, 255, 255, .06); transform: translateY(-2px); }
/* the whole card opens the main link; the small icons sit above it and open their own page */
.fco--link .fco__name::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
@supports selector(:has(*)) {
  .fco--link .fco__name:focus-visible { outline: none; }
  .fco--link:has(.fco__name:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
}
.fco__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in oklab, var(--co) 24%, transparent); color: color-mix(in oklab, var(--co) 70%, #fff); overflow: hidden; }
.fco__icon .ic { width: 19px; height: 19px; }
.fco__icon img { width: 100%; height: 100%; object-fit: contain; padding: 5px; background: #fff; }
.fco__main { display: grid; min-width: 0; }
.fco__name { color: #eee9e0; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fco__tag { font-size: 11.5px; color: #8f897f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fco__links { position: relative; z-index: 1; grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.fco__links a { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #9b958b; border: 1px solid rgba(255, 255, 255, .1); transition: color .25s, background-color .25s, border-color .25s; }
.fco__links a:hover { color: #fff; background: var(--co); border-color: transparent; }
.fco__links .ic { width: 14px; height: 14px; }
.ftr__top-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #d9d4cb; }
.ftr__top-link .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.ftr__top-link:hover .ic { transform: translateY(-3px); }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-hero { padding-top: calc(var(--hdr-h) + clamp(56px, 8vw, 120px)); padding-bottom: clamp(30px, 4vw, 56px); position: relative; }
.page-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 85% 0%, var(--accent-soft), transparent 70%); }
.page-hero .wrap { position: relative; }
.page-hero__title { font-size: clamp(2.6rem, 7vw, 6.6rem); max-width: 16ch; }
.page-hero__lead { margin-top: 24px; max-width: 58ch; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--text-2); }
.page-hero--404 { min-height: 80vh; display: flex; align-items: center; }
.page-hero--404 .btn { margin-top: 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--text-3); margin-bottom: 26px; }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--text); }
.crumbs > * + *::before { content: '/'; margin-inline-end: 8px; opacity: .5; }
.crumbs--light { color: rgba(255, 255, 255, .7); }
.crumbs--light a:hover { color: #fff; }

/* project detail */
.project__hero { position: relative; height: clamp(560px, 92vh, 1000px); color: #fff; overflow: hidden; background: #111; }
.project__cover { position: absolute; inset: 0; }
.project__cover img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; animation: kenburns 18s var(--ease) both; }
.project__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(8, 7, 6, .85) 0%, rgba(8, 7, 6, .2) 50%, rgba(8, 7, 6, .45) 100%); }
.project__head { position: absolute; inset-inline: 0; bottom: clamp(36px, 7vw, 90px); pointer-events: none; }
.project__head > * { pointer-events: auto; }
.project__title { font-size: clamp(2.6rem, 7vw, 6.6rem); max-width: 18ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.project__head .eyebrow { color: rgba(255, 255, 255, .88); }
.project__summary { margin-top: 20px; max-width: 54ch; font-size: clamp(1.02rem, 1.35vw, 1.22rem); color: rgba(255, 255, 255, .85); }
.project__intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.fact { padding: 18px 0; border-bottom: 1px solid var(--line-2); padding-inline-end: 16px; }
.fact dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
:lang(bn) .fact dt, :lang(hi) .fact dt, :lang(ar) .fact dt, :lang(zh) .fact dt { letter-spacing: .02em; font-size: 13px; text-transform: none; }
.fact dd { font-weight: 600; font-size: 16px; }
.project__desc { display: grid; gap: 18px; font-size: clamp(1.02rem, 1.25vw, 1.15rem); color: var(--text-2); }
.project__desc p { max-width: 64ch; }
.project__scope { margin-top: 18px; display: grid; gap: 12px; }
.project__scope-h { font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--text); }
.tags .ic { width: 16px; height: 16px; color: var(--accent-2); }
.vgrid { display: flex; flex-wrap: wrap; gap: 18px; }
.vcard { position: relative; flex: 1 1 520px; max-width: 900px; border-radius: var(--radius-lg); overflow: hidden; background: #000; aspect-ratio: var(--ar, 1.777); }
.vcard--tall { flex: 0 1 min(380px, 100%); }
.vcard video { width: 100%; height: 100%; object-fit: cover; }
.vcard figcaption { position: absolute; inset-inline-start: 16px; bottom: 14px; color: #fff; font-size: 14px; font-weight: 500; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.vcard__sound { position: absolute; top: 14px; inset-inline-end: 14px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.masonry { columns: 3 300px; column-gap: 16px; }
.masonry__item { break-inside: avoid; margin-bottom: 16px; }
.masonry__btn { display: block; position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--surface-2); }
.masonry__btn img { width: 100%; transition: transform 1s var(--ease-out); }
.masonry__btn:hover img { transform: scale(1.04); }
.masonry__zoom { position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; opacity: 0; transition: opacity .3s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.masonry__zoom .ic { width: 18px; height: 18px; }
.masonry__btn:hover .masonry__zoom { opacity: 1; }
.masonry__item figcaption { font-size: 13.5px; color: var(--text-3); padding-top: 8px; }
.next-project { position: relative; margin-top: clamp(40px, 6vw, 80px); }
.next-project__link { position: relative; display: block; height: clamp(320px, 48vh, 520px); overflow: hidden; color: #fff; }
.next-project__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.next-project__link:hover .next-project__img { transform: scale(1.05); }
.next-project__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 7, 6, .8), rgba(8, 7, 6, .25)); }
[dir="rtl"] .next-project__shade { transform: scaleX(-1); }
.next-project__in { position: absolute; inset-inline: 0; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; justify-items: start; }
.next-project__title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4.6rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.02; max-width: 16ch; }
.next-project__go { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; margin-top: 12px; transition: transform .45s var(--ease); }
.next-project__link:hover .next-project__go { transform: translateX(8px); }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(30px, 4vw, 56px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.cta-band__in::after { content: ''; position: absolute; width: 420px; height: 420px; inset-inline-end: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); pointer-events: none; }
.cta-band__title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px; }
.cta-band__in p { color: var(--text-2); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(6, 5, 4, .94); display: grid; grid-template-rows: auto 1fr auto; color: #fff; animation: fadeIn .3s var(--ease-out); }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); font-size: 14px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .75); }
.lb__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(16px, 7vw, 100px); min-height: 0; touch-action: pan-y; }
.lb__img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: lbIn .45s var(--ease-out); user-select: none; -webkit-user-drag: none; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; transition: background-color .3s; }
.lb__nav:hover { background: rgba(255, 255, 255, .22); }
.lb__prev { inset-inline-start: 20px; }
.lb__next { inset-inline-end: 20px; }
.lb__cap { padding: 14px var(--gutter) 22px; text-align: center; font-size: 15px; color: rgba(255, 255, 255, .8); min-height: 54px; }
.lb .icon-btn { border-color: rgba(255, 255, 255, .25); color: #fff; }

/* ==========================================================================
   INQUIRY drawer & form
   ========================================================================== */
.drawer { position: fixed; inset: 0; z-index: 110; display: flex; justify-content: flex-end; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(5, 4, 3, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .35s var(--ease-out); }
.drawer__panel {
  position: relative; width: min(760px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); color: var(--text); border-inline-start: 1px solid var(--line);
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .6);
  animation: drawerIn .55s var(--ease-out);
}
[dir="rtl"] .drawer__panel { animation-name: drawerInRtl; }
.drawer.is-closing .drawer__panel { animation: drawerOut .35s var(--ease) forwards; }
[dir="rtl"] .drawer.is-closing .drawer__panel { animation-name: drawerOutRtl; }
.drawer.is-closing .drawer__backdrop { animation: fadeOut .35s var(--ease) forwards; }
.drawer__close { position: sticky; top: 16px; float: right; margin: 16px 16px 0 0; z-index: 3; background: var(--surface); }
[dir="rtl"] .drawer__close { float: left; margin: 16px 0 0 16px; }
.drawer__body { padding: clamp(24px, 4vw, 48px); padding-top: 28px; }
.drawer__loading { display: grid; place-items: center; min-height: 60vh; color: var(--text-3); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }

.inq-wrap__head { margin-bottom: 26px; }
.inq-wrap__title { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.inq-wrap__text { color: var(--text-2); margin-top: 10px; }
.inq { position: relative; }
/* spam trap: hidden from people without taking any layout space (left:-9999px stretched right-to-left pages by 10,000 px) */
.inq__hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* the step bar scrolls sideways on narrow screens — the form itself never grows wider than the page */
.inq { min-width: 0; max-width: 100%; }
.inq__steps { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; max-width: 100%; -webkit-overflow-scrolling: touch; }
.inq__steps::-webkit-scrollbar { display: none; }
.inq__steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-3); white-space: nowrap; padding-inline-end: 10px; }
.inq__steps li.is-on, .inq__steps li.is-done { color: var(--text); }
.inq__dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 12px; transition: background-color .3s, color .3s, border-color .3s; }
.inq__steps li.is-on .inq__dot { background: var(--text); color: var(--bg); border-color: var(--text); }
.inq__steps li.is-done .inq__dot { background: var(--accent); color: #fff; border-color: var(--accent); }
.inq__progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 30px; }
.inq__progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(.2); transition: transform .5s var(--ease-out); }
[dir="rtl"] .inq__progress i { transform-origin: right; }
.istep { border: 0; padding: 0; margin: 0; min-width: 0; display: none; gap: 20px; }
.istep.is-on { display: grid; animation: stepIn .5s var(--ease-out); }
.no-js .istep { display: grid; margin-bottom: 40px; }
.istep__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; padding: 0; }
.istep__hint { color: var(--text-2); font-size: 15px; margin-top: -8px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fgrid--3 { grid-template-columns: repeat(3, 1fr); grid-column: 1 / -1; }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field--mt { margin-top: 10px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--text); }
.field__label .req { color: var(--accent); margin-inline-start: 2px; }
.field__label .opt { font-style: normal; font-weight: 500; color: var(--text-3); font-size: 12.5px; margin-inline-start: 4px; }
.field__hint { color: var(--text-3); font-size: 12.5px; }
.field__error { color: #e5484d; font-size: 13.5px; font-weight: 500; }
.inq input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.inq select, .inq textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font-size: 16px; transition: border-color .25s, box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.inq textarea { min-height: 52px; resize: vertical; line-height: 1.5; }
.inq select { background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
[dir="rtl"] .inq select { background-position: 20px 50%, 15px 50%; }
.inq input:focus, .inq select:focus, .inq textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.inq .is-invalid { border-color: #e5484d !important; box-shadow: 0 0 0 4px rgba(229, 72, 77, .14) !important; }
.inq ::placeholder { color: var(--text-3); opacity: .8; }
.combo { display: grid; grid-template-columns: 1fr 130px; gap: 8px; }
.pills, .checks { display: flex; flex-wrap: wrap; gap: 8px; }
.pill, .check { position: relative; cursor: pointer; }
.pill input, .check input, .svc-pick input { position: absolute; opacity: 0; pointer-events: none; }
.pill span, .check span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; transition: background-color .25s, color .25s, border-color .25s; }
.check span::before { content: ''; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--text-3); transition: background-color .2s, border-color .2s; flex: none; }
.pill:hover span, .check:hover span { border-color: var(--text-3); }
.pill input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.check input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.check input:checked + span::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--accent); }
.pill input:focus-visible + span, .check input:focus-visible + span, .svc-pick input:focus-visible + .svc-pick__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check--consent span { border: 0; padding: 4px 0; font-size: 14px; color: var(--text-2); }
.frows { display: grid; gap: 8px; }
.frow { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px; align-items: start; animation: stepIn .35s var(--ease-out); }
.inq .frow__floor { min-height: 46px !important; padding: 10px 12px !important; font-weight: 600; font-size: 14px !important; background: var(--surface-2) !important; }
.inq .frow__use { min-height: 46px !important; padding: 11px 14px !important; font-size: 15px !important; overflow: hidden; resize: none; white-space: pre-wrap; }
.inq .frow__use::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow__tools { display: flex; gap: 4px; padding-top: 6px; }
.svc-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.svc-pick { cursor: pointer; }
.svc-pick__box { position: relative; display: flex; align-items: center; gap: 12px; height: 100%; padding: 16px 44px 16px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14.5px; font-weight: 600; line-height: 1.3; transition: border-color .25s, background-color .25s, transform .3s var(--ease); }
[dir="rtl"] .svc-pick__box { padding: 16px 16px 16px 44px; }
.svc-pick__box > .ic { width: 24px; height: 24px; color: var(--accent-2); }
.svc-pick__tick { position: absolute; top: 50%; inset-inline-end: 14px; transform: translateY(-50%) scale(.5); opacity: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; transition: transform .3s var(--ease), opacity .2s; }
.svc-pick__tick .ic { width: 14px; height: 14px; }
.svc-pick:hover .svc-pick__box { border-color: var(--text-3); }
.svc-pick input:checked + .svc-pick__box { border-color: var(--accent); background: var(--accent-soft); }
.svc-pick input:checked + .svc-pick__box .svc-pick__tick { opacity: 1; transform: translateY(-50%) scale(1); }
.svc-pick--all .svc-pick__box { border-style: dashed; }
.drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--surface); text-align: center; cursor: pointer; transition: border-color .25s, background-color .25s; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ic { width: 26px; height: 26px; color: var(--accent-2); }
.drop__btn { font-weight: 600; }
.drop small { color: var(--text-3); font-size: 12.5px; max-width: 46ch; }
.drop__list { display: grid; gap: 6px; margin-top: 8px; }
.drop__list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.drop__list .bad { color: #e5484d; }
.inq__error { margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: rgba(229, 72, 77, .1); color: #e5484d; font-size: 14px; font-weight: 500; }
.inq__nav { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; margin-top: 30px; padding: 16px 0; background: linear-gradient(0deg, var(--bg) 70%, transparent); z-index: 2; }
.inq-page .inq__nav { background: linear-gradient(0deg, var(--surface) 70%, transparent); }
.inq__spacer { flex: 1; }
.inq [data-inq-submit] { display: none; }
.inq.is-last [data-inq-submit] { display: inline-flex; }
.inq.is-last [data-inq-next] { display: none; }
.no-js .inq [data-inq-next], .no-js .inq [data-inq-back] { display: none; }
.no-js .inq [data-inq-submit] { display: inline-flex; }
.inq.is-sending [data-inq-submit] { opacity: .7; pointer-events: none; }
.inq-done { text-align: center; padding: 40px 0 20px; display: grid; justify-items: center; gap: 16px; animation: stepIn .6s var(--ease-out); }
.inq-done__check { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 0 0 12px var(--accent-soft); animation: pop .6s var(--ease-out); }
.inq-done__check .ic { width: 40px; height: 40px; stroke-width: 2.4; }
.inq-done__title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 500; letter-spacing: -.02em; }
.inq-done__text { color: var(--text-2); max-width: 46ch; }
.inq-done__ref { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: .06em; padding: 10px 18px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line-2); }
.inq-done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }

/* ───────────── appointment booking ───────────── */
.appt { display: grid; gap: 18px; }
.appt-days { display: flex; flex-wrap: wrap; gap: 8px; }
.appt-day input, .appt-slot input { position: absolute; opacity: 0; pointer-events: none; }
.appt-day span {
  display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .25s var(--ease);
  background: var(--surface); color: var(--text-2);
}
.appt-day input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.appt-day input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.appt-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.appt-slot span {
  display: inline-block; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .25s var(--ease);
  background: var(--surface); color: var(--text);
}
.appt-slot input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.appt-slot input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.appt-none { color: var(--text-2); }
.appt-loading { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13.5px; }

/* homepage appointment section */
.apptsec { background: var(--surface); }
.apptsec__body { display: grid; gap: 14px; }
.apptsec__next-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.appt-next { display: flex; flex-wrap: wrap; gap: 10px; min-height: 44px; align-items: center; }
.appt-next__chip {
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg);
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer;
  transition: all .25s var(--ease);
}
.appt-next__chip:hover { border-color: var(--accent); color: var(--accent); }
.appt-next__none { color: var(--text-2); }
.appt-next__loading { color: var(--text-3); font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; }
.apptsec__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.thanks__when { color: var(--text-2); font-size: 15px; }
.inq-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 60px); align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 48px); }
.inq-page__aside { display: grid; gap: 12px; position: sticky; top: calc(var(--hdr-h) + 24px); }
.inq-page .inq input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .inq-page .inq select, .inq-page .inq textarea, .inq-page .svc-pick__box, .inq-page .drop { background: var(--bg); }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; }
html.drawer-open { overflow: hidden; }

/* ==========================================================================
   keyframes
   ========================================================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawerOut { to { transform: translateX(100%); } }
@keyframes drawerInRtl { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes drawerOutRtl { to { transform: translateX(-100%); } }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: inline-grid; }
  .hdr__actions { margin-inline-start: auto; }
  .services__grid { grid-template-columns: 1fr; }
  .services__intro { position: static; }
  .process__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 34px; }
  .process__line { display: none; }
  /* tablets: brand | contact on top, explore | services below — short and wide, no empty corner */
  .ftr__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-areas: "brand contact" "explore services"; }
  .ftr__brand { grid-area: brand; }
  .ftr__contact { grid-area: contact; }
  .ftr__col--explore { grid-area: explore; }
  .ftr__col--services { grid-area: services; }
}
@media (max-width: 960px) {
  .sec__head--split { grid-template-columns: 1fr; gap: 22px; }
  /* "Our projects" on tablets & phones: big cards one under another (Admin → 3 · Our projects → On phones: list);
     the default "panels" layout is further down (PHONE LAYOUTS) */
  .cats[data-m="list"] .cats__panels { flex-direction: column; height: auto; }
  .cats[data-m="list"] .cat-panel, .cats[data-m="list"] .cat-panel.is-active { flex: none; height: auto; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
  .cats[data-m="list"] .cat-panel__v { display: none; }
  .cats[data-m="list"] .cat-panel__body { position: relative; opacity: 1; transform: none; padding-top: 70px; }
  .cats[data-m="list"] .cat-panel__img { transform: none; filter: none; }
  .cats[data-m="list"] .cat-panel__desc { display: none; }
  .feat-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .feat-grid .pcard, .feat-grid .pcard--lg, .feat-grid .pcard--wide { grid-column: span 1; grid-row: auto; }
  .feat-grid .pcard--lg { grid-column: 1 / -1; }
  .feat-grid .pcard .pcard__media { flex: none; aspect-ratio: 4 / 3.2; }
  .feat-grid .pcard--lg .pcard__media { aspect-ratio: 16 / 10; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .reasons { grid-template-columns: 1fr 1fr; }
  .why__cols { grid-template-columns: 1fr; }
  .contact__in { grid-template-columns: 1fr; }
  .project__intro { grid-template-columns: 1fr; }
  .inq-page { grid-template-columns: minmax(0, 1fr); } /* min 0: the form column must never grow to its content (the step bar scrolls instead) */
  .inq-page__aside { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero__nav { display: none; }
}
@media (max-width: 700px) {
  :root { --hdr-h: max(66px, calc(var(--logo-h-m, 38px) + 22px)); --hdr-h-hero: max(66px, calc(var(--logo-h-hero-m, var(--logo-h-m, 38px)) + 22px)); }
  .logo { height: var(--logo-h-m, 38px); }
  .hdr.is-hero .logo { height: var(--logo-h-hero-m, var(--logo-h-m, 38px)); }
  html.menu-open .hdr.is-hero .logo { height: var(--logo-h-m, 38px); }
  .hdr[data-logo-pos="center"] .hdr__actions { margin-inline-start: 0; }
  .hdr__cta { display: none; }
  .hdr__in { gap: 12px; }
  .hero__title { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .hero__chapters { bottom: 110px; }
  .hero__hud { top: calc(var(--hdr-h-hero, var(--hdr-h)) + 14px); min-width: 120px; }
  .hud__value { font-size: 1.4rem; }
  .hero__skip { bottom: 22px; }
  .hero__scroll { display: none; }
  .hero__loader { top: auto; bottom: 74px; }
  .hero__ctas .btn { --h: 52px; padding: 0 22px; font-size: 15px; }
  .sc-stage { height: 560px; }
  .sc-vignette { background: linear-gradient(90deg, var(--bg) 0%, transparent 8%, transparent 92%, var(--bg) 100%); }
  .sc-caption__cat { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat__num { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .reasons { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; }
  .svc__num { display: none; }
  .svc__icon { width: 48px; height: 48px; }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .contact__cards { grid-template-columns: 1fr; }
  .ftr__top { grid-template-columns: 1fr; grid-template-areas: "brand" "explore" "services" "contact"; }
  .fgrid, .fgrid--3 { grid-template-columns: 1fr; }
  .fgrid--3 { grid-template-columns: 1fr 1fr; }
  .fgrid--3 > :first-child { grid-column: 1 / -1; }
  .frow { grid-template-columns: 1fr auto; }
  .frow__use { grid-column: 1 / -1; grid-row: 2; }
  .inq-page__aside { grid-template-columns: minmax(0, 1fr); }
  .note:nth-child(even) { margin-top: 0; }
  .facts { grid-template-columns: 1fr; }
  /* narrow screens: compact floating stack so it stops covering form fields */
  .fab { gap: 8px; bottom: 12px; inset-inline-end: 12px; }
  .fab__row { gap: 8px; }
  .fab__wa { width: 48px; height: 48px; }
  .fab__wa .ic { width: 26px; height: 26px; }
  .fab__appt { width: 48px; height: 48px; }
  .fab__appt .ic { width: 24px; height: 24px; }
  .fab__toggle { width: 40px; height: 40px; margin-inline-end: 4px; }
  .fab__more { margin-inline-end: 4px; gap: 6px; }
  /* appointment form: leave room below the last fields so they scroll clear of the fixed stack */
  .page-appointment .inq-page { padding-bottom: 150px; }
  .lb__nav { width: 44px; height: 44px; }
  .lb__prev { inset-inline-start: 8px; }
  .lb__next { inset-inline-end: 8px; }
  .drawer__close { margin: 10px 10px 0 0; }
}

@media (max-width: 860px) {
  /* small tablets & phones: services flow as one compact dotted list instead of a tall column */
  .ftr__col--services ul { display: flex; flex-wrap: wrap; gap: 7px 0; }
  .ftr__col--services li { display: inline-flex; align-items: center; }
  .ftr__col--services li:not(:last-child)::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .22); margin-inline: 10px; }
}
@media (max-width: 1180px) {
  .ftr__grp { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tprof { grid-template-columns: 1fr; }
  .tprof__photo { aspect-ratio: 16 / 11; }
}
@media (max-width: 700px) {
  .clients-grid { gap: 10px; }
  .ccl { grid-template-columns: 60px minmax(0, 1fr); gap: 2px 12px; padding: 12px; border-radius: 16px; }
  .ccl__logo { width: 60px; height: 60px; padding: 6px; border-radius: 13px; }
  .ccl__mono { font-size: 16px; border-radius: 9px; }
  .ccl__name { font-size: 14.5px; white-space: normal; }
  .ccl__type { white-space: normal; }
  .ccl__text { display: none; }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .tm__name { font-size: 15px; }
  .ftr__cos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fco { grid-template-columns: 32px minmax(0, 1fr); gap: 9px; padding: 8px 10px 8px 8px; }
  .fco__icon { width: 32px; height: 32px; border-radius: 9px; }
  .fco__icon .ic { width: 17px; height: 17px; }
  .fco__links a { width: 26px; height: 26px; }
  .fco__name { white-space: normal; font-size: 13.5px; line-height: 1.25; }
  .tmodal { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .tmodal__box { max-height: calc(100dvh - 20px); border-radius: 18px; }
  .tprof__photo { aspect-ratio: 4 / 3; }
  .ftr__top { gap: 26px; }
  .ftr__col--explore ul { grid-template-columns: repeat(3, max-content); gap: 8px 22px; }
  .ftr__bottom { justify-content: flex-start; }
  .ftr__mark { top: 30%; }
}

/* ==========================================================================
   PHONE LAYOUTS — chosen per section in the admin ("On phones"); computers are not affected
   ========================================================================== */
@media (max-width: 960px) {
  /* 3 · Our projects: the tall panels of the computer version, side by side. Tap a narrow one to open it,
     tap the open one to go to the category; with many categories the strip scrolls sideways. */
  .cats[data-m="panels"] .cats__panels { height: clamp(440px, 118vw, 560px); gap: 5px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
  .cats[data-m="panels"] .cats__panels::-webkit-scrollbar { display: none; }
  .cats[data-m="panels"] .cats__panels.is-swipe { touch-action: pan-y; }
  .cats[data-m="panels"] .cat-panel { flex: 0 0 42px; border-radius: 18px; transition: flex-grow .7s var(--ease-out), flex-basis .7s var(--ease-out); }
  .cats[data-m="panels"] .cat-panel.is-active { flex: 1 0 180px; }
  .cats[data-m="panels"] .cat-panel__idx { inset-inline: 0; top: 15px; text-align: center; font-size: 11.5px; letter-spacing: .06em; }
  .cats[data-m="panels"] .cat-panel.is-active .cat-panel__idx { text-align: start; padding-inline-start: 18px; }
  .cats[data-m="panels"] .cat-panel__v { bottom: 18px; font-size: 15px; }
  .cats[data-m="panels"] .cat-panel__body { padding: 18px; gap: 9px; }
  .cats[data-m="panels"] .cat-panel__title { font-size: clamp(1.55rem, 6.8vw, 2.6rem); }
  .cats[data-m="panels"] .cat-panel__chips span { padding: 5px 10px; font-size: 11.5px; }
  .cats[data-m="panels"] .cat-panel__cta { padding: 10px 16px; font-size: 13px; }
}
@media (max-width: 700px) {
  .cats[data-m="panels"] .cat-panel__desc { display: none; }

  /* 4 · What we do: small tiles, two per row — the whole tile opens the inquiry for that service */
  .services[data-m="grid"] .services__grid { gap: 28px; }
  .services[data-m="grid"] .svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-top: 0; }
  .services[data-m="grid"] .svc, .services[data-m="grid"] .svc:hover { grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; padding: 14px 13px 15px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); }
  .services[data-m="grid"] .svc::before { display: none; }
  .services[data-m="grid"] .svc:active { transform: scale(.98); }
  .services[data-m="grid"] .svc__num { display: block; position: absolute; top: 13px; inset-inline-end: 13px; padding: 0; font-size: 11px; }
  .services[data-m="grid"] .svc__icon { width: 40px; height: 40px; border-radius: 12px; }
  .services[data-m="grid"] .svc__icon .ic { width: 20px; height: 20px; }
  .services[data-m="grid"] .svc__title { padding-top: 0; font-size: 14.5px; line-height: 1.3; }
  .services[data-m="grid"] .svc__text { margin-top: 5px; font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .services[data-m="grid"] .svc__go { position: absolute; inset: 0; width: auto; height: auto; margin: 0; border: 0; border-radius: inherit; background: none; }
  .services[data-m="grid"] .svc__go .ic { display: none; }
  /* an odd last service gets the whole row, laid out sideways */
  .services[data-m="grid"] .svc:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; }

  /* 7 · Client notes: small notes, two per row; tap a note to read all of it */
  .notes[data-m="grid"] .notes__board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; padding-top: 12px; }
  .notes[data-m="grid"] .note, .notes[data-m="grid"] .note[data-reveal].is-in { padding: 20px 12px 12px; transform: rotate(calc(var(--r, 0deg) * .5)); }
  .notes[data-m="grid"] .note[data-reveal]:not(.is-in) { transform: rotate(calc(var(--r, 0deg) * .5)) translateY(34px); }
  .notes[data-m="grid"] .note:nth-child(even) { margin-top: 18px; }
  .notes[data-m="grid"] .note__pin { top: -8px; width: 16px; height: 16px; margin-left: -8px; }
  .notes[data-m="grid"] .note__top { margin-bottom: 8px; gap: 6px; }
  .notes[data-m="grid"] .note__photo { width: 34px; height: 34px; border-width: 2px; }
  .notes[data-m="grid"] .note__photo--initials { font-size: 12px; }
  .notes[data-m="grid"] .note__stars { gap: 2px; }
  .notes[data-m="grid"] .note__stars i { width: 10px; height: 10px; }
  .notes[data-m="grid"] .note__text { font-size: 1.08rem; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 7; line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
  :lang(bn) .notes[data-m="grid"] .note__text, :lang(ar) .notes[data-m="grid"] .note__text, :lang(zh) .notes[data-m="grid"] .note__text { font-size: .86rem; line-height: 1.55; }
  :lang(hi) .notes[data-m="grid"] .note__text { font-size: .9rem; line-height: 1.55; }
  .notes[data-m="grid"] .note.is-open .note__text { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
  .notes[data-m="grid"] .note__by { margin-top: 10px; padding-top: 8px; gap: 1px; font-size: 11.5px; line-height: 1.35; }
  .notes[data-m="grid"] .note__by strong { font-size: 12.5px; }
  .notes[data-m="grid"] .note__proj { font-size: 11px; }
  .notes[data-m="grid"] .note__sample { top: 6px; inset-inline-end: 8px; font-size: 8px; letter-spacing: .1em; }

  /* 9 · Let's talk: compact — the inquiry button on its own row, WhatsApp + Call side by side, contact cards two per row */
  .contact[data-m="compact"] { padding-block: 64px; }
  .contact[data-m="compact"] .contact__in { gap: 26px; }
  .contact[data-m="compact"] .contact__main { gap: 14px; }
  .contact[data-m="compact"] .contact__title { max-width: none; font-size: clamp(1.9rem, 8.6vw, 2.5rem); }
  .contact[data-m="compact"] .contact__text { font-size: .95rem; }
  .contact[data-m="compact"] .contact__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
  .contact[data-m="compact"] .contact__actions .btn { --h: 48px; width: 100%; padding: 0 12px; font-size: 14.5px; }
  .contact[data-m="compact"] .contact__actions .btn:first-child, .contact[data-m="compact"] .contact__actions .btn:last-child:nth-child(even) { grid-column: 1 / -1; }
  .contact[data-m="compact"] .contact__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .contact[data-m="compact"] .ccard { gap: 2px; padding: 12px 12px 13px; border-radius: 14px; }
  .contact[data-m="compact"] .ccard:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .contact[data-m="compact"] .ccard .ic { width: 18px; height: 18px; margin-bottom: 4px; }
  .contact[data-m="compact"] .ccard__k { font-size: 10.5px; letter-spacing: .1em; }
  :lang(bn) .contact[data-m="compact"] .ccard__k, :lang(hi) .contact[data-m="compact"] .ccard__k, :lang(ar) .contact[data-m="compact"] .ccard__k, :lang(zh) .contact[data-m="compact"] .ccard__k { font-size: 12px; letter-spacing: 0; }
  .contact[data-m="compact"] .ccard__v { font-size: 13.5px; line-height: 1.4; }
  .contact[data-m="compact"] .ccard__link { margin-top: 4px; font-size: 12px; }
  .contact[data-m="compact"] .contact__map { height: 220px; }

  /* 8 · Trusted by (two per row as before): the company type no longer gets cut off in the narrow column */
  .ccl { grid-template-columns: 50px minmax(0, 1fr); gap: 2px 10px; }
  .ccl__logo { width: 50px; height: 50px; padding: 5px; border-radius: 12px; }
  .ccl__type { font-size: 10.5px; letter-spacing: .06em; text-overflow: clip; overflow-wrap: anywhere; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

/* ==========================================================================
   FREE RESOURCES (menu → Resources) & ANNOUNCEMENTS
   ========================================================================== */
.nav-dot { display: inline-block; width: 6px; height: 6px; margin-inline-start: 6px; border-radius: 50%; background: var(--accent); vertical-align: 3px; box-shadow: 0 0 0 3px var(--accent-soft); }

/* cards */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.rgrid--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); }
.rgrid--home { grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr)); } /* a few cards still fill the row */
.rcard { --k: var(--accent); position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s; }
.rcard:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--k) 45%, var(--line-2)); box-shadow: 0 28px 54px -32px color-mix(in oklab, var(--k) 70%, transparent); }
.rcard.is-hidden { display: none; }
.rcard:has(.rcard__title a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.rcard__media { position: relative; aspect-ratio: 16 / 8.2; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 130% at 0% 0%, color-mix(in oklab, var(--k) 34%, transparent), transparent 62%), linear-gradient(135deg, color-mix(in oklab, var(--k) 14%, var(--surface-2)), var(--surface-2)); }
.rcard__media::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image: linear-gradient(color-mix(in oklab, var(--k) 16%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklab, var(--k) 16%, transparent) 1px, transparent 1px);
  background-size: 22px 22px; -webkit-mask-image: radial-gradient(90% 90% at 50% 40%, #000, transparent 78%); mask-image: radial-gradient(90% 90% at 50% 40%, #000, transparent 78%); }
.rcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.rcard:has(.rcard__img) .rcard__media::after { display: none; }
.rcard:hover .rcard__img { transform: scale(1.045); }
.rcard__icon { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--k); box-shadow: 0 16px 34px -14px color-mix(in oklab, var(--k) 85%, transparent); transition: transform .55s var(--ease); }
.rcard:hover .rcard__icon { transform: translateY(-3px) rotate(-5deg); }
.rcard__icon .ic { width: 30px; height: 30px; }
.rcard__ext { position: absolute; z-index: 1; inset-inline-end: 14px; bottom: 12px; padding: 5px 8px; border-radius: 6px; font: 700 11px/1 var(--font-body); letter-spacing: .08em; color: var(--text-2); background: color-mix(in oklab, var(--bg) 72%, transparent); border: 1px solid var(--line-2); }
.rcard__body { flex: 1; display: grid; align-content: start; gap: 9px; padding: 18px 20px 4px; }
.rcard__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.rbadge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: .02em; color: color-mix(in oklab, var(--k, var(--accent)) 72%, var(--text)); background: color-mix(in oklab, var(--k, var(--accent)) 15%, transparent); white-space: nowrap; }
.rbadge--new { color: var(--on-accent); background: var(--accent); }
.rbadge--soon { color: var(--text-2); background: transparent; border: 1px dashed var(--line-2); }
/* "coming soon" cards: the place is ready, the files come later */
.rcard--soon .rcard__icon { box-shadow: none; opacity: .85; }
.rsoon { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--text-3); font-size: 13px; font-weight: 600; white-space: nowrap; }
.rsoon .ic { width: 15px; height: 15px; }
.rsoonbox { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px dashed color-mix(in oklab, var(--k) 45%, var(--line-2)); background: color-mix(in oklab, var(--k) 6%, var(--surface)); color: var(--text-2); font-size: 15px; line-height: 1.55; }
.rsoonbox .ic { flex: none; width: 24px; height: 24px; color: var(--k); }
.rcard__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.28; }
.rcard__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* the whole card opens it */
.rcard__title a:focus-visible { outline: none; }
.rcard__text { color: var(--text-2); font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rcard__foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 16px 20px; pointer-events: none; }
[dir="rtl"] .rcard__foot { padding: 14px 20px 16px 16px; }
.rcard__foot .btn { flex: none; pointer-events: auto; }
.rcard__foot .btn .ic, .rdet .btn .ic { width: 17px; height: 17px; }
.rcard__info { display: grid; gap: 2px; min-width: 0; font-size: 12.5px; line-height: 1.4; color: var(--text-3); }
.rcard__info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcard__info span:first-child:not(:only-child) { color: var(--text-2); font-weight: 600; }

/* Resources page: search & filters */
.rbar { display: grid; gap: 16px; margin-bottom: clamp(26px, 3vw, 40px); }
.rsearch { display: flex; align-items: center; gap: 10px; max-width: 540px; height: 54px; padding: 0 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); cursor: text; transition: border-color .3s, box-shadow .3s; }
.rsearch:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.rsearch .ic { color: var(--text-3); flex: none; }
.rsearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 15.5px; outline: none; }
.rfilters { display: flex; flex-wrap: wrap; gap: 8px; }
.rdot { width: 8px; height: 8px; border-radius: 50%; background: var(--k, var(--accent)); flex: none; }
.rempty { text-align: center; }

/* announcements */
.anns { margin-bottom: clamp(36px, 4vw, 60px); }
.anns__title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.anns__title .ic { width: 22px; height: 22px; color: var(--accent); }
.anns__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.ann, .resbanner__ann, .annpop { --tone: var(--accent); }
.ann--new { --tone: #1e8a4c; }
.ann--important { --tone: #d4433d; }
.ann--offer { --tone: #cf4683; }
.ann--event { --tone: #2f6fd6; }
.ann { position: relative; display: grid; align-content: start; gap: 8px; padding: 18px 20px 18px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.ann::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--tone); }
.ann:target { border-color: var(--tone); box-shadow: 0 0 0 4px color-mix(in oklab, var(--tone) 18%, transparent); }
.ann__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-3); }
.ann__tone, .annhl__meta b { color: var(--tone); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
:lang(bn) .ann__tone, :lang(hi) .ann__tone, :lang(ar) .ann__tone, :lang(zh) .ann__tone, :lang(bn) .annhl__meta b, :lang(hi) .annhl__meta b, :lang(ar) .annhl__meta b, :lang(zh) .annhl__meta b { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.ann__title { font-size: 1.08rem; font-weight: 650; line-height: 1.35; }
.ann__text { color: var(--text-2); font-size: 14.5px; }
.ann__link { justify-self: start; font-size: 14px; }
.anns__more { margin-top: 12px; }
.anns__more summary { cursor: pointer; padding: 6px 0; color: var(--text-2); font-weight: 600; }
.anns__more .anns__list { margin-top: 10px; }

/* text written in the admin */
.rich { line-height: 1.7; }
.rich > * + * { margin-top: .75em; }
.rich ul, .rich ol { display: grid; gap: .35em; padding-inline-start: 1.3em; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.rich strong { color: var(--text); font-weight: 700; }

/* one resource (pop-up and its own page) */
.rmodal { width: min(900px, calc(100vw - 32px)); }
.rmodal__body { padding: clamp(22px, 3.4vw, 42px); }
.rdet { --k: var(--accent); display: grid; gap: 22px; min-width: 0; }
.rdet__head { display: flex; align-items: flex-start; gap: 18px; padding-inline-end: 46px; }
.resone .rdet__head { padding-inline-end: 0; }
.rdet__icon { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; color: #fff; background: var(--k); box-shadow: 0 16px 34px -16px color-mix(in oklab, var(--k) 80%, transparent); }
.rdet__icon .ic { width: 30px; height: 30px; }
.rdet__img { width: 100%; height: 100%; object-fit: cover; }
.rdet__headtext { display: grid; gap: 8px; min-width: 0; }
.rdet__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--text-3); }
.rdet__topic { color: var(--text-2); font-weight: 600; }
.rdet__title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.rdet__summary { color: var(--text-2); font-size: 16px; line-height: 1.6; }
.rdet__k { margin-bottom: 10px; color: var(--text-3); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
:lang(bn) .rdet__k, :lang(hi) .rdet__k, :lang(ar) .rdet__k, :lang(zh) .rdet__k { letter-spacing: 0; text-transform: none; font-size: 13px; }
.rdet__body { color: var(--text-2); font-size: 15.5px; }
.rview { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); }
.rview__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.rview__bar > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.rview__bar > span span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rview__bar a { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--accent-2); font-weight: 600; }
.rview__bar .ic { width: 15px; height: 15px; flex: none; }
.rview__frame { position: relative; height: min(72vh, 660px); background: var(--surface-2); }
.rview--video .rview__frame { height: auto; aspect-ratio: 16 / 9; }
.rview__frame iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border: 0; }
.rview__frame.is-loaded iframe { background: #fff; }
.rview--video .rview__frame.is-loaded iframe { background: #000; }
.rview__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: 14px; }
.rview__frame.is-loaded .rview__loading { display: none; }
.rprompt { overflow: hidden; border-radius: var(--radius); border: 1px solid color-mix(in oklab, var(--k) 40%, var(--line-2)); background: color-mix(in oklab, var(--k) 6%, var(--surface)); }
.rprompt__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.rprompt__head > span { display: inline-flex; align-items: center; gap: 8px; }
.rprompt__head > span .ic { width: 16px; height: 16px; color: var(--k); }
.rprompt__text { max-height: 340px; overflow: auto; margin: 0; padding: 16px; white-space: pre-wrap; word-break: break-word; color: var(--text); font: 13.5px/1.7 ui-monospace, 'Cascadia Code', Consolas, monospace; }
.rfiles ul { display: grid; gap: 8px; }
.rfile { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.rfile__ext { flex: none; min-width: 54px; height: 40px; padding: 0 8px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: #77716a; font: 800 11.5px/1 var(--font-body); letter-spacing: .06em; }
.rfile__ext--xlsx, .rfile__ext--xlsm, .rfile__ext--xls, .rfile__ext--csv { background: #1e8a4c; }
.rfile__ext--pdf { background: #d4433d; }
.rfile__ext--docx, .rfile__ext--doc { background: #2f6fd6; }
.rfile__ext--pptx, .rfile__ext--ppt { background: #d0661f; }
.rfile__ext--dwg, .rfile__ext--dxf, .rfile__ext--skp, .rfile__ext--rvt { background: #a8452f; }
.rfile__ext--html { background: #7a55d3; }
.rfile__ext--png, .rfile__ext--jpg, .rfile__ext--webp { background: #0f8b8d; }
.rfile__name { flex: 1; min-width: 0; display: grid; }
.rfile__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 600; }
.rfile__name small { color: var(--text-3); font-size: 12.5px; }
.rfile__note { color: var(--text-3); font-size: 12.5px; }
.rdet__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rdet__help { color: var(--text-3); font-size: 13.5px; }
.btn.is-done { background: #1e8a4c; border-color: #1e8a4c; color: #fff; }

/* one resource on its own page */
.page-hero--res { padding-bottom: 0; }
.page-hero--res .crumbs { margin-bottom: 0; }
.resone__wrap { max-width: 980px; }
.resone__main { padding: clamp(22px, 3.4vw, 44px); border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.resone__back { display: inline-flex; margin-top: 24px; }
[dir="rtl"] .resone__back .ic { transform: scaleX(-1); }
.resone__related { margin-top: clamp(40px, 5vw, 72px); }
.resone__h { margin-bottom: 18px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }

/* homepage: one slim banner to the Resources page (+ optional small cards) */
.reshome { padding-block: clamp(14px, 2vw, 28px) clamp(34px, 4.4vw, 64px); }
.resbanner { position: relative; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); padding: clamp(16px, 2vw, 24px) clamp(18px, 2.4vw, 30px); border-radius: var(--radius-lg); color: var(--text); background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; transition: border-color .3s, transform .45s var(--ease), box-shadow .45s; }
.resbanner::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 120% at 0% 50%, var(--accent-soft), transparent 70%); }
.resbanner:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--accent) 50%, var(--line-2)); box-shadow: 0 28px 54px -34px color-mix(in oklab, var(--accent) 60%, transparent); }
.resbanner__icons { position: relative; flex: none; display: flex; }
.resbanner__icons i { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--k); border: 2px solid var(--surface); box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--k) 80%, transparent); transition: transform .45s var(--ease); }
.resbanner__icons i + i { margin-inline-start: -12px; }
.resbanner__icons i:nth-child(2) { transform: translateY(-4px); } .resbanner__icons i:nth-child(3) { transform: translateY(2px); } .resbanner__icons i:nth-child(4) { transform: translateY(-3px); }
.resbanner:hover .resbanner__icons i { transform: translateY(0) rotate(-6deg); }
.resbanner__icons .ic { width: 21px; height: 21px; }
.resbanner__main { position: relative; flex: 1; min-width: 0; display: grid; gap: 3px; }
.resbanner__eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); }
:lang(bn) .resbanner__eyebrow, :lang(hi) .resbanner__eyebrow, :lang(ar) .resbanner__eyebrow, :lang(zh) .resbanner__eyebrow { letter-spacing: .02em; text-transform: none; font-size: 13px; }
.resbanner__title { font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.resbanner__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent-2); }
.resbanner__text { color: var(--text-2); font-size: 14px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resbanner__ann { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; justify-self: start; margin-top: 6px; padding: 6px 12px 6px 9px; border-radius: 999px; background: color-mix(in oklab, var(--tone) 12%, transparent); color: var(--text); font-size: 13px; }
.resbanner__ann .ic { flex: none; width: 15px; height: 15px; color: var(--tone); }
.resbanner__ann b { flex: none; color: var(--tone); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
:lang(bn) .resbanner__ann b, :lang(hi) .resbanner__ann b, :lang(ar) .resbanner__ann b, :lang(zh) .resbanner__ann b { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.resbanner__ann span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resbanner__go { position: relative; flex: none; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 20px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 14.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 30px -12px color-mix(in oklab, var(--accent) 70%, transparent); }
.resbanner__go .ic { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, .18); transition: transform .35s var(--ease); }
.resbanner:hover .resbanner__go .ic { transform: translateX(3px); }
[dir="rtl"] .resbanner__go { padding: 0 20px 0 8px; }
[dir="rtl"] .resbanner__go .ic, [dir="rtl"] .rmini__link > .ic { transform: scaleX(-1); }
[dir="rtl"] .resbanner:hover .resbanner__go .ic { transform: scaleX(-1) translateX(3px); }
.rminis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; margin-top: 12px; }
.rmini { min-width: 0; }
.rmini__link { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.rmini__link:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--k) 50%, var(--line-2)); }
.rmini__icon { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; overflow: hidden; color: #fff; background: var(--k); }
.rmini--soon .rmini__icon { opacity: .75; }
.rmini__icon .ic { width: 19px; height: 19px; }
.rmini__img { width: 100%; height: 100%; object-fit: cover; }
.rmini__main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.rmini__title { font-size: 14.5px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmini__meta { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmini__meta b { font-weight: 600; color: var(--text-2); }
.rmini__link > .ic { flex: none; width: 16px; height: 16px; color: var(--text-3); transition: transform .3s var(--ease), color .3s; }
.rmini__link:hover > .ic { color: var(--accent-2); transform: translateX(3px); }
[dir="rtl"] .rmini__link:hover > .ic { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .ann__link .ic, [dir="rtl"] .annpop__link .ic { transform: scaleX(-1); }

/* announcement pop-up (bottom-left; on phones above the chat & WhatsApp buttons) */
.annpop { position: fixed; z-index: 58; inset-inline-start: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); width: min(380px, calc(100vw - 28px)); display: flex; gap: 12px; padding: 16px 44px 16px 18px; border-radius: 18px; background: var(--surface); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: slideUp .5s var(--ease-out) both; }
[dir="rtl"] .annpop { padding: 16px 18px 16px 44px; }
.annpop[hidden], .chat-open .annpop { display: none; }
.annpop::before { content: ''; position: absolute; inset-block: 14px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--tone); }
.annpop__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--tone); background: color-mix(in oklab, var(--tone) 16%, transparent); }
.annpop__icon .ic { width: 20px; height: 20px; }
.annpop__main { min-width: 0; display: grid; gap: 4px; }
.annpop__meta { color: var(--text-3); font-size: 12px; }
.annpop__meta b { color: var(--tone); }
.annpop__title { font-size: 15px; font-weight: 650; line-height: 1.35; }
.annpop__text { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.annpop__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--accent-2); font-size: 13.5px; font-weight: 600; }
.annpop__link .ic { width: 15px; height: 15px; }
.annpop__x { position: absolute; top: 10px; inset-inline-end: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); background: none; border: 0; cursor: pointer; }
.annpop__x:hover { color: var(--text); background: var(--surface-2); }
.annpop__x .ic { width: 15px; height: 15px; }
@media (max-width: 640px) {
  /* fab must not cover the form submit button: shrink the round buttons
     and let the last content scroll clear of the fixed stack */
  .fab__wa, .fab__appt { width: 52px; height: 52px; }
  .fab__wa .ic { width: 26px; height: 26px; }
  .fab__appt .ic { width: 24px; height: 24px; }
  #main { padding-bottom: 120px; }
  /* the booking form has a sticky bottom submit bar: the fixed fab would sit
     on top of it forever on phones, so hide the fab on this page only */
  .page-appointment .fab { display: none; }
  .annpop { inset-inline: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .rdet__head { flex-direction: column; gap: 14px; padding-inline-end: 0; }
  .rdet__icon { width: 52px; height: 52px; border-radius: 15px; }
  .rview__frame { height: 70vh; }
  .rfile { flex-wrap: wrap; }
  .rfile .btn { width: 100%; }
  .resbanner { flex-wrap: wrap; gap: 14px; }
  .resbanner__main { flex-basis: calc(100% - 120px); }
  .resbanner__text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
  .resbanner__go { width: 100%; justify-content: space-between; }
  .resbanner__icons i { width: 38px; height: 38px; border-radius: 11px; }
  .resbanner__icons .ic { width: 18px; height: 18px; }
}

/* print */
@media print {
  .hdr, .fab, .chatp, .annpop, .settings, .hero__nav, .hero__skip, .hero__scroll, .sc-stage { display: none !important; }
  body { background: #fff; color: #000; }
}

/* resources: locked files / online use — shared on request (WhatsApp) */
.rlocked { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--text-3); font-size: 13px; font-weight: 600; white-space: nowrap; }
.rlocked .ic { width: 15px; height: 15px; }
.rlockbox { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid color-mix(in oklab, #d9a21b 45%, var(--line-2)); background: color-mix(in oklab, #d9a21b 8%, var(--surface)); color: var(--text); font-size: 15px; line-height: 1.55; }
.rlockbox p { flex: 1; min-width: 200px; margin: 0; }
.rlockbox__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #b9840f; background: color-mix(in oklab, #d9a21b 18%, transparent); }
.rlockbox__icon .ic { width: 20px; height: 20px; }
.rfile__locked { display: inline-flex; align-items: center; gap: 4px; color: #b9840f; font-weight: 700; }
.rfile__locked .ic { width: 12px; height: 12px; }
.rdet__note { display: flex; align-items: center; gap: 8px; margin: -8px 0 0; color: var(--text-3); font-size: 13px; }
.rdet__note .ic { flex: none; width: 15px; height: 15px; }
.rfile .btn--accent .ic { color: inherit; }

/* ───────────── 3b · project map (the real map of Bangladesh with a pin per project) ───────────── */
.pmap { border-top: 1px solid var(--line); }
.pmap--compact { padding-top: 0; border-top: 0; }
.pmap__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); grid-template-areas: "bar bar" "map side"; gap: 14px; }
.pmap__panel--nolist { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "map"; }
.pmap__bar { grid-area: bar; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.pmap__search { position: relative; display: flex; align-items: center; gap: 8px; flex: 1 1 320px; max-width: 520px; min-width: 0; padding: 0 10px 0 16px; height: 50px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.pmap__search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pmap__search > svg { width: 18px; height: 18px; flex: none; opacity: .7; }
.pmap__input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; color: inherit; font: inherit; font-size: 15px; outline: none; }
.pmap__input::-webkit-search-cancel-button { display: none; }
.pmap__clear { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--accent-soft); color: inherit; display: grid; place-items: center; cursor: pointer; }
.pmap__clear svg { width: 14px; height: 14px; }
.pmap__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pmap__map { grid-area: map; position: relative; height: var(--map-h, 520px); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); isolation: isolate; }
.pmap__loading, .pmap__nojs { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: 14px; margin: 0; }
.pmap__side { grid-area: side; display: flex; flex-direction: column; min-height: 0; max-height: var(--map-h, 520px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.pmap__side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.pmap__reset { flex: none; border: 0; background: var(--accent-soft); color: inherit; font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.pmap__list { list-style: none; margin: 0; padding: 6px; overflow: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.pmap__item { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; border-radius: 14px; transition: background .2s; }
.pmap__item:hover, .pmap__item.is-active { background: var(--accent-soft); }
.pmap__item-link { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; color: inherit; text-decoration: none; min-width: 0; }
.pmap__item-img { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--c, #444); flex: none; }
.pmap__item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmap__item-title { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmap__item-meta { display: flex; flex-wrap: wrap; gap: 0 6px; align-items: center; font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.pmap__item-meta i { font-style: normal; opacity: .5; }
.pmap__item-loc { width: 34px; height: 34px; margin-inline-end: 6px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); color: var(--accent); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.pmap__item-loc svg { width: 17px; height: 17px; }
.pmap__item-loc:hover, .pmap__item.is-active .pmap__item-loc { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pmap__empty { padding: 22px 18px; color: var(--text-2); font-size: 14px; }
.pmap__empty p { margin: 0 0 12px; }
.pmap__more { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.pmap__more[hidden] { display: none; }

/* pins */
.pmap-pinwrap, .pmap-bubwrap, .pmap-dotwrap { background: none; border: 0; }
.pmap-pin { position: relative; width: 52px; height: 62px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); transition: transform .2s var(--ease-out); transform-origin: 50% 100%; }
.pmap-pinwrap:hover .pmap-pin, .leaflet-marker-icon:focus .pmap-pin { transform: scale(1.08); }
.pmap-pin__disc { position: absolute; left: 2px; top: 2px; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--c, var(--accent)); border: 3px solid #fff; display: grid; place-items: center; }
.pmap-pin__disc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmap-pin--logo .pmap-pin__disc { background: #fff; }
.pmap-pin--logo .pmap-pin__disc img { object-fit: contain; padding: 6px; }
.pmap-pin__init { color: #fff; font-weight: 700; font-size: 18px; }
.pmap-pin__tail { position: absolute; left: 50%; top: 46px; width: 0; height: 0; margin-left: -8px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 14px solid #fff; }
.pmap-pin__label, .pmap-dotwrap .pmap-pin__label { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 2px; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--surface); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); pointer-events: none; }
.pmap-dotwrap { position: relative; }
.pmap-dotwrap .pmap-pin__label { margin-top: 8px; }
.pmap-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 28%, transparent), 0 6px 16px rgba(0, 0, 0, .35); }
.pmap-bub { position: relative; display: grid; place-items: center; width: var(--s, 48px); height: var(--s, 48px); border-radius: 50%; background: var(--accent); color: var(--on-accent); border: 2px solid #fff; box-shadow: 0 0 0 7px color-mix(in oklab, var(--accent) 26%, transparent), 0 10px 26px rgba(0, 0, 0, .35); cursor: pointer; transition: transform .2s var(--ease-out); }
.pmap-bubwrap:hover .pmap-bub { transform: scale(1.06); }
.pmap-bub b { font-size: 17px; font-weight: 700; line-height: 1; }
.pmap-bub span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 9px; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--surface); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); pointer-events: none; }

/* dark themes: the same OpenStreetMap tiles, darkened (the markers sit in another pane and keep their colours) */
.pmap__map--dark .leaflet-tile-pane { filter: invert(100%) hue-rotate(180deg) brightness(92%) contrast(88%) saturate(55%); }
.pmap__map--dark .leaflet-control-attribution { background: rgba(0, 0, 0, .55) !important; }
/* Leaflet in our colours */
.leaflet-container { font-family: inherit; background: var(--bg-2); }
.leaflet-container a { color: inherit; }
.leaflet-control-zoom { border: 1px solid var(--line) !important; border-radius: 12px !important; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .25) !important; }
.leaflet-control-zoom a { background: var(--surface) !important; color: var(--text) !important; border-color: var(--line) !important; width: 36px !important; height: 36px !important; line-height: 34px !important; font-size: 20px !important; }
.leaflet-control-zoom a:hover { background: var(--surface-2) !important; }
.leaflet-control-attribution { background: color-mix(in oklab, var(--bg) 72%, transparent) !important; color: var(--text-3) !important; font-size: 10px !important; padding: 2px 8px !important; border-radius: 8px 0 0 0; }
.leaflet-control-attribution a { color: var(--text-2) !important; }
.pmap-popup .leaflet-popup-content-wrapper { background: var(--surface); color: var(--text); border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); padding: 0; }
.pmap-popup .leaflet-popup-content { margin: 0; width: auto !important; min-width: 230px; font-family: inherit; line-height: 1.4; }
.pmap-popup .leaflet-popup-tip { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.pmap-popup .leaflet-popup-close-button { color: var(--text-2) !important; top: 6px !important; right: 6px !important; font-size: 20px !important; }
.pmap-pop { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; color: inherit; text-decoration: none; border-radius: 14px; }
.pmap-pop:hover { background: var(--accent-soft); }
.pmap-pop__img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; display: block; background: var(--surface-2); }
.pmap-pop__body { display: grid; gap: 3px; min-width: 0; }
.pmap-pop__body b { font-size: 14.5px; line-height: 1.25; }
.pmap-pop__body span { font-size: 12.5px; color: var(--text-2); }
.pmap-pop__body em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.pmap-pop__list { display: grid; gap: 2px; padding: 6px; max-height: 330px; overflow: auto; }
.pmap-pop__head { padding: 8px 10px 4px; font-size: 13px; color: var(--text-2); }
.pmap-pop__more { padding: 4px 10px 8px; font-size: 12px; color: var(--text-3); }

@media (max-width: 980px) {
  .pmap__panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "map" "side"; }
  .pmap__map { height: min(var(--map-h, 520px), 64vh); }
  .pmap__side { max-height: 380px; }
}
@media (max-width: 600px) {
  .pmap__search { height: 46px; flex-basis: 100%; }
  .pmap__map { height: min(var(--map-h, 520px), 58vh); border-radius: 18px; }
  .pmap__side { border-radius: 18px; }
  .pmap-bub span { font-size: 11.5px; }
}

/* ---------- service guide pages ---------- */
.wrap--narrow { max-width: 780px; }
.guide { padding-top: clamp(8px, 2vw, 24px); }
.guide h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; margin: 2.2em 0 .6em; }
.guide__intro p { font-size: 1.08rem; }
.gnote { display: flex; gap: 10px; padding: 14px 16px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--surface-2); }
.gnote .ic { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.gfaq { display: grid; gap: 10px; margin-top: 1em; }
.gfaq__item { border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); overflow: hidden; }
.gfaq__q { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gfaq__q::-webkit-details-marker { display: none; }
.gfaq__q::after { content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--accent); }
.gfaq__item[open] .gfaq__q::after { content: '\2013'; }
.gfaq__a { padding: 0 18px 16px; color: var(--text-2); margin: 0; }
.guide__cta { margin-top: 3em; padding: 28px 24px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); text-align: center; }
.guide__cta h2 { margin-top: 0; }
.guide__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.guide__related { margin-top: 2.5em; }
.guide__related h2 { margin-bottom: .6em; }
.guide__related ul { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.guide__related a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 12px; }
.guide__related a:hover { border-color: var(--accent); }
.guide__updated { margin-top: 2.5em; color: var(--text-3); font-size: .85rem; }
