/* ============================================================
   MARK 8 — Elevation layer
   1. "The Feed" — social takeover section (ported from Mark 6,
      restyled for the light luxury design system)
   2. Site-wide lux upgrades: preloader counter, Lenis compat,
      marquee skew, magnetic buttons, quote word-scrub
   ============================================================ */

:root {
  /* platform accents (native palettes — these are app mockups) */
  --ig-a: #feda75; --ig-b: #d62976; --ig-c: #4f5bd5;
  --x-bg: #000000; --x-fg: #e7e9ea; --x-dim: #71767b; --x-blue: #1d9bf0;
  --tt-bg: #010101; --tt-cyan: #25f4ee; --tt-red: #fe2c55;
  --e: cubic-bezier(0.23, 1, 0.32, 1);
  --shell: #06303c; /* phone body — deep brand ink */
}

/* Lenis smooth scroll compat */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- Preloader counter ---------- */
.preloader__count {
  position: absolute;
  bottom: 30px;
  inset-inline-end: 38px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.preloader__count::after {
  content: "%";
  font-size: 0.4em;
  color: var(--cyan);
  margin-inline-start: 4px;
}

/* ---------- Quote word-scrub (SplitType) ---------- */
.quote-text.is-split .word { opacity: 0.16; transition: none; }

/* ---------- Hero char cascade (SplitType) ---------- */
.hero__title.is-chars .line > span { transform: none !important; transition: none !important; }
.hero__title.is-chars .word {
  display: inline-block;
  overflow: hidden;
  padding-block: 0.09em;
  margin-block: -0.09em;
  padding-inline: 0.04em;
  margin-inline: -0.04em;
}
.hero__title.is-chars .char { display: inline-block; will-change: transform; }

/* ---------- Horizontal work reel (pinned, desktop only) ---------- */
@media (min-width: 861px) {
  /* pinned = one exact viewport: flex-center everything so the
     header, cards and CTA always fit with nothing cut off */
  .featured-h {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    padding-block: 0;
    overflow: hidden;
  }
  .featured-h .section-head { margin-bottom: clamp(20px, 3.5vh, 44px); }
  .featured-h .section-head .h-display { margin-top: 12px; }
  .featured-h .mt-lg { margin-top: clamp(18px, 3vh, 36px); }
  .featured-h .featured-grid {
    display: flex;
    gap: 26px;
    width: max-content;
    align-items: stretch;
  }
  .featured-h .featured-grid .media-frame {
    grid-column: unset !important;
    flex: 0 0 min(52vw, 600px);
    aspect-ratio: auto !important;
    height: min(48vh, 440px);
    will-change: transform;
  }
  .featured-h .reel-hint {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .featured-h .reel-hint::after {
    content: "";
    width: 44px;
    height: 1px;
    background: var(--teal);
    animation: reel-nudge 2s var(--ease-luxe, ease) infinite;
  }
  @keyframes reel-nudge {
    0% { transform: scaleX(0); transform-origin: left; }
    55% { transform: scaleX(1); transform-origin: left; }
    100% { transform: scaleX(0); transform-origin: left; }
  }
}
.reel-hint { display: none; }

/* ---------- Hero 3D logo — bolder pendulum (overrides main.css) ---------- */
@keyframes ms3d-float {
  0%, 100% { transform: translateY(0) rotateY(-13deg) rotateX(1.5deg); }
  50% { transform: translateY(-20px) rotateY(13deg) rotateX(-1.5deg); }
}
.ms3d__float { animation-duration: 8s; }
.ms3d__carousel { will-change: transform; }

/* ---------- Service card cursor glow ---------- */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 255, 0.22), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover::after { opacity: 1; }

/* ============================================================
   THE FEED — sticky social takeover
   ============================================================ */
.feed {
  position: relative;
  background:
    radial-gradient(1000px 560px at 85% 8%, rgba(0, 229, 255, 0.16), transparent 60%),
    linear-gradient(165deg, var(--teal) 0%, var(--teal-deep) 78%);
  color: var(--white-soft);
}
.feed .section-head { padding-top: clamp(90px, 12vw, 150px); margin-bottom: 0; }
.feed .eyebrow { color: #fff; }
.feed .eyebrow::before { background: var(--cyan); }
.feed .h-display em { font-style: italic; color: var(--cyan); }

.st-stage { position: relative; height: 420vh; }
.st-view { position: sticky; top: 0; height: 100vh; overflow: hidden; }

/* background: resort video under a teal veil */
.st-bg { position: absolute; inset: 0; z-index: 0; }
.st-zoom { position: absolute; inset: 0; will-change: transform; }
.st-zoom video { width: 100%; height: 100%; object-fit: cover; }
.st-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 125, 148, 0.82), rgba(0, 74, 88, 0.9));
}

/* giant stroked platform wordmark behind the phone */
.st-word {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
}
.st-wm {
  grid-area: 1 / 1;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(64px, 17vw, 240px);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.5);
  will-change: transform, opacity;
}
.st-wm--x { -webkit-text-stroke-color: rgba(255, 255, 255, 0.36); opacity: 0; visibility: hidden; }
.st-wm--tt { -webkit-text-stroke-color: rgba(0, 229, 255, 0.55); opacity: 0; visibility: hidden; }

/* floating notification cards — luxe white */
.st-notes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.st-note {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--white);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 26px 60px -24px rgba(0, 40, 48, 0.55);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  max-width: 260px;
  will-change: transform, opacity;
}
.st-note .ic { font-size: 15px; line-height: 1.3; }
.st-note--p0 { left: 6%; top: 21%; transform: rotate(-1.6deg); }
.st-note--p1 { right: 5%; top: 30%; transform: rotate(1.2deg); }
.st-note--p2 { left: 8%; top: 58%; transform: rotate(0.9deg); }
.st-note--p3 { right: 7%; top: 64%; transform: rotate(-1.3deg); }
@media (max-width: 1100px) {
  .st-note { max-width: 205px; font-size: 11px; }
  .st-note--p0 { left: 2%; }
  .st-note--p1 { right: 2%; }
  .st-note--p2 { left: 3%; }
  .st-note--p3 { right: 2.5%; }
}
@media (max-width: 760px) {
  .st-note { display: none; }
  .st-note--keep { display: flex; max-width: 64vw; padding: 9px 13px; }
  .st-note--keep.st-note--p0 { left: 4vw; right: auto; top: 14%; }
  .st-note--keep.st-note--p1 { right: 4vw; left: auto; top: auto; bottom: 11%; }
}

/* like/heart particles */
.st-parts { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.st-part {
  position: absolute;
  font-size: 22px;
  line-height: 1;
  user-select: none;
  text-shadow: 0 4px 14px rgba(0, 30, 36, 0.5);
  will-change: transform, opacity;
}

/* ---------- phone shell — luxury dark ink ---------- */
.st-phone { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; }
.st-phone .pf { width: min(380px, 88vw, 39vh); }

.pf {
  --pf-accent: var(--cyan);
  --pf-grad: linear-gradient(135deg, var(--cyan), var(--teal));
  position: relative;
  aspect-ratio: 9 / 19.5;
  padding: 12px;
  background: var(--shell);
  border-radius: 52px;
  box-shadow:
    0 50px 110px -34px rgba(0, 25, 31, 0.75),
    0 0 74px -14px var(--pf-accent),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: box-shadow 0.5s var(--e);
}
.pf[data-platform="instagram"] {
  --pf-accent: var(--ig-b);
  --pf-grad: linear-gradient(135deg, var(--ig-a), var(--ig-b), var(--ig-c));
}
.pf[data-platform="x"] {
  --pf-accent: var(--x-blue);
  --pf-grad: linear-gradient(135deg, var(--x-blue), var(--x-dim));
}
.pf[data-platform="tiktok"] {
  --pf-accent: var(--tt-cyan);
  --pf-grad: linear-gradient(135deg, var(--tt-cyan), var(--tt-red));
}
.pf-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: #03161c;
}
.pf-fit {
  position: absolute;
  top: 0;
  left: 0;
  width: 380px;
  height: var(--pf-canvas-h, 823px);
  transform: scale(var(--pf-scale, 1));
  transform-origin: top left;
}
.pf-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  border-radius: 16px;
  background: #03161c;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.07);
  z-index: 7;
  pointer-events: none;
}
.pf-island::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0d2b33;
  box-shadow: inset 0 0 3px #000;
}
.pf-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--pf-grad, var(--pf-accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.8;
  z-index: 6;
  pointer-events: none;
  transition: opacity 0.4s var(--e);
}
.pf-side {
  position: absolute;
  background: #0a3a47;
  border-radius: 3px;
  box-shadow: 0 3px 8px rgba(0, 20, 25, 0.6);
}
.pf-side--power { right: -7px; top: 24%; width: 5px; height: 76px; }
.pf-side--volup { left: -7px; top: 17%; width: 5px; height: 42px; }
.pf-side--voldn { left: -7px; top: 17%; margin-top: 52px; width: 5px; height: 42px; }

/* platform UI layers stack inside the screen */
.st-ui {
  position: absolute;
  inset: 0;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}
.st-ui--x, .st-ui--tt { opacity: 0; visibility: hidden; }

/* progress readout — luxe white pill */
.st-read {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 26px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 11px 20px;
  border-radius: 100px;
  box-shadow: 0 20px 50px -20px rgba(0, 40, 48, 0.6);
}
.st-read i { font-style: normal; color: rgba(9, 56, 67, 0.35); }
.st-read .on { color: var(--teal); font-weight: 800; }

/* ---------- reduced-motion static fallback ---------- */
.st-static {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6vh 3vw;
  padding: 8vh 4vw 10vh;
  justify-items: center;
}
.st-static figure { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0; }
.st-static .pf { width: min(300px, 88vw); }
.st-static figcaption {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
@media (max-width: 1000px) { .st-static { grid-template-columns: 1fr; } }

/* ============================================================
   INSTAGRAM UI
   ============================================================ */
.igui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #14181c;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  padding-top: 44px;
  overflow: hidden;
}
.igui[data-active="false"] { pointer-events: none; }

.ig-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; flex: none; }
.ig-ring {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2.5px;
  background: conic-gradient(from 210deg, var(--ig-a), var(--ig-b), var(--ig-c), var(--ig-a));
}
.ig-ring img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.ig-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ig-handle { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.ig-badge { width: 14px; height: 14px; flex: none; }
.ig-sub { font-size: 11px; color: #595959; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-follow {
  margin-left: auto;
  flex: none;
  background: #0064c8;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  transition: background 0.15s linear, color 0.15s linear;
}
.ig-follow.is-on { background: #efefef; color: #14181c; }
.ig-more { flex: none; font-size: 18px; font-weight: 700; line-height: 1; padding: 4px 6px; color: #14181c; border: 0; background: none; cursor: pointer; }

.ig-media {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #03161c;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.ig-media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.ig-burst {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #fff;
}
.ig-burst svg { fill: currentColor; }
.ig-burst-heart {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
  animation: ig-pop 0.95s var(--e) both;
}
.ig-mini {
  position: absolute;
  left: calc(50% - 11px);
  top: calc(50% - 11px);
  width: 22px;
  height: 22px;
  opacity: 0;
  animation: ig-fly 0.9s ease-out var(--dl, 0s) both;
}
@keyframes ig-pop {
  0% { transform: scale(0); opacity: 0; }
  18% { transform: scale(1.15); opacity: 1; }
  34% { transform: scale(0.92); }
  48% { transform: scale(1); }
  72% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.35) translateY(-46px); opacity: 0; }
}
@keyframes ig-fly {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate(var(--dx, 0), var(--dy, -90px)) scale(var(--s, 0.45)); opacity: 0; }
}

.ig-actions { display: flex; align-items: center; gap: 14px; padding: 10px 12px 4px; flex: none; }
.ig-actions svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ig-act { display: block; padding: 2px; color: #14181c; border: 0; background: none; cursor: pointer; transition: transform 0.15s var(--e); }
.ig-act:active { transform: scale(0.82); }
.ig-like.is-on { color: #ff3040; }
.ig-like.is-on svg { fill: currentColor; animation: ig-thump 0.35s var(--e); }
.ig-save { margin-left: auto; }
.ig-save.is-on svg { fill: currentColor; }
@keyframes ig-thump {
  0% { transform: scale(0.6); }
  55% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.ig-likes { display: flex; align-items: center; gap: 8px; padding: 4px 12px 0; font-size: 13.5px; flex: none; }
.ig-cluster { display: flex; flex: none; }
.ig-cluster img { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.ig-cluster img + img { margin-left: -7px; }

.ig-caption {
  padding: 4px 12px 0;
  font-size: 13.5px;
  line-height: 1.4;
  flex: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-caption strong { font-weight: 700; }
.ig-time { padding: 5px 12px 0; font-size: 10.5px; letter-spacing: 0.03em; text-transform: uppercase; color: #595959; flex: none; }

.ig-stream {
  margin-top: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 12px 14px;
  overflow: hidden;
}
.ig-chip {
  background: #f2f2f2;
  border-radius: 14px;
  padding: 7px 11px;
  font-size: 12.5px;
  line-height: 1.35;
  animation: ig-rise 0.45s var(--e) backwards;
  transition: opacity 0.4s var(--e);
}
.ig-chip strong { font-weight: 700; margin-right: 4px; }
.ig-stream .ig-chip:nth-last-child(3) { opacity: 0.5; }
@keyframes ig-rise {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ============================================================
   X UI
   ============================================================ */
.xui {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--x-bg);
  color: var(--x-fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  --xb: #2f3336;
  --x-green: #00ba7c;
  --x-pink: #f91880;
}
.xui::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: linear-gradient(transparent, var(--x-bg));
  pointer-events: none;
}
.xui-chrome { display: flex; align-items: center; justify-content: space-between; padding: 34px 16px 10px; }
.xui-me { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.xui-logo { width: 21px; height: 21px; color: var(--x-fg); }
.xui-gear { width: 19px; height: 19px; color: var(--x-fg); }
.xui-tabs { display: flex; border-bottom: 1px solid var(--xb); }
.xui-tabs span { flex: 1; text-align: center; padding: 8px 0 11px; color: var(--x-dim); font-weight: 600; font-size: 13.5px; position: relative; }
.xui-tabs .on { color: var(--x-fg); font-weight: 700; }
.xui-tabs .on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 52px;
  height: 4px;
  border-radius: 2px;
  background: var(--x-blue);
}
.xui-tweet { padding: 12px 14px 4px; border-bottom: 1px solid var(--xb); }
.xui-head { display: flex; align-items: center; gap: 10px; }
.xui-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.xui-who { display: flex; flex-direction: column; min-width: 0; }
.xui-name { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.xui-badge { width: 15px; height: 15px; flex: none; }
.xui-sub { color: var(--x-dim); font-size: 12.5px; }
.xui-more { margin-left: auto; color: var(--x-dim); font-size: 16px; font-weight: 700; letter-spacing: 1px; padding: 2px 6px; border-radius: 50%; border: 0; background: none; cursor: pointer; }
.xui-more:hover { color: var(--x-blue); }
.xui-text { font-size: 14.5px; line-height: 1.4; margin: 9px 0 10px; }
.xui-media { border: 1px solid var(--xb); border-radius: 14px; overflow: hidden; }
.xui-media img { width: 100%; height: 176px; object-fit: cover; }
.xui-when { padding: 10px 2px; border-bottom: 1px solid var(--xb); color: var(--x-dim); font-size: 12.5px; }
.xui-when b { color: var(--x-fg); font-weight: 700; }
.xui-actions { display: flex; justify-content: space-between; padding: 7px 0 8px; }
.xa {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--x-dim);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding: 4px;
  border-radius: 8px;
  border: 0;
  background: none;
  cursor: pointer;
  transition: color 0.15s linear;
}
.xa-ic { width: 17px; height: 17px; flex: none; }
.xa:hover { color: var(--x-blue); }
.xa-rt:hover, .xa-rt.on { color: var(--x-green); }
.xa-like:hover, .xa-like.on { color: var(--x-pink); }
.xui-reply { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--xb); }
.xui-rav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex: none;
}
.rav-0 { background: #7856ff; }
.rav-1 { background: #b45309; }
.xui-rbody { min-width: 0; }
.xui-rwho b { font-size: 13.5px; }
.xui-rwho span { color: var(--x-dim); font-size: 12px; }
.xui-rto { color: var(--x-dim); font-size: 12px; }
.xui-rto b { color: var(--x-blue); font-weight: 400; }
.xui-rtext { font-size: 13.5px; margin-top: 2px; }
.xui-trend h3 { font-size: 15px; font-weight: 800; padding: 10px 16px 2px; }
.xui-trow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  text-align: left;
  padding: 8px 16px;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: background 0.15s linear;
}
.xui-trow:hover { background: #16181c; }
.xui-tcat, .xui-tnum { color: var(--x-dim); font-size: 11.5px; }
.xui-ttag { color: var(--x-fg); font-size: 14px; font-weight: 700; }

/* ============================================================
   TIKTOK UI
   ============================================================ */
.ttui {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--tt-bg);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.tt-video { position: absolute; inset: 0; overflow: hidden; }
.tt-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 55%;
  will-change: transform;
}
.ttui[data-active] .tt-video img { animation: ttKen 9s sine 0s infinite alternate; }
@keyframes ttKen {
  from { transform: scale(1.04); }
  to { transform: scale(1.18); }
}
.tt-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(1, 1, 1, 0.72), transparent 30%),
    linear-gradient(transparent 55%, rgba(1, 1, 1, 0.78));
}
.tt-tabs {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.tt-tabs span { color: rgba(255, 255, 255, 0.88); position: relative; padding-bottom: 6px; }
.tt-tabs .on { color: #fff; font-weight: 700; }
.tt-tabs .on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
}
.tt-search {
  position: absolute;
  right: 16px;
  top: 1px;
  width: 20px;
  height: 20px;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}
.tt-rail {
  position: absolute;
  right: 10px;
  bottom: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 3;
}
.tt-prof { position: relative; margin-bottom: 6px; }
.tt-prof img { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #fff; object-fit: cover; }
.tt-follow {
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tt-red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  transition: background 0.15s linear, color 0.15s linear;
}
.tt-follow.on { background: #fff; color: var(--tt-red); font-size: 11px; }
.tt-act {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #fff;
  border: 0;
  background: none;
  cursor: pointer;
}
.tt-act svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
  transition: color 0.15s linear;
}
.tt-like.on svg { color: var(--tt-red); animation: ttPop 0.35s var(--e); }
.tt-count { font-size: 12px; font-weight: 700; letter-spacing: 0.01em; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65); }
.tt-spark {
  position: absolute;
  top: -2px;
  left: 50%;
  font-size: 17px;
  color: var(--tt-red);
  pointer-events: none;
  opacity: 0;
  animation: ttBurst 0.9s ease-out forwards;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.tt-vinyl {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#2a2a2a, #050505 35%, #333 55%, #050505 80%, #2a2a2a);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.5);
}
.tt-vinyl img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.ttui[data-active] .tt-vinyl { animation: ttSpin 7s linear infinite; }
.tt-chat {
  position: absolute;
  right: 68px;
  bottom: 150px;
  width: 205px;
  height: 290px;
  pointer-events: none;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 6px;
}
.tt-bubble {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(2px);
  opacity: 0;
  animation: ttRise 4.4s ease-out forwards;
}
.tt-bubble.static { position: static; opacity: 1; animation: none; }
.tt-bav {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--tt-cyan);
  color: #013;
  font-size: 11px;
  font-weight: 700;
}
.tt-bubble p { font-size: 11.5px; line-height: 1.35; color: #fff; }
.tt-bubble b { display: block; font-size: 11px; color: rgba(255, 255, 255, 0.85); }
.tt-info {
  position: absolute;
  left: 12px;
  right: 76px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}
.tt-handle { font-size: 16px; font-weight: 800; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.tt-cap { font-size: 13px; line-height: 1.4; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.tt-sound { display: flex; align-items: center; gap: 8px; font-size: 12px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.tt-note { flex: none; }
.tt-marq {
  overflow: hidden;
  max-width: 190px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tt-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: ttMarquee 8s linear infinite;
  animation-play-state: paused;
}
.ttui[data-active] .tt-track { animation-play-state: running; }
@keyframes ttSpin { to { transform: rotate(360deg); } }
@keyframes ttMarquee { to { transform: translateX(-50%); } }
@keyframes ttPop {
  0% { transform: scale(0.6); }
  55% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
@keyframes ttBurst {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4) rotate(0deg); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--bx, 0), -72px) scale(1.15) rotate(var(--br, 0deg)); }
}
@keyframes ttRise {
  0% { opacity: 0; transform: translate(var(--dx, 0), 14px); }
  12% { opacity: 1; }
  72% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(var(--dx, 0), -240px); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="force"]) .st-parts,
  html:not([data-motion="force"]) .ig-burst,
  html:not([data-motion="force"]) .tt-spark { display: none; }
  html:not([data-motion="force"]) .ttui[data-active] .tt-vinyl,
  html:not([data-motion="force"]) .ttui[data-active] .tt-video img,
  html:not([data-motion="force"]) .tt-track { animation: none; }
  html:not([data-motion="force"]) .tt-bubble { animation: none; opacity: 1; }
}

/* ============================================================
   THE FEED — click carousel (TOONHUB-flavoured rebuild)
   Full-viewport, arrow / keyboard / swipe driven 3-phone
   carousel: Instagram · X · TikTok. Background, giant ghost
   wordmark and copy crossfade over 650ms on each navigation.
   No GSAP dependency — pure CSS transitions + vanilla JS.
   Reuses the .pf* phone shell + platform-UI CSS above.
   ============================================================ */
.feed--carousel {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 1160px;
  overflow: hidden;
  padding: 0;
  background: #04222b;               /* deep brand ink base */
  color: #fff;
  isolation: isolate;
  --fc-e: cubic-bezier(0.4, 0, 0.2, 1);
}
@supports (height: 100svh) { .feed--carousel { height: 100svh; } }

/* bottom legibility scrim (under the phones, over the video) */
.feed--carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 11, 15, 0.6) 100%);
}

/* ---------- ambient resort video + platform-tinted veils ---------- */
.fc-bg { position: absolute; inset: 0; z-index: 0; }
.fc-zoom { position: absolute; inset: 0; }
.fc-zoom video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.fc-veil { position: absolute; inset: 0; opacity: 0; transition: opacity 650ms var(--fc-e); }
.fc-veil--ig {
  background:
    radial-gradient(120% 85% at 50% 6%, rgba(214, 41, 118, 0.46), transparent 56%),
    radial-gradient(90% 70% at 82% 96%, rgba(254, 218, 117, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(79, 91, 213, 0.5) 0%, rgba(6, 48, 60, 0.94) 74%);
}
.fc-veil--x {
  background:
    radial-gradient(120% 85% at 50% 6%, rgba(29, 155, 240, 0.42), transparent 55%),
    linear-gradient(180deg, rgba(4, 26, 34, 0.74) 0%, rgba(1, 10, 14, 0.97) 78%);
}
.fc-veil--tt {
  background:
    radial-gradient(110% 80% at 42% 8%, rgba(37, 244, 238, 0.34), transparent 52%),
    radial-gradient(90% 78% at 74% 94%, rgba(254, 44, 85, 0.32), transparent 55%),
    linear-gradient(180deg, rgba(3, 18, 22, 0.76) 0%, rgba(1, 7, 9, 0.98) 80%);
}
.feed--carousel[data-active="instagram"] .fc-veil--ig,
.feed--carousel[data-active="x"] .fc-veil--x,
.feed--carousel[data-active="tiktok"] .fc-veil--tt { opacity: 1; }

/* ---------- giant ghost wordmark ---------- */
.fc-ghost {
  position: absolute;
  inset-inline: 0;
  top: 15%;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
}
.fc-wm {
  grid-area: 1 / 1;
  font-family: 'Playfair Display', 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(72px, 19vw, 300px);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 650ms var(--fc-e), transform 650ms var(--fc-e);
  will-change: opacity, transform;
}
.fc-wm[data-ph="tiktok"] { -webkit-text-stroke-color: rgba(37, 244, 238, 0.5); }
.fc-wm[data-ph="x"] { -webkit-text-stroke-color: rgba(255, 255, 255, 0.32); }
.feed--carousel[data-active="instagram"] .fc-wm[data-ph="instagram"],
.feed--carousel[data-active="x"] .fc-wm[data-ph="x"],
.feed--carousel[data-active="tiktok"] .fc-wm[data-ph="tiktok"] { opacity: 1; transform: none; }

/* ---------- ambient notification chips ---------- */
.fc-notes { position: absolute; inset: 0; z-index: 12; pointer-events: none; }
.fc-note {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: var(--white);
  color: var(--ink);
  border-radius: 14px;
  padding: 11px 15px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  max-width: 250px;
  box-shadow: 0 26px 60px -24px rgba(0, 20, 26, 0.6);
  opacity: 0;
  transition: opacity 550ms var(--fc-e);
}
.fc-note .ic { font-size: 15px; line-height: 1.2; }
.fc-note[data-pos="a"] { top: 19%; inset-inline-end: 5%; transform: rotate(1.3deg); }
.fc-note[data-pos="b"] { top: 39%; inset-inline-end: 8%; transform: rotate(-1.2deg); }
.feed--carousel[data-active="instagram"] .fc-note[data-ph="instagram"],
.feed--carousel[data-active="x"] .fc-note[data-ph="x"],
.feed--carousel[data-active="tiktok"] .fc-note[data-ph="tiktok"] { opacity: 1; }
@media (max-width: 900px) { .fc-note { display: none; } }

/* ---------- heart / spark particles behind the active phone ---------- */
.fc-parts { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.fc-part {
  position: absolute;
  bottom: 13%;
  font-size: 22px;
  line-height: 1;
  opacity: 0;
  text-shadow: 0 4px 14px rgba(0, 20, 26, 0.5);
  will-change: transform, opacity;
  animation: fc-rise var(--dur, 2s) ease-out forwards;
}
@keyframes fc-rise {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4) rotate(0deg); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx, 0), -300px) scale(var(--sc, 1.2)) rotate(var(--rot, 0deg)); }
}

/* ---------- film grain ---------- */
.fc-grain {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.38;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---------- top brand tag ---------- */
.fc-brand { position: absolute; top: clamp(20px, 3vw, 34px); inset-inline-start: clamp(16px, 4vw, 54px); z-index: 60; }
.fc-brand__mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
}
.fc-brand__mark::before { content: ""; width: 34px; height: 1px; background: var(--cyan); }
.fc-brand__sub { display: block; margin-top: 8px; margin-inline-start: 46px; font-size: 0.72rem; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.72); }
html[lang="ar"] .fc-brand__mark, html[lang="ar"] .fc-brand__sub { letter-spacing: 0; }

/* ---------- carousel stage + phone slots ---------- */
.fc-stage { position: absolute; inset: 0; z-index: 4; }
.fc-stage:focus { outline: none; }
.fc-stage:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }
.fc-track { position: absolute; inset: 0; }
.fc-slot {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(300px, 42vh, 82vw);
  transform: translate(-50%, -50%);
  transform-origin: center center;
  will-change: transform, filter, opacity, left;
  transition:
    transform 650ms var(--fc-e),
    filter 650ms var(--fc-e),
    opacity 650ms var(--fc-e),
    left 650ms var(--fc-e);
}
.fc-slot .pf { width: 100%; }
/* all three share the same vertical centre-line, so they stay aligned mid-swipe */
.fc-slot[data-role="center"] { left: 50%; transform: translate(-50%, -50%) scale(1.02); filter: none; opacity: 1; z-index: 20; }
.fc-slot[data-role="left"]   { left: 16%; transform: translate(-50%, -50%) scale(0.54); filter: blur(3px) brightness(0.78); opacity: 0.7; z-index: 10; }
.fc-slot[data-role="right"]  { left: 84%; transform: translate(-50%, -50%) scale(0.54); filter: blur(3px) brightness(0.78); opacity: 0.7; z-index: 10; }
/* each phone renders its own platform UI — force it visible (overrides .st-ui--x/tt) */
.fc-slot .st-ui { opacity: 1; visibility: visible; }
.fc-slot[data-role="center"] .st-ui { pointer-events: auto; }
.fc-slot:not([data-role="center"]) .st-ui { pointer-events: none; }
.fc-slot:not([data-role="center"]) { cursor: default; }

/* ---------- bottom-left copy + circular nav ---------- */
.fc-controls {
  position: absolute;
  z-index: 60;
  bottom: clamp(20px, 5vh, 52px);
  inset-inline-start: clamp(16px, 5vw, 64px);
  max-width: 340px;
}
.fc-active {
  font-family: 'Playfair Display', 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 15, 20, 0.5);
}
.fc-line {
  margin-top: 12px;
  max-width: 300px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 12px rgba(0, 15, 20, 0.65);
  min-height: 2.5em;
}
html[lang="ar"] .fc-line { font-size: 0.95rem; }
.fc-nav { display: flex; gap: 14px; margin-top: 22px; }
.fc-btn {
  width: clamp(50px, 6vw, 62px);
  height: clamp(50px, 6vw, 62px);
  border-radius: 50%;
  border: 1.6px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.16s var(--fc-e), background-color 0.16s, border-color 0.16s;
}
.fc-btn:hover { transform: scale(1.08); background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.fc-btn:active { transform: scale(0.95); }
.fc-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.fc-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html[lang="ar"] .fc-btn svg { transform: scaleX(-1); }

/* ---------- bottom-right discover link ---------- */
.fc-discover {
  position: absolute;
  z-index: 60;
  bottom: clamp(20px, 5vh, 52px);
  inset-inline-end: clamp(16px, 4vw, 54px);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: 'Playfair Display', 'Amiri', serif;
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 46px);
  line-height: 1;
  color: #fff;
  opacity: 0.94;
  transition: opacity 0.2s, gap 0.2s;
  text-shadow: 0 2px 24px rgba(0, 15, 20, 0.5);
}
.fc-discover:hover { opacity: 1; gap: 0.55em; }
.fc-discover svg { width: clamp(20px, 2.4vw, 34px); height: auto; }
html[lang="ar"] .fc-discover svg { transform: scaleX(-1); }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .fc-slot[data-role="left"], .fc-slot[data-role="right"] { opacity: 0; pointer-events: none; }
  .fc-slot[data-role="center"] { transform: translate(-50%, -50%) scale(1); width: min(76vw, 300px); }
  .fc-ghost { top: 12%; }
  .fc-brand__sub { display: none; }
  .fc-controls { bottom: 18px; max-width: 62vw; }
  .fc-discover { bottom: 18px; font-size: clamp(17px, 5.4vw, 26px); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="force"]) .fc-slot,
  html:not([data-motion="force"]) .fc-wm,
  html:not([data-motion="force"]) .fc-veil,
  html:not([data-motion="force"]) .fc-note { transition-duration: 1ms; }
  html:not([data-motion="force"]) .fc-part { display: none; }
  html:not([data-motion="force"]) .fc-zoom video { display: none; }
}

/* ============================================================
   HERO — orbit edition (Marketeam-inspired, MS identity)
   Typewriter headline · rotating-gradient CTA · concentric
   orbit rings with partner avatars + count-up · logo ticker.
   Pure CSS motion + a tiny JS typewriter. Cyan/teal accent.
   ============================================================ */
@property --bd-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.hero--orbit .hero__content { padding-block: calc(var(--header-h) + 32px) clamp(96px, 15vh, 150px); }

/* ---------- typewriter headline ---------- */
.hero__type {
  margin-block: 22px 26px;
  max-width: 16ch;
  min-height: 1.1em;
}
.hero__type em { font-style: italic; color: var(--teal); }
html[lang="ar"] .hero__type { max-width: 20ch; }
html[lang="ar"] .hero__type em { font-style: normal; color: var(--teal); }
.tw-caret {
  display: inline-block;
  width: 3px;
  height: 0.92em;
  margin-inline-start: 6px;
  transform: translateY(0.12em);
  background: var(--cyan);
  border-radius: 2px;
  animation: tw-blink 0.9s steps(1) infinite;
}
.tw-caret[hidden] { display: none; }
@keyframes tw-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* ---------- rotating gradient-border CTA ---------- */
.btn-orbit { position: relative; display: inline-flex; border-radius: 100px; isolation: isolate; }
.btn-orbit::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--bd-angle), var(--cyan), var(--teal-deep), var(--cyan), var(--teal-deep), var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: bd-rot 3s linear infinite;
  z-index: -1;
  pointer-events: none;
}
@keyframes bd-rot { to { --bd-angle: 360deg; } }
.btn-orbit > .btn { border-color: transparent; }

/* ---------- floating cursor badge ---------- */
.hero__cursor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  margin-inline-start: clamp(40px, 18vw, 220px);
  opacity: 0;
  animation: cursor-pop 0.6s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 3.4s forwards;
}
.hero__cursor svg { width: 22px; height: 22px; filter: drop-shadow(0 4px 8px rgba(0, 151, 178, 0.4)); }
.hero__cursor .lbl {
  background: var(--teal);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 20px;
  box-shadow: 0 12px 26px -10px rgba(0, 151, 178, 0.6);
  white-space: nowrap;
}
@keyframes cursor-pop {
  0% { opacity: 0; transform: translate(-8px, -8px) scale(0.8); }
  100% { opacity: 1; transform: none; }
}

/* ---------- orbit visualization ---------- */
.hero--orbit .hero__visual { position: relative; min-height: clamp(360px, 42vw, 600px); overflow: visible; }
.orbits {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 720px;
  height: 720px;
  transform: translate(-50%, -50%) scale(var(--os, 0.78));
  pointer-events: none;
}
.orbit {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0) 0%, rgba(0, 229, 255, 0.9) 43%, rgba(0, 229, 255, 0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.orbit--1 { width: 353px; height: 353px; animation: spinL 30s linear infinite; }
.orbit--2 { width: 501px; height: 501px; animation: spinR 40s linear infinite; }
.orbit--3 { width: 649px; height: 649px; animation: spinR 50s linear infinite;
  background: linear-gradient(180deg, rgba(0, 151, 178, 0) 0%, rgba(0, 151, 178, 0.85) 43%, rgba(0, 151, 178, 0) 100%); }
.orbit--4 { width: 797px; height: 797px; animation: spinL 60s linear infinite;
  background: linear-gradient(180deg, rgba(0, 151, 178, 0) 0%, rgba(0, 151, 178, 0.6) 43%, rgba(0, 151, 178, 0) 100%); }
@keyframes spinL { to { transform: rotate(-360deg); } }
@keyframes spinR { to { transform: rotate(360deg); } }

/* centre count-up */
.orbits__center {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  text-align: center;
  background: radial-gradient(circle at 50% 42%, rgba(0, 229, 255, 0.16), rgba(255, 255, 255, 0) 68%);
}
.orbits__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
  color: var(--teal);
  letter-spacing: -0.02em;
}
.orbits__num span:last-child { color: var(--cyan); }
.orbits__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
html[lang="ar"] .orbits__label { letter-spacing: 0; font-size: 0.95rem; }

/* avatars on the rings (static, upright; rings spin behind them) */
.av {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--s, 58px);
  height: var(--s, 58px);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a)));
  background: var(--white);
}
.av--sq { border-radius: 20px; }
.av img { width: 100%; height: 100%; object-fit: cover; animation: av-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) backwards; }
.av--cyan { box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.12), 0 16px 40px -12px rgba(0, 229, 255, 0.55); }
.av--teal { box-shadow: 0 0 0 4px rgba(0, 151, 178, 0.12), 0 16px 40px -12px rgba(0, 151, 178, 0.5); }
.av--gold { box-shadow: 0 0 0 4px rgba(0, 151, 178, 0.1), 0 16px 40px -12px rgba(0, 74, 88, 0.45); }
@keyframes av-in {
  0% { opacity: 0; transform: scale(0.3) rotate(-180deg); filter: blur(6px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

/* ---------- partner logo ticker ---------- */
.hero__ticker {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px 0;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hero__ticker-label {
  display: block;
  text-align: center;
  margin-bottom: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
html[lang="ar"] .hero__ticker-label { letter-spacing: 0; }
.hero__ticker-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: hero-ticker 30s linear infinite;
}
.hero__ticker:hover .hero__ticker-track { animation-play-state: paused; }
.hero__ticker img { height: 34px; width: auto; object-fit: contain; opacity: 0.5; transition: opacity 0.3s; }
.hero__ticker img:hover { opacity: 0.9; }
@keyframes hero-ticker { to { transform: translateX(-50%); } }
[dir="rtl"] .hero__ticker-track { animation-name: hero-ticker-rtl; }
@keyframes hero-ticker-rtl { to { transform: translateX(50%); } }

/* ---------- responsive ---------- */
@media (max-width: 1280px) { .orbits { --os: 0.68; } }
@media (max-width: 980px) {
  .hero--orbit .hero__visual { min-height: clamp(300px, 62vw, 460px); }
  .orbits { --os: 0.58; }
  .hero__cursor { margin-inline-start: clamp(30px, 40vw, 260px); }
}
@media (max-width: 620px) {
  .orbits { --os: 0.44; }
  .hero__ticker img { height: 26px; }
  .hero__ticker-track { gap: 40px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="force"]) .orbit,
  html:not([data-motion="force"]) .btn-orbit::before,
  html:not([data-motion="force"]) .hero__ticker-track { animation: none; }
  html:not([data-motion="force"]) .av img { animation: none; }
  html:not([data-motion="force"]) .tw-caret { display: none; }
  html:not([data-motion="force"]) .hero__cursor { animation: none; opacity: 1; }
}

/* ============================================================
   HERO — cinematic layer (Lumora-inspired, MS identity)
   Scene-switch video/photo backdrop · liquid-glass badge, email
   pill & nav · bottom stats. Layers on top of the orbit hero
   (typewriter + orbits kept). Flips the hero to a dark theme.
   ============================================================ */

/* liquid glass utility */
.liquid-glass {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  background-blend-mode: luminosity;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%, rgba(255, 255, 255, 0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* dark cinematic hero shell */
.hero--cinematic { background: #03151b; color: #fff; }
.hero--cinematic .hero__content { position: relative; z-index: 2; }

/* ---------- scene backdrop ---------- */
.scenes { position: absolute; inset: 0; z-index: 0; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1000ms ease-in-out; }
.scene.is-active { opacity: 1; }
.scene video, .scene img { width: 100%; height: 100%; object-fit: cover; }
.scene-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 18, 24, 0.88) 0%, rgba(3, 18, 24, 0.5) 44%, rgba(3, 18, 24, 0.22) 100%),
    linear-gradient(0deg, rgba(3, 18, 24, 0.82) 0%, rgba(3, 18, 24, 0) 34%),
    linear-gradient(180deg, rgba(3, 18, 24, 0.58) 0%, rgba(3, 18, 24, 0) 22%);
}
[dir="rtl"] .scene-scrim {
  background:
    linear-gradient(270deg, rgba(3, 18, 24, 0.88) 0%, rgba(3, 18, 24, 0.5) 44%, rgba(3, 18, 24, 0.22) 100%),
    linear-gradient(0deg, rgba(3, 18, 24, 0.82) 0%, rgba(3, 18, 24, 0) 34%),
    linear-gradient(180deg, rgba(3, 18, 24, 0.58) 0%, rgba(3, 18, 24, 0) 22%);
}

/* ---------- content recolour for the dark backdrop ---------- */
.hero--cinematic .hero__type { color: #fff; }
.hero--cinematic .hero__type em { color: var(--cyan); }
.hero--cinematic .hero__sub { color: rgba(255, 255, 255, 0.82); }
.hero--cinematic .orbits__num { color: #fff; }
.hero--cinematic .orbits__num span:last-child { color: var(--cyan); }
.hero--cinematic .orbits__label { color: rgba(255, 255, 255, 0.72); }
.hero--cinematic .orbits__center {
  background: radial-gradient(circle at 50% 45%, rgba(3, 18, 24, 0.72), rgba(3, 18, 24, 0) 70%);
}
.hero--cinematic .av { border-color: rgba(255, 255, 255, 0.85); }

/* ---------- glass badge ---------- */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 22px;
}
html[lang="ar"] .hero__badge { font-size: 0.92rem; }
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.6);
  animation: badge-pulse 2.4s ease-out infinite;
}
@keyframes badge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
}

/* ---------- glass email pill ---------- */
.hero__email {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 430px;
  padding: 7px 7px 7px 22px;
  border-radius: 100px;
  margin-top: 30px;
  overflow: visible;               /* let the button hover lift show */
}
.hero__email input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.hero__email input::placeholder { color: rgba(255, 255, 255, 0.6); }
.hero__email .email-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 11px 20px;
  border-radius: 100px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.hero__email .email-go:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0, 229, 255, 0.6); }
.hero__email .email-go svg { width: 15px; height: 15px; }
[dir="rtl"] .hero__email .email-go svg { transform: scaleX(-1); }

/* ---------- scene switcher ---------- */
.hero__scenes-nav { display: flex; flex-wrap: wrap; gap: clamp(16px, 2.4vw, 26px); margin-top: 30px; font-family: var(--font-body); }
.scene-btn {
  padding: 6px 0 8px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
html[lang="ar"] .scene-btn { font-size: 0.92rem; }
.scene-btn:hover { color: rgba(255, 255, 255, 0.82); }
.scene-btn.is-active { color: #fff; border-bottom-color: var(--cyan); }

/* ---------- bottom stats ---------- */
.hero__stats {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(18px, 3vh, 30px);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(8px, 1.6vw, 24px);
  padding-inline: 24px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}
.hero__stats b { color: #fff; font-weight: 700; }
.hero__stats i { color: rgba(255, 255, 255, 0.28); font-style: normal; }
@media (max-width: 720px) { .hero__stats i { display: none; } .hero__stats { gap: 6px 16px; } }

/* ---------- header: white / glass over the dark hero (home only) ---------- */
.page-home .header:not(.is-solid):not(.is-open) .logo,
.page-home .header:not(.is-solid):not(.is-open) .logo .logo__word { color: #fff; }
.page-home .header:not(.is-solid):not(.is-open) .nav__link { color: rgba(255, 255, 255, 0.82); }
.page-home .header:not(.is-solid):not(.is-open) .nav__link:hover,
.page-home .header:not(.is-solid):not(.is-open) .nav__link.is-active { color: #fff; }
.page-home .header:not(.is-solid):not(.is-open) .lang-switch { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.page-home .header:not(.is-solid):not(.is-open) .lang-switch:hover { color: var(--ink); }
.page-home .header:not(.is-solid):not(.is-open) .burger { border-color: rgba(255, 255, 255, 0.4); }
.page-home .header:not(.is-solid):not(.is-open) .burger span { background: #fff; }
.page-home .header:not(.is-solid):not(.is-open) .theme-toggle { color: #fff; }
@media (min-width: 861px) {
  .page-home .header:not(.is-solid):not(.is-open) .nav {
    padding: 10px 26px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14);
  }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero--cinematic .scene-scrim {
    background:
      linear-gradient(0deg, rgba(3, 18, 24, 0.9) 0%, rgba(3, 18, 24, 0.35) 46%, rgba(3, 18, 24, 0.55) 100%);
  }
  [dir="rtl"] .hero--cinematic .scene-scrim {
    background:
      linear-gradient(0deg, rgba(3, 18, 24, 0.9) 0%, rgba(3, 18, 24, 0.35) 46%, rgba(3, 18, 24, 0.55) 100%);
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="force"]) .scene { transition-duration: 1ms; }
  html:not([data-motion="force"]) .hero__badge .dot { animation: none; }
}

/* ============================================================
   PAGE HERO — cinematic (inner pages)
   Same dark treatment as the home hero: full-bleed photo,
   layered scrim, film grain, glass eyebrow, white type.
   ============================================================ */
.page-hero--cinema { background: #04222b; color: #fff; }
.page-hero--cinema canvas { display: none; }   /* hide the wave dots over photos */
.ph-bg { position: absolute; inset: 0; z-index: 0; }
.ph-bg img { width: 100%; height: 100%; object-fit: cover; }
.ph-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 18, 24, 0.9) 0%, rgba(3, 18, 24, 0.6) 46%, rgba(3, 18, 24, 0.28) 100%),
    linear-gradient(0deg, rgba(3, 18, 24, 0.85) 0%, rgba(3, 18, 24, 0) 42%),
    linear-gradient(180deg, rgba(3, 18, 24, 0.55) 0%, rgba(3, 18, 24, 0) 26%);
}
[dir="rtl"] .ph-scrim {
  background:
    linear-gradient(270deg, rgba(3, 18, 24, 0.9) 0%, rgba(3, 18, 24, 0.6) 46%, rgba(3, 18, 24, 0.28) 100%),
    linear-gradient(0deg, rgba(3, 18, 24, 0.85) 0%, rgba(3, 18, 24, 0) 42%),
    linear-gradient(180deg, rgba(3, 18, 24, 0.55) 0%, rgba(3, 18, 24, 0) 26%);
}
.page-hero--cinema .fc-grain { z-index: 3; }
.page-hero--cinema .eyebrow {
  color: #fff;
  padding: 9px 18px;
  border-radius: 100px;
}
.page-hero--cinema .eyebrow::before { background: var(--cyan); }
.page-hero--cinema .h-display { color: #fff; }
.page-hero--cinema .h-display em,
.page-hero--cinema .h-display .gold { color: var(--cyan); }
.page-hero--cinema .lead,
.page-hero--cinema .page-hero__sub { color: rgba(255, 255, 255, 0.85); }
.page-hero--cinema .page-hero__word { -webkit-text-stroke: 2px rgba(255, 255, 255, 0.26); z-index: 1; }

/* ============================================================
   HEADER — liquid glass
   At the top the (dark-hero) header is transparent with the
   glass nav pill; once scrolled, the whole bar becomes a
   floating frosted-glass pill instead of a solid cream bar.
   ============================================================ */
.header.is-solid {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  height: 82px;
}
.header.is-solid .container {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  padding-block: 8px;
  padding-inline: clamp(14px, 2.4vw, 26px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.65),
    0 20px 46px -22px rgba(9, 56, 67, 0.42);
}
html[data-theme="dark"] .header.is-solid { background: transparent; box-shadow: none; }
html[data-theme="dark"] .header.is-solid .container {
  background: rgba(7, 30, 38, 0.58);
  border-color: rgba(0, 229, 255, 0.16);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    0 20px 46px -22px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   SERVICES — home grid on deep ink with liquid-glass cards
   ============================================================ */
.section--ink {
  background:
    radial-gradient(1000px 560px at 85% 0%, rgba(0, 229, 255, 0.13), transparent 60%),
    radial-gradient(760px 480px at 8% 100%, rgba(0, 151, 178, 0.12), transparent 62%),
    linear-gradient(165deg, #062a35 0%, #04222b 80%);
  color: var(--white-soft);
}
[dir="rtl"] .section--ink {
  background:
    radial-gradient(1000px 560px at 15% 0%, rgba(0, 229, 255, 0.13), transparent 60%),
    radial-gradient(760px 480px at 92% 100%, rgba(0, 151, 178, 0.12), transparent 62%),
    linear-gradient(165deg, #062a35 0%, #04222b 80%);
}
.section--ink .eyebrow { color: #fff; }
.section--ink .eyebrow::before { background: var(--cyan); }
.section--ink .service-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}
.section--ink .service-card h3 { color: #fff; }
.section--ink .service-card p { color: rgba(255, 255, 255, 0.75); }
.section--ink .service-card__num,
.section--ink .service-card__icon { color: var(--cyan); }
.section--ink .service-card:hover { border-color: rgba(0, 229, 255, 0.45); box-shadow: 0 30px 60px -24px rgba(0, 229, 255, 0.3); }

/* ============================================================
   SERVICES PAGE — elevated numbered rows
   ============================================================ */
.service-row__num {
  -webkit-text-stroke: 0;
  color: transparent;
  background: linear-gradient(120deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}
.service-row ul li {
  background: rgba(0, 151, 178, 0.06);
  border: 1px solid rgba(0, 151, 178, 0.14);
  border-radius: 12px;
  padding: 10px 16px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--e);
}
.service-row ul li:hover { border-color: rgba(0, 229, 255, 0.5); background: rgba(0, 229, 255, 0.08); transform: translateX(4px); }
[dir="rtl"] .service-row ul li:hover { transform: translateX(-4px); }
.service-row ul li::before { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.service-row .media-frame { overflow: hidden; }
.service-row .media-frame img { transition: transform 0.9s var(--ease-luxe, cubic-bezier(0.65, 0, 0.15, 1)); }
.service-row .media-frame:hover img { transform: scale(1.05); }
html[data-theme="dark"] .service-row ul li { background: rgba(0, 229, 255, 0.05); border-color: rgba(0, 229, 255, 0.16); }

/* ============================================================
   DARK MODE — cyan surfaces keep dark ink text
   (--ink flips to near-white in dark theme, which broke every
   cyan-background element that used it for text)
   ============================================================ */
html[data-theme="dark"] .btn--gold { --btn-fg: #04222b; }
html[data-theme="dark"] .lang-switch:hover,
html[data-theme="dark"] .header.is-open .lang-switch:hover { color: #04222b; }
html[data-theme="dark"] .lightbox__close:hover { color: #04222b; }
html[data-theme="dark"] .cursor-ring.is-view { color: #04222b; }
html[data-theme="dark"] ::selection { color: #04222b; }
html[data-theme="dark"] .hero__email .email-go { color: #04222b; }
/* dark mode: every ground is dark — the white lockup stays white everywhere */
html[data-theme="dark"] .logo__img { filter: none; }

/* ============================================================
   PAGE TRANSITIONS V2 — ink + teal chase sweep with MS mark
   Exit: teal sheet rises, deep-ink sheet with a cyan leading
   hairline chases it, the MS mark fades up in the centre.
   Enter: the ink sheet (with teal/cyan trailing bands) slides
   away upward while the mark fades out.
   ============================================================ */

/* ---- enter (overrides main.css .page-enter) ---- */
.page-enter {
  background: linear-gradient(180deg,
    #04222b 0%, #04222b 84%,
    var(--teal-deep) 84%, var(--teal) calc(100% - 3px),
    var(--cyan) calc(100% - 3px));
  transform-origin: top;
  animation: pt-enter-out 0.85s var(--ease-luxe) 0.32s forwards;
  will-change: transform;
}
.page-enter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/ms-logo-provided.png") center / clamp(84px, 11vw, 140px) no-repeat;
  animation: pt-logo-out 0.4s ease 0.12s forwards;
}
@keyframes pt-enter-out { to { transform: translateY(-101%); } }
@keyframes pt-logo-out { to { opacity: 0; transform: translateY(-16px) scale(0.88); } }

/* ---- preloader unified with the transition (direct loads only;
        internal navigations remove it — see initPreloader).
        Sits BELOW the enter veil so the two can never stack. ---- */
.preloader {
  z-index: 1800;
  background: #04222b;
}
.preloader__mark {
  font-size: 0;
  color: transparent;
  width: clamp(84px, 11vw, 140px);
  aspect-ratio: 1;
  background: url("../img/ms-logo-provided.png") center / contain no-repeat;
}
.preloader__mark::after { display: none; }

/* ---- exit (overlay built by main.js) ---- */
.pt-veil { position: fixed; inset: 0; z-index: 1900; pointer-events: none; }
.pt-veil__teal,
.pt-veil__ink {
  position: absolute;
  inset: 0;
  transform: translateY(102%);
  will-change: transform;
}
.pt-veil__teal {
  background: var(--teal);
  animation: pt-up 0.5s var(--ease-luxe) forwards;
}
.pt-veil__ink {
  background: linear-gradient(180deg, var(--cyan) 0 3px, rgba(0, 151, 178, 0.9) 3px 6px, #04222b 6px);
  animation: pt-up 0.55s var(--ease-luxe) 0.1s forwards;
}
.pt-veil__logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  animation: pt-logo-in 0.4s var(--ease-out, ease) 0.32s forwards;
}
.pt-veil__logo img { width: clamp(84px, 11vw, 140px); height: auto; }
@keyframes pt-up { to { transform: translateY(0); } }
@keyframes pt-logo-in {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   BRAND ANIMATION — the animated MS logo (glowing line-draw on a
   dark-teal ground). mix-blend-mode: screen drops the teal on
   dark sections so the mark glows. Used in the CTA band + footer.
   Reduced motion: JS pauses each clip on a drawn frame.
   ============================================================ */
/* Show the clip natively on a dark-teal card that matches its own
   background — the mark reads exactly as authored, no washout, no seam.
   (No alpha video available, so the teal ground stays as an intentional card.) */
.brand-anim {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  background: #014f65;            /* match the clip's own teal so the circle reads seamless */
  border-radius: 50%;
}
.brand-anim video { display: block; width: 100%; height: 100%; object-fit: contain; }

/* CTA band — logo reveal above the heading */
.cta-band__brand {
  position: relative;
  z-index: 2;
  width: min(230px, 60vw);
  aspect-ratio: 1;
  margin: 0 auto clamp(14px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 26px 60px -28px rgba(0, 15, 20, 0.8);
}

/* Footer — animated brand watermark (replaces the static "MS") */
.footer__watermark.brand-anim {
  width: clamp(140px, 18vw, 210px);
  height: auto;
  aspect-ratio: 1;
  bottom: 8%;
  inset-inline-end: 4%;
  -webkit-text-stroke: 0;
  box-shadow: 0 26px 60px -30px rgba(0, 15, 20, 0.7);
}

/* ============================================================
   FEED — scroll-driven state (mark 9)
   Pinned section: platform switches with scroll progress.
   ============================================================ */
/* progress rail showing position through the three platforms */
.fc-progress {
  position: absolute;
  z-index: 22;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
[dir="rtl"] .fc-progress { transform: translateX(50%); }
.fc-progress i {
  display: block;
  width: 38px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.5s var(--fc-e, ease), width 0.5s var(--fc-e, ease);
}
.feed--carousel[data-active="instagram"] .fc-progress i:nth-child(1),
.feed--carousel[data-active="x"] .fc-progress i:nth-child(2),
.feed--carousel[data-active="tiktok"] .fc-progress i:nth-child(3) {
  background: var(--cyan, #00e5ff);
  width: 62px;
}
.fc-progress span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-inline-start: 6px;
}
@media (max-width: 700px) { .fc-progress { bottom: 16px; } .fc-progress span { display: none; } }

/* particles: comment/repost glyphs render a touch smaller than hearts */
.fc-part { font-variant-emoji: text; }

/* ============================================================
   COLORED CLIENT LOGOS (mark 9) — full-color brand marks.
   Exempt from the grayscale hover filter and from every
   dark-mode filter so brand colors stay true in both themes.
   ============================================================ */
.clients-track img,
.logo-wall img {
  filter: none;
  opacity: 1;
  mix-blend-mode: multiply;      /* light mode: hides white plates on cream */
}
.clients-track img:hover,
.logo-wall > div:hover img {
  filter: none;
  transform: scale(1.06);
}
.clients-track img { height: 58px; }

/* longer track — keep the glide stately */
.clients-track { animation-duration: 58s; }

/* dark mode: no color surgery — white chip keeps every mark legible */
html[data-theme="dark"] .clients-track img,
html[data-theme="dark"] .logo-wall img {
  filter: none;
  mix-blend-mode: normal;
  background: #fff;
  padding: 9px 14px;
  border-radius: 12px;
  box-shadow: 0 6px 22px -10px rgba(0, 0, 0, 0.55);
}
html[data-theme="dark"] .clients-track img:hover,
html[data-theme="dark"] .logo-wall > div:hover img {
  filter: none;
}
html[data-theme="dark"] .clients-track img { height: 64px; }
