/* Shared styles for the arrival-hero transition decks (dissolve / zoom / blur). */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;800&display=swap');
:root { color-scheme: light; --ink:#2b2118; --accent:#c2603a; }
* { margin: 0; box-sizing: border-box; }
html, body { height: 100%; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { font-family: ui-sans-serif, system-ui, -apple-system, sans-serif; color: var(--ink);
       background: linear-gradient(160deg, #f7f8fa 0%, #eef0f3 100%); -webkit-font-smoothing: antialiased; }

/* ---------- site header ---------- */
.site-header { position: fixed; inset: 29px 29px auto 29px; z-index: 50; height: 64px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(28px,5%,64px);
  border-radius: 18px;
  transition: top .45s cubic-bezier(.4,0,.2,1), left .45s cubic-bezier(.4,0,.2,1), width .45s cubic-bezier(.4,0,.2,1),
              transform .45s cubic-bezier(.4,0,.2,1), height .45s, padding .45s, background .45s, box-shadow .45s, border-radius .45s; }
/* after the hero -> shorter, centered, fully-rounded floating pill.
   Over the night scene it's a dark-blue (night-sky) glass with white font. */
body.scrolled .site-header { top: 14px; left: 50%; right: auto; transform: translateX(-50%);
  width: min(1040px, calc(100% - 36px)); height: 56px; border-radius: 999px; padding: 0 12px 0 22px;
  background: rgba(6, 34, 72, 0.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(6,18,40,.30); }
/* once the night scene is fully gone -> solid white pill (dark font via light theme) */
body.solid .site-header { background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(20,16,30,.14); }
.brand { display: flex; align-items: center; gap: 9px;
  font-family: "Cairo", ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: 21px;
  letter-spacing: 0; color: var(--ink); transition: color .4s; }
.brand .mark { width: 28px; height: 28px; object-fit: contain; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #3a2e24; text-decoration: none; font-size: 14px; font-weight: 600; opacity: .85; transition: color .4s; }
.nav a:hover { opacity: 1; }
.nav .cta { background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 999px; opacity: 1; }
body[data-theme="dark"] .brand { color: #fff; }
body[data-theme="dark"] .nav a { color: rgba(255,255,255,.92); }
body[data-theme="dark"] .nav .cta { background: #fff; color: #1a1a1a; }
@media (max-width: 720px){ .nav a:not(.cta){ display:none; } }

/* ---------- stacked deck (sticky hero so content can flow after) ---------- */
.hero { position: relative; z-index: 1; }
.deck { position: sticky; top: 0; height: 100vh; }
.section { position: absolute; inset: 0; display: flex; padding: 29px;
  opacity: 0; will-change: opacity; }

/* the rounded card that holds the scene */
.card { position: relative; flex: 1; border-radius: clamp(22px, 2.4vw, 40px); overflow: hidden;
  box-shadow: 0 26px 70px rgba(70,48,34,.22), 0 2px 8px rgba(70,48,34,.10); }
/* top scrim baked into the card — white fades into the image so the header reads */
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 90px; z-index: 5;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,.9) 0%, rgba(255,255,255,.45) 40%, rgba(255,255,255,0) 100%); }
.section[data-theme="dark"] .card::before {
  background: linear-gradient(to bottom, rgba(0,0,0,.6) 0%, rgba(0,0,0,.28) 35%, rgba(0,0,0,0) 100%); }
.scene-img { position: absolute; inset: 0; will-change: transform; }
.scene-img canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- message copy ---------- */
.glass { position: absolute; z-index: 10; max-width: min(38%, 440px);
  text-shadow: 0 1px 30px rgba(255,255,255,.55);
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.section.in .glass { opacity: 1; transform: translateY(0); }
.glass .tag { display: block; font-size: 12px; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.glass h2 { font-size: clamp(24px, 3vw, 46px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 700; }
.glass p { margin-top: 14px; font-size: clamp(14px,1.2vw,17px); line-height: 1.5; color: #4a3d31; max-width: 40ch; }
.glass.lead p { font-size: clamp(17px,1.7vw,23px); line-height: 1.45; max-width: 32ch; }

/* ---------- chat bubbles (reveal on scroll) — bottom-center, big, glassy ---------- */
.chat { position: absolute; z-index: 11; pointer-events: none;
  left: 50%; bottom: clamp(30px,7%,72px); transform: translateX(calc(-50% - 150px));
  width: fit-content; max-width: min(72%, 640px);
  display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.bubble { position: relative; display: flex; align-items: flex-start; gap: 9px; width: fit-content; max-width: 100%;
  padding: 14px 20px; border-radius: 22px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 36px rgba(20,20,24,.10),
              inset 0 1px 1px rgba(255,255,255,.28);
  backdrop-filter: blur(2.5px) saturate(105%);
  -webkit-backdrop-filter: blur(2.5px) saturate(105%);
  opacity: 0; transform: translateY(26px) scale(.88); will-change: opacity, transform; }
.bubble.show { animation: bubblePop .6s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes bubblePop {
  0%   { opacity: 0; transform: translateY(26px) scale(.88); }
  55%  { opacity: 1; transform: translateY(-6px) scale(1.08); }
  78%  { transform: translateY(2px) scale(.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.bubble .b-body { display: flex; flex-direction: column; }
.bubble p { font-size: clamp(15px,1.3vw,18px); font-weight: 600; line-height: 1.35; color: #1f1a16; }
.bubble .spark { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; color: #15110d; display: block; }
.bubble .spark svg { width: 100%; height: 100%; }
.bubble .b-btn { pointer-events: auto; align-self: flex-start; margin-top: 11px; cursor: pointer;
  font-family: inherit; font-size: clamp(13px,1.05vw,15px); font-weight: 700;
  padding: 8px 16px; border-radius: 999px;
  color: #1f1a16; background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.10);
  backdrop-filter: blur(10px); transition: background .2s, transform .2s; }
.bubble .b-btn:hover { background: rgba(255,255,255,.75); transform: translateY(-1px); }
.bubble .b-btn:active { transform: translateY(0) scale(.97); }
.bubble.white .b-btn { color: #fff; background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.55); }
.bubble.white .b-btn:hover { background: rgba(255,255,255,.34); }
.bubble.agent { align-self: flex-start; border-bottom-left-radius: 0; }
.bubble.guest { align-self: flex-end; border-bottom-right-radius: 0; }
/* white variant — only for bubbles flagged white (e.g. over busy imagery) */
.bubble.white p { color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.bubble.white .spark { color: #fff; }
/* night scene -> brighter glass + light text */
.section[data-theme="dark"] .bubble {
  background: linear-gradient(135deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.02) 100%);
  border-color: rgba(255,255,255,.24); }
.section[data-theme="dark"] .bubble p { color: #fff; }
.section[data-theme="dark"] .bubble .spark { color: #fff; }

.pos-left   { left: clamp(28px,5%,64px); top: calc(17% + 5px); }
.pos-center { left: 50%; transform: translateX(-50%) translateY(24px); top: calc(12% + 5px); text-align: center; }
.section.in .pos-center { transform: translateX(-50%) translateY(0); }

/* dark scene -> lift the image + bright copy */
.section[data-theme="dark"] .scene-img canvas { filter: brightness(1.13) saturate(1.04); }
.section[data-theme="dark"] .glass { text-shadow: 0 2px 26px rgba(0,0,0,.55); }
.section[data-theme="dark"] .glass h2 { color: #fff; }
.section[data-theme="dark"] .glass p  { color: rgba(255,255,255,.9); }
.section[data-theme="dark"] .glass .tag { color: #f2c29a; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .section { padding: 12px; }
  .card { border-radius: 22px; }
  .site-header { inset: 14px 14px auto 14px; padding: 0 6px; }
  .brand { font-size: 18px; }
  .brand .mark { width: 26px; height: 26px; }

  .glass { max-width: 86%; }
  .pos-left { left: 22px; top: calc(12% + 4px); }
  .glass .tag { font-size: 11px; letter-spacing: .16em; margin-bottom: 10px; }
  .glass h2 { font-size: clamp(27px,7.6vw,36px); }
  .glass.lead p { font-size: clamp(15px,4.2vw,18px); max-width: 24ch; }

  /* chat: centered, near-full width, anchored to the bottom */
  .chat { left: 50%; transform: translateX(-50%); right: auto;
    width: calc(100% - 44px); bottom: clamp(18px,5%,40px); align-items: flex-start; }
  .bubble { max-width: 100%; padding: 12px 16px; border-radius: 18px; }
  .bubble p { font-size: clamp(14px,3.8vw,16px); }
  .bubble .b-btn { font-size: 13px; padding: 8px 14px; }
}

/* ---------- social proof: logo marquee ---------- */
.social { position: relative; z-index: 0; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f1f2f5 100%);
  padding: clamp(64px,11vh,130px) 0 clamp(72px,12vh,140px); }
.social-eyebrow { text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: #8a8594; margin-bottom: clamp(34px,5vh,52px); }
.marquee { overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee + .marquee { margin-top: clamp(26px,4vh,40px); }
.marquee-track { display: flex; align-items: center; gap: clamp(42px,6vw,84px); width: max-content;
  animation: marquee-x 48s linear infinite; }
.marquee-track.rev { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-x { to { transform: translateX(-50%); } }
.social .logo-link { display: inline-flex; align-items: center; cursor: pointer; }
.social .logo { height: clamp(26px,3vw,42px); width: auto; object-fit: contain;
  opacity: .6; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.social .logo-link:hover .logo, .social .logo:hover { opacity: 1; filter: none; }
@media (max-width: 760px) { .social .logo { height: 24px; } }

/* ---------- social: featured 4 + customer-stories button ---------- */
.featured { display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(28px,5vw,72px); margin-top: clamp(40px,6vh,64px); padding: 0 24px; }
.featured .feat { display: inline-flex; align-items: center; justify-content: center;
  height: 64px; transition: transform .25s; }
.featured .feat:hover { transform: translateY(-3px); }
.featured .feat img { max-height: clamp(40px,4.5vw,60px); width: auto; object-fit: contain; }
.social-cta { display: flex; justify-content: center; margin-top: clamp(34px,5vh,52px); }
.stories-btn { display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; text-decoration: none; color: #fff; background: #D4622E;
  padding: 14px 28px; border-radius: 999px; box-shadow: 0 8px 26px rgba(212,98,46,.30);
  transition: background .25s, transform .25s; }
.stories-btn span { transition: transform .25s; }
.stories-btn:hover { background: #B8511F; transform: translateY(-1px); }
.stories-btn:hover span { transform: translateX(4px); }

/* ---------- customer-stories carousel (Decagon-style) ---------- */
.stories-band { max-width: 1180px; margin: 0 auto; padding: clamp(56px,9vh,110px) clamp(20px,4vw,40px) clamp(70px,11vh,130px); }
.sb-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sb-head h2 { font-size: clamp(28px,3.4vw,44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; max-width: 22ch; color: #1A1A1A; }
.sb-head p { margin-top: 14px; max-width: 56ch; color: #5b5560; font-size: clamp(15px,1.2vw,17px); line-height: 1.5; }
.sb-all { margin-top: 26px; border: 1px solid rgba(212,98,46,.45); color: #D4622E; border-radius: 999px; padding: 12px 24px;
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .25s, color .25s, transform .25s; }
.sb-all:hover { background: #D4622E; color: #fff; transform: translateY(-1px); }
.sb-arrows { display: flex; justify-content: center; gap: 12px; margin-top: clamp(30px,5vh,48px); }
.sb-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #dcd9e2; background: #fff;
  cursor: pointer; font-size: 17px; color: #1f1a16; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.sb-arrows button:hover { background: #f2f0f5; border-color: #c7c2cf; }

.sb-tabs { display: grid; grid-template-columns: repeat(4,1fr); margin-top: clamp(34px,5vh,54px); }
.sb-tab { border: 0; background: none; cursor: pointer; padding: 22px 10px; border-top: 2px solid #e6e3ec;
  display: flex; align-items: center; justify-content: flex-start; opacity: .5; filter: grayscale(1); transition: opacity .25s, filter .25s, border-color .25s; }
.sb-tab img { height: 46px; max-width: 200px; width: auto; object-fit: contain; object-position: left; }
.sb-tab:hover { opacity: .8; }
.sb-tab.active { opacity: 1; filter: none; border-top-color: #D4622E; }

.sb-content { margin-top: clamp(34px,5vh,54px); display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(30px,5vw,70px); align-items: start; }
.sb-mark { display: block; color: #D4622E; font-family: Georgia, serif; font-size: 70px; line-height: .8; height: 34px; }
.sb-quote blockquote { font-size: clamp(20px,2vw,28px); font-weight: 600; line-height: 1.42; letter-spacing: -0.01em; color: #1A1A1A; max-width: 44ch; }
.sb-person { margin-top: 30px; display: flex; align-items: center; gap: 14px; }
.sb-avatar { width: 48px; height: 48px; border-radius: 50%; background: #FFF1E8; color: #D4622E;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: 0 0 auto; }
.sb-name { font-weight: 700; font-size: 15px; color: #1A1A1A; }
.sb-title { color: #8a8594; font-size: 14px; margin-top: 2px; }
.sb-metric { border-left: 1px solid #e6e3ec; padding-left: clamp(26px,4vw,56px); }
.sb-value { font-size: clamp(54px,7vw,92px); font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  background: linear-gradient(135deg,#F26A21 0%, #d14fae 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sb-label { margin-top: 14px; font-size: clamp(16px,1.4vw,20px); font-weight: 600; color: #1A1A1A; }
.sb-read { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; color: #1A1A1A;
  font-weight: 700; text-decoration: underline; text-underline-offset: 4px; font-size: 15px; }
.sb-read span { transition: transform .2s; }
.sb-read:hover span { transform: translateX(4px); }

@media (max-width: 760px) {
  .sb-controls { align-items: flex-start; flex-direction: row; width: 100%; justify-content: space-between; }
  .sb-tabs { grid-template-columns: repeat(2,1fr); }
  .sb-content { grid-template-columns: 1fr; gap: 32px; }
  .sb-metric { border-left: 0; padding-left: 0; border-top: 1px solid #e6e3ec; padding-top: 28px; }
}
