/* ═══════════════════════════════════════════════════════════════════════════
   NABAÏ CAFARUN — REFINED v2
   Awwwards × Apple polish : container, player Apple-widget, about, footer.
   Loaded AFTER style.css, overrides by cascade order.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Apple-grade easing curves */
  --ease-out-quart:  cubic-bezier(0.25, 1, 0.30, 1);
  --ease-out-expo:   cubic-bezier(0.16, 1, 0.30, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-apple:      cubic-bezier(0.42, 0, 0.13, 1);

  /* Refined surface tokens */
  --blur-lg:         saturate(180%) blur(28px);
  --blur-xl:         saturate(200%) blur(40px);
  --shadow-widget:   0 10px 40px -10px rgba(0,0,0,.6), 0 2px 10px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.08) inset;
  --shadow-hover:    0 20px 60px -10px rgba(0,0,0,.7), 0 4px 20px rgba(211,84,0,.25), 0 0 0 1px rgba(255,255,255,.12) inset;
}

/* ══════════════════════════════════════════════════════════════════════
   LAYOUT TOKENS — Architecture directive
   px-6 (24px) mobile · px-24 (96px) desktop · gap-8 (32px) elements
   gap-16 (64px) ↔ gap-24 (96px) between sections
   ══════════════════════════════════════════════════════════════════════ */
:root {
  --site-width:   1280px;
  --site-pad-x:   clamp(24px, 6vw, 96px);   /* safe horizontal — never touches edge */
  --section-py:   clamp(32px, 4.5vw, 48px); /* vertical breath per section (−50%) */
  --elem-gap:     clamp(32px, 4vw, 48px);   /* gap between stacked elements in a section */
}

/* Convenience alias kept for components that reference --site-pad */
:root { --site-pad: var(--site-pad-x); }

/* Outer container (footer, fixed widgets) */
.nabai-container {
  max-width: var(--site-width);
  margin-inline: auto;
  padding-inline: var(--site-pad-x);
}

/* ── Sections = full viewport width so backgrounds extend edge-to-edge ── */
#nabai-main.nabai-container { padding-inline: 0; }
#nabai-main.nabai-container > section {
  width: 100%;
  max-width: 100%;
  padding-inline: 0; /* content centering lives in .section-inner below */
}

/* ── .section-inner = THE single centered content container ─────────── */
/* Overrides style.css { max-width:1200px; padding:120px 7vw } */
.section-inner {
  max-width: var(--site-width) !important;
  margin-inline: auto !important;
  padding-inline: var(--site-pad-x) !important;
  padding-block: var(--section-py) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: var(--elem-gap) !important;
}

/* ── Sections WITHOUT .section-inner (hero) — direct safe padding */
#nabai-hero {
  max-width: var(--site-width);
  margin-inline: auto;
  padding-inline: var(--site-pad-x);
  padding-block: var(--section-py);
  box-sizing: border-box;
}

/* ── Section header blocks: center the main axis ────────────────────── */
/* The first .reveal in each section-inner contains eyebrow + title + lead */
.section-inner > .reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  text-align: center;
  width: 100%;
}
.section-inner > .reveal .eyebrow { justify-content: center; }
.section-inner > .reveal .s-div   { margin-inline: auto; }
.section-inner > .reveal .sec-lead {
  max-width: 64ch;
  margin-inline: auto;
}

/* ── tl-head inside tracklist follows same pattern ───────────────────── */
.tl-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(14px, 2vw, 24px);
}
.tl-head .eyebrow { justify-content: center; }
.tl-head .s-div   { margin-inline: auto; }

/* Hide decorative divider lines before section titles in dark mode */
html[data-theme="dark"] .s-div { display: none !important; }

/* Show orange divider in light mode */
html[data-theme="light"] .s-div {
  display: block !important;
  background: var(--orange) !important;
  width: 40px;
  height: 2px;
  margin: 20px 0;
  border-radius: 2px;
}

/* Nav active + hover — orange in dark mode too */
.nav-links a:hover,
.nav-links a.active { color: var(--orange, #D35400) !important; }

/* Voices names — flex-wrap so names don't split mid-word */
.voices-names {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  row-gap: 6px;
}
.voices-names span[style] { flex-shrink: 0; }

/* Smooth scroll — Apple-like */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Kill horizontal overflow caused by halos */
body { overflow-x: clip; }

/* ─── REFINED REVEAL ANIMATIONS (mask lines, slide-up) ────────────────── */
.reveal {
  transition: opacity .9s var(--ease-out-expo), transform .9s var(--ease-out-expo);
  transform: translateY(18px);
}
.reveal.visible { transform: translateY(0); opacity: 1; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* Mask-reveal: for about title lines */
.reveal-mask {
  display: block;
  overflow: hidden;
  line-height: 1.05;
}
.reveal-mask > span {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition:
    transform 1s var(--ease-out-expo),
    opacity   .7s var(--ease-out-expo);
}
.reveal-mask.visible > span,
#nabai-about.is-in .reveal-mask > span {
  transform: translateY(0);
  opacity: 1;
}
.about-title .reveal-mask:nth-child(1) > span { transition-delay: .05s; }
.about-title .reveal-mask:nth-child(2) > span { transition-delay: .18s; }
.about-title .reveal-mask:nth-child(3) > span { transition-delay: .32s; }

/* ═════════════════════════════════════════════════════════════════════════
   1. SECTION ABOUT — Awwwards editorial
   ═════════════════════════════════════════════════════════════════════════ */
#nabai-about {
  /* padding-block handled by .section-inner > --section-py */
  position: relative;
}
/* .about-inner centering comes from .section-inner (layout tokens) */
.about-inner { position: relative; }

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--mid, rgba(255,255,255,.55));
  margin-bottom: clamp(32px, 5vw, 56px);
}
.about-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange, #D35400);
  box-shadow: 0 0 12px var(--orange-glow, rgba(211,84,0,.5));
  animation: nabai-pulse 2s var(--ease-out-expo) infinite;
}
@keyframes nabai-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.4); opacity: .6; }
}

.about-title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-weight: 300;
  font-size: clamp(32px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 clamp(40px, 6vw, 80px);
  color: var(--hi, rgba(255,255,255,.95));
  text-align: center;
}
.about-title em {
  font-style: italic;
  color: var(--orange, #D35400);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  margin-bottom: clamp(48px, 7vw, 80px);
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.about-lede {
  font-family: var(--font-display, serif);
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--hi, rgba(255,255,255,.9));
  margin: 0;
}
.about-body {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-weight: 300;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.65;
  color: var(--mid, rgba(255,255,255,.62));
  margin: 0 0 40px;
  max-width: 48ch;
}

.about-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-k {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lo, rgba(255,255,255,.35));
}
.meta-v {
  font-family: var(--font-display, serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  color: var(--hi, rgba(255,255,255,.9));
  letter-spacing: -.01em;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px 18px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  color: var(--hi);
  font-family: var(--font-body, sans-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  transition: all .5s var(--ease-out-expo);
  cursor: pointer;
}
.about-cta:hover {
  background: var(--orange, #D35400);
  border-color: var(--orange, #D35400);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -10px rgba(211,84,0,.5);
}
.about-cta svg {
  transition: transform .5s var(--ease-spring);
}
.about-cta:hover svg {
  transform: translateX(3px);
}

.about-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.about-ctas .btn-glass {
  padding: 18px 32px;
  font-size: 14px;
  font-weight: 500;
}
.about-ctas .btn-glass svg { width: 12px; height: 12px; }
.about-cta:hover svg { transform: translateY(3px); }

/* ═════════════════════════════════════════════════════════════════════════
   2. AUDIO PLAYER — Apple-widget style, sticky bottom-center
   ═════════════════════════════════════════════════════════════════════════ */
#nabai-player {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 120%);
  width: min(480px, calc(100vw - 32px));
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition:
    transform .55s var(--ease-spring),
    opacity   .35s var(--ease-out-expo);
  will-change: transform, opacity;
}
#nabai-player.hidden { display: none; }
#nabai-player.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

#nabai-player .player-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 10px 10px 10px 10px;
  background: rgba(22, 22, 22, 0.72);
  backdrop-filter: var(--blur-xl);
  -webkit-backdrop-filter: var(--blur-xl);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  box-shadow: var(--shadow-widget);
}

/* Album art square */
.player-art {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(211,84,0,.3), rgba(0,0,0,.6));
}
.player-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.player-art-pulse {
  position: absolute; inset: 0;
  border-radius: 12px;
  box-shadow: 0 0 0 0 rgba(211,84,0,.0);
  pointer-events: none;
  transition: box-shadow .4s var(--ease-out-expo);
}
#nabai-player.playing .player-art-pulse {
  animation: art-pulse 2.6s var(--ease-out-expo) infinite;
}
@keyframes art-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(211,84,0,.0); }
  50%      { box-shadow: 0 0 0 4px rgba(211,84,0,.25); }
}

/* Title block */
.player-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 4px;
}
.player-info .player-name {
  font-family: var(--font-body, 'Syne', sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--hi, rgba(255,255,255,.95));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-info .player-sub {
  font-family: var(--font-body, sans-serif);
  font-size: 11px;
  font-weight: 400;
  color: var(--mid, rgba(255,255,255,.55));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Inline seek under the title */
.player-seek-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}
.player-seek-row input[type="range"]#player-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  margin: 0;
  padding: 0;
  background-image: linear-gradient(to right, var(--orange, #D35400) 0%, var(--orange, #D35400) 0%, rgba(255,255,255,.14) 0%, rgba(255,255,255,.14) 100%);
  transition: height .2s var(--ease-out-expo);
}
.player-seek-row input[type="range"]#player-seek:hover { height: 5px; }
.player-seek-row input[type="range"]#player-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange, #D35400);
  box-shadow: 0 0 0 2px rgba(211,84,0,.2);
  cursor: pointer;
  transition: transform .2s var(--ease-spring);
}
.player-seek-row input[type="range"]#player-seek:hover::-webkit-slider-thumb { transform: scale(1.3); }
.player-seek-row input[type="range"]#player-seek::-moz-range-thumb {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--orange, #D35400);
  cursor: pointer;
}
.player-times {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  letter-spacing: .05em;
  color: var(--lo, rgba(255,255,255,.4));
}

/* Controls cluster */
.player-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
#nabai-player button.player-prev,
#nabai-player button.player-next,
#nabai-player button.player-pp,
#nabai-player button.player-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--hi, rgba(255,255,255,.9));
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .3s var(--ease-out-expo);
  padding: 0;
}
#nabai-player .player-prev,
#nabai-player .player-next {
  width: 32px; height: 32px;
  border-radius: 50%;
  opacity: .7;
}
#nabai-player .player-prev:hover,
#nabai-player .player-next:hover {
  opacity: 1;
  background: rgba(255,255,255,.08);
  transform: scale(1.05);
}
#nabai-player .player-pp {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--orange, #D35400), #B8480A);
  color: #fff;
  box-shadow: 0 6px 18px -4px rgba(211,84,0,.55), 0 0 0 1px rgba(255,255,255,.08) inset;
}
#nabai-player .player-pp:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px -4px rgba(211,84,0,.75);
}
#nabai-player .player-pp:active { transform: scale(0.96); }

#nabai-player .player-close {
  width: 24px; height: 24px;
  border-radius: 50%;
  opacity: .4;
  margin-left: 2px;
}
#nabai-player .player-close:hover {
  opacity: 1;
  background: rgba(255,255,255,.1);
}

/* Mobile tweaks */
@media (max-width: 520px) {
  #nabai-player { bottom: 12px; width: calc(100vw - 16px); }
  #nabai-player .player-inner { grid-template-columns: auto 1fr auto; padding: 8px; gap: 10px; }
  #nabai-player .player-close { display: none; }
  .player-art { width: 44px; height: 44px; }
}

/* ═════════════════════════════════════════════════════════════════════════
   3. FOOTER — compact single-bar
   ═════════════════════════════════════════════════════════════════════════ */
#nabai-footer.nabai-footer {
  margin-top: clamp(56px, 8vw, 112px);
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.07);
  background: transparent;
  position: relative;
}

.nabai-footer .footer-bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 40px);
  padding-block: 16px 18px;
  flex-wrap: wrap;
}

/* Logo */
.footer-logo {
  font-family: var(--font-display, serif);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--hi, #fff);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity .3s var(--ease-out-expo);
}
.footer-logo:hover { opacity: .7; }
.footer-logo span { color: var(--orange, #D35400); }

/* Mini nav */
.footer-nav-mini {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  flex: 1;
  flex-wrap: wrap;
}
.footer-nav-mini a {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lo, rgba(255,255,255,.35));
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s var(--ease-out-expo);
}
.footer-nav-mini a:hover { color: var(--orange, #D35400); }

/* Right: live dot + clock + copy */
.footer-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.dot-live {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #1DB954;
  flex-shrink: 0;
  animation: nabai-pulse 1.8s var(--ease-out-expo) infinite;
}

.nabai-footer .footer-clock {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--orange, #D35400);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.nabai-footer .footer-copy {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--lo, rgba(255,255,255,.28));
  white-space: nowrap;
}

@media (max-width: 640px) {
  .footer-nav-mini { display: none; }
  .nabai-footer .footer-bar { justify-content: space-between; }
}

/* ═════════════════════════════════════════════════════════════════════════
   4. HERO — padding/centering now in layout-tokens block (#nabai-hero rule)
   ═════════════════════════════════════════════════════════════════════════ */

/* ═════════════════════════════════════════════════════════════════════════
   5. GLOBAL Apple × Awwwards polish
   ═════════════════════════════════════════════════════════════════════════ */

/* Links: Apple-style micro underline on hover */
a { transition: color .4s var(--ease-out-expo), opacity .3s var(--ease-out-expo); }

/* Buttons universal easing */
button, .btn-glass, .entrance-cta, .form-submit {
  transition:
    transform .5s var(--ease-out-expo),
    background .4s var(--ease-out-expo),
    border-color .4s var(--ease-out-expo),
    box-shadow .5s var(--ease-out-expo),
    color .3s var(--ease-out-expo) !important;
}
button:active, .btn-glass:active, .entrance-cta:active { transform: scale(.97); }

/* Track rows refinement */
.track-row {
  transition:
    background .4s var(--ease-out-expo),
    transform .5s var(--ease-out-expo),
    border-color .4s var(--ease-out-expo) !important;
}
.track-row:hover { transform: translateX(4px); }
.track-row.active { transform: translateX(0); }

/* Selection */
::selection { background: var(--orange, #D35400); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  transition: background .3s var(--ease-out-expo);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }

/* Noise layer — Awwwards touch (very subtle film grain) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Reduced motion override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   LIGHT MODE v2 — PURE WHITE + IVORY CARDS + BLACK TEXT + 3 ORANGES
   Principles:
   · Background = pure white (#FFFFFF). Cards = warm ivory (#F5F2EB).
     Clear contrast between surface levels.
   · Text = near-black (no gray). Secondary text = black @ 85% (still black).
   · Gray is banned. All "meta / label / eyebrow" text → ORANGE accent.
   · 3 orange shades: --orange (brand), --orange-deep (text on white),
     --orange-soft (lighter fills / hovers).
   ═════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
  /* Surfaces */
  --soot:          #FFFFFF;   /* pure white base */
  --soot-mid:      #FAF7F1;   /* subtle ivory 2nd layer */
  --soot-card:     #F5F2EB;   /* warm ivory cards — clearly distinct from bg */

  /* Text — NO GRAY. Pure / near-pure black. */
  --hi:            #0E0E0E;                  /* pure black — main text */
  --mid:           rgba(14, 14, 14, 0.86);   /* near-black — secondary */
  --lo:            rgba(14, 14, 14, 0.70);   /* still very readable */
  --dim:           rgba(14, 14, 14, 0.30);

  /* Surfaces + borders */
  --glass:         rgba(255, 255, 255, 0.78);
  --border:        rgba(14, 14, 14, 0.10);
  --border-hi:     rgba(14, 14, 14, 0.18);

  /* Orange — 3 shades (brand is signature color) */
  --orange:        #D35400;   /* brand primary */
  --orange-deep:   #A04000;   /* deeper — text on light bg, strong hover */
  --orange-soft:   #F08A3E;   /* softer — subtle fills, hover bg */
  --orange-glow:   rgba(211, 84, 0, 0.30);
  --orange-faint:  rgba(211, 84, 0, 0.08);
  --orange-border: rgba(211, 84, 0, 0.28);
}

/* Body + base */
html[data-theme="light"] body {
  background: var(--soot);
  color: var(--hi);
}

/* Halos dimmed for contrast */
html[data-theme="light"] .halo,
html[data-theme="light"] .hero-cover-glow,
html[data-theme="light"] .entrance-halo {
  opacity: .22;
  mix-blend-mode: multiply;
  filter: saturate(.75);
}

/* Film grain opposite */
html[data-theme="light"] body::before {
  opacity: .03;
  mix-blend-mode: multiply;
}

/* Custom cursor */
html[data-theme="light"] #nabai-cursor { mix-blend-mode: multiply; }

/* Selection + scrollbar */
html[data-theme="light"] ::selection { background: var(--orange); color: #fff; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(14,14,14,.18); }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ── ORANGE ACCENTS on all label/eyebrow/meta text (replaces gray) ─── */
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .about-eyebrow,
html[data-theme="light"] .meta-k,
html[data-theme="light"] .entrance-label,
html[data-theme="light"] .modal-card .eyebrow {
  color: var(--orange-deep) !important;
  font-weight: 600;
}

/* Links: black default, orange on hover */
html[data-theme="light"] a { color: var(--hi); }
html[data-theme="light"] a:hover { color: var(--orange); }
html[data-theme="light"] .nav-links a,
html[data-theme="light"] .nav-drawer a {
  color: var(--hi);
}
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a.active,
html[data-theme="light"] .nav-drawer a:hover {
  color: var(--orange);
}

/* Nav drawer background in light mode */
html[data-theme="light"] .nav-drawer {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom-color: var(--border);
}

/* ── GLASS SURFACES ON WHITE ─── */
html[data-theme="light"] .btn-glass,
html[data-theme="light"] .entrance-cta,
html[data-theme="light"] .about-cta {
  background: var(--soot-card);
  border-color: var(--border);
  color: var(--hi);
  box-shadow: 0 1px 2px rgba(14,14,14,.03), 0 0 0 1px rgba(255,255,255,.6) inset;
}
html[data-theme="light"] .btn-glass:hover,
html[data-theme="light"] .entrance-cta:hover,
html[data-theme="light"] .about-cta:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 8px 24px -6px var(--orange-glow);
}

/* Form inputs */
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  background: var(--soot-card) !important;
  border-color: var(--border) !important;
  color: var(--hi) !important;
}
html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] select:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px var(--orange-faint) !important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: var(--lo) !important; }

/* ── PLAYER WIDGET — white glass, black text, orange accents ─── */
html[data-theme="light"] #nabai-player .player-inner {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border);
  box-shadow:
    0 12px 40px -10px rgba(14,14,14,.18),
    0 2px 10px rgba(14,14,14,.06),
    0 0 0 1px #fff inset;
}
html[data-theme="light"] #nabai-player .player-name { color: var(--hi); font-weight: 700; }
html[data-theme="light"] #nabai-player .player-sub  { color: var(--orange-deep); font-weight: 500; }
html[data-theme="light"] #nabai-player .player-prev,
html[data-theme="light"] #nabai-player .player-next,
html[data-theme="light"] #nabai-player .player-close { color: var(--hi); opacity: .9; }
html[data-theme="light"] #nabai-player .player-prev:hover,
html[data-theme="light"] #nabai-player .player-next:hover,
html[data-theme="light"] #nabai-player .player-close:hover {
  background: var(--orange-faint);
  color: var(--orange-deep);
  opacity: 1;
}
html[data-theme="light"] .player-seek-row input[type="range"]#player-seek {
  background: rgba(14,14,14,.08);
}
html[data-theme="light"] .player-times {
  color: var(--orange-deep) !important;
  font-weight: 600;
}

/* ── TRACK ROWS — ivory cards, strong black text, orange numbers ─── */
html[data-theme="light"] .track-row {
  background: var(--soot-card);
  border-color: var(--border);
}
html[data-theme="light"] .track-row .t-num {
  color: var(--orange) !important;
  font-weight: 700;
}
html[data-theme="light"] .track-row .t-name { color: var(--hi) !important; }
html[data-theme="light"] .track-row .t-feat { color: var(--mid) !important; }
html[data-theme="light"] .track-row:hover {
  background: #fff;
  border-color: var(--orange-border);
  box-shadow: 0 4px 20px -6px rgba(14,14,14,.08);
}
html[data-theme="light"] .track-row.active {
  background: var(--orange-faint);
  border-color: var(--orange);
}
html[data-theme="light"] .track-row.active .t-name,
html[data-theme="light"] .track-row.active .t-num {
  color: var(--orange-deep) !important;
}

/* ── BENTO CARDS — light mode ─── */
html[data-theme="light"] .bento-card {
  background: var(--soot-card);
  border-color: var(--border);
  color: var(--hi);
}
html[data-theme="light"] .bento-card .bento-title {
  color: var(--hi);
}
html[data-theme="light"] .bento-card .bento-text {
  color: var(--mid);
}
html[data-theme="light"] .bento-card .bento-num {
  color: var(--orange) !important;
}
html[data-theme="light"] .bento-card:hover {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 12px 40px -10px rgba(211, 84, 0, 0.2);
}

/* ── ABOUT — strong contrast ─── */
html[data-theme="light"] #nabai-about .about-title { color: var(--hi); }
html[data-theme="light"] #nabai-about .about-title em { color: var(--orange); }
html[data-theme="light"] #nabai-about .about-lede { color: var(--hi); }
html[data-theme="light"] #nabai-about .about-body { color: var(--mid); }
html[data-theme="light"] #nabai-about .about-meta {
  border-top-color: var(--border);
}
html[data-theme="light"] #nabai-about .meta-v { color: var(--hi); }

/* Hero */
html[data-theme="light"] .hero-title { color: var(--hi); }
html[data-theme="light"] .hero-sub { color: var(--mid); }

/* ── FOOTER (compact) — light mode ─────────────────────────────────────── */
html[data-theme="light"] #nabai-footer.nabai-footer {
  border-top-color: var(--border);
  background: transparent;
}
html[data-theme="light"] .footer-logo { color: var(--hi); }
html[data-theme="light"] .footer-logo span { color: var(--orange); }
html[data-theme="light"] .footer-nav-mini a { color: var(--mid); }
html[data-theme="light"] .footer-nav-mini a:hover { color: var(--orange); }
html[data-theme="light"] .nabai-footer .footer-copy { color: var(--mid); }
html[data-theme="light"] .nabai-footer .footer-clock { color: var(--orange-deep); font-weight: 600; }

/* Entrance screen */
html[data-theme="light"] #nabai-entrance { background: rgba(255, 255, 255, 0.97); }
html[data-theme="light"] .entrance-title { color: var(--hi); }
html[data-theme="light"] .entrance-sub { color: var(--mid); }

/* Auto-dismiss countdown bar */
.entrance-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 100%;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  z-index: 2;
}
.entrance-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--orange, #D35400);
  animation: entrance-countdown 4s linear forwards;
}
@keyframes entrance-countdown {
  from { width: 0%; }
  to   { width: 100%; }
}
html[data-theme="light"] .entrance-progress { background: rgba(14,14,14,.06); }

/* Modal */
html[data-theme="light"] #nabai-modal-overlay { background: rgba(14, 14, 14, 0.45); }
html[data-theme="light"] .modal-card {
  background: #fff;
  box-shadow: 0 30px 80px -20px rgba(14,14,14,.3);
}
html[data-theme="light"] .modal-title { color: var(--hi); }
html[data-theme="light"] .modal-title em { color: var(--orange); }
html[data-theme="light"] .modal-sub { color: var(--mid); }
html[data-theme="light"] .form-field label { color: var(--orange-deep); font-weight: 600; }
html[data-theme="light"] .form-submit {
  background: var(--orange);
  color: #fff;
}
html[data-theme="light"] .form-submit:hover { background: var(--orange-deep); }

/* (theme toggle light-mode rules are co-located with the toggle block above) */

/* Mute button in nav */
html[data-theme="light"] #nabai-mute {
  color: var(--hi);
  border-color: var(--border-hi);
  background: var(--soot-card);
}
html[data-theme="light"] #nabai-mute .mute-dot { background: var(--orange); }

/* Navbar bg in light (if it has a background) */
html[data-theme="light"] #nabai-nav {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--border);
}

/* Nav logo */
html[data-theme="light"] .nav-logo { color: var(--hi); }
html[data-theme="light"] .nav-logo span { color: var(--orange); }

/* ═════════════════════════════════════════════════════════════════════════
   THEME TOGGLE — in-nav, square, no full-rounded
   ═════════════════════════════════════════════════════════════════════════ */
#nabai-theme-toggle {
  /* Now lives inside the nav — not fixed */
  position: static;
  width: 32px;
  height: 32px;
  border-radius: 6px;   /* square-ish, not pill */
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: var(--hi, #fff);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition:
    background .35s var(--ease-out-expo),
    border-color .35s var(--ease-out-expo),
    color .35s var(--ease-out-expo),
    transform .3s var(--ease-spring);
}
#nabai-theme-toggle:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--orange-border, rgba(211,84,0,.35));
  color: var(--orange, #D35400);
  transform: rotate(-12deg);
}
#nabai-theme-toggle:active { transform: scale(.9); }

#nabai-theme-toggle .theme-icon {
  width: 15px;
  height: 15px;
  position: absolute;
  transition: transform .5s var(--ease-out-expo), opacity .3s var(--ease-out-expo);
}
#nabai-theme-toggle .theme-icon.sun  { transform: rotate(-90deg) scale(.3); opacity: 0; }
#nabai-theme-toggle .theme-icon.moon { transform: rotate(0) scale(1);       opacity: 1; }

html[data-theme="light"] #nabai-theme-toggle .theme-icon.sun  { transform: rotate(0) scale(1);       opacity: 1; }
html[data-theme="light"] #nabai-theme-toggle .theme-icon.moon { transform: rotate(90deg) scale(.3);  opacity: 0; }

/* Light mode toggle */
html[data-theme="light"] #nabai-theme-toggle {
  border-color: rgba(14,14,14,.14);
  color: var(--orange-deep, #A04000);
}
html[data-theme="light"] #nabai-theme-toggle:hover {
  background: var(--orange-faint, rgba(211,84,0,.06));
  border-color: var(--orange-border, rgba(211,84,0,.3));
}

/* ═════════════════════════════════════════════════════════════════════════
   NAVBAR — floating pill, 75 % centré
   ═════════════════════════════════════════════════════════════════════════ */
#nabai-nav {
  top: 16px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 75%;
  max-width: 1280px;
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 8px 36px -12px rgba(0,0,0,.55),
              0 1px 0 rgba(255,255,255,.04) inset;
  padding-inline: clamp(16px, 2.5vw, 40px);
}
#nabai-nav.scrolled {
  background: rgba(8, 8, 8, 0.90) !important;
  border-color: rgba(255,255,255,.10) !important;
  box-shadow: 0 12px 44px -12px rgba(0,0,0,.65) !important;
}

/* WP admin bar compensation */
.admin-bar #nabai-nav { top: calc(32px + 16px); }
@media (max-width: 782px) { .admin-bar #nabai-nav { top: calc(46px + 12px); } }

/* Mobile: presque pleine largeur */
@media (max-width: 900px) {
  #nabai-nav {
    width: calc(100% - 24px);
    border-radius: 12px;
    top: 12px;
  }
}

/* Light mode nav pill */
html[data-theme="light"] #nabai-nav {
  background: rgba(252, 251, 248, 0.82);
  border-color: rgba(14,14,14,.08);
  box-shadow: 0 8px 36px -12px rgba(14,14,14,.12),
              0 1px 0 rgba(255,255,255,.9) inset;
}
html[data-theme="light"] #nabai-nav.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(14,14,14,.10) !important;
}

/* Nav links: no longer push right (nav-actions handles that) */
.nav-links { margin-left: 0; }

/* Hide old mute button if it ever renders */
#nabai-mute { display: none !important; }

/* ── Nav right-side actions group ───────────────────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Contribuer CTA button */
.nav-cta {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hi, #fff);
  background: var(--orange, #D35400);
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background .3s var(--ease-out-expo),
    transform .3s var(--ease-spring),
    box-shadow .3s var(--ease-out-expo);
  box-shadow: 0 2px 12px -4px rgba(211,84,0,.5);
}
.nav-cta:hover {
  background: var(--orange-deep, #A04000);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px -4px rgba(211,84,0,.65);
}
.nav-cta:active { transform: scale(.96); }

/* Light mode Contribuer */
html[data-theme="light"] .nav-cta { color: #fff; }

/* ══════════════════════════════════════════════════════════════════════
   SECTION BACKGROUNDS
   Dark mode mirrors light mode structure:
     light regular  #FFFFFF  →  dark regular  var(--soot-mid)  #141414
     light ivory    #F5F2EB  →  dark card     var(--soot-card) #181818
   ══════════════════════════════════════════════════════════════════════ */

/* Dark mode (default)
   — "bandes" sections (hero, bascule, tracklist, ecosystem, seuil) restent
     transparentes pour laisser respirer le fond global
   — about, events, resonances, contact forment les plateaux éditoriaux */
#nabai-hero,
#nabai-bascule,
#nabai-tracklist,
#nabai-ecosystem {
  background: transparent;
}
#nabai-about,
#nabai-events,
#nabai-resonances,
#nabai-contact {
  background: var(--soot-card, #181818);
}

/* Section dividers — uniquement sur les plateaux (sections avec fond) */
#nabai-about,
#nabai-events,
#nabai-resonances,
#nabai-contact {
  border-top: 1px solid rgba(255,255,255,.055);
}
/* Hairline entre sections transparentes pour garder le rythme */
#nabai-bascule,
#nabai-tracklist,
#nabai-ecosystem {
  position: relative;
}
#nabai-bascule::before,
#nabai-tracklist::before,
#nabai-ecosystem::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}

/* Light mode — exact mirror of dark structure */
html[data-theme="light"] #nabai-hero,
html[data-theme="light"] #nabai-bascule,
html[data-theme="light"] #nabai-tracklist,
html[data-theme="light"] #nabai-ecosystem,
html[data-theme="light"] #nabai-contact {
  background: #FFFFFF;
}
html[data-theme="light"] #nabai-about,
html[data-theme="light"] #nabai-events,
html[data-theme="light"] #nabai-resonances {
  background: var(--soot-card, #F5F2EB);
}

/* Light mode dividers — alignés sur les plateaux uniquement */
html[data-theme="light"] #nabai-about,
html[data-theme="light"] #nabai-events,
html[data-theme="light"] #nabai-resonances,
html[data-theme="light"] #nabai-contact {
  border-top-color: rgba(14,14,14,.07);
}
html[data-theme="light"] #nabai-bascule::before,
html[data-theme="light"] #nabai-tracklist::before,
html[data-theme="light"] #nabai-ecosystem::before {
  background: rgba(14,14,14,.10);
}

/* .section-inner is now fully defined in the LAYOUT TOKENS block above.
   padding-block, padding-inline, max-width, margin-inline, display, gap
   are all set there. No duplicate override needed. */

/* ── HERO — title matches global sec-title size ─────────────────────── */
.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem) !important;
  line-height: 1.12 !important;
}

/* ── NAV LINKS — centered in the pill ──────────────────────────────── */
.nav-links {
  flex: 1;
  justify-content: center;
  margin-left: 0;
}

/* ── Gap management — reset manual margin-tops that conflict with flex gap ── */
/* section-inner is now a flex column with gap: var(--elem-gap).
   These margins from style.css would double-space; set to 0. */
.credits-grid   { margin-top: 0 !important; }
.contact-grid   { margin-top: 0 !important; }
.about-grid     { margin-bottom: 0 !important; }  /* bottom margin also handled by gap */
.events-list    { margin-top: 0 !important; }
.map-outer      { margin-top: 0 !important; width: 100%; }
.map-stats      { margin-top: 0 !important; }
.bento-grid     { margin-top: 0 !important; }
#tl-items       { margin-top: 0 !important; }

/* ═════════════════════════════════════════════════════════════════════════
   TRACKLIST — new single-column layout + tl-now mini player
   ═════════════════════════════════════════════════════════════════════════ */

/* Override any old tl-layout grid — tracklist is flex column via section-inner */
.tl-layout { display: block !important; }

/* tl-inner IS section-inner → inherits flex column + centered from layout tokens.
   Narrower readable column for track list. */
#nabai-tracklist .tl-inner {
  max-width: min(720px, 100%) !important;
}

/* ── tl-now widget — Apple Music lock screen style ─────────────────────── */
.tl-now {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(18px, 2.8vw, 30px) clamp(20px, 3.5vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.4vw, 14px);
  max-width: 360px;
  margin: 32px auto 24px;
  background: rgba(16, 10, 6, .72);
  backdrop-filter: blur(48px) saturate(1.8);
  -webkit-backdrop-filter: blur(48px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.3),
    0 24px 64px -20px rgba(0,0,0,.8);
  transition: box-shadow .4s var(--ease-out-expo);
}
.tl-now.is-playing {
  box-shadow:
    0 0 0 1px rgba(211,84,0,.18),
    0 24px 64px -16px rgba(211,84,0,.28);
}

/* Blurred backdrop layer */
.tl-now-blur {
  position: absolute;
  inset: -30px;
  z-index: 0;
  pointer-events: none;
}
.tl-now-blur img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(50px) brightness(.28) saturate(2);
  -webkit-filter: blur(50px) brightness(.28) saturate(2);
}

/* All content above blur */
.tl-now > *:not(.tl-now-blur) {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Album artwork */
.tl-now-cover {
  width: clamp(110px, 19vw, 148px);
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  align-self: center;
  flex-shrink: 0;
  position: relative;
  box-shadow:
    0 20px 50px -12px rgba(0,0,0,.75),
    0 0 0 1px rgba(255,255,255,.07);
  transition: transform .5s var(--ease-out-expo), box-shadow .5s var(--ease-out-expo);
}
.tl-now.is-playing .tl-now-cover {
  transform: scale(1.04);
  box-shadow:
    0 28px 56px -10px rgba(0,0,0,.8),
    0 0 0 1px rgba(211,84,0,.2);
}
.tl-now-cover > img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Pulse rings */
.tl-now-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
}
.tl-now.is-playing .tl-now-rings { opacity: 1; }
.tl-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(211,84,0,.45);
  animation: tl-ring-expand 2.4s ease-out infinite;
}
.tl-ring:nth-child(1) { width: 115%; height: 115%; animation-delay: 0s; }
.tl-ring:nth-child(2) { width: 135%; height: 135%; animation-delay: .8s; }
.tl-ring:nth-child(3) { width: 155%; height: 155%; animation-delay: 1.6s; }
@keyframes tl-ring-expand {
  0%   { opacity: .7; transform: scale(.88); }
  100% { opacity: 0;  transform: scale(1.08); }
}

/* Device label */
.tl-now-device {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: .38;
  margin-top: -4px;
}
.tl-now-device-name {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.tl-now-device svg { flex-shrink: 0; color: #fff; }

/* Track meta */
.tl-now-meta { display: flex; flex-direction: column; gap: 5px; text-align: center; }
.tl-now-name {
  font-family: var(--font-display, serif);
  font-size: clamp(15px, 2vw, 21px);
  font-weight: 400;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.tl-now-feat {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange, #D35400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Visualiser bars */
.tl-now-vis {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 26px;
  opacity: 0;
  transition: opacity .5s ease;
}
.tl-now.is-playing .tl-now-vis { opacity: 1; }
.tl-vis-bar {
  width: 4px;
  border-radius: 2px;
  background: var(--orange, #D35400);
  transform-origin: bottom;
  animation: tl-bar-bounce 1.2s ease-in-out infinite;
}
.tl-vis-bar:nth-child(1) { height: 60%;  animation-delay: 0s;   animation-duration: 1.1s; }
.tl-vis-bar:nth-child(2) { height: 100%; animation-delay: .15s; animation-duration: .9s;  }
.tl-vis-bar:nth-child(3) { height: 75%;  animation-delay: .30s; animation-duration: 1.3s; }
.tl-vis-bar:nth-child(4) { height: 50%;  animation-delay: .45s; animation-duration: 1.0s; }
.tl-vis-bar:nth-child(5) { height: 85%;  animation-delay: .60s; animation-duration: .85s; }
@keyframes tl-bar-bounce {
  0%, 100% { transform: scaleY(.2); opacity: .5; }
  50%       { transform: scaleY(1);  opacity: 1;  }
}

/* Seek row */
.tl-now-seek-wrap { display: flex; flex-direction: column; gap: 7px; }
input[type="range"]#tl-now-seek {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,.16);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: background .3s;
}
input[type="range"]#tl-now-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,.4);
  transition: transform .2s var(--ease-spring);
}
input[type="range"]#tl-now-seek:hover::-webkit-slider-thumb { transform: scale(1.3); background: var(--orange, #D35400); }
.tl-now-times {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.4);
}

/* Controls */
.tl-now-ctrl-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.tl-now-skip {
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  transition: color .2s, transform .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tl-now-skip:hover { color: #fff; transform: scale(1.12); }
.tl-now-skip:active { transform: scale(.9); }
.tl-now-pp {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #1a0d06;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition:
    transform .4s var(--ease-spring),
    box-shadow .4s var(--ease-out-expo),
    background .3s;
  box-shadow: 0 6px 24px -6px rgba(0,0,0,.6);
}
.tl-now.is-playing .tl-now-pp {
  background: var(--orange, #D35400);
  color: #fff;
  box-shadow: 0 8px 28px -6px rgba(211,84,0,.7);
}
.tl-now-pp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(211,84,0,.5);
  animation: pp-pulse 2s ease-out infinite;
  opacity: 0;
}
.tl-now.is-playing .tl-now-pp::before { opacity: 1; }
@keyframes pp-pulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.8); opacity: 0; }
}
.tl-now-pp:hover { transform: scale(1.06); }
.tl-now-pp:active { transform: scale(.94); }

/* Volume row */
.tl-now-vol {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: .55;
}
.tl-now-vol svg { flex-shrink: 0; color: rgba(255,255,255,.9); }
.tl-now-vol-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,.2);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: background .3s;
}
.tl-now-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px rgba(0,0,0,.3);
  transition: transform .2s;
}
.tl-now-vol-slider:hover::-webkit-slider-thumb { transform: scale(1.25); }

/* Track rows */
#tl-items { margin-top: 8px; }
#tl-items .track-row { max-width: 100%; }

/* ── tl-now light mode */
html[data-theme="light"] .tl-now {
  background: rgba(253, 248, 242, .88);
  border: 1px solid rgba(211,84,0,.18);
  box-shadow:
    0 0 0 1px rgba(211,84,0,.08),
    0 16px 48px -16px rgba(0,0,0,.12);
}
html[data-theme="light"] .tl-now.is-playing {
  box-shadow:
    0 0 0 1px rgba(211,84,0,.25),
    0 16px 48px -12px rgba(211,84,0,.15);
}
html[data-theme="light"] .tl-now-blur img {
  filter: blur(50px) brightness(.75) saturate(1.4);
  opacity: .35;
}
html[data-theme="light"] .tl-now-name { color: #1a0d06; }
html[data-theme="light"] .tl-now-device-name { color: rgba(14,14,14,.6); }
html[data-theme="light"] .tl-now-device svg { color: rgba(14,14,14,.5); }
html[data-theme="light"] .tl-now-times { color: rgba(14,14,14,.4); }
html[data-theme="light"] .tl-now-pp {
  background: var(--orange, #D35400);
  color: #fff;
  box-shadow: 0 4px 16px -4px rgba(211,84,0,.5);
}
html[data-theme="light"] .tl-now.is-playing .tl-now-pp {
  background: var(--orange, #D35400);
  color: #fff;
  box-shadow: 0 6px 20px -4px rgba(211,84,0,.6);
}
html[data-theme="light"] .tl-now-skip { color: rgba(14,14,14,.65); }
html[data-theme="light"] .tl-now-skip:hover { color: var(--orange, #D35400); }
html[data-theme="light"] .tl-now-vol { opacity: .7; }
html[data-theme="light"] .tl-now-vol svg { color: rgba(14,14,14,.6); }
html[data-theme="light"] input[type="range"]#tl-now-seek {
  background: rgba(14,14,14,.12);
}
html[data-theme="light"] input[type="range"]#tl-now-seek::-webkit-slider-thumb {
  background: var(--orange, #D35400);
  box-shadow: 0 0 6px rgba(211,84,0,.4);
}
html[data-theme="light"] .tl-now-vol-slider { background: rgba(14,14,14,.14); }
html[data-theme="light"] .tl-now-vol-slider::-webkit-slider-thumb {
  background: var(--orange, #D35400);
}
html[data-theme="light"] .tl-now-feat { color: var(--orange, #D35400); }

/* ═════════════════════════════════════════════════════════════════════════
   EVENTS SECTION — Les Événements
   ═════════════════════════════════════════════════════════════════════════ */
#nabai-events {
  /* padding-block handled by .section-inner (--section-py) */
  position: relative;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 860px;
  margin-inline: auto; /* center the event list within section-inner */
}

/* Event row */
.event-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .35s var(--ease-out-expo);
}
.event-row:first-child { border-top: 1px solid rgba(255,255,255,.07); }

/* Status column */
.event-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
  flex-shrink: 0;
}
.event-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #1DB954;
  border: 1px solid rgba(29,185,84,.3);
  border-radius: 100px;
  padding: 3px 8px;
  width: fit-content;
}
.event-date {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--lo, rgba(255,255,255,.35));
}
.event-num {
  font-family: var(--font-mono, monospace);
  font-size: 22px;
  font-weight: 300;
  color: var(--lo, rgba(255,255,255,.25));
  letter-spacing: -.02em;
}

/* Main info column */
.event-main {
  flex: 1;
  min-width: 0;
}
.event-name {
  font-family: var(--font-display, serif);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: var(--hi, #fff);
  margin-bottom: 6px;
}
.event-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mid, rgba(255,255,255,.5));
}

/* Release progress bar */
.event-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.event-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  overflow: hidden;
  max-width: 200px;
}
.event-progress-fill {
  height: 100%;
  background: var(--orange, #D35400);
  border-radius: 3px;
  transition: width 1.2s var(--ease-out-expo);
}
.event-progress-pct {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: var(--orange, #D35400);
  letter-spacing: .06em;
}

/* Action buttons */
.event-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hi, #fff);
  background: var(--orange, #D35400);
  border: none;
  border-radius: 100px;
  padding: 10px 20px;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    transform .4s var(--ease-spring),
    background .3s var(--ease-out-expo),
    box-shadow .4s var(--ease-out-expo);
  box-shadow: 0 4px 16px -4px rgba(211,84,0,.45);
}
.event-btn:hover {
  background: var(--orange-deep, #A04000);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(211,84,0,.6);
}
.event-btn:active { transform: scale(.97); }

.event-btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: var(--mid, rgba(255,255,255,.7));
  box-shadow: none;
}
.event-btn--outline:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--orange, #D35400);
  color: var(--orange, #D35400);
  box-shadow: 0 4px 16px -4px rgba(211,84,0,.3);
}

@media (max-width: 640px) {
  .event-row { flex-wrap: wrap; gap: 12px; }
  .event-status { min-width: 80px; }
  .event-btn { padding: 8px 16px; font-size: 10px; }
}

/* Light mode events */
html[data-theme="light"] .event-row {
  border-color: var(--border);
}
html[data-theme="light"] .event-row:first-child { border-top-color: var(--border); }
html[data-theme="light"] .event-name { color: var(--hi); }
html[data-theme="light"] .event-loc { color: var(--mid); }
html[data-theme="light"] .event-num { color: rgba(14,14,14,.2); }
html[data-theme="light"] .event-date { color: var(--mid); }
html[data-theme="light"] .event-progress-bar { background: rgba(14,14,14,.1); }
html[data-theme="light"] .event-btn--outline {
  border-color: var(--border-hi);
  color: var(--hi);
}
html[data-theme="light"] .event-btn--outline:hover {
  color: var(--orange);
  border-color: var(--orange-border);
}


/* ═════════════════════════════════════════════════════════════════════════
   LIGHT MODE — supplementary rules for recently added components
   ═════════════════════════════════════════════════════════════════════════ */

/* About section CTA row */
html[data-theme="light"] .about-ctas .btn-glass {
  background: rgba(14,14,14,.04);
  border-color: rgba(14,14,14,.14);
  color: var(--hi);
}
html[data-theme="light"] .about-ctas .btn-glass:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* About body text in light mode */
html[data-theme="light"] .about-body {
  color: rgba(14,14,14,.72);
}

/* Musician dividers in light mode */
html[data-theme="light"] .nabai-divider svg {
  color: rgba(14,14,14,.18);
}
html[data-theme="light"] .nabai-divider .nabai-divider-line {
  background: rgba(14,14,14,.1);
}

/* Contribution banner in light mode */
html[data-theme="light"] .nabai-contrib-banner {
  background: var(--soot-card, #f5f2eb);
  border-color: rgba(14,14,14,.08);
}

/* Event rows in light mode (already partially done, add missing) */
html[data-theme="light"] .event-name { color: var(--hi); }
html[data-theme="light"] .event-date { color: var(--mid); }
html[data-theme="light"] .event-loc  { color: var(--mid); }

/* Nav CTA pulse ring in light mode */
html[data-theme="light"] .nav-cta::after {
  border-color: rgba(211,84,0,.4);
}

/* Column dividers in light mode */
html[data-theme="light"] .about-grid::after,
html[data-theme="light"] .contact-grid::after,
html[data-theme="light"] .ecosystem-desc-grid::after {
  background: rgba(14,14,14,.12) !important;
}

/* ═════════════════════════════════════════════════════════════════════════
   PULSE LOOPS — CTA elements
   ═════════════════════════════════════════════════════════════════════════ */

/* "Acheter l'album" button — soft glow pulse */
.about-ctas .btn-glass {
  animation: cta-glow-pulse 3s ease-in-out infinite;
}
@keyframes cta-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(211,84,0,.0); }
  50%       { box-shadow: 0 0 0 8px rgba(211,84,0,.12); }
}
.about-ctas .btn-glass:hover { animation: none; }

/* Navbar "Contribuer" button — subtle outer ring */
.nav-cta {
  position: relative;
}
.nav-cta::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 1px solid rgba(211,84,0,.35);
  animation: nav-cta-pulse 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes nav-cta-pulse {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}

/* Contrib drawer primary button — pulse on idle */
.nabai-contrib-primary:not(:disabled) {
  animation: contrib-btn-pulse 2.8s ease-in-out infinite;
}
.nabai-contrib-primary:hover:not(:disabled),
.nabai-contrib-primary:focus:not(:disabled) { animation: none; }
@keyframes contrib-btn-pulse {
  0%, 100% { box-shadow: 0 6px 22px -8px rgba(211,84,0,.5); }
  50%       { box-shadow: 0 6px 28px -4px rgba(211,84,0,.8), 0 0 0 6px rgba(211,84,0,.08); }
}

/* About eyebrow dot — already pulsing, ensure it still works */
.about-eyebrow .dot {
  animation: dot-breathe 2s ease-in-out infinite;
}
@keyframes dot-breathe {
  0%, 100% { opacity: .4; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.5); }
}

/* Smooth color swap when toggling theme */
html {
  transition: background-color .5s var(--ease-out-expo);
}
body, #nabai-player .player-inner, #nabai-footer, .modal-card,
.track-row, .btn-glass, input, textarea, select, .about-cta,
.entrance-cta, #nabai-player .player-name, #nabai-player .player-sub {
  transition: background-color .5s var(--ease-out-expo),
              color .5s var(--ease-out-expo),
              border-color .5s var(--ease-out-expo),
              box-shadow .5s var(--ease-out-expo);
}

/* #tl-items: full-height, no scroll constraint (single-column layout now) */
#tl-items {
  overflow-y: visible;
  max-height: none;
}

/* ══════════════════════════════════════════════════════════════════════
   NABAÏ DIVIDERS — musician icons between sections
   Draw-on stroke animation + alternating slide-in from left/right.
   Couleurs : currentColor → hérite du thème (ivory en dark, soot en light).
   Accent orange au survol, doux rotation + glow.
   ══════════════════════════════════════════════════════════════════════ */
.nabai-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  width: min(var(--site-width, 1280px), 92vw);
  margin: clamp(18px, 3.5vw, 44px) auto;
  padding: 0 clamp(20px, 3.5vw, 56px);
  color: var(--hi, #EAE7DE);
  opacity: 1;
  pointer-events: none;
}
.nabai-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
              transparent 0%,
              rgba(255,255,255,.12) 50%,
              transparent 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.4s cubic-bezier(.22,.61,.36,1);
}
.nabai-divider[data-dir="left"]  .nabai-divider-line--l { transform-origin: right; }
.nabai-divider[data-dir="left"]  .nabai-divider-line--r { transform-origin: left;  }
.nabai-divider[data-dir="right"] .nabai-divider-line--l { transform-origin: right; }
.nabai-divider[data-dir="right"] .nabai-divider-line--r { transform-origin: left;  }
.nabai-divider.is-visible .nabai-divider-line { transform: scaleX(1); }

.nabai-divider-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: var(--hi, #EAE7DE);
  opacity: 0;
  transform: translateX(-40px) scale(.9);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1) .15s,
              transform 1.1s cubic-bezier(.22,.61,.36,1) .1s,
              color .4s ease;
  pointer-events: auto;
}
.nabai-divider[data-dir="right"] .nabai-divider-icon-wrap {
  transform: translateX(40px) scale(.9);
}
.nabai-divider.is-visible .nabai-divider-icon-wrap {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Subtle halo behind icon */
.nabai-divider-icon-wrap::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(211,84,0,.08) 0%,
              transparent 70%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}

/* ── Draw-on stroke animation ──────────────────────────────────────── */
.nabai-musician-icon {
  display: block;
  overflow: visible;
}
.nabai-musician-icon path,
.nabai-musician-icon line,
.nabai-musician-icon rect,
.nabai-musician-icon circle,
.nabai-musician-icon ellipse {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  transition: stroke-dashoffset 1.6s cubic-bezier(.65,0,.35,1),
              stroke .4s ease,
              fill .4s ease;
}
.nabai-divider.is-visible .nabai-musician-icon path,
.nabai-divider.is-visible .nabai-musician-icon line,
.nabai-divider.is-visible .nabai-musician-icon rect,
.nabai-divider.is-visible .nabai-musician-icon circle,
.nabai-divider.is-visible .nabai-musician-icon ellipse {
  stroke-dashoffset: 0;
}
/* Fills (djembe discs, mic, etc.) fade in after the stroke has drawn */
.nabai-musician-icon [fill="currentColor"] {
  opacity: 0;
  transition: opacity .5s ease .9s;
}
.nabai-divider.is-visible .nabai-musician-icon [fill="currentColor"] {
  opacity: 1;
}

/* ── Hover (Apple-style) ──────────────────────────────────────────── */
.nabai-divider-icon-wrap:hover {
  color: var(--orange, #D35400);
  transform: translateX(0) scale(1.12) rotate(-4deg);
  transition: transform .6s cubic-bezier(.22,.61,.36,1),
              color .35s ease;
}
.nabai-divider-icon-wrap:hover::before {
  opacity: 1;
}
.nabai-divider-icon-wrap:hover .nabai-musician-icon {
  filter: drop-shadow(0 0 12px rgba(211,84,0,.45));
  transition: filter .35s ease;
}

/* ── Light-mode adjustments ──────────────────────────────────────── */
html[data-theme="light"] .nabai-divider-line {
  background: linear-gradient(90deg,
              transparent 0%,
              rgba(14,14,14,.14) 50%,
              transparent 100%);
}
html[data-theme="light"] .nabai-divider,
html[data-theme="light"] .nabai-divider-icon-wrap {
  color: var(--hi, #0E0E0E);
}
html[data-theme="light"] .nabai-divider-icon-wrap::before {
  background: radial-gradient(circle,
              rgba(211,84,0,.10) 0%,
              transparent 70%);
}
html[data-theme="light"] .nabai-divider-icon-wrap:hover .nabai-musician-icon {
  filter: drop-shadow(0 0 10px rgba(211,84,0,.35));
}

/* Reduced-motion : pas d'animation, fond visible directement */
@media (prefers-reduced-motion: reduce) {
  .nabai-divider-line { transform: scaleX(1); transition: none; }
  .nabai-divider-icon-wrap {
    opacity: 1; transform: none; transition: color .3s ease;
  }
  .nabai-musician-icon path,
  .nabai-musician-icon line,
  .nabai-musician-icon rect,
  .nabai-musician-icon circle,
  .nabai-musician-icon ellipse { stroke-dashoffset: 0; transition: none; }
  .nabai-musician-icon [fill="currentColor"] { opacity: 1; transition: none; }
}

/* Espacement : réduire la marge du 1er divider après le hero pour garder la transition serrée */
#nabai-hero + .nabai-divider { margin-top: clamp(8px, 2vw, 20px); }

/* ══════════════════════════════════════════════════════════════════════
   PASSIVE SECURITY — image/visual protection
   ══════════════════════════════════════════════════════════════════════ */

/* Transparent shield over the cover — catches drag/right-click target */
.hero-cover-shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto; /* intercepts mouse events */
  cursor: default;
}


/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE REFINEMENTS — hero + ecosystem
   ═══════════════════════════════════════════════════════════════════════════ */

/* Remove eyebrow decorative dash line globally */
.eyebrow::before { display: none !important; }

/* ── Ecosystem desc grid ──────────────────────────────────────────────── */
.ecosystem-desc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 40px 0 56px;
  align-items: start;
}
.eco-lead { margin-top: 0; }
.eco-pitch {
  font-family: var(--font-display, serif);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: var(--mid, rgba(255,255,255,.55));
  padding-left: 24px;
  border-left: 2px solid var(--orange, #D35400);
}
.eco-pitch-strong {
  font-style: normal;
  font-weight: 400;
  color: var(--hi, #fff);
}

/* ── Hero mobile ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  #nabai-hero {
    padding-top: 120px !important;  /* navbar = 64px + 56px breathing room */
    padding-bottom: 48px !important;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-title {
    font-size: clamp(2.4rem, 10vw, 4rem);
    text-align: center;
  }
  .hero-sub {
    text-align: center;
    max-width: 92%;
    margin-inline: auto;
    font-size: clamp(1rem, 4vw, 1.15rem);
    padding-inline: 12px;
    line-height: 1.6;
  }
  .nabai-contrib-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    width: 100%;
  }
  .hero-visual { margin-top: 32px; }
  .hero-cover { width: min(320px, 80vw); }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  .nabai-contrib-cta-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .nabai-contrib-cta-row .btn-glass,
  .nabai-contrib-cta-row .btn-contribute {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  .ecosystem-desc-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 24px 0 40px;
  }
  .eco-pitch {
    font-size: clamp(1rem, 4.5vw, 1.2rem);
    padding-left: 16px;
  }
  .c-names { font-size: 0.95rem; }
  .voices-names { font-size: 0.9rem; }
}

/* ── Ecosystem light mode ─────────────────────────────────────────────── */
html[data-theme="light"] .eco-pitch { color: var(--mid); border-left-color: var(--orange); }
html[data-theme="light"] .eco-pitch-strong { color: var(--hi); }


/* Make protected images non-selectable and non-draggable */
.hero-cover,
.tl-now-art img,
.tl-now-cover > img,
.player-art img,
[data-nabai-protected] {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  draggable: false;
  pointer-events: none; /* events go to overlay instead */
}
/* But the .hero-cover-wrap itself captures events for the shield */
.hero-cover-wrap { pointer-events: auto; }

/* ══════════════════════════════════════════════════════════════════════
   ANIMATED COLUMN DIVIDERS — vertical breathing lines in 2-col grids
   Used between asymmetric grid columns (about, contact, ecosystem desc).
   Appear on scroll via .is-visible class added by IntersectionObserver.
   ══════════════════════════════════════════════════════════════════════ */
@keyframes nabai-col-pulse {
  0%, 100% { opacity: .22; }
  50%       { opacity: .65; }
}

/* About grid — 2 columns: vertical line in the gap */
.about-grid {
  position: relative;
}
.about-grid::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255,255,255,.18) 30%,
    rgba(255,255,255,.18) 70%,
    transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
}
html[data-theme="light"] .about-grid::after {
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(14,14,14,.14) 30%,
    rgba(14,14,14,.14) 70%,
    transparent 100%);
}
/* Active state (when grid is in view) — added by IntersectionObserver */
.about-grid.col-divider-visible::after {
  opacity: 1;
  animation: nabai-col-pulse 4s ease-in-out infinite;
}

/* Contact grid — same pattern */
.contact-grid {
  position: relative;
}
.contact-grid::after {
  content: "";
  position: absolute;
  top: 5%;
  bottom: 5%;
  left: calc(100% / (1 + 1.2) * 1);  /* at the column boundary */
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255,255,255,.12) 25%,
    rgba(255,255,255,.12) 75%,
    transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
}
html[data-theme="light"] .contact-grid::after {
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(14,14,14,.10) 25%,
    rgba(14,14,14,.10) 75%,
    transparent 100%);
}
.contact-grid.col-divider-visible::after {
  opacity: 1;
  animation: nabai-col-pulse 5s ease-in-out 0.3s infinite;
}

/* Ecosystem inline 2-col description block */
.ecosystem-desc-grid {
  position: relative;
}
.ecosystem-desc-grid::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255,255,255,.15) 30%,
    rgba(255,255,255,.15) 70%,
    transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
}
html[data-theme="light"] .ecosystem-desc-grid::after {
  background: linear-gradient(to bottom, transparent 0%, rgba(14,14,14,.10) 50%, transparent 100%);
}
.ecosystem-desc-grid.col-divider-visible::after {
  opacity: 1;
  animation: nabai-col-pulse 4.5s ease-in-out 0.15s infinite;
}

/* Reduced motion: static line, no pulse */
@media (prefers-reduced-motion: reduce) {
  .about-grid.col-divider-visible::after,
  .contact-grid.col-divider-visible::after,
  .ecosystem-desc-grid.col-divider-visible::after {
    animation: none;
    opacity: .3;
  }
}

/* Hide on mobile (single-column, no gap to divide) */
@media (max-width: 860px) {
  .about-grid::after,
  .contact-grid::after,
  .ecosystem-desc-grid::after { display: none; }
}
