/* ═══════════════════════════════════════════════════════════
   CINEMATIC LAYER — noww.in inspired
   Fixed scroll indicator · Numbered section nav · Parallax
   hero · Section background numbers · Social side rail
   Applied to all NowWiN pages via cinematic.js injection
════════════════════════════════════════════════════════════ */

/* ─── LEFT: ANIMATED SCROLL INDICATOR ──────────────────── */
.cin-scroll {
  position: fixed;
  left: 1.75rem;
  bottom: 3.25rem;
  z-index: 450;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  transition: opacity .6s var(--ease-out);
  pointer-events: none;
}
.cin-scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(11,29,58,.1);
  overflow: hidden;
  border-radius: 1px;
}
.cin-scroll-fill {
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform-origin: top;
  animation: cinScrollPulse 1.9s cubic-bezier(0.76,0,0.24,1) infinite;
}
@keyframes cinScrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  44%  { transform: scaleY(1); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: bottom; }
  94%  { transform: scaleY(0); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: top; }
}
.cin-scroll-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(11,29,58,.28);
  transition: color .4s;
}
/* Dark-section variant */
.cin-scroll.on-dark .cin-scroll-line  { background: rgba(255,255,255,.12); }
.cin-scroll.on-dark .cin-scroll-fill  { background: var(--orange); }
.cin-scroll.on-dark .cin-scroll-label { color: rgba(255,255,255,.3); }

/* ─── LEFT MID: PAGE CATEGORY TAGS ─────────────────────── */
.cin-tags {
  position: fixed;
  left: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 450;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  pointer-events: none;
}
.cin-tags span {
  writing-mode: vertical-rl;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(11,29,58,.18);
  padding: .35rem .15rem;
  border-left: 1.5px solid rgba(11,29,58,.08);
  transition: color .4s, border-color .4s;
}
.cin-tags.on-dark span {
  color: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.1);
}

/* ─── RIGHT: SECTION NUMBER NAV ─────────────────────────── */
.cin-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 450;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-items: flex-end;
}
.cin-nav-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  cursor: none;
}
.cin-nav-num {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(11,29,58,.2);
  line-height: 1;
  transition: color .35s var(--ease-out);
  font-family: var(--font-sans);
}
.cin-nav-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: rgba(11,29,58,.12);
  transition: width .35s var(--ease-out), background .35s var(--ease-out);
}
.cin-nav-link.active .cin-nav-num {
  color: var(--navy);
}
.cin-nav-link.active .cin-nav-bar {
  width: 30px;
  background: var(--orange);
}
.cin-nav-link:hover .cin-nav-num { color: rgba(11,29,58,.55); }
.cin-nav-link:hover .cin-nav-bar  { background: rgba(11,29,58,.3); width: 24px; }

/* Dark-section variant */
.cin-nav.on-dark .cin-nav-num              { color: rgba(255,255,255,.2); }
.cin-nav.on-dark .cin-nav-bar              { background: rgba(255,255,255,.12); }
.cin-nav.on-dark .cin-nav-link.active .cin-nav-num { color: var(--white); }
.cin-nav.on-dark .cin-nav-link.active .cin-nav-bar { background: var(--orange); }
.cin-nav.on-dark .cin-nav-link:hover .cin-nav-num  { color: rgba(255,255,255,.6); }
.cin-nav.on-dark .cin-nav-link:hover .cin-nav-bar  { background: rgba(255,255,255,.35); }

/* ─── RIGHT BOTTOM: SOCIAL SIDE RAIL ────────────────────── */
.cin-social {
  position: fixed;
  right: 2rem;
  bottom: 3.25rem;
  z-index: 450;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .65rem;
  pointer-events: auto;
}
.cin-social-label {
  writing-mode: vertical-rl;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(11,29,58,.22);
  transition: color .4s;
}
.cin-social-links {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  align-items: flex-end;
}
.cin-social-links a {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(11,29,58,.22);
  text-decoration: none;
  transition: color .3s;
  cursor: none;
}
.cin-social-links a:hover { color: var(--orange); }
.cin-social.on-dark .cin-social-label,
.cin-social.on-dark .cin-social-links a { color: rgba(255,255,255,.22); }
.cin-social.on-dark .cin-social-links a:hover { color: var(--orange); }

/* ─── SECTION BACKGROUND NUMBERS ────────────────────────── */
.cin-bg-num {
  position: absolute;
  top: 0;
  left: 3rem;
  font-family: var(--font-serif);
  font-size: clamp(7rem, 18vw, 18rem);
  line-height: 1;
  letter-spacing: -.06em;
  font-weight: 700;
  color: rgba(11,29,58,.035);
  user-select: none;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}
/* Sections already have position:relative in most cases; add it when needed */
[data-cin-num] { position: relative; overflow: hidden; }

/* On dark sections the bg number should be lighter */
[data-cin-theme="dark"] .cin-bg-num {
  color: rgba(255,255,255,.04);
}

/* ─── HERO PARALLAX CONTAINER ────────────────────────────── */
.cin-parallax-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.cin-parallax-bg {
  position: absolute;
  inset: -10%;
  will-change: transform;
  transition: transform .08s linear;
}

/* ─── CINEMATIC HERO OVERLAY (page heroes) ───────────────── */
.cin-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
/* Index hero gets a bottom-fade so content reads cleanly */
.hero .cin-hero-overlay {
  /*background: linear-gradient(*/
  /*  to bottom,*/
  /*  transparent 14%,*/
  /*  rgba(11,29,58,.55) 100%*/
  /*);*/
  background: linear-gradient(to bottom, transparent 14%, rgb(11 29 58 / 20%) 100%);
}

.hero .cin-hero-overlay {
    display: none;
}
/* Navy page heroes get a subtle radial glow */
.page-hero--navy .cin-hero-overlay {
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(240,122,26,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(14,165,233,.08) 0%, transparent 60%);
}

/* ─── SECTION ENTRANCE REFINEMENT ────────────────────────── */
/* Large statement text that reveals on scroll */
.cin-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 3.25rem);
  font-style: italic;
  letter-spacing: -.03em;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 1rem;
}
.cin-statement::before {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  background: var(--orange);
  margin-bottom: 2rem;
}

/* ─── STORY-SECTION SIDE NUMBERS ─────────────────────────── */
/* Big ghost number behind story sticky panels */
.sp-big-num {
  font-size: clamp(8rem, 20vw, 16rem) !important;
  opacity: .05 !important;
  pointer-events: none;
}

/* ─── FLOATING HERO SHAPES (navy page heroes) ───────────── */
.cin-hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.cin-hero-shape--1 {
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  background: radial-gradient(circle, rgba(240,122,26,.14) 0%, transparent 70%);
  top: -15%;
  right: -5%;
  animation: cinFloat1 8s ease-in-out infinite;
}
.cin-hero-shape--2 {
  width: clamp(200px, 35vw, 400px);
  height: clamp(200px, 35vw, 400px);
  background: radial-gradient(circle, rgba(14,165,233,.1) 0%, transparent 70%);
  bottom: -10%;
  left: 5%;
  animation: cinFloat2 10s ease-in-out infinite;
}
@keyframes cinFloat1 {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-24px) scale(1.04); }
}
@keyframes cinFloat2 {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(18px) scale(0.97); }
}

/* ─── HIDE SIDE UI ON MOBILE / TABLET ────────────────────── */
@media (max-width: 1100px) {
  .cin-scroll,
  .cin-tags,
  .cin-nav,
  .cin-social { display: none !important; }
}
