/* =========================================================
   THON v5 — minimal runway hero, sound, floating catalogue
   ========================================================= */

/* ---------- entrance: sound choice ---------- */
.loader__enter { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; opacity: 0; visibility: hidden; }
.loader__enter .btn { padding: 16px 26px; }
.loader__enter p { flex: 1 0 100%; margin: 8px 0 0; font: 400 11px/1.6 var(--sans); letter-spacing: .14em; color: rgba(244,240,230,.5); }

/* ---------- hero: classy & minimal ---------- */
.hero { height: 620vh; }
.hero__bar { min-height: 7vh; height: 7vh; }
.hero__vignette { background: radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%), linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 20%, transparent 62%, rgba(0,0,0,.6) 100%); }
.cap { position: absolute; z-index: 6; left: 50%; bottom: clamp(70px, 13vh, 130px); transform: translateX(-50%); width: min(900px, 90vw); text-align: center; opacity: 0; visibility: hidden; pointer-events: none; }
.cap--0 { opacity: 1; visibility: visible; }
.cap__k { margin: 0 0 16px; font: 400 10px/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; color: rgba(252,191,53,.85); }
.cap__t { margin: 0; font: 300 clamp(34px, 4.4vw, 68px)/1.05 var(--serif); letter-spacing: -.01em; color: var(--ivory); text-shadow: 0 8px 40px rgba(0,0,0,.45); }
.cap__t em { color: var(--gold); }
.cap--0 .cap__t { font-size: clamp(46px, 6.6vw, 112px); line-height: .95; }
.cap--end { pointer-events: auto; }
.cap__link { display: inline-flex; gap: 10px; margin-top: 22px; padding-bottom: 6px; border-bottom: 1px solid rgba(252,191,53,.6); font: 400 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ivory); transition: color .4s, gap .4s var(--ease); }
.cap__link:hover { color: var(--gold); gap: 16px; }
.cap__link i { font-style: normal; }
.hero__cue { position: absolute; z-index: 6; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font: 400 9px/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; color: rgba(244,240,230,.6); opacity: 0; }
.hero__cue i { width: 1px; height: 38px; background: linear-gradient(180deg, rgba(252,191,53,.9), transparent); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero__line { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(244,240,230,.08); opacity: 0; }
.hero__line i { display: block; height: 100%; background: linear-gradient(90deg, var(--antique), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }
.hero__snd { position: absolute; z-index: 7; right: var(--g); bottom: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(244,240,230,.22); background: rgba(0,0,0,.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 400 9px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgba(244,240,230,.8); opacity: 0; }
.hero__snd:hover { border-color: var(--gold); }

/* equaliser bars (sound toggle) */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .3s; }
.sound-on .eq i { animation: eq 1s ease-in-out infinite; background: var(--gold); }
.sound-on .eq i:nth-child(2) { animation-delay: -.3s; } .sound-on .eq i:nth-child(3) { animation-delay: -.6s; } .sound-on .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.hdr__sound .eq { height: 14px; }

/* ---------- walk-in right after the hero ---------- */
.walk { margin-top: 0; }

/* ---------- floating catalogue ---------- */
.flcat { position: relative; z-index: 2; height: 900vh; background: #020c06; }
.flcat__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 900px; perspective-origin: 50% 50%; }
.flcat__bg { position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 50%, rgba(181,138,53,.16), transparent 70%), radial-gradient(120% 90% at 50% 120%, #0b3a23 0%, #020c06 60%); }
.flcat__world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.fc { position: absolute; left: 0; top: 0; width: clamp(190px, 17vw, 290px); margin-left: calc(clamp(190px, 17vw, 290px) / -2); margin-top: calc(clamp(190px, 17vw, 290px) * -.66); visibility: hidden; will-change: transform, opacity; }
.fc img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; box-shadow: 0 40px 70px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(252,191,53,.18); transition: transform .8s var(--ease), box-shadow .8s; }
.fc:hover img { transform: translateY(-10px) scale(1.04); box-shadow: 0 60px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(252,191,53,.6); }
.fc__cap { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; gap: 4px; padding: 14px 4px 0; color: var(--ivory); opacity: 0; transform: translateY(-8px); transition: opacity .5s, transform .6s var(--ease); }
.fc:hover .fc__cap { opacity: 1; transform: none; }
.fc__cap i { font: 400 9px/1 var(--sans); font-style: normal; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.fc__cap b { font: 400 19px/1.1 var(--serif); }
.fc__cap em { font: 400 13px/1 var(--sans); font-style: normal; color: rgba(244,240,230,.7); }
.fw { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; font: 300 italic clamp(90px, 13vw, 220px)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(252,191,53,.35); pointer-events: none; visibility: hidden; will-change: transform, opacity; }
.flcat__intro { position: absolute; z-index: 3; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; transform-origin: 50% 50%; }
.flcat__intro .kicker { justify-content: center; }
.flcat__t { margin: 0 0 22px; font: 300 clamp(56px, 8.4vw, 150px)/.9 var(--serif); letter-spacing: -.025em; color: var(--ivory); }
.flcat__t em { color: var(--gold); }
.flcat__sub { margin: 0 auto; max-width: 380px; color: rgba(244,240,230,.65); }
.flcat__hud { position: absolute; z-index: 4; left: var(--g); right: var(--g); bottom: 28px; display: flex; align-items: center; gap: 24px; }
.flcat__count { font: 400 11px/1 var(--sans); letter-spacing: .24em; color: rgba(244,240,230,.6); white-space: nowrap; }
.flcat__count b { font: 400 22px/1 var(--serif); letter-spacing: 0; color: var(--gold); }
.flcat__bar { flex: 1; height: 1px; background: rgba(244,240,230,.15); }
.flcat__bar i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
.flcat__hud .btn { padding: 14px 22px; }
.flcat__peek { position: absolute; z-index: 4; left: 50%; bottom: 84px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; opacity: 0; color: var(--ivory); pointer-events: none; }
.flcat__pw { font: 400 9px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.flcat__pn { font: 300 clamp(26px, 2.6vw, 40px)/1 var(--serif); }
.flcat__pp { font: 400 14px/1 var(--sans); color: rgba(244,240,230,.7); }

@media (max-width: 900px) {
  .cap { bottom: 15vh; }
  .hero__snd { bottom: auto; top: 74px; }
  .flcat { height: 760vh; }
  .fc { width: 40vw; margin-left: -20vw; margin-top: -30vw; }
  .fc__cap b { font-size: 16px; }
  .flcat__hud .btn { display: none; }
  .flcat__peek { bottom: 70px; }
}

/* ---------- v6: the real logo ---------- */
.loader__logo { width: min(520px, 78vw); margin: 0 auto; }
.loader__logo img { width: 100%; height: auto; display: block; opacity: 0; filter: drop-shadow(0 10px 40px rgba(252,191,53,.15)); }
.hdr__img { display: block; height: 34px; width: auto; }
.hdr__logo { gap: 0; }
.cap--0 { bottom: auto; top: 50%; transform: translate(-50%, -42%); }
.cap__logo { margin: 0 auto 26px; width: min(560px, 74vw); }
.cap__logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 40px rgba(0,0,0,.6)); }
.cap__tag { margin: 0; font: 300 italic clamp(22px, 2.2vw, 34px)/1 var(--serif); letter-spacing: .02em; color: rgba(244,240,230,.92); text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.cap__tag em { color: var(--gold); }

/* ---------- v6: catalogue — big sarees that come to the front ---------- */
.fc { width: clamp(300px, 30vw, 470px); margin-left: calc(clamp(300px, 30vw, 470px) / -2); margin-top: calc(clamp(300px, 30vw, 470px) * -.66); }
.fc img { border-radius: 18px; }
.fc.is-front img { box-shadow: 0 70px 120px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(252,191,53,.55); }
.flcat { height: 1100vh; }
.flcat__peek { bottom: 92px; }
@media (max-width: 900px) {
  .fc { width: 66vw; margin-left: -33vw; margin-top: -48vw; }
  .flcat { height: 900vh; }
  .hdr__img { height: 26px; }
  .cap__logo { width: 82vw; }
}

/* ---------- v6: entrance — gentle motion while loading ---------- */
.loader__inner { position: relative; }
.loader__logo { position: relative; will-change: transform; }
.loader__shine { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("../assets/brand/thon-logo.webp") center / contain no-repeat; mask: url("../assets/brand/thon-logo.webp") center / contain no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255,246,214,.95) 50%, transparent 62%) 0 0 / 260% 100% no-repeat;
  animation: shine 3.2s ease-in-out 2.2s infinite; mix-blend-mode: screen; opacity: .85; }
@keyframes shine { 0% { background-position: 130% 0; } 60%, 100% { background-position: -40% 0; } }
.loader__dust { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.loader__dust i { position: absolute; left: var(--x); bottom: -10px; width: calc(3px * var(--s)); height: calc(3px * var(--s)); border-radius: 50%; background: #fcd77a; box-shadow: 0 0 8px rgba(252,191,53,.9); opacity: 0; animation: dust var(--d) linear var(--w) infinite; }
@keyframes dust { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 12% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translate3d(18px, -105vh, 0); opacity: 0; } }
.loader__bar { position: relative; overflow: visible; margin-top: 46px; opacity: 0; }
.loader__bar i { box-shadow: 0 0 12px rgba(252,191,53,.6); }
.loader__spark { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff6d6; box-shadow: 0 0 10px 3px rgba(252,191,53,.9), 0 0 24px 6px rgba(252,191,53,.35); animation: twinkle 1.1s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.55); opacity: .7; } }
.loader__meta { opacity: 0; }
.loader__pct { display: inline-block; font-variant-numeric: tabular-nums; }
.loader__pct::after { content: "%"; }
@media (prefers-reduced-motion: reduce) { .loader__shine, .loader__dust { display: none; } }
