/* ============================================================
   Q HUB site — preloader, section wipe, navigation, hero, ticker, footer, floating actions
   ============================================================ */

/* ---------- preloader ---------- */
#loader { display: none; }
.js #loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: grid; place-content: center; justify-items: center; gap: 1.6rem;
  background: radial-gradient(120% 90% at 50% 40%, #1f2740 0%, #141926 55%, #0d111a 100%);
  /* failsafe: if scripts never run, the curtain still lifts */
  animation: ld-failsafe 0.6s ease 5s forwards;
}
.js.seen #loader { animation-delay: 1.2s; }
@keyframes ld-failsafe { to { opacity: 0; visibility: hidden; } }
.ld-stage { position: relative; width: clamp(96px, 16vw, 132px); aspect-ratio: 1; display: grid; place-items: center; }
.ld-mark { width: 100%; }
.ld-ring { position: absolute; inset: -22%; border-radius: 50%; border: 1px solid rgba(143, 220, 232, 0.5); opacity: 0; transform: scale(0.6); }
.ld-word { width: clamp(170px, 26vw, 230px); }
.ld-word .ql-mark { display: none; }
.ld-word .qlogo { --ink: #ffffff; }
.ld-word .qlogo path { fill: #fff; }
.ld-bar { width: clamp(150px, 22vw, 200px); height: 2px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-hi)); transform: scaleX(0); }
[dir="rtl"] .ld-bar i { transform-origin: right; }
[dir="ltr"] .ld-bar i { transform-origin: left; }

/* loader choreography: beams fly in and lock, ring pulses, wordmark rises, then we fly through the hub */
.ld-mark .ql-beam { opacity: 0; }
.ld-word .qlogo g { opacity: 0; }
#loader.play .ld-mark .ql-beam { animation: ld-beam 0.7s var(--ease-spring) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes ld-beam { from { opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 120deg)) scale(0.3); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
#loader.play .ld-mark .ql-mark { animation: ld-spin 1.05s var(--ease-out) both; }
@keyframes ld-spin { from { transform: rotate(-130deg); } }
#loader.play .ld-ring { animation: ld-ring 0.65s ease-out 0.55s both; }
@keyframes ld-ring { from { opacity: 0.9; transform: scale(0.6); } to { opacity: 0; transform: scale(1.55); } }
#loader.play .ld-word .ql-qhub { animation: ld-up 0.45s var(--ease-out) 0.42s both; }
#loader.play .ld-word .ql-ar { animation: ld-up 0.42s var(--ease-out) 0.56s both; }
#loader.play .ld-word .ql-en { animation: ld-up 0.42s var(--ease-out) 0.64s both; }
@keyframes ld-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
#loader.play #ldBar { animation: ld-bar 0.95s var(--ease-io) 0.05s both; }
@keyframes ld-bar { to { transform: scaleX(1); } }
#loader.out { opacity: 0; visibility: hidden; transition: opacity 0.5s ease 0.45s, visibility 0s 0.95s; animation: none; }
#loader.out .ld-stage { animation: ld-zoom 0.8s cubic-bezier(0.7, 0, 0.84, 0) both; }
@keyframes ld-zoom { to { transform: scale(18) rotate(40deg); opacity: 0; } }
#loader.out .ld-word, #loader.out .ld-bar { opacity: 0; transform: translateY(18px); transition: opacity 0.3s ease, transform 0.3s ease; }
#loader.quick { transition: opacity 0.35s ease, visibility 0s 0.35s; }
#loader.quick .ld-stage { animation: none; }

/* ---------- section wipe (five beams) ---------- */
#wipe { position: fixed; inset: 0; z-index: var(--z-wipe); display: grid; grid-template-columns: repeat(5, 1fr); pointer-events: none; visibility: hidden; }
#wipe i { display: block; height: 130%; margin-top: -15vh; margin-inline: -1.5vw; background: linear-gradient(180deg, #1b2130, #141926); transform: scaleY(0) skewX(-9deg); transform-origin: 50% 100%; }
#wipe i:nth-child(3) { background: linear-gradient(180deg, var(--teal), #3f97a6); }

/* ---------- navigation ---------- */
#top { position: fixed; inset-inline: 0; top: 0; z-index: var(--z-nav); padding: 14px var(--gut) 0; pointer-events: none; transition: transform 0.5s var(--ease-out); }
#top.hide { transform: translateY(-120%); }
.nav {
  pointer-events: auto; position: relative;
  width: min(1180px, 100%); margin-inline: auto; min-height: 64px;
  display: flex; align-items: center; gap: var(--s-4);
  padding: 8px 10px; padding-inline-start: 18px;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-pill);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--shadow-sm); color: var(--ink);
  transition: background-color 0.45s ease, border-color 0.45s ease, color 0.45s ease, min-height 0.45s var(--ease-out), width 0.6s var(--ease-out), box-shadow 0.45s ease;
}
.nav.compact { min-height: 56px; width: min(1040px, 100%); box-shadow: var(--shadow-md); }
.nav-brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; flex: none; }
.nav-mark { width: 34px; display: block; }
.nav-mark .ql-mark { transform: rotate(var(--spin, 0deg)); transition: transform 0.2s linear; }
.nav-brand:hover .ql-beam { animation: beam-pulse 0.7s var(--ease-spring) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes beam-pulse { 40% { transform: scale(0.72) rotate(-14deg); } 100% { transform: none; } }
.nav-word { font-family: var(--f-num); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; direction: ltr; }

.nav-links { position: relative; display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-links a { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.95rem; border-radius: var(--r-pill); font-family: var(--f-head); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); transition: color var(--t-med) ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { font-weight: 600; }
.nav-ink { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--r-pill); background: var(--teal-soft); border: 1px solid var(--teal-line); opacity: 0; transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out), opacity 0.3s ease; pointer-events: none; }
.nav-ink.on { opacity: 1; }

.nav-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.nav-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem; border-radius: var(--r-pill); font-family: var(--f-head); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); transition: color var(--t-med) ease, background-color var(--t-med) ease; }
.nav-login:hover { color: var(--teal-ink); background: var(--teal-soft); }
.nav-progress { position: absolute; inset-inline: 28px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--teal-hi)); transform: scaleX(var(--p, 0)); opacity: 0.9; }
[dir="rtl"] .nav-progress { transform-origin: right; }
[dir="ltr"] .nav-progress { transform-origin: left; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* mobile menu */
.mmenu { position: fixed; inset: 0; z-index: var(--z-menu); display: flex; flex-direction: column; justify-content: space-between; padding: 108px var(--gut) calc(28px + env(safe-area-inset-bottom)); background: var(--navy-900); color: #f2f5f9; clip-path: circle(0% at var(--mx, 90%) 46px); visibility: hidden; transition: clip-path 0.7s var(--ease-io), visibility 0s 0.7s; }
.mmenu.open { clip-path: circle(150% at var(--mx, 90%) 46px); visibility: visible; transition: clip-path 0.7s var(--ease-io), visibility 0s; }
.mmenu-links { display: grid; gap: 4px; }
.mmenu-links a { font-family: var(--f-head); font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 600; padding: 0.35em 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), color 0.3s ease; }
.mmenu.open .mmenu-links a { opacity: 1; transform: none; transition-delay: calc(0.18s + var(--i, 0) * 55ms); }
.mmenu-links a:active { color: var(--teal-hi); }
.mmenu-foot { display: grid; gap: 12px; }
.mmenu-foot .btn-g { --glass: rgba(255, 255, 255, 0.06); --ink: #fff; --line-2: rgba(255, 255, 255, 0.2); }

/* ---------- hero ---------- */
#hero { min-height: 100svh; padding-top: clamp(104px, 13vh, 140px); padding-bottom: clamp(2.5rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; gap: clamp(2rem, 4vw, 3.2rem); overflow: clip; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(110% 80% at 80% 0%, #212a45 0%, #141926 50%, #0e121b 100%); }
[dir="ltr"] .hero-bg { background: radial-gradient(110% 80% at 20% 0%, #212a45 0%, #141926 50%, #0e121b 100%); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.orb-a { width: 46vw; aspect-ratio: 1; inset-inline-end: -12vw; top: -14vw; background: rgba(108, 188, 201, 0.28); animation: drift-a 16s ease-in-out infinite; }
.orb-b { width: 34vw; aspect-ratio: 1; inset-inline-start: -8vw; bottom: -12vw; background: rgba(86, 112, 255, 0.16); animation: drift-b 20s ease-in-out infinite; }
@keyframes drift-a { 50% { transform: translate(-6vw, 5vw) scale(1.12); } }
@keyframes drift-b { 50% { transform: translate(5vw, -4vw) scale(0.92); } }
.hero-wheel { position: absolute; width: min(120vh, 1100px); inset-inline-start: -18%; top: 50%; translate: 0 -50%; opacity: 0.055; }
.hero-wheel .ql-beam { fill: #fff; }
.hero-wheel .ql-mark { animation: wheel 90s linear infinite; }
@keyframes wheel { to { transform: rotate(360deg); } }
.grain { position: absolute; inset: 0; opacity: 0.18; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: clamp(1.1rem, 2vw, 1.6rem); justify-items: start; }
.hero-h { font-family: var(--f-head); font-size: var(--fs-hero); font-weight: 700; line-height: 1.24; letter-spacing: -0.015em; }
html[lang="en"] .hero-h, html[lang="zh"] .hero-h { line-height: 1.08; letter-spacing: -0.03em; font-size: clamp(2rem, 2.9vw + 0.4rem, 3.5rem); }
@media (min-width: 921px) { html[lang="ar"] .hero-h .ln > span { white-space: nowrap; } }
.hero-h .ln:last-child > span { background: linear-gradient(100deg, #ffffff 0%, var(--teal-hi) 55%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .hero-h .ln:last-child > span { background-image: linear-gradient(260deg, #ffffff 0%, var(--teal-hi) 55%, var(--teal) 100%); }
.hero-lead { color: var(--ink-2); font-size: clamp(1.02rem, 0.5vw + 0.95rem, 1.2rem); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: clamp(1rem, 2.6vw, 2.4rem); margin-top: 0.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line); width: 100%; max-width: 36rem; }
.hero-stats dt { display: flex; align-items: baseline; direction: ltr; font-family: var(--f-num); font-size: clamp(1.5rem, 1.6vw + 1rem, 2.1rem); font-weight: 600; line-height: 1.1; }
[dir="rtl"] .hero-stats dt { justify-content: flex-end; }
.hero-stats dt em { font-style: normal; color: var(--teal); font-size: 0.7em; }
.hero-stats dd { color: var(--mut); font-size: var(--fs-xs); line-height: 1.5; margin-top: 0.3rem; }

/* art: three real photos at different depths + floating chips */
.hero-art { position: relative; aspect-ratio: 1 / 1.06; width: 100%; max-width: 560px; justify-self: end; perspective: 1200px; }
.frame { position: absolute; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: var(--bg-elev); will-change: transform; }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); pointer-events: none; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.f1 { inset-inline-start: 6%; top: 0; width: 54%; height: 86%; }
.f2 { inset-inline-end: 0; top: 16%; width: 41%; height: 62%; }
.f3 { inset-inline-start: 0; bottom: 0; width: 30%; height: 34%; border-radius: var(--r-md); }
.chip { position: absolute; display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.95rem 0.6rem 0.7rem; border-radius: var(--r-md); background: rgba(20, 25, 38, 0.72); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-md); color: #fff; will-change: transform; }
.chip-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--teal-soft); color: var(--teal-hi); display: grid; place-items: center; flex: none; }
.chip-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip-tx { display: grid; line-height: 1.35; }
.chip-tx b { font-family: var(--f-head); font-size: 0.875rem; font-weight: 600; }
.chip-tx small { font-size: 0.75rem; color: #b9c3d3; }
.chip-a { inset-inline-end: -4%; top: 4%; animation: bob 6s ease-in-out infinite; }
.chip-b { inset-inline-start: 33%; bottom: -1%; animation: bob 7s ease-in-out -2s infinite; }
.chip-c { inset-inline-end: -5%; bottom: 13%; animation: bob 8s ease-in-out -4s infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* hero intro: armed by .js, released when <html> gets .ready (after the loader) */
.js [data-hero] { opacity: 0; transform: translateY(26px); }
.js .hero-h .ln > span { transform: translateY(112%); }
.js .frame { clip-path: inset(100% 0 0 0 round var(--r-lg)); }
.js .frame img { transform: scale(1.3); }
.js .chip { opacity: 0; scale: 0.7; }
.js.ready [data-hero] { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js.ready .hero-copy [data-hero]:nth-child(1) { transition-delay: 0.05s; }
.js.ready .hero-h .ln > span { transform: none; transition: transform 1.1s var(--ease-out); }
.js.ready .hero-h .ln:nth-child(1) > span { transition-delay: 0.12s; }
.js.ready .hero-h .ln:nth-child(2) > span { transition-delay: 0.24s; }
.js.ready .hero-lead { transition-delay: 0.42s; }
.js.ready .hero-ctas { transition-delay: 0.54s; }
.js.ready .hero-stats { transition-delay: 0.66s; }
.js.ready .qbar { transition-delay: 0.85s; }
.js.ready .frame { clip-path: inset(0 0 0 0 round var(--r-lg)); transition: clip-path 1.3s var(--ease-out); }
.js.ready .frame img { transform: scale(1); transition: transform 1.9s var(--ease-out); }
.js.ready .f1, .js.ready .f1 img { transition-delay: 0.15s; }
.js.ready .f2, .js.ready .f2 img { transition-delay: 0.32s; }
.js.ready .f3, .js.ready .f3 img { transition-delay: 0.48s; }
.js.ready .chip { opacity: 1; scale: 1; transition: opacity 0.6s ease, scale 0.8s var(--ease-spring); }
.js.ready .chip-a { transition-delay: 0.95s; } .js.ready .chip-b { transition-delay: 1.1s; } .js.ready .chip-c { transition-delay: 1.25s; }

/* quick booking bar */
.qbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 6px; padding: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.13); border-radius: var(--r-lg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-md); }
.qf { position: relative; display: grid; gap: 2px; padding: 0.55rem 1rem; border-radius: 20px; transition: background-color var(--t-med) ease; cursor: pointer; }
.qf:hover, .qf:focus-within { background: rgba(255, 255, 255, 0.07); }
.qf + .qf::before { content: ""; position: absolute; inset-inline-start: -3px; top: 22%; bottom: 22%; width: 1px; background: rgba(255, 255, 255, 0.12); }
.qf > span { font-size: 0.75rem; color: var(--mut); }
.qf select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: var(--ink); font-family: var(--f-head); font-weight: 500; font-size: 1rem; min-height: 28px; padding: 0; padding-inline-end: 1.4rem; width: 100%; cursor: pointer; text-overflow: ellipsis; }
.qf select option { color: #161b28; background: #fff; }
.qf::after { content: ""; position: absolute; inset-inline-end: 1rem; bottom: 1.05rem; width: 7px; height: 7px; border: solid var(--teal); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); pointer-events: none; }
.qbar .btn { min-height: 60px; border-radius: 22px; padding-inline: 1.6rem; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-soft); padding-block: 1rem; }
.lane { display: flex; width: max-content; gap: 2.6rem; animation: lane 46s linear infinite; }
[dir="rtl"] .lane { animation-name: lane-rtl; }
.ticker:hover .lane { animation-play-state: paused; }
.lane span { display: inline-flex; align-items: center; gap: 2.6rem; font-family: var(--f-head); font-weight: 500; font-size: 1rem; color: var(--ink-2); white-space: nowrap; }
.lane span::after { content: ""; width: 10px; height: 10px; background: var(--teal); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes lane { to { transform: translateX(-50%); } }
@keyframes lane-rtl { to { transform: translateX(50%); } }

/* ---------- footer ---------- */
#footer { position: relative; padding-top: var(--sec-y); padding-bottom: 0; overflow: clip; background: linear-gradient(180deg, var(--bg) 0%, #0b0e15 100%); color: var(--ink); }
.ft-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6); padding: clamp(1.8rem, 4vw, 3.2rem); border-radius: var(--r-xl); border: 1px solid var(--teal-line); background: radial-gradient(90% 140% at 100% 0%, rgba(108, 188, 201, 0.22), transparent 60%), var(--bg-soft); }
.ft-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); padding-block: clamp(3rem, 6vw, 5rem); }
.ft-brand { display: grid; gap: var(--s-4); align-content: start; }
.ft-logo { width: min(230px, 70%); }
.ft-logo .qlogo path { fill: #fff; }
.ft-brand > p { color: var(--mut); font-size: var(--fs-sm); max-width: 24rem; }
.legal { display: grid; gap: 0.75rem; padding: 1rem 1.1rem; border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); max-width: 27rem; }
.legal-line { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.7; }
.legal-line b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.legal dl { display: grid; gap: 0; padding-top: 0.35rem; border-top: 1px dashed var(--line-2); }
.legal dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; }
.legal dl > div + div { border-top: 1px solid var(--line); }
.legal dt { font-size: 0.75rem; color: var(--mut); line-height: 1.5; }
.legal dd { font-size: 0.95rem; font-weight: 600; color: var(--teal-hi); letter-spacing: 0.05em; white-space: nowrap; }
.ft-col h3 { font-family: var(--f-head); font-size: var(--fs-xs); font-weight: 600; color: var(--mut); letter-spacing: 0.04em; margin-bottom: var(--s-4); }
.ft-col ul { display: grid; gap: 2px; }
.ft-col a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 40px; font-size: var(--fs-sm); color: var(--ink-2); transition: color var(--t-med) ease, transform var(--t-med) var(--ease-out); }
.ft-col a:hover { color: var(--teal-hi); transform: translateX(-4px); }
[dir="ltr"] .ft-col a:hover { transform: translateX(4px); }
.ft-col a svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ft-bot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: 1.4rem; border-top: 1px solid var(--line); color: var(--mut); font-size: var(--fs-xs); position: relative; z-index: 1; }
.to-top { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: var(--ink-2); }
.to-top i { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform var(--t-med) var(--ease-spring), border-color var(--t-med) ease; }
.to-top i::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1.8px 0 0 1.8px; transform: rotate(45deg) translate(1.5px, 1.5px); }
.to-top:hover i { transform: translateY(-4px); border-color: var(--teal); }
.ft-giant { font-family: var(--f-num); font-weight: 700; font-size: clamp(5rem, 23vw, 22rem); line-height: 0.74; text-align: center; letter-spacing: -0.02em; direction: ltr; color: transparent; -webkit-text-stroke: 1px rgba(143, 220, 232, 0.16); user-select: none; margin-top: -0.06em; transform: translateY(18%); }

/* ---------- tracking consent bar (PDPL) — above the floating actions until the visitor chooses ---------- */
.consent { position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: calc(var(--z-fab) + 20); max-width: 760px; margin-inline: auto; display: flex; align-items: center; gap: var(--s-4); padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-elev); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(10, 14, 24, 0.45); font-size: var(--fs-sm); line-height: 1.6; }
.consent[hidden] { display: none; }
.consent p { flex: 1; margin: 0; color: var(--ink-2); }
.consent a { color: var(--teal-hi); text-decoration: underline; text-underline-offset: 3px; }
.consent-acts { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 640px) { .consent { flex-direction: column; align-items: stretch; } .consent-acts > .btn { flex: 1; } }
.ft-ck { display: inline-flex; align-items: center; min-height: 40px; padding: 0; background: none; border: 0; font: inherit; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; transition: color var(--t-med) ease; }
.ft-ck:hover { color: var(--teal-hi); }

/* ---------- floating actions ---------- */
.wa-fab { position: fixed; inset-inline-end: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: var(--z-fab); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1faa59; color: #fff; box-shadow: 0 14px 30px -10px rgba(31, 170, 89, 0.8); transform: scale(0); transition: transform 0.5s var(--ease-spring), bottom 0.4s var(--ease-out); }
.wa-fab.show { transform: scale(1); }
.wa-fab:hover { transform: scale(1.08); }
.wa-ic { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn .wa-ic { width: 18px; height: 18px; }
.mcta { display: none; }

/* ---------- lightbox ---------- */
#lightbox { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 5vmin; background: rgba(8, 11, 18, 0.9); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.35s ease; }
#lightbox[hidden] { display: none; }
#lightbox.open { opacity: 1; }
#lightbox figure { display: grid; gap: 0.8rem; justify-items: center; max-height: 100%; transform: scale(0.94); transition: transform 0.45s var(--ease-out); }
#lightbox.open figure { transform: none; }
#lightbox img { max-height: 82vh; width: auto; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
#lightbox figcaption { color: #dfe6ef; font-size: var(--fs-sm); }
.lb-x { position: absolute; top: 18px; inset-inline-end: 18px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; display: grid; place-items: center; transition: background-color var(--t-med) ease, transform var(--t-med) var(--ease-spring); }
.lb-x:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); }
.lb-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links a { padding: 0 0.7rem; }
  .nav-login { display: none; }
  .ft-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .nav-links, .nav-book { display: none; }
  .burger { display: block; }
  .nav { padding-inline-start: 16px; }
  .nav-tools { margin-inline-start: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 480px; order: 2; }
  .qbar { grid-template-columns: 1fr 1fr; }
  .qbar .btn { grid-column: 1 / -1; }
  .qf + .qf::before { display: none; }
  .mcta { display: block; position: fixed; inset-inline: 14px 86px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: var(--z-fab); transform: translateY(160%); transition: transform 0.55s var(--ease-out); }
  .mcta.show { transform: none; }
  .mcta .btn { width: 100%; min-height: 56px; box-shadow: 0 18px 40px -14px rgba(108, 188, 201, 0.9); }
  #footer { padding-bottom: 84px; }
}
@media (max-width: 620px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.2rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .qbar { grid-template-columns: 1fr; }
  .chip-tx small { display: none; }
  .chip { padding: 0.5rem 0.75rem 0.5rem 0.5rem; }
  .chip-a { inset-inline-end: 0; } .chip-c { bottom: 20%; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .ft-cta-btns .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-hero], .js .hero-h .ln > span, .js .frame img, .js .chip { opacity: 1; transform: none; scale: 1; }
  .js .frame { clip-path: none; }
  .js #loader { display: none; }
}
