/* =========================================================
   Yash Gandhi — Homepage "Plus" layer
   Purely additive: aurora hero, particles, film grain, REC HUD,
   scroll progress, cursor ring, outline marquee, editing timeline,
   scroll reveals. Safe to delete (remove the <link> + <script>).
========================================================= */

:root{
    --yg-orange: #FF471C;
    --yg-orange-soft: rgba(255,71,28,.16);
    --yg-ease: cubic-bezier(.16,1,.3,1);
}

/* ---------- 1) Scroll progress bar ---------- */
#yg-progress{
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 3px;
    z-index: 10000;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, #ff471c, #ff9a3c 60%, #fff);
    box-shadow: 0 0 14px rgba(255,71,28,.7);
    pointer-events: none;
}

/* ---------- 2) Hero: aurora, particles, grain ---------- */
.yg-hero-fx{
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.yg-aurora{
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    will-change: transform;
}
.yg-aurora.a1{
    width: 520px; height: 520px;
    left: -140px; top: 8%;
    background: radial-gradient(circle, rgba(255,71,28,.55), rgba(255,71,28,0) 70%);
    animation: yg-drift-1 16s ease-in-out infinite alternate;
}
.yg-aurora.a2{
    width: 460px; height: 460px;
    right: 6%; bottom: -120px;
    background: radial-gradient(circle, rgba(255,150,60,.42), rgba(255,150,60,0) 70%);
    animation: yg-drift-2 19s ease-in-out infinite alternate;
}
.yg-aurora.a3{
    width: 380px; height: 380px;
    left: 42%; top: -140px;
    background: radial-gradient(circle, rgba(150,90,255,.30), rgba(150,90,255,0) 70%);
    animation: yg-drift-3 22s ease-in-out infinite alternate;
}
@keyframes yg-drift-1{ to{ transform: translate(160px, 90px) scale(1.15); } }
@keyframes yg-drift-2{ to{ transform: translate(-190px, -70px) scale(1.2); } }
@keyframes yg-drift-3{ to{ transform: translate(-120px, 140px) scale(.9); } }

#yg-particles{
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    display: block;
}
.yg-grain{
    position: absolute;
    inset: -50%;
    width: 200%; height: 200%;
    opacity: .09;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    animation: yg-grain 1.1s steps(6) infinite;
    mix-blend-mode: overlay;
}
@keyframes yg-grain{
    0%{ transform: translate(0,0); }
    20%{ transform: translate(-4%, 3%); }
    40%{ transform: translate(3%, -5%); }
    60%{ transform: translate(-6%, -2%); }
    80%{ transform: translate(5%, 4%); }
    100%{ transform: translate(0,0); }
}

/* hero: breathing room so stats don't touch the headline */
.hero-section-1 .yg-hero-stats{ margin-top: 34px; }

/* headline accent: soft breathing glow */
.hero-section-1 h1 span{
    animation: yg-headline-glow 4.5s ease-in-out infinite;
}
@keyframes yg-headline-glow{
    0%,100%{ text-shadow: 0 0 0 rgba(255,71,28,0); }
    50%{ text-shadow: 0 0 34px rgba(255,71,28,.55); }
}

/* ---------- 3) Hero video HUD (REC + timecode + chips) ---------- */
.yg-hero-video-wrap{ position: relative; }
.yg-hud{
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: 14px;
    overflow: hidden;
}
.yg-hud .rec{
    position: absolute;
    top: 12px; left: 14px;
    display: flex; align-items: center; gap: 7px;
    font: 700 11px/1 "Manrope", sans-serif;
    letter-spacing: .14em;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.yg-hud .rec i{
    width: 9px; height: 9px; border-radius: 50%;
    background: #ff2b2b;
    box-shadow: 0 0 10px #ff2b2b;
    animation: yg-rec 1.1s steps(2, jump-none) infinite;
}
@keyframes yg-rec{ 0%{opacity:1} 100%{opacity:.15} }
.yg-hud .tc{
    position: absolute;
    top: 12px; right: 14px;
    font: 600 11px/1 ui-monospace, "SF Mono", Menlo, monospace;
    letter-spacing: .08em;
    color: rgba(255,255,255,.9);
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
    font-variant-numeric: tabular-nums;
}
.yg-hud .corner{
    position: absolute;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.55);
}
.yg-hud .corner.tl{ top: 8px; left: 8px; border-right: 0; border-bottom: 0; opacity: 0; }
.yg-hud .corner.tr{ top: 8px; right: 8px; border-left: 0; border-bottom: 0; opacity: 0; }
.yg-hud .corner.bl{ bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.yg-hud .corner.br{ bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.yg-chip{
    position: absolute;
    z-index: 4;
    padding: 9px 14px;
    border-radius: 999px;
    font: 700 12px/1 "Manrope", sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(20,20,20,.72);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,.7);
    pointer-events: none;
    white-space: nowrap;
}
.yg-chip b{ color: var(--yg-orange); margin-right: 6px; }
.yg-chip.c1{ top: -18px; left: -22px; animation: yg-float 6s ease-in-out infinite; }
.yg-chip.c2{ bottom: 18px; right: -8px; animation: yg-float 7.5s ease-in-out -2s infinite; }
.yg-chip.c3{ bottom: -20px; left: 12%; animation: yg-float 8s ease-in-out -4s infinite; }
@keyframes yg-float{
    0%,100%{ transform: translateY(0) rotate(-1.5deg); }
    50%{ transform: translateY(-12px) rotate(1.5deg); }
}
@media (max-width: 1199px){ .yg-chip.c1{ left: 6px; } .yg-chip.c2{ right: 6px; } }

/* ---------- 4) Scroll cue ---------- */
.yg-scroll-cue{
    position: absolute;
    right: 40px;
    bottom: 34px;
    z-index: 3;
    display: flex; align-items: center; gap: 12px;
    font: 600 11px/1 "Manrope", sans-serif;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    pointer-events: none;
}
.yg-scroll-cue .bar{
    position: relative;
    width: 1px; height: 54px;
    background: rgba(255,255,255,.18);
    overflow: hidden;
}
.yg-scroll-cue .bar::after{
    content: "";
    position: absolute; left: 0; top: -40%;
    width: 100%; height: 40%;
    background: var(--yg-orange);
    animation: yg-scroll-drop 1.8s var(--yg-ease) infinite;
}
@keyframes yg-scroll-drop{ to{ top: 110%; } }
@media (max-width: 991px){ .yg-scroll-cue{ display: none; } }

/* ---------- 5) Outline marquee (velocity-driven) ---------- */
.yg-outline-marquee{
    position: relative;
    overflow: hidden;
    padding: 34px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,71,28,.05), rgba(255,71,28,0));
    user-select: none;
}
.yg-outline-marquee .track{
    display: flex;
    align-items: center;
    width: max-content;
    gap: 40px;
    will-change: transform;
}
.yg-outline-marquee .group{
    display: flex; align-items: center; gap: 40px;
}
.yg-outline-marquee span{
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    font-size: clamp(54px, 9vw, 132px);
    line-height: 1;
    letter-spacing: -.02em;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,.4);
    transition: color .4s ease, -webkit-text-stroke-color .4s ease;
}
.yg-outline-marquee span:nth-child(4n+3){
    color: var(--yg-orange);
    -webkit-text-stroke: 0;
}
.yg-outline-marquee span:hover{
    color: #fff;
    -webkit-text-stroke-color: #fff;
}
.yg-outline-marquee i{
    font-style: normal;
    font-size: clamp(28px, 4vw, 52px);
    color: var(--yg-orange);
    animation: yg-spin 7s linear infinite;
    display: inline-block;
}
@keyframes yg-spin{ to{ transform: rotate(360deg); } }

/* ---------- 6) Editing timeline showcase ---------- */
.yg-tl-section{
    position: relative;
    overflow: hidden;
}
.yg-tl-section::before{
    content: "";
    position: absolute;
    left: 50%; top: 20%;
    width: 900px; height: 500px;
    margin-left: -450px;
    background: radial-gradient(ellipse, rgba(255,71,28,.12), rgba(255,71,28,0) 65%);
    pointer-events: none;
}
.yg-tl-head{
    text-align: center;
    max-width: 760px;
    margin: 0 auto 52px;
    position: relative;
}
.yg-tl-eyebrow{
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    font: 700 12px/1 "Manrope", sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 22px;
}
.yg-tl-eyebrow i{
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--yg-orange);
    box-shadow: 0 0 12px var(--yg-orange);
    animation: yg-rec 1.4s steps(2, jump-none) infinite;
}
.yg-tl-title{
    font-size: clamp(44px, 7vw, 96px);
    line-height: 1.02;
    letter-spacing: -.03em;
    margin-bottom: 18px;
}
.yg-tl-title .w{
    display: inline-block;
    color: rgba(255,255,255,.14);
    background: linear-gradient(90deg, #fff 0 50%, rgba(255,255,255,.14) 50% 100%) 100% 0 / 200% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position .9s var(--yg-ease);
    transition-delay: calc(var(--i) * .16s);
    margin-right: .18em;
}
.yg-tl-title .w.em{
    font-family: inherit;
    font-style: italic;
    background-image: linear-gradient(90deg, var(--yg-orange) 0 50%, rgba(255,71,28,.18) 50% 100%);
}
.yg-tl-title.is-in .w{ background-position: 0 0; }
.yg-tl-head p{
    color: var(--text, #b1b1b1);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto;
}

.yg-tl{
    position: relative;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: linear-gradient(180deg, #171717, #0e0e0e);
    box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
    overflow: hidden;
    --label: 64px;
}
.yg-tl-bar{
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font: 600 12px/1 ui-monospace, "SF Mono", Menlo, monospace;
    letter-spacing: .08em;
    color: rgba(255,255,255,.55);
}
.yg-tl-bar .dots{ display: flex; gap: 7px; }
.yg-tl-bar .dots i{ width: 11px; height: 11px; border-radius: 50%; background: #333; display: block; }
.yg-tl-bar .dots i:nth-child(1){ background: #ff5f57; }
.yg-tl-bar .dots i:nth-child(2){ background: #febc2e; }
.yg-tl-bar .dots i:nth-child(3){ background: #28c840; }
.yg-tl-bar .tc{
    color: var(--yg-orange);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 14px rgba(255,71,28,.5);
}
.yg-tl-body{ position: relative; padding: 0 0 14px; }
.yg-ruler{
    height: 30px;
    margin-left: var(--label);
    border-bottom: 1px solid rgba(255,255,255,.08);
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 5%) 0 100% / 100% 9px no-repeat,
        repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 1.25%) 0 100% / 100% 5px no-repeat;
}
.yg-track{
    display: flex;
    align-items: stretch;
    height: 58px;
    border-bottom: 1px dashed rgba(255,255,255,.06);
}
.yg-track:last-child{ border-bottom: 0; }
.yg-track .lbl{
    flex: 0 0 var(--label);
    display: flex; align-items: center; justify-content: center;
    font: 700 12px/1 "Manrope", sans-serif;
    letter-spacing: .1em;
    color: rgba(255,255,255,.5);
    border-right: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.02);
}
.yg-lane{ position: relative; flex: 1; }

.yg-clip{
    position: absolute;
    top: 7px; bottom: 7px;
    left: var(--x); width: var(--w);
    display: flex; align-items: center;
    padding: 0 12px;
    border-radius: 8px;
    font: 700 12px/1 "Manrope", sans-serif;
    letter-spacing: .04em;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    background: var(--bg, #333);
    border: 1px solid rgba(255,255,255,.18);
    transform: scaleX(0);
    transform-origin: 0 50%;
    opacity: 0;
    transition: transform .8s var(--yg-ease), opacity .5s ease, box-shadow .3s ease, filter .3s ease;
    transition-delay: calc(var(--i) * 90ms);
}
.yg-tl.is-in .yg-clip{ transform: scaleX(1); opacity: 1; }
.yg-clip.is-live{
    box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 0 22px -2px var(--glow, rgba(255,71,28,.7));
    filter: brightness(1.25);
    z-index: 2;
}
.yg-clip.v1{ --bg: linear-gradient(180deg,#ff5a2e,#d93a12); --glow: rgba(255,71,28,.8); }
.yg-clip.v2{ --bg: linear-gradient(180deg,#7a4dff,#4b2bd1); --glow: rgba(122,77,255,.8); }
.yg-clip.a1{ --bg: linear-gradient(180deg,#1f9d6b,#136b47); --glow: rgba(31,157,107,.8); }
.yg-clip.a2{ --bg: linear-gradient(180deg,#2d7fe0,#1b56a8); --glow: rgba(45,127,224,.8); }
.yg-clip.wave{ padding: 0 8px; gap: 2px; }
.yg-clip.wave span{
    flex: 1;
    min-width: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,.65);
    height: var(--h);
    transform-origin: 50% 50%;
}
.yg-clip.wave.is-live span{ animation: yg-wave .5s ease-in-out infinite alternate; animation-delay: calc(var(--k) * 30ms); }
@keyframes yg-wave{ to{ transform: scaleY(.45); } }

.yg-lanes{ position: relative; }
.yg-playhead{
    position: absolute;
    top: -30px; bottom: 0;
    left: calc(var(--label) + (100% - var(--label)) * var(--p, 0));
    width: 0;
    z-index: 5;
    pointer-events: none;
}
.yg-playhead::before{
    content: "";
    position: absolute;
    top: 30px; bottom: 0; left: -1px;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 14px rgba(255,255,255,.7);
}
.yg-playhead::after{
    content: "";
    position: absolute;
    top: 14px; left: -8px;
    width: 16px; height: 16px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
    filter: drop-shadow(0 0 6px rgba(255,255,255,.7));
}
.yg-tl-legend{
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
    margin-top: 30px;
}
.yg-tl-legend span{
    display: inline-flex; align-items: center; gap: 9px;
    font: 600 13px/1 "Manrope", sans-serif;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--text, #b1b1b1);
}
.yg-tl-legend i{ width: 10px; height: 10px; border-radius: 3px; display: block; }

@media (max-width: 767px){
    .yg-tl-bar > span:nth-child(2){ display: none; }
    .yg-tl{ --label: 38px; }
    .yg-track{ height: 46px; }
    .yg-clip{ font-size: 10px; padding: 0 6px; }
    .yg-track .lbl{ font-size: 10px; }
}

/* ---------- 7) Cursor ring ---------- */
#yg-ring{
    position: fixed;
    top: 0; left: 0;
    width: 38px; height: 38px;
    margin: -19px 0 0 -19px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.55);
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: width .35s var(--yg-ease), height .35s var(--yg-ease), margin .35s var(--yg-ease),
                background .3s ease, border-color .3s ease, opacity .3s ease;
    will-change: transform;
}
#yg-ring.is-on{ opacity: 1; }
#yg-ring.is-link{
    width: 72px; height: 72px; margin: -36px 0 0 -36px;
    background: rgba(255,71,28,.14);
    border-color: var(--yg-orange);
}
#yg-ring.is-down{ width: 24px; height: 24px; margin: -12px 0 0 -12px; }
@media (hover: none), (pointer: coarse){ #yg-ring{ display: none; } }

/* ---------- 8) Scroll reveals (uses individual `translate`
   so it never fights the tilt effect's `transform`) ---------- */
.yg-js [data-ygr]{
    opacity: 0;
    translate: 0 46px;
    scale: .96;
    transition:
        opacity .9s var(--yg-ease),
        translate .9s var(--yg-ease),
        scale .9s var(--yg-ease);
    transition-delay: calc(var(--ygi, 0) * 70ms);
}
.yg-js [data-ygr].is-in{
    opacity: 1;
    translate: 0 0;
    scale: 1;
}

/* brand pills: spotlight follows the mouse */
.brand-pill{ position: relative; overflow: hidden; }
.brand-pill::after{
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(255,71,28,.22), transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.brand-pill:hover::after{ opacity: 1; }
.brand-pill:hover .brand-pill-name{ color: var(--yg-orange); }

/* buttons: magnetic uses `translate` too */
.theme-btn-main, .yg-whatsapp-btn{ will-change: translate; }

/* ---------- Reduced motion: keep it calm ---------- */
@media (prefers-reduced-motion: reduce){
    .yg-aurora, .yg-grain, .yg-chip, .yg-hero-fx *, .yg-scroll-cue .bar::after,
    .yg-outline-marquee i, .hero-section-1 h1 span{ animation: none !important; }
    .yg-js [data-ygr]{ opacity: 1; translate: none; scale: none; transition: none; }
    .yg-clip{ transform: none; opacity: 1; transition: none; }
    .yg-tl-title .w{ background-position: 0 0; transition: none; }
}
