/* ============================================================
   HABBA | هَبَّة — company profile.
   Locked identity: crimson #D63845 · orange #F5731A · ink #0F0D0C
   · paper #F6F5F3 · Alexandria (display) + IBM Plex Sans Arabic (text).
   Bidirectional: Arabic RTL and English LTR share one sheet; every
   side-specific rule uses logical properties or a [dir] guard.
   ============================================================ */

/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: "Alexandria"; font-weight: 400; font-display: swap; src: url("/fonts/Alexandria-400-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
@font-face { font-family: "Alexandria"; font-weight: 400; font-display: swap; src: url("/fonts/Alexandria-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2122; }
@font-face { font-family: "Alexandria"; font-weight: 600; font-display: swap; src: url("/fonts/Alexandria-600-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
@font-face { font-family: "Alexandria"; font-weight: 600; font-display: swap; src: url("/fonts/Alexandria-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2122; }
@font-face { font-family: "Alexandria"; font-weight: 800; font-display: swap; src: url("/fonts/Alexandria-800-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
@font-face { font-family: "Alexandria"; font-weight: 800; font-display: swap; src: url("/fonts/Alexandria-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2122; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 300; font-display: swap; src: url("/fonts/IBMPlexSansArabic-300-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 300; font-display: swap; src: url("/fonts/IBMPlexSansArabic-300-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2122; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexSansArabic-400-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexSansArabic-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2122; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-display: swap; src: url("/fonts/IBMPlexSansArabic-500-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-display: swap; src: url("/fonts/IBMPlexSansArabic-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2122; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url("/fonts/IBMPlexSansArabic-700-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url("/fonts/IBMPlexSansArabic-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2122; }

/* ---------- tokens ---------- */
:root {
  --ink: #0f0d0c;
  --ink-2: #141414;
  --paper: #f6f5f3;
  --crimson: #d63845;
  --orange: #f5731a;
  --muted: #a79e97;
  --line: rgba(246, 245, 243, 0.1);
  --grad: linear-gradient(120deg, var(--crimson) 0%, var(--orange) 100%);
  --font-d: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-t: "IBM Plex Sans Arabic", "Alexandria", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hb {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-t);
  overflow-x: clip;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
.hb ::selection { background: var(--crimson); color: #fff; }
.hb img { max-width: 100%; }
.hb :focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.hb h1, .hb h2, .hb h3, .hb h4, .hb p, .hb ul { margin: 0; }
.hb ul { list-style: none; padding: 0; }

/* ---------- live grain over everything (below cursor) ---------- */
.hb-grain {
  position: fixed; inset: -60px; z-index: 80; pointer-events: none;
  background: url("/assets/grain.png"); background-size: 260px;
  opacity: 0.055; animation: hbGrain 0.9s steps(3) infinite;
}
@keyframes hbGrain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(18px, -26px); }
  66% { transform: translate(-22px, 14px); }
  100% { transform: translate(0, 0); }
}

/* ---------- intro overlay ---------- */
.hb-intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 110%, #241511 0%, var(--ink) 55%);
  animation: hbIntroOut 0.7s ease 2.1s forwards;
}
.hb-intro.gone { display: none; }
.hb-intro-stack { display: grid; place-items: center; }
.hb-intro-logo { width: min(180px, 40vw); animation: hbIntroLogo 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; filter: drop-shadow(0 6px 40px rgba(214, 56, 69, 0.35)); }
.hb-intro-line { width: min(210px, 46vw); height: 2px; margin-top: 22px; background: var(--grad); transform-origin: center; animation: hbIntroLine 0.9s cubic-bezier(0.7, 0, 0.2, 1) 0.5s both; }
.hb-intro-sweep { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(245, 115, 26, 0.08) 50%, transparent 70%); transform: translateX(-100%); animation: hbIntroSweep 1.4s ease 0.6s both; }
@keyframes hbIntroLogo { from { transform: translateY(34px) scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hbIntroLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hbIntroSweep { to { transform: translateX(100%); } }
@keyframes hbIntroOut { to { opacity: 0; visibility: hidden; } }

/* ---------- language gate ----------
   First visit only: the intro holds instead of fading out and the reader
   picks a language. A returning reader never sees it. */
.hb-gate { margin-top: 30px; text-align: center; opacity: 0; pointer-events: none; }
.hb-intro.ask { animation: none; }
/* the reader has just picked a language: land straight on the page, and drop
   the intro-length delays so the hero is not held back a second time */
html.skip-intro .hb-intro { display: none; }
html.skip-intro .hb-hero-title .w { animation-delay: calc(var(--i) * 55ms); }
html.skip-intro .hb-hero-sub { animation-delay: 0.45s; }
html.skip-intro .hb-hero-ctas { animation-delay: 0.6s; }
.hb-intro.ask .hb-gate { animation: hbGateIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 1.15s both; pointer-events: auto; }
@keyframes hbGateIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* asked in both languages, so the screen reads as neutral ground */
.hb-gate-p {
  display: grid; gap: 4px; margin: 0 0 18px;
  font-size: 13.5px; font-weight: 300; color: var(--muted); letter-spacing: 0.3px;
}
/* fixed order in both pages, so the choice never swaps sides */
.hb-gate-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; direction: ltr; }
/* both options carry identical weight: neither language is the default */
.hb-gate-btn {
  min-width: 138px; padding: 13px 26px; border-radius: 999px;
  font-family: var(--font-d); font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; color: var(--paper); cursor: pointer;
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.hb-gate-btn:hover {
  transform: translateY(-2px); color: #fff;
  background: var(--grad) padding-box, var(--grad) border-box;
  box-shadow: 0 12px 32px rgba(214, 56, 69, 0.38);
}
.hb-gate-btn:active { transform: translateY(0) scale(0.97); }
@media (max-width: 380px) { .hb-gate-btn { min-width: 124px; padding: 12px 20px; } }

/* ---------- nav ---------- */
.hb-nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(15, 13, 12, 0.82), rgba(15, 13, 12, 0));
  backdrop-filter: blur(2px);
}
.hb-nav-logo { display: inline-flex; }
.hb-nav-logo img { height: clamp(52px, 5.4vw, 74px); width: auto; }
.hb-nav-links { display: flex; align-items: center; gap: clamp(12px, 3vw, 30px); }
.hb-nav-links a {
  color: var(--paper); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 6px 2px; position: relative;
}
.hb-nav-links a:not(.hb-lang-opt)::after {
  content: ""; position: absolute; inset-block-end: 0; inset-inline-end: 0; height: 2px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: inline-start;
  transition: transform 0.35s cubic-bezier(0.7, 0, 0.2, 1);
}
.hb-nav-links a:not(.hb-lang-opt):hover::after { transform: scaleX(1); transform-origin: inline-end; }
.hb-progress { position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: 110; background: var(--grad); transform: scaleX(0); transform-origin: inline-start; }

/* ---------- language switch ----------
   A segmented control: the active language is filled, the other is a link.
   Fixed LTR order in both languages so the control never jumps around. */
.hb-lang {
  display: inline-flex; align-items: center; gap: 2px; direction: ltr;
  padding: 3px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(246, 245, 243, 0.05);
  backdrop-filter: blur(8px);
}
.hb-lang-opt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-d); font-weight: 600; font-size: 12.5px; line-height: 1;
  color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.hb-lang-opt.is-on { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(214, 56, 69, 0.35); }
a.hb-lang-opt:hover { color: var(--paper); background: rgba(246, 245, 243, 0.08); }
a.hb-lang-opt:active { transform: scale(0.95); }
@media (max-width: 560px) {
  .hb-lang-opt { min-width: 32px; padding: 6px 9px; font-size: 12px; }
}

/* ---------- hero ---------- */
.hb-hero { position: relative; min-height: 100dvh; display: grid; place-items: end center; isolation: isolate; overflow: clip; }
.hb-hero-media { position: absolute; inset: 0; z-index: -2; }
.hb-hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hb-hero-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 13, 12, 0.62) 0%, rgba(15, 13, 12, 0.18) 45%, rgba(15, 13, 12, 0.88) 92%); }
.hb-hero-body { padding: 0 clamp(18px, 5vw, 60px) clamp(66px, 11vh, 120px); text-align: center; max-width: 1100px; }
.hb-hero-title { font-family: var(--font-d); font-weight: 800; font-size: clamp(28px, 5.4vw, 62px); line-height: 1.35; margin: 0 0 18px; }
[dir="ltr"] .hb-hero-title { font-size: clamp(27px, 4.9vw, 56px); line-height: 1.24; }
.hb-hero-title .w { display: inline-block; animation: hbWord 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(2.2s + var(--i) * 90ms); }
@keyframes hbWord { from { transform: translateY(0.7em); opacity: 0; } to { transform: none; opacity: 1; } }
.hb-hero-sub { font-weight: 300; font-size: clamp(15px, 2.1vw, 21px); color: rgba(246, 245, 243, 0.85); margin: 0 0 34px; animation: hbWord 0.8s ease 3.1s both; }
.hb-hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: hbWord 0.8s ease 3.3s both; }
.hb-scrollcue { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); width: 22px; height: 36px; border: 1.5px solid rgba(246, 245, 243, 0.5); border-radius: 12px; }
.hb-scrollcue::after { content: ""; position: absolute; top: 6px; left: 50%; width: 3px; height: 8px; border-radius: 2px; background: var(--orange); animation: hbCue 1.6s ease-in-out infinite; }
@keyframes hbCue { 0%, 100% { transform: translate(-50%, 0); } 55% { transform: translate(-50%, 12px); } }

/* CTA 1 — primary */
.cta-open {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font-family: var(--font-d);
  font-weight: 600; font-size: 16px; text-decoration: none; overflow: hidden;
  box-shadow: 0 12px 34px rgba(214, 56, 69, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta-open:hover { box-shadow: 0 16px 44px rgba(245, 115, 26, 0.45); }
.cta-open::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%); transform: translateX(-130%); transition: transform 0.7s ease; }
.cta-open:hover::before { transform: translateX(130%); }

/* CTA 2 — outlined download */
.cta-pdf {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 14px; cursor: pointer; text-decoration: none;
  color: var(--paper); font-family: var(--font-d); font-weight: 600; font-size: 15px;
  background: linear-gradient(var(--ink-2), var(--ink-2)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  transition: color 0.3s ease, background 0.3s ease, transform 0.25s ease;
}
.cta-pdf svg { transition: transform 0.3s ease; flex: none; }
.cta-pdf:hover { background: var(--grad) padding-box, var(--grad) border-box; color: #fff; }
.cta-pdf:hover svg { transform: translateY(3px); }

/* CTA 3 — WhatsApp */
.cta-wa {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px;
  border-radius: 999px; text-decoration: none; color: var(--paper);
  font-size: 15px; font-weight: 500; letter-spacing: 0.3px;
  background: rgba(246, 245, 243, 0.06); border: 1px solid var(--line);
  backdrop-filter: blur(6px); transition: border-color 0.3s ease, background 0.3s ease;
  direction: ltr;
}
.cta-wa i { width: 9px; height: 9px; border-radius: 50%; background: #2fd06b; animation: hbPulse 1.8s ease infinite; flex: none; }
@keyframes hbPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 208, 107, 0.5); } 60% { box-shadow: 0 0 0 8px rgba(47, 208, 107, 0); } }
.cta-wa:hover { border-color: rgba(47, 208, 107, 0.6); background: rgba(47, 208, 107, 0.08); }

/* CTA 4 — Instagram */
.cta-ig {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--font-d); font-weight: 600; font-size: 16px; direction: ltr;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative; padding-bottom: 4px;
}
.cta-ig::after { content: ""; position: absolute; bottom: 0; inset-inline-end: 0; width: 100%; height: 2px; background: var(--grad); transform: scaleX(0.25); transform-origin: inline-end; transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1); }
.cta-ig:hover::after { transform: scaleX(1); }

/* ---------- sections shared ---------- */
.hb-sec { position: relative; padding: clamp(70px, 12vh, 140px) clamp(18px, 5vw, 60px); }
.hb-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0.5px; margin-bottom: 18px; }
.hb-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--grad); border-radius: 2px; }
.hb-h2 { font-family: var(--font-d); font-weight: 800; font-size: clamp(24px, 4vw, 44px); line-height: 1.4; margin: 0 0 14px; }
.hb-grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb-note { color: var(--muted); font-weight: 300; margin: 0; }

/* reveal: transform-only (opacity is never scroll-gated) */
.rv { transform: translateY(30px); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--rd, 0s); }
.rv.in { transform: none; }

/* ---------- kinetic statement ----------
   The words light themselves once the section is reached; the reader never has
   to keep scrolling to drive the effect, so the section is a normal height. */
.hb-kinetic { min-height: auto; }
.hb-kinetic-pin { min-height: 100dvh; display: grid; place-items: center; }
.hb-kinetic-text { max-width: 1000px; text-align: center; font-family: var(--font-d); font-weight: 600; font-size: clamp(24px, 4.4vw, 50px); line-height: 1.75; margin: 0; padding: 0 10px; }
[dir="ltr"] .hb-kinetic-text { line-height: 1.5; font-size: clamp(23px, 4vw, 46px); }
.hb-kinetic-text .kl { display: block; }
.hb-kinetic-text .kw { color: rgba(246, 245, 243, 0.16); transition: color 0.25s ease; }
.hb-kinetic-text .kw.lit { color: var(--paper); }
.hb-kinetic-text .kw.hot.lit { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb-kinetic-close { display: block; margin-top: 30px; font-weight: 800; font-size: clamp(28px, 5vw, 56px); }

/* ---------- flipbook ---------- */
.hb-book-sec { background: radial-gradient(90% 70% at 50% 0%, #1d1512 0%, var(--ink) 60%); }
.hb-book-head { text-align: center; margin-bottom: 40px; }
.hb-book-hint { color: var(--muted); font-size: 14px; font-weight: 300; }
.fb-stage { position: relative; margin: 0 auto; max-width: 1040px; }
.fb-toolbar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.fb-counter { font-family: var(--font-d); font-size: 14px; color: var(--muted); min-width: 84px; text-align: center; direction: ltr; }
.fb-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(246, 245, 243, 0.06); border: 1px solid var(--line); color: var(--paper);
  cursor: pointer; transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.fb-btn:hover { background: rgba(214, 56, 69, 0.18); border-color: rgba(214, 56, 69, 0.5); }
.fb-btn:active { transform: scale(0.92); }
.fb-btn[data-on="true"] { background: rgba(245, 115, 26, 0.2); border-color: rgba(245, 115, 26, 0.6); }

/* desktop book — one landscape page at a time */
.fb-desktop { position: relative; perspective: 2400px; aspect-ratio: 210 / 148; max-width: 860px; margin: 0 auto; user-select: none; touch-action: pan-y; overflow: visible; }
.fb-shadow { position: absolute; inset: auto 4% -4% 4%; height: 9%; background: radial-gradient(50% 100% at 50% 0%, rgba(0, 0, 0, 0.55), transparent 75%); filter: blur(10px); }
.fb-page {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform 0.9s cubic-bezier(0.35, 0.05, 0.2, 1);
  will-change: transform; overflow: hidden; background: #fff;
  box-shadow: 0 4px 26px rgba(0, 0, 0, 0.45);
}
.fb-page img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-page::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.fb-page.no-anim { transition: none; }

/* Arabic book — spine on the RIGHT: a page sweeps up and over to the right */
[data-book-dir="rtl"] .fb-page { transform-origin: 100% 50%; border-radius: 8px 3px 3px 8px; }
[data-book-dir="rtl"] .fb-page.flipped { transform: rotateY(180deg); }
[data-book-dir="rtl"] .fb-page::after { background: linear-gradient(270deg, rgba(0, 0, 0, 0.12), transparent 10%); }
[data-book-dir="rtl"] .fb-hot.next { right: 78%; left: 0; }
[data-book-dir="rtl"] .fb-hot.prev { right: 0; left: auto; }

/* English book — spine on the LEFT: mirrored in every respect */
[data-book-dir="ltr"] .fb-page { transform-origin: 0% 50%; border-radius: 3px 8px 8px 3px; }
[data-book-dir="ltr"] .fb-page.flipped { transform: rotateY(-180deg); }
[data-book-dir="ltr"] .fb-page::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 10%); }
[data-book-dir="ltr"] .fb-hot.next { left: 78%; right: 0; }
[data-book-dir="ltr"] .fb-hot.prev { left: 0; right: auto; }

.fb-hot { position: absolute; top: 0; height: 100%; width: 22%; z-index: 60; cursor: pointer; background: transparent; border: 0; padding: 0; }

/* mobile strip */
.fb-mobile { display: none; }
@media (max-width: 860px) {
  .fb-desktop, .fb-shadow { display: none; }
  .fb-mobile { display: block; }
}
.fb-strip {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 2px;
}
.fb-strip::-webkit-scrollbar { display: none; }
.fb-slide { flex: 0 0 88%; scroll-snap-align: center; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); background: #fff; }
.fb-slide img { width: 100%; height: auto; display: block; }

.fb-counter-mob { display: none; }
@media (max-width: 860px) {
  .fb-counter-desk { display: none; }
  .fb-counter-mob { display: inline-block; }
}

/* fullscreen surface (native API + .fs-fallback for iPhone) */
.fb-wrap:fullscreen,
.fb-wrap.fs-fallback {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--ink); padding: max(10px, 1.5vh) max(10px, 1.5vw); overflow: hidden;
}
.fb-wrap.fs-fallback { position: fixed; inset: 0; z-index: 300; }
.fb-wrap:fullscreen .fb-stage,
.fb-wrap.fs-fallback .fb-stage { flex: 1 1 auto; min-height: 0; width: 100%; max-width: none; display: grid; place-items: center; }
.fb-wrap:fullscreen .fb-desktop,
.fb-wrap.fs-fallback .fb-desktop { max-width: none; width: min(96vw, calc((100dvh - 130px) * (210 / 148))); }
.fb-wrap:fullscreen .fb-toolbar,
.fb-wrap.fs-fallback .fb-toolbar { flex: 0 0 auto; margin-top: 16px; }
.fb-wrap:fullscreen .fb-mobile,
.fb-wrap.fs-fallback .fb-mobile { flex: 1 1 auto; min-height: 0; align-items: center; width: 100%; }
@media (max-width: 860px) {
  .fb-wrap:fullscreen .fb-mobile,
  .fb-wrap.fs-fallback .fb-mobile { display: flex; }
}
.fb-wrap:fullscreen .fb-strip,
.fb-wrap.fs-fallback .fb-strip { width: 100%; }
.fb-wrap:fullscreen .fb-slide img,
.fb-wrap.fs-fallback .fb-slide img { max-height: calc(100dvh - 120px); object-fit: contain; }

/* ---------- the difference ---------- */
.hb-cmp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(14px, 2.5vw, 26px); max-width: 1040px; margin: 44px auto 0; align-items: start; }
.hb-panel {
  border-radius: 20px; padding: clamp(22px, 3.5vw, 34px);
  border: 1px solid var(--line); background: rgba(246, 245, 243, 0.035);
  backdrop-filter: blur(6px); transition: transform 0.35s ease, border-color 0.35s ease;
}
.hb-panel:hover { transform: translateY(-4px); }
.hb-panel.is-habba {
  background: linear-gradient(165deg, rgba(245, 115, 26, 0.09), rgba(214, 56, 69, 0.05) 55%, rgba(246, 245, 243, 0.03));
  border-color: rgba(245, 115, 26, 0.28);
  box-shadow: 0 24px 60px -30px rgba(245, 115, 26, 0.25);
}
.hb-panel.is-trad { color: var(--muted); }
.hb-panel-t { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; margin: 0 0 18px; }
.hb-panel.is-trad .hb-panel-t { font-weight: 500; color: var(--muted); }
.hb-panel ul { display: grid; gap: 4px; }
.hb-panel li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: clamp(14px, 1.6vw, 16.5px); font-weight: 300; border-bottom: 1px solid rgba(246, 245, 243, 0.05); }
.hb-panel li:last-child { border-bottom: 0; }
.hb-panel li svg { width: 18px; height: 18px; flex: 0 0 18px; }
.hb-panel.is-trad li { color: var(--muted); }
.hb-panel.is-trad li svg { color: rgba(246, 245, 243, 0.3); }
.hb-diff {
  display: flex; align-items: flex-start; gap: 18px; max-width: 1040px;
  margin: clamp(18px, 3vw, 28px) auto 0; padding: clamp(20px, 3vw, 28px) clamp(22px, 3.5vw, 34px);
  border-radius: 20px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(214, 56, 69, 0.16), rgba(245, 115, 26, 0.13));
  border: 1px solid rgba(245, 115, 26, 0.35);
}
.hb-diff::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(45% 60% at 18% 30%, rgba(245, 115, 26, 0.22), transparent 70%); pointer-events: none; }
.hb-diff-star { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(20, 15, 12, 0.45); border: 1px solid rgba(245, 115, 26, 0.4); }
.hb-diff-star svg { width: 24px; height: 24px; }
.hb-diff h4 { margin: 0 0 6px; font-size: clamp(17px, 2vw, 20px); font-weight: 700; }
.hb-diff p { margin: 0; font-weight: 300; font-size: clamp(14.5px, 1.7vw, 17px); line-height: 1.9; }
@media (max-width: 760px) { .hb-cmp { grid-template-columns: 1fr; } }

/* ---------- services ---------- */
.hb-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(12px, 2vw, 20px); max-width: 1200px; margin: 44px auto 0; }
.hb-svc {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; height: 100%;
  border-radius: 16px; background: rgba(246, 245, 243, 0.035);
  border: 1px solid var(--line); transition: border-color 0.3s ease, background 0.3s ease;
}
.hb-svc:hover { border-color: rgba(214, 56, 69, 0.55); background: rgba(214, 56, 69, 0.07); }
.hb-svc img { width: 58px; height: 58px; border-radius: 12px; flex: 0 0 auto; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); filter: drop-shadow(0 4px 14px rgba(245, 115, 26, 0.25)); }
.hb-svc:hover img { transform: scale(1.12) rotate(-3deg); }
.hb-svc span { font-family: var(--font-d); font-weight: 600; font-size: 15.5px; line-height: 1.6; }

/* ---------- closing CTA ---------- */
.hb-cta { position: relative; isolation: isolate; overflow: clip; text-align: center; padding-top: clamp(90px, 16vh, 170px); padding-bottom: clamp(90px, 16vh, 170px); }
.hb-cta-bg { position: absolute; inset: -12% 0; z-index: -2; background: url("/assets/vision.webp") center 40% / cover no-repeat; will-change: transform; }
.hb-cta-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(15, 13, 12, 0.45) 30%, rgba(15, 13, 12, 0.55) 70%, var(--ink) 100%); }
.hb-cta-title { font-family: var(--font-d); font-weight: 800; font-size: clamp(34px, 7vw, 84px); margin: 0 0 12px; text-shadow: 0 4px 40px rgba(15, 13, 12, 0.6); }
[dir="ltr"] .hb-cta-title { font-size: clamp(32px, 6vw, 68px); line-height: 1.15; }
.hb-cta-loc { color: rgba(246, 245, 243, 0.85); font-weight: 300; font-size: 16px; margin-bottom: 40px; }
.hb-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.hb-cta-stack { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hb-qr { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; border-radius: 18px; background: rgba(15, 13, 12, 0.55); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.hb-qr img { width: 110px; height: 110px; border-radius: 8px; background: #fff; padding: 6px; }
.hb-qr span { font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
.hb-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px clamp(18px, 5vw, 60px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.hb-footer img { height: 36px; width: auto; }
.hb-footer .num { direction: ltr; unicode-bidi: isolate; }

/* ---------- custom cursor ---------- */
.hb-cur-dot, .hb-cur-ring { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; border-radius: 50%; transform: translate(-100px, -100px); }
.hb-cur-dot { width: 7px; height: 7px; background: var(--orange); }
.hb-cur-ring { width: 34px; height: 34px; border: 1.5px solid rgba(245, 115, 26, 0.6); transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease; }
.hb-cur-ring.on { width: 56px; height: 56px; border-color: var(--crimson); }
@media (pointer: coarse), (hover: none) { .hb-cur-dot, .hb-cur-ring { display: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* the cinematic hold goes away, but the language gate must still be reachable */
  .hb-intro:not(.ask) { display: none; }
  .hb-intro.ask .hb-gate { opacity: 1; pointer-events: auto; }
  .hb *, .hb *::before, .hb *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; }
  .hb-hero-title .w, .hb-hero-sub, .hb-hero-ctas { animation: none; }
  .rv { transform: none; }
  .hb-kinetic { min-height: auto; }
  .hb-kinetic-text .kw { color: var(--paper); }
  .hb-grain { animation: none; }
  .hb-cur-dot, .hb-cur-ring { display: none; }
}
