/* Load after final-ui.css. Native playback is controlled by page JavaScript. */
body[data-theme] .brand { min-width: 0; gap: 11px; }
body[data-theme] .brand > img,
body[data-theme] .brand > video,
body[data-theme] .mobile-dock > img,
body[data-theme] .mobile-dock > video {
  display: block;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 4px;
  object-fit: contain;
  object-position: center;
  background: #113638;
  border: 1px solid #d8bd7838;
  border-radius: 13px;
  box-shadow: inset 0 1px 0 #ffffff0c, 0 3px 8px #08252612;
  transform: none;
  filter: none;
}
body[data-theme] .brand > strong { min-width: 0; line-height: 1.2; }
.art-clip > video,
.preview-image > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0d1c20;
}
.art-clip > video { pointer-events: none; }
.motion-ui.is-video > img,
.motion-ui.is-video > video,
.motion-ui.is-video.is-inview > img,
.motion-ui.is-video.is-inview > video {
  transform: none;
  animation: none;
  will-change: auto;
}
.motion-ui.is-video::before { display: none; animation: none; }
.motion-ui.is-video::after { background: linear-gradient(180deg, #00000005, transparent 45%, #00000012); }

/* Only mark clips LIVE once a playable native video has been attached. */
body[data-theme] .is-video .motion-label,
body[data-theme] .live-badge {
  position: absolute;
  inset: auto auto 10px 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: calc(100% - 20px);
  padding: 6px 8px;
  border: 1px solid #ffffff50;
  border-radius: 20px;
  background: #092d2be6;
  color: #fffdf5;
  box-shadow: 0 2px 8px #00000020;
  font: 700 10px/1.2 Arial, sans-serif;
  letter-spacing: .055em;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.is-video .motion-dot,
.live-badge::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: #9ae8c3;
}
.live-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
body[data-theme] .motion-toggle,
body[data-theme] .live-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
}
.live-toggle .icon { width: 16px; height: 16px; }
body[data-theme] .live-toggle[aria-pressed="true"],
body[data-theme] .motion-toggle[aria-pressed="true"] { border-color: var(--accent); }
.live-toggle:focus-visible,
.motion-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

/* Optional authoring surface; inherits the site's colours. */
.live-editor { padding: clamp(18px, 3vw, 28px); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.live-editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.live-editor label { display: grid; gap: 7px; min-width: 0; font-size: 13px; line-height: 1.5; }
.live-editor input:not([type="checkbox"]):not([type="radio"]),
.live-editor select,
.live-editor textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; }
.live-editor textarea { min-height: 100px; resize: vertical; }
.live-editor video { display: block; width: 100%; max-height: 360px; object-fit: contain; border-radius: 10px; background: #102527; }
.live-editor-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

@media (max-width: 760px) {
  html { scroll-padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
  body[data-theme] .brand > img,
  body[data-theme] .brand > video,
  body[data-theme] .mobile-dock > img,
  body[data-theme] .mobile-dock > video { width: 44px; height: 44px; border-radius: 12px; }
  body[data-theme] .nav { min-height: 68px; height: auto !important; padding-block: 10px; }
  body[data-theme] .brand { gap: 9px; }
  body[data-theme] .nav .language select { max-width: 116px; min-height: 44px; font-size: 12px; }
  body[data-theme] .mobile-dock {
    display: grid;
    grid-template-columns: 44px minmax(0, .65fr) minmax(118px, 1fr);
    gap: 10px;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    align-items: center;
  }
  body[data-theme] .mobile-dock > span { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
  body[data-theme] .mobile-dock small { font-size: 11px; line-height: 1.4; }
  body[data-theme] .mobile-dock > .button { width: 100%; min-height: 46px; margin: 0; padding: 10px 12px; gap: 9px; white-space: normal; font-size: 12px; line-height: 1.4; }
  body[data-theme] .footer { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
  body[data-theme] .hero-stage .art-caption { line-height: 1.45; overflow-wrap: anywhere; }
}

@media (max-width: 640px) {
  body[data-theme] .hero { padding-top: 20px; padding-bottom: 22px; min-height: 0; }
  body[data-theme] .hero :is(.utsav-copy, .vanam-copy, .nova-copy) { padding-bottom: 0; }
  body[data-theme] .hero .eyebrow { margin: 0 0 10px; font-size: 10px; line-height: 1.5; letter-spacing: .1em; }
  body[data-theme] .hero h1 { font-size: clamp(34px, 9.4vw, 44px); line-height: 1.09; letter-spacing: -.045em; margin: 0 0 12px; max-width: 100%; text-wrap: balance; }
  body[data-theme] .hero .hero-desc { max-width: 100%; margin-bottom: 16px; font-size: 14px; line-height: 1.6; }
  body[data-theme] .hero .hero-actions { gap: 12px; margin-top: 0; }
  body[data-theme] .hero .hero-actions > .text-link { display: none; }
  body[data-theme] .hero .hero-actions > .button { min-height: 49px; max-width: 100%; padding: 13px 20px; gap: 18px; font-size: 14px; line-height: 1.45; }
  body[data-theme] .hero .hero-proof { gap: 7px 15px; margin-top: 15px; font-size: 11px; line-height: 1.4; }
  body[data-theme] .hero .hero-proof > span { min-width: 0; }
  body[data-theme] .hero .hero-proof .icon { flex: 0 0 12px; }
  body[data-theme] .vanam-hero { gap: 0; }
  body[data-theme] .rang-intro { margin-top: 12px; max-width: 100%; }

  /* Keep three real samples together and above the next content section. */
  body[data-theme] .hero-stage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 9px;
    width: 100%;
    max-width: 480px;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    padding: 10px 0 0;
    margin: 18px auto 0;
    perspective: none;
    transform: none;
  }
  body[data-theme] .hero-stage > .art-button:nth-child(n) {
    display: block;
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    transform: none;
    align-self: start;
  }
  body[data-theme] .hero-stage > .art-button:nth-child(2) { margin-top: 13px; }
  body[data-theme] .hero-stage > .art-button:nth-child(3) { margin-top: 5px; }
  body[data-theme] .hero-stage .art-clip { aspect-ratio: 9 / 16; }
  body[data-theme] .hero-stage .art-caption { display: flex; padding: 9px 0 0; font-size: 10px; letter-spacing: 0; gap: 3px; text-align: left; opacity: 1; }
  body[data-theme] .hero-stage .art-caption .icon { width: 11px; height: 11px; min-width: 11px; flex: 0 0 11px; }
  body[data-theme] .hero-stage > .micro-label { display: none; }
  body[data-theme] .hero-stage .phone-clock { top: 18%; font-size: 7px; }
  body[data-theme] .hero-stage .phone-clock strong { font-size: 26px; margin-top: 4px; }
  body[data-theme] .hero-stage .is-video .motion-label,
  body[data-theme] .hero-stage .live-badge { inset: auto auto 7px 6px; padding: 5px 6px; max-width: calc(100% - 12px); font-size: 9px; letter-spacing: .035em; }
  body[data-theme="utsav"] .hero-stage { padding-top: 15px; }
  body[data-theme="utsav"] .hero-stage::before { width: 92%; left: 4%; top: 0; height: 91%; }
  body[data-theme="vanam"] .hero-stage .art-clip { border-width: 3px; }
  body[data-theme="vanam"] .hero-stage::before,
  body[data-theme="vanam"] .hero-stage::after { top: 0; height: 95%; aspect-ratio: auto; }
  body[data-theme="nova"] .hero-stage .art-clip { border-radius: 11px; box-shadow: 0 10px 22px #0005, 0 0 0 2px #1a2942; }
  body[data-theme="nova"] .hero-stage::after { display: none; }
  body[data-theme="rang"] .hero-stage > .art-button { padding: 4px 4px 8px; }
  body[data-theme="rang"] .hero-stage .art-caption { padding-inline: 1px; }
  body[data-theme="rang"] .rang-mobile-motion { display: none; }
  body[data-theme] :is(.heritage-band, .vanam-note, .rang-index) { font-size: 10px; line-height: 1.5; }
  body[data-theme] .motion-section { padding-top: 38px; }
  body[data-theme] .motion-toolbar { align-items: center; gap: 12px; }
  body[data-theme] .motion-count { font-size: 11px; line-height: 1.5; }
  body[data-theme] .motion-rail { padding-top: 9px; }

  html:lang(hi) body[data-theme] .hero h1,
  html:lang(mr) body[data-theme] .hero h1,
  html:lang(bn) body[data-theme] .hero h1,
  html:lang(ta) body[data-theme] .hero h1,
  html:lang(te) body[data-theme] .hero h1 { font-size: clamp(30px, 8.5vw, 39px); line-height: 1.28; letter-spacing: 0; }
  html:lang(hi) .hero h1, html:lang(mr) .hero h1 { font-family: 'Noto Sans Devanagari', sans-serif; }
  html:lang(bn) .hero h1 { font-family: 'Noto Sans Bengali', sans-serif; }
  html:lang(ta) .hero h1 { font-family: 'Noto Sans Tamil', sans-serif; }
  html:lang(te) .hero h1 { font-family: 'Noto Sans Telugu', sans-serif; }
  html:not(:lang(en)) body[data-theme] .hero h1 em { font-family: inherit; font-style: normal; letter-spacing: 0; }
  body[data-theme].large-text .hero .hero-desc { font-size: 17px; line-height: 1.65; }
}

@media (max-width: 360px) {
  body[data-theme] .hero { padding-top: 16px; }
  body[data-theme] .hero h1 { font-size: 34px; }
  body[data-theme] .hero-stage { gap: 7px; }
  body[data-theme] .mobile-dock { gap: 8px; padding-inline: 12px; grid-template-columns: 44px minmax(0, .6fr) minmax(108px, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .live-toggle, .motion-toggle { transition: none; }
}

/* Native animated previews: sources are attached only while visible. */
body[data-theme] .art-clip > video{display:block;width:100%;height:100%;object-fit:cover;background:#0b1820;pointer-events:none}
body[data-theme] .motion-ui,body[data-theme] .motion-ui > video,body[data-theme] .motion-ui > img{animation:none!important;transform:none;will-change:auto}
body[data-theme] .motion-ui::before{display:none!important}
body[data-theme] .hero-stage{isolation:isolate}
body[data-theme] .hero-live-tools{position:absolute;bottom:-35px;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:18px;min-height:36px;font-size:11px;color:var(--muted);z-index:8}
body[data-theme] .hero-live-tools .motion-toggle{min-height:36px;padding:7px 12px;font-size:11px;background:var(--paper);border-radius:30px}
body[data-theme] .motion-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.rail-navigation{display:flex;align-items:center;gap:8px}
.rail-step{display:grid;place-items:center;width:44px;height:44px;min-width:44px;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink);cursor:pointer}
.rail-step[data-rail-step="-1"] .icon{transform:rotate(180deg)}
body[data-theme] .motion-rail{scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scroll-padding:2px}
body[data-theme] .motion-rail > .art-button{scroll-snap-align:start;flex:0 0 210px;min-width:0}
body[data-theme] .gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
body[data-theme] .art-clip.needs-play::after,body[data-theme] .art-clip.video-error::after{content:attr(data-live-hint);position:absolute;inset:auto 9px 40%;z-index:8;padding:9px 10px;border-radius:12px;text-align:center;color:#fff;background:#092b2ce8;font:600 12px/1.4 system-ui;pointer-events:none}
body[data-theme] .art-clip.video-error::after{inset:auto 9px 15%;background:#352921ed}
body[data-theme] .live-badge,body[data-theme] .is-video .motion-label{background:#092d2be6;border-color:#ffffff50}
body[data-theme] .preview-image > video{display:block;width:100%;height:100%;object-fit:contain;background:#0b1820}
@media(max-width:1000px){body[data-theme] .gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
@media(max-width:640px){
 body[data-theme] .hero-stage .hero-live-tools{position:static;grid-column:1/-1;justify-content:space-between;gap:9px;min-height:36px;margin-top:6px;padding-top:6px;font-size:10px;transform:none}
 body[data-theme] .hero-live-tools .motion-toggle{min-height:36px;max-width:62%;font-size:10px;line-height:1.35;padding:7px 10px}
 body[data-theme] .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}
 body[data-theme] .motion-rail > .art-button{flex-basis:160px}
 .rail-navigation{gap:6px}.rail-step{width:40px;height:40px;min-width:40px}
 body[data-theme] .motion-toolbar>.motion-toggle{order:3;flex-basis:100%;max-width:100%}
 body[data-theme] .motion-count{font-size:12px;max-width:calc(100% - 100px)}
 body[data-theme] .art-clip.needs-play::after{font-size:11px;padding:7px}
}
@media(max-width:360px){body[data-theme] .gallery-grid{gap:16px 11px}body[data-theme] .hero-live-tools>span{max-width:43%;line-height:1.4}}

.gallery-pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin:32px auto 0}.gallery-pagination[hidden]{display:none}.gallery-pagination button:disabled{opacity:.4;cursor:default}.gallery-pagination span{font-size:13px}.collection-section{scroll-margin-top:90px}.download-art>video{display:block;width:43%;height:auto;aspect-ratio:9/16;object-fit:cover;border-radius:18px;transform:rotate(-10deg);box-shadow:0 18px 30px #0003}.download-art>video:nth-child(2){transform:rotate(11deg) translateY(35px)}
.language select,.language select option{background:#10192e;color:#edf3ff;color-scheme:dark}
@media(max-width:640px){.gallery-pagination{gap:10px}.gallery-pagination .button{padding:10px 12px;min-height:44px}.gallery-pagination span{font-size:11px}.download-art>video{width:40%;max-height:240px}}
