/* ========================================================================== 
   AKMS CINEMATIC HERO — Four-scene executive presentation
   ========================================================================== */

.cinematic-hero {
  position: relative;
  background: #061225;
  color: #fff;
  isolation: isolate;
}

.cinema-stage {
  --cinema-x: 0;
  --cinema-y: 0;
  position: relative;
  display: block;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  background: #061225;
  perspective: none;
  outline: none;
}

.cinema-stage:focus-visible {
  box-shadow: inset 0 0 0 3px #38bdf8;
}

.cinema-ambient {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  background:
    radial-gradient(circle at 12% 24%, rgba(56, 189, 248, .2), transparent 27%),
    radial-gradient(circle at 86% 62%, rgba(29, 78, 216, .24), transparent 31%);
  filter: blur(24px);
  animation: cinemaAmbient 12s ease-in-out infinite alternate;
}

.cinema-slide {
  position: relative;
  flex: 0 0 25%;
  width: 25%;
  height: 100%;
  z-index: 1;
  display: grid;
  pointer-events: none;
}

.cinema-slide.is-active {
  z-index: 2;
  pointer-events: auto;
}

.cinema-track {
  position: static;
  z-index: 1;
  width: 400%;
  height: clamp(650px, 72vw, 790px);
  display: flex;
  direction: ltr;
  margin-left: calc(var(--cinema-index, 0) * -100%);
  transition: margin-left .92s cubic-bezier(.2,.72,.2,1);
}

.cinema-media,
.cinema-shade {
  position: absolute;
  inset: 0;
}

.cinema-media {
  overflow: hidden;
  background: #07162b;
}

.cinema-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(.98) contrast(1.03);
  transform: translate3d(calc(var(--cinema-x) * 10px), calc(var(--cinema-y) * 7px), 0) scale(1.055);
  will-change: transform;
}

.cinema-slide.is-active .cinema-media img {
  animation: cinemaFilmMotion 9.5s ease-out both;
}

.cinema-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 11, 25, .97) 0%, rgba(5, 18, 39, .89) 31%, rgba(5, 17, 37, .38) 57%, rgba(4, 12, 27, .12) 100%),
    linear-gradient(0deg, rgba(2, 9, 21, .8) 0%, transparent 38%, rgba(2, 9, 21, .16) 100%);
}

.cinema-tone-leadership .cinema-media img { object-position: 58% center; }
.cinema-tone-tax .cinema-media img,
.cinema-tone-erp .cinema-media img,
.cinema-tone-advisory .cinema-media img { object-position: 58% center; }

.cinema-slide-layout {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
  align-items: center;
  gap: 2.75rem;
  padding-top: 3rem;
  padding-bottom: 8.7rem;
  transform-style: preserve-3d;
}

.cinema-copy {
  max-width: 720px;
  color: #fff;
  transform: translate(calc(var(--cinema-x) * -5px), calc(var(--cinema-y) * -4px));
  transition: transform .25s ease-out;
}

.cinema-kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.25rem;
  padding: .48rem .82rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(7, 24, 50, .5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #dbeafe;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.cinema-live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 5px rgba(52,211,153,.14), 0 0 15px rgba(52,211,153,.9);
  animation: cinemaLive 1.8s ease-in-out infinite;
}

.cinema-copy h1,
.cinema-copy h2 {
  max-width: 750px;
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: clamp(2.75rem, 5.2vw, 5.15rem);
  font-weight: 900;
  line-height: .99;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 12px 38px rgba(0,0,0,.26);
}

.cinema-copy h2 {
  font-size: clamp(2.65rem, 4.9vw, 4.85rem);
}

.cinema-lead {
  max-width: 660px;
  margin: 0 0 1.55rem;
  color: #dbe7f7;
  font-size: clamp(1rem, 1.35vw, 1.17rem);
  line-height: 1.72;
  text-shadow: 0 4px 20px rgba(0,0,0,.22);
}

.cinema-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.65rem;
}

.cinema-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .38rem .72rem;
  border: 1px solid rgba(147,197,253,.28);
  border-radius: 999px;
  background: rgba(8, 27, 55, .58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #edf6ff;
  font-size: .78rem;
  font-weight: 750;
}

.cinema-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.cinema-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .76rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 850;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.cinema-btn:hover {
  transform: translateY(-3px);
}

.cinema-btn-primary {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #fff;
  box-shadow: 0 12px 32px rgba(2,132,199,.3);
}

.cinema-btn-primary:hover {
  color: #fff;
  box-shadow: 0 16px 38px rgba(2,132,199,.42);
}

.cinema-btn-ghost {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  color: #fff;
  backdrop-filter: blur(12px);
}

.cinema-btn-ghost:hover {
  border-color: rgba(255,255,255,.56);
  background: rgba(255,255,255,.14);
  color: #fff;
}

.cinema-credential-card,
.cinema-metric-stack,
.cinema-advisory-card,
.cinema-orbit {
  justify-self: end;
  align-self: end;
  margin-bottom: 1.75rem;
  transform: perspective(900px) translate(calc(var(--cinema-x) * 16px), calc(var(--cinema-y) * 12px)) rotateY(calc(var(--cinema-x) * -2deg)) rotateX(calc(var(--cinema-y) * 2deg));
  transition: transform .25s ease-out;
}

.cinema-credential-card {
  width: min(100%, 330px);
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(5,20,44,.74), rgba(14,42,73,.4));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.18);
}

.cinema-card-overline {
  display: block;
  margin-bottom: .35rem;
  color: #7dd3fc;
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cinema-credential-card strong {
  display: block;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.3;
}

.cinema-credential-card small {
  display: block;
  margin-top: .32rem;
  color: #cbd5e1;
  font-size: .76rem;
  line-height: 1.5;
}

.cinema-metric-stack {
  width: 238px;
  display: grid;
  gap: .7rem;
}

.cinema-metric-stack > div {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: .75rem;
  padding: .72rem .9rem;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 14px;
  background: rgba(5,20,44,.64);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 35px rgba(0,0,0,.18);
}

.cinema-metric-stack strong {
  color: #7dd3fc;
  font-size: 1.06rem;
}

.cinema-metric-stack span {
  color: #eef7ff;
  font-size: .72rem;
  font-weight: 700;
}

.cinema-orbit {
  position: relative;
  width: 235px;
  height: 235px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.16), rgba(37,99,235,.05) 52%, transparent 53%);
}

.cinema-orbit-ring {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(125,211,252,.5);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(14deg);
  box-shadow: 0 0 30px rgba(14,165,233,.2);
}

.cinema-orbit-ring::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  top: 46%;
  left: -6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 16px #38bdf8;
}

.cinema-orbit-ring.ring-one { animation: cinemaOrbit 8s linear infinite; }
.cinema-orbit-ring.ring-two { inset: 42px; transform: rotateX(72deg) rotateZ(-28deg); animation: cinemaOrbitReverse 6s linear infinite; }

.cinema-orbit-core {
  position: absolute;
  inset: 68px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  background: rgba(5,22,50,.77);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 45px rgba(37,99,235,.32), inset 0 1px rgba(255,255,255,.25);
}

.cinema-orbit-core span { color: #fff; font-size: 1.35rem; font-weight: 900; }
.cinema-orbit-core small { color: #7dd3fc; font-size: .65rem; font-weight: 800; }

.cinema-advisory-card {
  width: 245px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .2rem .7rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 18px;
  background: rgba(5,20,44,.68);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 55px rgba(0,0,0,.24);
}

.cinema-advisory-card span {
  color: #fbbf24;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.cinema-advisory-card strong {
  padding: .46rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-size: .88rem;
}

.cinema-advisory-card strong:last-child { border-bottom: 0; }

.cinema-controls {
  position: absolute;
  left: 50%;
  bottom: 1.45rem;
  z-index: 7;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem;
  width: 100%;
  transform: translateX(-50%);
}

.cinema-nav-actions {
  display: flex;
  gap: .45rem;
}

.cinema-arrow,
.cinema-pause {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 11px;
  background: rgba(4,17,39,.58);
  backdrop-filter: blur(12px);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.cinema-arrow:hover,
.cinema-pause:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.58);
  background: rgba(29,78,216,.72);
}

.cinema-pause .play-icon { display: none; font-size: .68rem; }
.cinema-stage.is-paused .cinema-pause .pause-icon { display: none; }
.cinema-stage.is-paused .cinema-pause .play-icon { display: inline; }

.cinema-dots {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  align-items: end;
  gap: .55rem;
}

.cinema-dot {
  position: relative;
  min-width: 0;
  padding: .45rem .25rem .7rem;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.58);
  text-align: left;
  cursor: pointer;
}

.cinema-dot span {
  display: inline-block;
  margin-right: .35rem;
  color: #7dd3fc;
  font-size: .68rem;
  font-weight: 900;
}

.cinema-dot small {
  font-size: .7rem;
  font-weight: 750;
}

.cinema-dot i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,.24);
}

.cinema-dot i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #38bdf8, #2563eb);
  transform: translateX(-101%);
}

.cinema-dot.is-active { color: #fff; }
.cinema-dot.is-active i::after { animation: cinemaProgress 7.5s linear forwards; }
.cinema-stage.is-paused .cinema-dot.is-active i::after { animation-play-state: paused; }

.cinema-counter {
  display: flex;
  align-items: baseline;
  gap: .24rem;
  padding-bottom: .35rem;
  color: rgba(255,255,255,.62);
  font-size: .73rem;
  font-weight: 800;
}

.cinema-counter strong {
  color: #fff;
  font-size: 1.15rem;
}

.cinema-trust-rail {
  position: relative;
  z-index: 4;
  border-top: 1px solid rgba(148,163,184,.14);
  border-bottom: 1px solid #dbe6f4;
  background: #fff;
  color: #0f172a;
}

.cinema-trust-grid {
  min-height: 68px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.cinema-trust-grid > span {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .58rem;
  padding: .55rem 1rem;
  border-right: 1px solid #e2e8f0;
  color: #23344c;
  font-size: .76rem;
  font-weight: 800;
  text-align: center;
}

.cinema-trust-grid > span:last-child { border-right: 0; }
.cinema-trust-grid b { color: #1d4ed8; font-size: 1rem; }

html[lang="ar"] .cinema-copy {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .cinema-copy h1,
html[lang="ar"] .cinema-copy h2,
html[lang="ar"] .cinema-lead {
  text-align: right;
}

html[lang="ar"] .cinema-actions,
html[lang="ar"] .cinema-pills { justify-content: flex-start; }
html[lang="ar"] .cinema-dot { text-align: right; }
html[lang="ar"] .cinema-dot span { margin-right: 0; margin-left: .35rem; }

@keyframes cinemaFilmMotion {
  0% { transform: translate3d(calc(var(--cinema-x) * 10px), calc(var(--cinema-y) * 7px), 0) scale(1.055); }
  100% { transform: translate3d(calc(var(--cinema-x) * 10px - 14px), calc(var(--cinema-y) * 7px - 5px), 0) scale(1.105); }
}

@keyframes cinemaAmbient {
  to { transform: translate3d(4%, -2%, 0) scale(1.08); }
}

@keyframes cinemaProgress { to { transform: translateX(0); } }
@keyframes cinemaLive { 50% { opacity: .5; transform: scale(.82); } }
@keyframes cinemaOrbit { to { transform: rotateX(68deg) rotateZ(374deg); } }
@keyframes cinemaOrbitReverse { to { transform: rotateX(72deg) rotateZ(-388deg); } }

@media (max-width: 1100px) {
  .cinema-track { height: 700px; }
  .cinema-slide-layout { grid-template-columns: minmax(0, 1fr) 240px; }
  .cinema-copy h1, .cinema-copy h2 { font-size: clamp(2.55rem, 5.1vw, 4.1rem); }
  .cinema-credential-card, .cinema-metric-stack, .cinema-advisory-card, .cinema-orbit { opacity: .9; transform: scale(.88); transform-origin: bottom right; }
}

@media (max-width: 768px) {
  .top-ticker-bar {
    padding: .38rem .55rem !important;
  }

  .top-locations-wrap {
    display: none !important;
  }

  .top-ticker-inner,
  .ticker-alert {
    width: 100%;
    min-height: 30px;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .45rem !important;
  }

  .ticker-vat-text {
    max-width: 178px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: .65rem !important;
  }

  .countdown-boxes-wrap { flex-shrink: 0; }

  .masterclass-banner {
    padding: .42rem .55rem !important;
  }

  .masterclass-banner-inner {
    min-height: 54px;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: .55rem !important;
    text-align: left !important;
  }

  .masterclass-banner-text {
    min-width: 0;
    display: block !important;
    text-align: left !important;
    line-height: 1.25;
  }

  .masterclass-tag {
    display: inline-flex;
    margin: 0 .3rem .15rem 0;
    padding: .18rem .42rem;
    font-size: .58rem;
  }

  .masterclass-banner-text > span:last-child {
    display: inline;
    font-size: .64rem !important;
    line-height: 1.3;
  }

  .masterclass-banner .btn {
    width: auto !important;
    max-width: 102px !important;
    flex: 0 0 102px;
    margin: 0 !important;
    padding: .42rem .48rem !important;
    font-size: .62rem !important;
    line-height: 1.25;
  }

  .site-header { height: 64px !important; }

  .cinema-stage {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .cinema-track { height: 800px; }

  .cinema-slide-layout {
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 13.5rem;
    padding-bottom: 9.8rem;
  }

  .cinema-media img {
    object-position: 66% center;
    transform: scale(1.04);
  }

  .cinema-tone-tax .cinema-media img,
  .cinema-tone-erp .cinema-media img { object-position: 67% center; }
  .cinema-tone-advisory .cinema-media img { object-position: 64% center; }

  .cinema-shade {
    background:
      linear-gradient(0deg, rgba(2,9,21,.99) 0%, rgba(3,13,29,.96) 41%, rgba(3,13,29,.42) 68%, rgba(2,9,21,.16) 100%),
      linear-gradient(90deg, rgba(2,9,21,.42), transparent 75%);
  }

  .cinema-copy {
    max-width: 100%;
    transform: none;
  }

  .cinema-kicker {
    margin-bottom: .8rem;
    padding: .38rem .62rem;
    font-size: .63rem;
    letter-spacing: .075em;
  }

  .cinema-copy h1,
  .cinema-copy h2 {
    max-width: 100%;
    margin-bottom: .78rem;
    font-size: clamp(2rem, 9.4vw, 3rem);
    line-height: 1.04;
    letter-spacing: -.045em;
  }

  .cinema-lead {
    margin-bottom: .9rem;
    font-size: .86rem;
    line-height: 1.55;
  }

  .cinema-pills {
    gap: .36rem;
    margin-bottom: 1rem;
  }

  .cinema-pills span {
    min-height: 29px;
    padding: .26rem .52rem;
    font-size: .65rem;
  }

  .cinema-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
  }

  .cinema-btn {
    width: 100%;
    min-height: 44px;
    padding: .6rem .65rem;
    font-size: .72rem;
    line-height: 1.25;
    text-align: center;
  }

  .cinema-credential-card,
  .cinema-metric-stack,
  .cinema-advisory-card,
  .cinema-orbit { display: none; }

  .cinema-controls {
    bottom: 1rem;
    grid-template-columns: 1fr auto;
    gap: .7rem;
    align-items: center;
  }

  .cinema-nav-actions { order: 2; justify-content: flex-end; }
  .cinema-arrow, .cinema-pause { width: 38px; height: 38px; border-radius: 10px; }
  .cinema-counter { display: none; }

  .cinema-dots {
    grid-template-columns: repeat(4, 1fr);
    gap: .35rem;
  }

  .cinema-dot {
    padding: .25rem .1rem .62rem;
    text-align: center;
  }

  .cinema-dot span { margin: 0; font-size: .66rem; }
  .cinema-dot small { display: none; }

  .cinema-trust-grid {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
  }

  .cinema-trust-grid > span {
    min-height: 54px;
    padding: .48rem .55rem;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    font-size: .64rem;
    line-height: 1.3;
  }

  .cinema-trust-grid > span:nth-child(2n) { border-right: 0; }
  .cinema-trust-grid > span:nth-child(n+3) { border-bottom: 0; }

  body.cinema-hero-visible .floating-call-hub-left,
  body.cinema-hero-visible .floating-action-hub {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(14px) scale(.9) !important;
  }
}

@media (max-width: 420px) {
  .cinema-track { height: 790px; }
  .cinema-slide-layout { padding-top: 12rem; padding-bottom: 9.25rem; }
  .cinema-copy h1, .cinema-copy h2 { font-size: 1.93rem; }
  .cinema-lead { font-size: .81rem; }
  .cinema-actions { grid-template-columns: 1fr; }
  .cinema-btn { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .cinema-ambient,
  .cinema-live-dot,
  .cinema-slide.is-active .cinema-media img,
  .cinema-orbit-ring,
  .cinema-dot.is-active i::after {
    animation: none !important;
  }

  .cinema-slide,
  .cinema-track,
  .cinema-media img,
  .cinema-copy,
  .cinema-credential-card,
  .cinema-metric-stack,
  .cinema-advisory-card,
  .cinema-orbit {
    transition: none !important;
    transform: none !important;
  }
}
