/* ==========================================================================
   Get Into Gulf motion layer (motion branch)
   Loaded after main.css on every page. Uses the tokens from tokens.css.

   Rules of the road:
   - Only transform and opacity animate. Nothing here changes layout.
   - "html.mo" is set in the <head> when the visitor has not asked for
     reduced motion. Every hidden-until-animated state is scoped to .mo, so
     with reduced motion (or no JavaScript) all content is simply visible.
   - Desktop scroll scenes (pinning and scrubbing) live in scenes.js and
     only run on wide screens with a mouse or trackpad.

   01 Page transitions + smooth scroll
   02 Reveal, hover lift, arrow nudge
   04 Cinematic hero
   05 Globe section
   06 Presentation decks
   07 Capability marquee
   10 Floating WhatsApp pulse
   11 Parts stage
   12 Container interior
   13 Electronics rail
   14 Marketplace dashboard
   15 Responsive + reduced motion
   ========================================================================== */

/* 01 Page transitions + smooth scroll ------------------------------------ */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--ease); }
/* The header and the floating button stay put between pages */
.site-header { view-transition-name: site-header; }
.wa-float { view-transition-name: wa-float; }
/* Fallback fade for browsers without cross-page view transitions */
html.is-leaving body { opacity: 0; transition: opacity .16s ease-out; }


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

/* 02 Reveal, hover lift, arrow nudge ------------------------------------- */
.mo .rv { opacity: 0; transform: translate3d(0, 28px, 0); }
.mo .rv.rv-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--rv, 0) * 80ms);
}

.btn-arrow, .text-link .i, .act-go { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.text-link:hover .i { transform: translateX(3px); }

@media (hover: hover) {
  .mo .part, .mo .incl li, .mo .team-card, .mo .cond, .mo .contact-list a {
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .2s;
  }
  .mo .part:hover, .mo .incl li:hover, .mo .team-card:hover, .mo .cond:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
  }
  .mo .part:hover { box-shadow: var(--shadow-lg); }
  .mo .part .ph img { transition: transform .8s var(--ease); }
  .mo .part:hover .ph img { transform: scale(1.04); }
  .mo .btn { transition: transform .25s var(--ease), background .15s, border-color .15s, color .15s, box-shadow .25s; }
  .mo .btn-primary:hover, .mo .btn-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(19, 63, 81, .22); }
}

/* 04 Cinematic hero ------------------------------------------------------
   Exactly one screen below the header, content centred over the video. */
.hero-cine {
  display: flex;
  align-items: center;
  height: calc(100svh - var(--header-h));
  min-height: 460px;
  background: var(--teal-950);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-poster, .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.hero-video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-video.is-playing { opacity: 1; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 75% at 50% 50%, rgba(19, 63, 81, .78) 0%, rgba(19, 63, 81, .58) 55%, rgba(19, 63, 81, .38) 100%),
    linear-gradient(0deg, rgba(19, 63, 81, .55) 0%, rgba(19, 63, 81, 0) 35%);
}
.hero-cine::after { z-index: 1; }
.hero-cine-inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(24px, 5svh, 56px) clamp(48px, 8svh, 80px); }
.hero-copy { max-width: 900px; margin-inline: auto; text-align: center; }
.hero-cine h1 {
  font-size: clamp(1.9rem, 1rem + 2.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  max-width: 22ch;
  margin: var(--s-4) auto 0;
  text-wrap: balance;
}
.hero-cine .hero-sub { color: #E4EEF0; max-width: 640px; margin: var(--s-4) auto 0; text-wrap: balance; }
.hero-cine .hero-actions { justify-content: center; margin-top: var(--s-5); }
.hero-cine .hero-points { justify-content: center; margin: var(--s-5) auto 0; padding-top: var(--s-4); max-width: 640px; color: #E4EEF0; }
@media (max-height: 760px) and (min-width: 768px) {
  .hero-cine .hero-points { display: none; }
  .hero-cine .hero-sub { margin-top: var(--s-3); }
}

/* Headline line by line (lines are wrapped by motion.js) */
[data-lines] .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
[data-lines] .ln > span { display: block; }
.mo [data-lines]:not(.is-split) { opacity: 0; animation: show-anyway 0s 1.6s forwards; }
.mo [data-lines] .ln > span { transform: translate3d(0, 108%, 0); animation: line-up .95s var(--ease) forwards; animation-delay: calc(var(--ln) * 110ms + 120ms); }
@keyframes line-up { to { transform: none; } }
@keyframes show-anyway { to { opacity: 1; } }

.mo .hero-copy > .eyebrow,
.mo .hero-copy > .hero-sub,
.mo .hero-copy > .hero-actions,
.mo .hero-copy > .hero-points { animation: fade-in-up .9s var(--ease) both; }
.mo .hero-copy > .eyebrow { animation-delay: .05s; }
.mo .hero-copy > .hero-sub { animation-delay: .55s; }
.mo .hero-copy > .hero-actions { animation-delay: .7s; }
.mo .hero-copy > .hero-points { animation-delay: .85s; }
@keyframes poster-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes fade-in-up { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }

/* 05 Globe section ------------------------------------------------------- */
.globe-sec {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(800px 560px at 70% 50%, rgba(31, 140, 158, .34), transparent 65%),
    linear-gradient(180deg, var(--teal-950), var(--teal-900));
  padding-block: var(--s-9);
}
.globe-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: var(--s-7);
  align-items: center;
}
.globe-copy h2 { font-size: var(--fs-2xl); color: #fff; margin-top: var(--s-2); }
.globe-copy p { color: var(--on-dark-2); margin-top: var(--s-4); max-width: 440px; }
.globe-sec .eyebrow { color: var(--gold-400); }
.globe-sec .globe-wrap { will-change: transform; }

/* 06 Presentation decks (countries, sub-page steps) ---------------------
   One screen tall: the active photo fills the section, copy on the left,
   three cards fully visible on the right (the rest wait off to the side). */
.deck {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: calc(100svh - var(--header-h));
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  color: #fff;
  background: var(--teal-900);
  isolation: isolate;
}
.deck-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.deck-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  visibility: hidden;
  will-change: clip-path;
}
.deck-layer.is-on { visibility: visible; }
.deck-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(19, 63, 81, .9) 0%, rgba(19, 63, 81, .68) 36%, rgba(19, 63, 81, .15) 68%, rgba(19, 63, 81, .1) 100%),
    linear-gradient(0deg, rgba(19, 63, 81, .85) 0%, rgba(19, 63, 81, 0) 46%);
}
.deck-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  gap: var(--s-7);
  align-items: end;
  padding-block: var(--s-8) 104px; /* clear of the floating WhatsApp button */
}
.deck-eyebrow { font-size: var(--fs-xs); color: var(--gold-400); }
.deck-slides { display: grid; margin-top: var(--s-4); }
.deck-slide { grid-area: 1 / 1; min-width: 0; }
.deck-slide:not(.is-on) { visibility: hidden; opacity: 0; pointer-events: none; }
.mo .deck-slide { transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .45s; }
.mo .deck-slide.is-on { transition: opacity .55s var(--ease), transform .65s var(--ease), visibility 0s; }
.mo .deck-slide:not(.is-on) { transform: translate3d(0, 18px, 0); }
.mo .deck-slide.is-out { visibility: visible; opacity: 0; transform: translate3d(0, -16px, 0); }
.deck-kicker { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 700; color: var(--on-dark-2); }
.deck-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); }
.deck-count { margin-left: var(--s-2); color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.deck-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-top: var(--s-3);
  text-wrap: balance;
}
.deck-text { max-width: 440px; margin-top: var(--s-3); color: #E4EEF0; font-size: var(--fs-md); }
.deck-actions { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-6); }
.deck-nav, .stage-nav, .rail-nav { display: flex; gap: var(--s-2); }
.deck-nav button, .stage-nav button, .rail-nav button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  transition: background .15s, transform .2s var(--ease);
}
.deck-nav button:hover, .stage-nav button:hover { background: rgba(255, 255, 255, .14); }
.deck-nav .i, .stage-nav .i, .rail-nav .i { width: 20px; height: 20px; }

.deck-rail { min-width: 0; }
.deck-cards {
  display: flex;
  gap: 16px;
  overflow: hidden;
  padding: 14px 0 18px;
  margin-top: -14px;
}
.deck-li { flex: 0 0 calc((100% - 32px) / 3); min-width: 0; }
.deck-li[hidden] { display: none; }
.deck-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: #fff;
  text-align: left;
  background: var(--teal-800);
  box-shadow: 0 16px 36px rgba(19, 63, 81, .45);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .3s;
}
.deck-card-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .8s var(--ease); }
.deck-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(19, 63, 81, .92) 0%, rgba(19, 63, 81, .05) 62%); }
.deck-card-txt { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.deck-card-num { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; color: var(--c); }
.deck-card-name { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-md); line-height: 1.2; }
.deck-card-sub { font-size: var(--fs-xs); color: var(--on-dark-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) {
  .deck-card:hover { transform: translate3d(0, -8px, 0); box-shadow: 0 0 0 2px var(--c), 0 20px 40px rgba(19, 63, 81, .5); }
  .deck-card:hover .deck-card-img { transform: scale(1.06); }
}
.deck-foot { display: flex; align-items: center; gap: var(--s-4); }
.deck-progress { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.deck-progress span { display: block; height: 100%; background: var(--gold-400); transform-origin: 0 50%; transform: scaleX(0); }
.deck-progress.run span { animation: deck-prog var(--dur, 5s) linear forwards; }
@keyframes deck-prog { to { transform: scaleX(1); } }
.deck .credit-link { margin-top: 0; color: var(--on-dark-2); }
.deck-wrap { margin-top: var(--s-9); }

/* 07 Capability marquee (small, light) -------------------------------- */
.marquee-band {
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: 14px;
  color: var(--text-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee { display: flex; width: max-content; }
.mo .marquee { animation: marquee 70s linear infinite; }
.marquee:hover, .marquee.is-paused { animation-play-state: paused; }
.marquee-track { display: flex; flex: none; gap: var(--s-6); padding-right: var(--s-6); list-style: none; }
.marquee-track li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  white-space: nowrap;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .01em;
}
.marquee-track .i { width: 18px; height: 18px; color: var(--brand); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* 10 Floating WhatsApp pulse (once per page load) ----------------------- */
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--wa-600);
  opacity: 0;
  pointer-events: none;
}
.mo .wa-float::after { animation: wa-ring 1.5s .9s var(--ease) 1; }
@keyframes wa-ring {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* 11 Parts stage --------------------------------------------------------- */
.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-7);
  border-radius: var(--r-xl);
  color: #fff;
  background:
    radial-gradient(60% 75% at 68% 50%, #1F6880 0%, rgba(11, 70, 80, .5) 45%, transparent 75%),
    linear-gradient(160deg, var(--teal-900), var(--teal-950) 60%);
  box-shadow: var(--shadow-lg);
}
/* A fixed diagonal light line across the stage */
.stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 58%;
  top: -40%;
  width: 2px;
  height: 180%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .75) 45%, rgba(242, 211, 148, .6) 55%, transparent);
  box-shadow: 0 0 22px 3px rgba(143, 211, 218, .35);
  transform: rotate(32deg);
  pointer-events: none;
}
.stage-copy { position: relative; z-index: 2; container-type: inline-size; }
.stage-copy .eyebrow { color: var(--gold-400); }
.stage-head {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: min(4.2rem, 12.5cqw);
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-top: var(--s-3);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.stage-line { margin-top: var(--s-3); color: #D5E2E2; transition: opacity .25s var(--ease); }
.stage-copy.is-swapping .stage-head { opacity: 0; transform: translate3d(-10px, 0, 0); }
.stage-copy.is-swapping .stage-line { opacity: 0; }
.stage-hint { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--on-dark-3); }
.stage-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.stage-tab {
  min-height: 44px;
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .24);
  color: var(--on-dark-2);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: background .2s, color .2s, border-color .2s;
}
.stage-tab:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.stage-tab[aria-selected="true"] { background: #fff; color: var(--teal-950); border-color: #fff; }
.stage-nav { align-items: center; margin-top: var(--s-4); }
.stage-nav .btn { margin-left: var(--s-2); }

.stage-view { position: relative; z-index: 1; aspect-ratio: 4 / 3; }
.stage-scene { position: absolute; inset: 0; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.stage-scene[hidden] { display: none; }
.stage-scene.is-leaving { opacity: 0; transform: scale(.96); }
.stage-scene.is-entering { opacity: 0; transform: scale(1.04); }
.stage-fig { position: relative; width: 100%; height: 100%; }
.stage-fig picture { display: block; width: 100%; height: 100%; }
.stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 50% 50%, #000 38%, rgba(0, 0, 0, .55) 62%, transparent 82%);
  mask-image: radial-gradient(ellipse 58% 62% at 50% 50%, #000 38%, rgba(0, 0, 0, .55) 62%, transparent 82%);
  filter: saturate(.9) contrast(1.08) brightness(.95);
}
.stage-streak {
  position: absolute;
  z-index: 2;
  inset: -10% -30%;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .26) 48%, rgba(242, 211, 148, .22) 51%, transparent 58%);
  opacity: 0;
  transform: translate3d(-55%, 0, 0);
}
.stage-streak.run { animation: streak 1.5s var(--ease); }
@keyframes streak {
  0% { opacity: 0; transform: translate3d(-55%, 0, 0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(55%, 0, 0); }
}

.hs {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-right: 6px;
  color: #fff;
  transform: translate(-22px, -50%);
}
.hs-dot {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
}
.hs-dot::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-400);
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  transition: transform .25s var(--ease);
}
.hs-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid var(--gold-400);
  opacity: 0;
}
.mo .hs-dot::after { animation: hs-ping 2.6s var(--ease) infinite; animation-delay: calc(var(--d, 0) * .4s); }
@keyframes hs-ping { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.4); } }
.hs-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(19, 63, 81, .78);
  border: 1px solid rgba(255, 255, 255, .16);
}
.hs:hover .hs-dot::before, .hs[aria-expanded="true"] .hs-dot::before { transform: scale(1.2); }
.hs[aria-expanded="true"] .hs-label { background: var(--gold-400); color: var(--teal-950); border-color: var(--gold-400); }
.hs-card {
  --tx: -16px;
  --ty: 30px;
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 4;
  width: 250px;
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  transform: translate3d(var(--tx), var(--ty), 0);
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.hs-card.hs-left { --tx: calc(-100% + 16px); }
.hs-card.hs-up { --ty: calc(-100% - 30px); }
.hs-card[hidden] { display: none; }
.hs-card.is-pre { opacity: 0; transform: translate3d(var(--tx), calc(var(--ty) + 8px), 0); }
.hs-card b { display: block; font-family: var(--font-head); font-weight: 600; }
.hs-card p { font-size: var(--fs-sm); color: var(--text-2); margin: var(--s-1) 0 var(--s-2); }
.hs-card .text-link { font-size: var(--fs-sm); }

/* 12 Container interior -------------------------------------------------- */
.cv {
  position: relative;
  overflow: hidden;
  margin-top: var(--s-9);
  color: #fff;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(31, 140, 158, .3), transparent 70%),
    var(--teal-950);
}
.cv-stick {
  position: relative;
  height: 100svh;
  min-height: 560px;
  max-height: 980px;
  display: grid;
  place-items: center;
}
.cv-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 900px;
  perspective-origin: 50% 45%;
}
.cv-box {
  --W: min(900px, 88vw);
  --H: min(460px, 52svh);
  --D: 2600px;
  --cam: 1000px;
  position: absolute;
  left: 50%;
  top: 46%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, var(--cam));
  will-change: transform;
}
.cv-face, .cv-rib, .cv-crate { position: absolute; left: 0; top: 0; }
.cv-face {
  border: 1px solid rgba(143, 211, 218, .55);
  background-image:
    linear-gradient(rgba(143, 211, 218, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 211, 218, .22) 1px, transparent 1px);
  background-size: 100px 100px;
}
.cv-floor, .cv-ceil { width: var(--W); height: var(--D); margin: calc(var(--D) / -2) 0 0 calc(var(--W) / -2); }
.cv-floor { transform: translate3d(0, calc(var(--H) / 2), calc(var(--D) / -2)) rotateX(90deg); background-color: rgba(31, 140, 158, .06); }
.cv-ceil { transform: translate3d(0, calc(var(--H) / -2), calc(var(--D) / -2)) rotateX(90deg); }
.cv-left, .cv-right {
  width: var(--D);
  height: var(--H);
  margin: calc(var(--H) / -2) 0 0 calc(var(--D) / -2);
  background-image: repeating-linear-gradient(90deg, rgba(143, 211, 218, .2) 0 1px, transparent 1px 26px);
  background-size: auto;
}
.cv-left { transform: translate3d(calc(var(--W) / -2), 0, calc(var(--D) / -2)) rotateY(90deg); }
.cv-right { transform: translate3d(calc(var(--W) / 2), 0, calc(var(--D) / -2)) rotateY(90deg); }
.cv-back {
  width: var(--W);
  height: var(--H);
  margin: calc(var(--H) / -2) 0 0 calc(var(--W) / -2);
  transform: translate3d(0, 0, calc(var(--D) * -1));
  background-color: rgba(31, 140, 158, .08);
  box-shadow: 0 0 80px rgba(143, 211, 218, .25);
}
.cv-rib {
  width: var(--W);
  height: var(--H);
  margin: calc(var(--H) / -2) 0 0 calc(var(--W) / -2);
  border: 2px solid rgba(143, 211, 218, .6);
  border-radius: 6px;
  transform: translate3d(0, 0, calc(var(--D) / -6 * var(--k)));
}
.cv-crate {
  width: 160px;
  height: 110px;
  margin: -55px 0 0 -80px;
  border: 1.5px solid rgba(238, 198, 118, .9);
  border-radius: 3px;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), rgba(238, 198, 118, .45) 50%, transparent calc(50% + 1px)),
    linear-gradient(to top left, transparent calc(50% - 1px), rgba(238, 198, 118, .45) 50%, transparent calc(50% + 1px)),
    rgba(238, 198, 118, .06);
  transform: translate3d(calc(var(--side) * (var(--W) / 2 - 120px)), calc(var(--H) / 2 - 56px), calc(var(--D) / -6 * var(--k)));
}
.cv-tag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(19, 63, 81, .9);
  border: 1px solid rgba(143, 211, 218, .6);
  color: #fff;
}
.cv-copy { position: relative; z-index: 2; text-align: center; max-width: 760px; }
.cv-copy h2 { font-size: clamp(2rem, 1rem + 3.4vw, 3.75rem); line-height: 1.05; margin-top: var(--s-3); color: #fff; text-shadow: 0 4px 30px rgba(19, 63, 81, .8); }
.cv-copy p { margin: var(--s-4) auto 0; max-width: 520px; color: #D5E2E2; font-size: var(--fs-md); }
.cv-copy .eyebrow { color: var(--gold-400); }

/* 13 Electronics rail ---------------------------------------------------- */
.rail-pills { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.rail-pill {
  min-height: 44px;
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text-2);
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.rail-pill:hover { border-color: var(--brand); color: var(--brand); }
.rail-pill[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.rail { position: relative; }
.rail-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, #D9E3E4 0%, #9DB3B6 55%, #7E979A 100%);
  box-shadow: 0 3px 6px rgba(19, 63, 81, .18);
  z-index: 0;
}
.rail-items {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  list-style: none;
  padding: 22px 2px var(--s-6);
}
.rail-items::-webkit-scrollbar { display: none; }
.rail-item {
  position: relative;
  flex: 0 0 auto;
  width: 210px;
  padding-top: 40px;
  scroll-snap-align: start;
  transform-origin: 50% 0;
  transition: transform .55s var(--ease), opacity .3s var(--ease);
}
.rail-item[hidden] { display: none; }
.rail-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 42px;
  margin-left: -7px;
  border: 2px solid #7E979A;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.rail-card {
  position: relative;
  height: 100%;
  padding: var(--s-5) var(--s-4) var(--s-4);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .45s var(--ease);
}
.rail-art {
  display: block;
  width: 92px;
  height: 92px;
  margin: 0 auto var(--s-4);
  fill: none;
  stroke: var(--teal-700);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rail-card h3 { font-size: var(--fs-base); padding-right: 40px; }
.rail-card p { font-size: var(--fs-sm); color: var(--text-3); margin-top: 2px; padding-right: 40px; }
.rail-go {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  transition: background .2s, color .2s;
}
.rail-go .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.rail-go:hover { background: var(--brand); color: #fff; }
.rail-go:hover .i { transform: translateX(2px); }
@media (hover: hover) {
  .rail-item:hover { transform: translate3d(0, -10px, 0) rotate(-2.5deg); }
  .rail-item:nth-child(even):hover { transform: translate3d(0, -10px, 0) rotate(2.5deg); }
  .rail-item:hover .rail-card { box-shadow: var(--shadow-lg); }
}
.rail-item.is-out { opacity: 0; transform: translate3d(0, -14px, 0) scale(.96); }
.rail-item.is-pre { opacity: 0; transform: translate3d(0, 18px, 0); }
.rail-nav { justify-content: flex-end; margin-top: calc(var(--s-4) * -1); }
.rail-nav button { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.rail-nav button:hover { border-color: var(--brand); color: var(--brand); }
.rail-nav button:disabled { opacity: .4; cursor: default; }

/* 14 Marketplace dashboard ----------------------------------------------- */
.mdash {
  padding: var(--s-5);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--teal-900), var(--teal-950));
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mdash-top { display: flex; align-items: center; gap: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line-dark); }
.mdash-dots { display: flex; gap: 6px; }
.mdash-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.mdash-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.mdash .dash-tag { margin-left: auto; }
.mdash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-4) 0; }
.mdash-kpi { padding: var(--s-4); border-radius: var(--r-md); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); }
.mdash-kpi span { display: block; font-size: var(--fs-xs); color: var(--on-dark-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.mdash-kpi b { display: block; margin-top: var(--s-1); font-family: var(--font-head); font-weight: 600; font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-variant-numeric: tabular-nums; }
.mdash-ok { color: #6EE7A8; }
.mdash-body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--s-4); }
.mdash-list { border-radius: var(--r-md); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-dark); padding: var(--s-2); }
.mdash-row {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, .6fr) minmax(0, .7fr);
  gap: var(--s-3);
  align-items: center;
  padding: 10px 12px;
  font-size: var(--fs-sm);
}
.mdash-row + .mdash-row { border-top: 1px solid var(--line-dark); }
.mdash-th { font-size: var(--fs-xs); color: var(--on-dark-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.mdash-item { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.mdash-item .act-ic { width: 34px; height: 34px; flex: none; background: rgba(143, 211, 218, .14); color: var(--teal-300); }
.mdash-item .act-ic .i { width: 18px; height: 18px; }
.mdash-num { font-variant-numeric: tabular-nums; color: var(--on-dark-2); }
.mdash-live { display: inline-flex; align-items: center; gap: 6px; color: #6EE7A8; font-weight: 700; font-size: var(--fs-xs); }
.mdash-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mdash-chart { display: flex; flex-direction: column; padding: var(--s-4); border-radius: var(--r-md); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-dark); }
.mdash-chart-label { font-size: var(--fs-xs); color: var(--on-dark-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.mdash-bars { flex: 1; display: flex; align-items: flex-end; gap: 8px; min-height: 180px; margin-top: var(--s-4); }
.mdash-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.mdash-bar i { display: block; width: 100%; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--teal-300), var(--teal-500)); transform-origin: 50% 100%; }
.mdash-bar:last-child i { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); }
.mdash-bar small { font-size: 11px; color: var(--on-dark-3); }
.mo .mdash:not(.in) .mdash-row:not(.mdash-th),
.mo .mdash:not(.in) .mdash-kpi { opacity: 0; transform: translate3d(-14px, 0, 0); }
.mo .mdash:not(.in) .mdash-bar i { transform: scaleY(0); }
.mo .mdash .mdash-row, .mo .mdash .mdash-kpi { transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 350ms); }
.mo .mdash .mdash-kpi { transition-delay: calc(var(--i, 0) * 90ms); }
.mo .mdash .mdash-bar i { transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms + 700ms); }
.mdash-row.is-new { animation: row-flash 1.2s var(--ease); }
@keyframes row-flash { 0% { background: rgba(238, 198, 118, .22); } 100% { background: transparent; } }

/* Credits */
.credit-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-1); font-size: var(--fs-xs); color: var(--on-dark-3); text-decoration: underline; text-underline-offset: 3px; }
.credit-link:hover { color: #fff; }
.credit-link-light { color: var(--text-3); }
.credit-link-light:hover { color: var(--brand); }
.credits-list { display: grid; gap: var(--s-3); max-width: 860px; }
.credits-list li { display: grid; gap: 2px; padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: var(--fs-sm); color: var(--text-2); }
.credits-list b { color: var(--text); }
.credits-list a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* 15 Responsive + reduced motion ----------------------------------------- */
@media (max-width: 1100px) {
  .deck-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: var(--s-6); }
}
@media (max-width: 960px) {
  .globe-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .globe-copy { text-align: left; }
  .stage { grid-template-columns: 1fr; padding: var(--s-6); }
  .stage::before { left: 72%; }
  .mdash-body { grid-template-columns: 1fr; }
  .mdash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Decks stack: copy on top, cards below, still one screen where possible */
  .deck { height: auto; min-height: calc(100svh - var(--header-h)); max-height: none; }
  .deck-inner { grid-template-columns: 1fr; gap: var(--s-5); padding-block: var(--s-8) var(--s-6); align-self: flex-end; }
  .deck-bg::after {
    background: linear-gradient(180deg, rgba(19, 63, 81, .35) 0%, rgba(19, 63, 81, .7) 40%, rgba(19, 63, 81, .92) 100%);
  }
  .deck-rail { max-width: 520px; }
}
@media (max-width: 767px) {
  .hero-cine { height: calc(100svh - var(--header-h)); min-height: 440px; }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(19, 63, 81, .5) 0%, rgba(19, 63, 81, .72) 45%, rgba(19, 63, 81, .88) 100%);
  }
  .hero-cine-inner { padding-block: var(--s-5); }
  .mo .hero-poster { animation: poster-zoom 24s ease-in-out infinite alternate; }
  .hero-cine .hero-points { display: none; }
  .globe-sec { padding-block: var(--s-8); }
  .deck { min-height: calc(100svh - var(--header-h)); }
  .deck-inner { padding-block: var(--s-7) var(--s-5); }
  .deck-title { font-size: clamp(1.75rem, 1.2rem + 3vw, 2.4rem); }
  .deck-text { font-size: var(--fs-base); }
  .deck-actions { margin-top: var(--s-5); gap: var(--s-3); }
  .deck-li { flex-basis: calc((100% - 24px) / 2.4); }
  .deck-cards { gap: 12px; }
  .deck-card-txt { left: 10px; right: 10px; bottom: 10px; }
  .deck-card-name { font-size: var(--fs-sm); }
  .deck-card-sub { display: none; }
  .deck-wrap { margin-top: var(--s-8); }
  .stage { padding: var(--s-5); gap: var(--s-5); border-radius: var(--r-lg); }
  .stage-view { margin-inline: calc(var(--s-5) * -1); }
  .hs-label { display: none; }
  .hs-card, .hs-card.hs-left, .hs-card.hs-up {
    left: var(--s-3);
    right: var(--s-3);
    top: auto;
    bottom: var(--s-3);
    width: auto;
    --tx: 0px;
    --ty: 0px;
  }
  .cv { margin-top: var(--s-8); }
  .cv-stick { height: 78svh; min-height: 480px; }
  .cv-box { --cam: 1300px; --H: min(360px, 44svh); }
  .cv-tag { display: none; }
  .rail-item { width: 176px; }
  .rail-art { width: 76px; height: 76px; }
  .rail-nav { display: none; }
  .mdash { padding: var(--s-4); }
  .mdash-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .mdash-row > :nth-child(2) { display: none; }
  .mdash-top .mdash-pills { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .marquee { width: auto; flex-wrap: wrap; justify-content: center; animation: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-6); padding: 0 var(--gutter); }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-band { -webkit-mask-image: none; mask-image: none; }
  .hero-video { display: none; }
  .deck-progress { display: none; }
}
